:root {
  color-scheme: light;
  --bg: #fff8ef;
  --surface: #ffffff;
  --surface-soft: #fffdf8;
  --card: #ffffff;
  --text: #2f2a26;
  --muted: #6f6258;
  --light-text: #8a7a6e;
  --accent: #f59e6c;
  --accent-dark: #ee8f5c;
  --green: #7bc6a4;
  --blue: #6ea8d9;
  --sun: #f7d774;
  --mint: #eaf7f1;
  --sky: #eaf4ff;
  --pink: #fff3e8;
  --line: #eadfd2;
  --shadow: 0 8px 24px rgba(47, 42, 38, 0.06);
  --shadow-hover: 0 14px 32px rgba(47, 42, 38, 0.1);
  --radius-card: 24px;
  --radius-control: 16px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Nunito", system-ui, sans-serif;
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.16) 0%, transparent 34%),
    linear-gradient(225deg, rgba(123, 198, 164, 0.12) 0%, transparent 38%),
    var(--bg);
  background-size: auto;
  color: var(--text);
  overflow-x: clip;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 16px clamp(16px, 4vw, 48px) 0;
  padding: 14px clamp(16px, 4vw, 28px);
  border: 1px solid rgba(234, 223, 191, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover {
  background: #eef6ff;
  color: var(--accent-dark);
}

.site-nav .account-nav-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.95), rgba(255, 116, 92, 0.92)),
    var(--coral);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(255, 116, 92, 0.22);
  cursor: pointer;
}

.site-nav .account-nav-button:hover {
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 1), rgba(255, 116, 92, 0.98)),
    var(--coral);
  color: #ffffff;
}

.site-main {
  flex: 1 0 auto;
  padding: 42px clamp(16px, 6vw, 72px) 56px;
}

.site-messages {
  display: grid;
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 0 28px;
}

.site-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(36, 48, 68, 0.07);
}

.site-message-error {
  border-color: rgba(255, 116, 92, 0.36);
  background: #fff4f0;
  color: #b13d2b;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  padding: 28px clamp(20px, 6vw, 72px) 36px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  left: clamp(14px, 3vw, 32px);
  z-index: 1050;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-content {
  display: flex;
  width: min(100%, 980px);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.cookie-banner h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.cookie-banner p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.hero {
  max-width: 760px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.24), transparent 42%),
    linear-gradient(225deg, rgba(127, 216, 190, 0.22), transparent 46%),
    var(--card);
  box-shadow: var(--shadow);
}

.page-heading {
  max-width: 780px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}

.hero p,
.page-heading p,
.section-heading p,
.game-card p,
.game-detail-content p,
.rich-text,
.empty-state p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.hero p,
.page-heading p {
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), #7aa8ff);
  color: white;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(79, 140, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(79, 140, 255, 0.26);
}

.button-secondary {
  border-color: #cfe1ff;
  background: #eef6ff;
  color: var(--accent-dark);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--accent-dark);
}

.button.is-disabled,
.button.is-disabled:hover {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.game-section {
  margin-top: 56px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading h2,
.asset-list h2,
.empty-state h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.section-heading h2 a {
  color: var(--text);
  text-decoration: none;
}

.game-grid,
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.game-card,
.asset-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(36, 48, 68, 0.08);
}

.game-cover {
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(215, 248, 220, 0.9), rgba(255, 227, 239, 0.88)),
    #f6fbff;
  color: var(--green);
  text-decoration: none;
  font-weight: 800;
  text-align: center;
  padding: 18px;
}

.game-cover img,
.game-detail-media img,
.asset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.game-card-header {
  display: grid;
  gap: 10px;
}

.game-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.game-card h3 a,
.text-link {
  color: var(--text);
  text-decoration: none;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.appointment-button {
  min-height: 52px;
  padding-inline: 24px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.9), rgba(255, 116, 92, 0.88)),
    var(--coral);
  box-shadow: 0 14px 26px rgba(255, 116, 92, 0.24);
}

.appointment-modal .modal-content,
.success-modal .modal-content,
.login-modal .modal-content {
  padding: 10px 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(223, 243, 255, 0.75), transparent 45%),
    linear-gradient(225deg, rgba(255, 227, 239, 0.8), transparent 50%),
    #ffffff;
  box-shadow: var(--shadow);
}

.appointment-modal .modal-header,
.appointment-modal .modal-footer,
.login-modal .modal-header {
  border-color: var(--line);
}

.appointment-modal .modal-title,
.success-modal h2,
.login-modal .modal-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

.appointment-modal .form-label,
.login-panel .form-label {
  color: var(--text);
  font-weight: 800;
}

.appointment-modal .form-control,
.appointment-modal .form-select,
.login-panel .form-control,
.profile-form .form-control {
  min-height: 46px;
  border-color: var(--line);
  border-radius: 8px;
  color: var(--text);
}

.profile-form textarea.form-control {
  min-height: 120px;
}

.appointment-modal textarea.form-control {
  min-height: 120px;
}

.appointment-modal .errorlist {
  margin: 6px 0 0;
  padding: 0;
  color: var(--coral);
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.success-modal .modal-body {
  display: grid;
  gap: 14px;
  padding: clamp(28px, 5vw, 42px);
  text-align: center;
}

.success-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.login-modal .modal-header {
  align-items: flex-start;
  padding: 22px 22px 16px;
}

.login-modal .modal-body {
  padding: 22px;
}

.login-panel,
.magic-link-form,
.local-login-form,
.social-login-actions {
  display: grid;
  gap: 14px;
}

.auth-error-list {
  margin: 6px 0 0;
  padding: 0;
  color: var(--coral);
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.consent-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.consent-check .form-check-input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border-color: var(--line);
}

.consent-check a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.social-login-actions form {
  margin: 0;
}

.login-submit {
  width: 100%;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.social-button {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px 8px 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 12px 24px rgba(36, 48, 68, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 15px 28px rgba(36, 48, 68, 0.16);
}

.social-button-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 16px;
  font-weight: 900;
}

.social-button-vk {
  background: #0077ff;
}

.social-button-yandex {
  background: #fc3f1d;
}

.auth-page {
  display: grid;
  place-items: start center;
}

.auth-card {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--card);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 52px);
}

.social-confirm-card {
  display: grid;
  gap: 18px;
}

.social-confirm-card h1 {
  margin-bottom: 0;
}

.social-confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.social-confirm-card form {
  margin: 0;
}

.social-confirm-submit {
  width: 100%;
}

.account-page {
  display: grid;
  gap: 28px;
}

.account-profile {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  width: min(100%, 900px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--card);
  box-shadow: var(--shadow);
}

.account-profile-edit {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  overflow: hidden;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(215, 248, 220, 0.95), rgba(223, 243, 255, 0.95)),
    #eef6ff;
  color: var(--accent-dark);
  box-shadow: 0 12px 24px rgba(36, 48, 68, 0.12);
  font-size: 46px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.account-details div {
  display: grid;
  gap: 4px;
}

.account-details dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-details dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.account-logout-button {
  min-width: 120px;
}

.profile-form {
  display: grid;
  gap: 24px;
}

.profile-form-media {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-form-full {
  grid-column: 1 / -1;
}

.profile-form .form-label {
  color: var(--text);
  font-weight: 800;
}

.profile-form input[readonly] {
  background: #f8fafc;
  color: var(--muted);
}

.form-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-actions,
.profile-logout-form {
  display: flex;
  justify-content: flex-start;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(100%, 900px);
}

.subscription-status {
  width: min(100%, 900px);
  border: 1px solid rgba(123, 198, 164, 0.48);
  border-radius: var(--radius-card);
  padding: clamp(20px, 4vw, 28px);
  background:
    linear-gradient(135deg, rgba(234, 247, 241, 0.95), rgba(255, 253, 248, 0.94)),
    var(--surface-soft);
  box-shadow: var(--shadow);
}

.subscription-status h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.progress-page {
  width: min(100%, 1120px);
}

.progress-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.progress-summary-card,
.progress-panel,
.progress-skill-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress-summary-card {
  display: grid;
  gap: 8px;
  min-height: 124px;
  padding: 22px;
}

.progress-summary-card-wide {
  grid-column: span 2;
}

.progress-summary-card span,
.progress-empty-text,
.progress-mini-card p,
.progress-skill-stats dt,
.progress-skill-stats dd {
  color: var(--muted);
}

.progress-summary-card strong {
  color: var(--text);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  line-height: 1;
}

.progress-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.progress-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 24px);
  background: var(--surface-soft);
}

.progress-panel-heading {
  display: grid;
  gap: 14px;
}

.progress-panel-heading .button {
  justify-self: start;
}

.progress-panel h2,
.progress-all-skills h2,
.progress-group h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
}

.progress-mini-list {
  display: grid;
  gap: 12px;
}

.progress-mini-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: 18px;
  padding: 16px;
  background: var(--surface);
}

.progress-mini-card h3,
.progress-skill-card h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
}

.progress-mini-card p,
.progress-empty-text {
  margin: 0;
  line-height: 1.5;
}

.progress-percent {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-weight: 900;
}

.progress-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.progress-status-new {
  background: var(--sky);
}

.progress-status-learning {
  background: #fff5c7;
}

.progress-status-good,
.progress-status-mastered {
  background: var(--mint);
}

.progress-all-skills {
  display: grid;
  gap: 24px;
}

.progress-group {
  display: grid;
  gap: 14px;
}

.progress-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.progress-skill-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.progress-skill-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.progress-skill-card-head strong {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.progress-bar {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pink);
}

.progress-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.progress-fill-new {
  background: var(--blue);
}

.progress-fill-learning {
  background: var(--sun);
}

.progress-fill-good,
.progress-fill-mastered {
  background: var(--green);
}

.progress-skill-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.progress-skill-stats div {
  display: grid;
  gap: 2px;
}

.progress-skill-stats dt {
  font-size: 13px;
  font-weight: 800;
}

.progress-skill-stats dd {
  margin: 0;
  font-weight: 900;
}

.progress-empty-state {
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 36px);
}

.progress-empty-state h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 900;
}

.subscription-status p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.access-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e9fff5;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.game-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.game-detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(215, 248, 220, 0.95), rgba(255, 227, 239, 0.9)),
    #fff;
  color: var(--coral);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  padding: 24px;
}

.game-detail-content h1,
.play-header h1,
.empty-state h1 {
  margin-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-list span {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.tag-list a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.filter-panel {
  display: grid;
  gap: 18px;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(36, 48, 68, 0.06);
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-group h2 {
  margin: 0;
  font-size: 16px;
}

.filter-list,
.filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.filter-list a,
.filter-summary span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: #fff;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.filter-list a.is-active {
  border-color: var(--accent);
  background: #eef2ff;
  color: var(--accent-dark);
}

.play-shell {
  display: grid;
  gap: 28px;
}

.play-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.game-root {
  display: grid;
  place-items: center;
  min-height: min(62vh, 620px);
  border: 4px solid #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 48, 68, 0.94), rgba(36, 95, 208, 0.86)),
    #172033;
  color: white;
  box-shadow: var(--shadow);
}

.asset-item {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.asset-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.asset-item audio {
  width: 100%;
}

.empty-state {
  max-width: 680px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.text-page {
  width: min(100%, 72rem);
  max-width: none;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.text-page h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.text-page h2 {
  margin: 32px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.text-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.roadmap-content {
  max-width: 760px;
}

.roadmap-content p,
.roadmap-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.roadmap-content ul,
.roadmap-content ol {
  padding-left: 1.25rem;
}

.prices-page {
  display: grid;
  gap: 30px;
}

.benefit-grid,
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.benefit-card,
.price-card {
  display: grid;
  gap: 14px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 28px);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(36, 48, 68, 0.08);
}

.benefit-card h2,
.price-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.benefit-card p,
.price-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.price-card {
  min-height: 250px;
  align-content: space-between;
}

.price-card-featured {
  border-color: rgba(79, 140, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(223, 243, 255, 0.8), transparent 52%),
    var(--card);
}

@media (max-width: 760px) {
  .site-header,
  .play-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .logo::before {
    box-shadow: none;
    background: linear-gradient(135deg, var(--sun), var(--coral) 36%, var(--green) 37%, var(--green) 68%, var(--accent) 69%);
  }

  .site-header {
    width: auto;
    margin: 10px 10px 0;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(36, 48, 68, 0.08);
  }

  .site-main {
    padding: 28px 14px 44px;
  }

  .site-footer {
    padding: 22px 14px 30px;
  }

  .cookie-banner-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(36px, 13vw, 56px);
  }

  .text-page h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .game-detail {
    grid-template-columns: 1fr;
  }

  .account-profile {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-form-media,
  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .account-avatar {
    width: 104px;
    height: 104px;
    font-size: 38px;
  }

  .game-card,
  .asset-item,
  .game-root,
  .hero,
  .text-page,
  .empty-state,
  .auth-card,
  .account-profile,
  .benefit-card,
  .price-card {
    box-shadow: 0 8px 22px rgba(36, 48, 68, 0.08);
  }

  .game-detail-media {
    min-height: 0;
  }
}

/* Header responsive fixes. Keep nav visible without horizontal scrolling. */
.site-nav {
  min-width: 0;
}

.site-nav .site-nav-subscription {
  position: relative;
  gap: 8px;
  padding-left: 40px;
  background: #e85d5a;
  box-shadow: 0 10px 22px rgba(232, 93, 90, 0.24);
}

.site-nav .site-nav-subscription:hover {
  background: #d94d4a;
  box-shadow: 0 14px 28px rgba(232, 93, 90, 0.28);
}

.site-nav .site-nav-subscription::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 13px;
  height: 11px;
  border-radius: 3px;
  background: #ffffff;
  transform: translateY(-35%);
}

.site-nav .site-nav-subscription::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 9px;
  height: 8px;
  border: 2px solid #ffffff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateY(-105%);
}

@media (max-width: 920px) {
  .site-nav {
    overflow: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 10px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .site-nav .site-nav-subscription {
    padding-left: 30px;
  }

  .site-nav .site-nav-subscription::before {
    left: 13px;
  }

  .site-nav .site-nav-subscription::after {
    left: 15px;
  }
}

@media (min-width: 521px) and (max-width: 920px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    font-size: 12px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: auto;
    white-space: nowrap;
  }
}

/* Final mobile accordion behavior for the header navigation. */
@media (min-width: 761px) {
  .site-nav.collapse {
    display: flex !important;
    height: auto !important;
    visibility: visible !important;
  }
}

@media (max-width: 760px) {
  .site-nav.collapse:not(.show),
  .site-nav.collapse:not(.show) {
    display: none !important;
  }

  .site-nav.collapse.show,
  .site-nav.collapsing {
    display: flex !important;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
    overflow-x: visible;
    padding-top: 4px;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: var(--radius-control);
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

/* Mobile accordion header. */
.site-header-top {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-menu-toggle {
  display: none;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0 14px;
  background: #fff3e8;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.site-menu-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}

.site-menu-toggle[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

@media (min-width: 761px) {
  .site-nav.collapse {
    display: flex !important;
    height: auto !important;
    visibility: visible !important;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .site-header-top {
    width: 100%;
  }

  .site-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav.collapse {
    display: none;
  }

  .site-nav.collapse.show,
  .site-nav.collapsing {
    display: flex;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    gap: 8px;
    overflow-x: visible;
    padding-top: 4px;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: var(--radius-control);
    padding: 10px 14px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .site-nav .site-nav-subscription {
    padding-left: 36px;
  }

  .site-nav .site-nav-subscription::before {
    left: calc(50% - 72px);
  }

  .site-nav .site-nav-subscription::after {
    left: calc(50% - 70px);
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: auto;
    white-space: nowrap;
  }
}

.site-nav .site-nav-link,
.site-nav .site-nav-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.site-nav .site-nav-link:hover,
.site-nav .site-nav-button:hover {
  background: #fff3e8;
  color: var(--text);
}

.site-nav .site-nav-subscription {
  min-height: 44px;
  border-radius: var(--radius-control);
  padding: 0 18px;
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.95), rgba(245, 158, 108, 0.96)),
    var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(245, 158, 108, 0.24);
}

.site-nav .site-nav-subscription:hover {
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 1), rgba(238, 143, 92, 0.98)),
    var(--accent-dark);
  color: #ffffff;
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    margin: 10px;
    padding: 12px;
  }

  .site-nav {
    gap: 8px;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .site-nav .site-nav-subscription {
    min-height: 38px;
    padding: 0 14px;
  }
}

/* Soft children's edtech refresh. */
.site-header {
  gap: 24px;
  margin: 18px clamp(14px, 4vw, 48px) 0;
  padding: 16px clamp(18px, 4vw, 30px);
  border-color: rgba(234, 223, 210, 0.92);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 10px 28px rgba(47, 42, 38, 0.07);
}

.logo {
  gap: 10px;
  font-size: 20px;
  color: var(--text);
}

.logo::before {
  width: 18px;
  height: 18px;
  border-radius: 7px 7px 10px 10px;
  background: var(--accent);
  box-shadow: 14px 7px 0 -4px var(--green), 26px 1px 0 -5px var(--blue);
}

.site-nav {
  gap: 10px;
}

.site-nav a {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.site-nav a:hover {
  background: #fff3e8;
  color: var(--text);
}

.site-nav .account-nav-button {
  min-height: 44px;
  border-radius: var(--radius-control);
  padding: 0 18px;
  background: var(--accent);
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(245, 158, 108, 0.26);
}

.site-nav .account-nav-button:hover {
  background: var(--accent-dark);
  color: #ffffff;
}

.site-main {
  width: min(calc(100vw - 96px), 1600px);
  margin: 0 auto;
  padding: 48px clamp(16px, 4vw, 40px) 64px;
}

.site-footer {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.8);
}

.site-footer a {
  color: var(--light-text);
  font-size: 15px;
  font-weight: 700;
}

.hero {
  position: relative;
  width: min(100%, 960px);
  max-width: none;
  min-height: 360px;
  overflow: hidden;
  border-color: var(--line);
  border-radius: 32px;
  padding: clamp(30px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(255, 243, 232, 0.96), rgba(255, 253, 248, 0.94) 58%),
    var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "ша";
  position: absolute;
  right: clamp(24px, 7vw, 82px);
  bottom: clamp(18px, 5vw, 54px);
  display: grid;
  place-items: center;
  width: clamp(92px, 18vw, 164px);
  height: clamp(92px, 18vw, 164px);
  border: 10px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: linear-gradient(145deg, #f7d774, #f59e6c);
  color: #ffffff;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-7deg);
  box-shadow: 0 18px 38px rgba(245, 158, 108, 0.2);
}

.page-heading {
  max-width: 840px;
  margin-bottom: 40px;
}

.eyebrow {
  color: #b85f2f;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

h1 {
  max-width: 980px;
  color: var(--text);
  font-size: clamp(48px, 5vw, 56px);
  line-height: 1.14;
  font-weight: 800;
}

.text-page h1 {
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.14;
}

.section-heading h2,
.asset-list h2,
.empty-state h2,
.appointment-modal .modal-title,
.success-modal h2,
.login-modal .modal-title {
  color: var(--text);
  font-size: clamp(36px, 4vw, 42px);
  line-height: 1.18;
  font-weight: 800;
}

.hero p,
.page-heading p,
.section-heading p,
.game-detail-content p,
.rich-text,
.empty-state p,
.text-page p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.button {
  min-height: 52px;
  border: 0;
  border-radius: var(--radius-control);
  padding: 14px 24px;
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(245, 158, 108, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(245, 158, 108, 0.28);
}

.button-secondary {
  border: 1px solid var(--accent);
  background: #fff3e8;
  color: var(--text);
  box-shadow: none;
}

.button-secondary:hover {
  background: #ffe9d9;
  color: var(--text);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(500px, calc(100vh - 240px));
  padding: clamp(20px, 4vw, 25px) 0;
}

.home-hero__content {
  min-width: 0;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 4vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.48;
  font-weight: 700;
}

.home-hero__button {
  min-height: 58px;
  margin-top: 32px;
  padding-inline: 30px;
  font-size: 18px;
}

.home-hero__media {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.home-hero__media img {
  display: block;
  width: min(100%, 560px);
  filter: drop-shadow(0 24px 34px rgba(47, 42, 38, 0.12));
}

.home-popular {
  margin-top: clamp(25px, 8vw, 25px);
}

.home-popular__header {
  margin-bottom: 28px;
  text-align: center;
}

.home-popular__header h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1.16;
  font-weight: 900;
}

.popular-games-slider {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
}

.popular-games-slider__viewport {
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.popular-games-slider__viewport::-webkit-scrollbar {
  display: none;
}

.popular-games-slider__track {
  display: grid;
  grid-auto-columns: calc((100% - 72px) / 4);
  grid-auto-flow: column;
  gap: 24px;
  align-items: stretch;
}

.popular-games-slider__item {
  min-width: 0;
  scroll-snap-align: start;
}

.popular-games-slider__item .game-card {
  height: 100%;
}

.popular-games-slider__control {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.popular-games-slider__control:hover {
  background: #fff3e8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.home-popular__actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.home-support {
  width: min(calc(100vw - 96px), 1600px);
  margin-top: clamp(42px, 6vw, 72px);
  margin-left: 50%;
  transform: translateX(-50%);
}

p.home-support-desc {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 35px;
}

.home-support__panel {
  display: grid;
  grid-template-columns: minmax(330px, 0.88fr) minmax(0, 1.5fr);
  gap: clamp(28px, 3.5vw, 44px);
  padding: clamp(30px, 3.5vw, 44px);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 252, 246, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-support__column h2 {
  margin: 0 0 26px;
  color: var(--text);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.12;
  font-weight: 900;
}

.home-support__column-benefits {
  padding-right: clamp(0px, 2vw, 18px);
  border-right: 1px solid rgba(234, 223, 210, 0.8);
}

.home-support__feature-list,
.home-support__care-features {
  display: grid;
  gap: 20px;
}

.home-support__feature {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.home-support__feature h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.18;
  font-weight: 900;
}

.home-support__feature p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.home-support__icon {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.home-support__icon-lilac {
  background: #f0ebff;
  color: #6a58d5;
}

.home-support__icon-green {
  background: #edf8ea;
  color: #6ab95b;
}

.home-support__icon-gold {
  background: #fff6df;
  color: #eca61e;
}

.home-support__icon-rose {
  background: #fff0f1;
  color: #f27b86;
}

.home-support__care-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 0.68fr);
  gap: clamp(22px, 2.8vw, 32px);
  align-items: start;
}

.home-support__care-media {
  min-width: 0;
}

.home-support__care-media img {
  display: block;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(47, 42, 38, 0.1);
}

.home-support__care-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.home-support__button {
  min-width: 260px;
}

.home-support__care-actions p {
  margin: 0;
  color: var(--light-text);
  font-size: 15px;
  font-weight: 700;
}

.home-support__feature-compact {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 15px;
}

.home-support__feature-compact .home-support__icon {
  width: 62px;
  height: 62px;
  font-size: 20px;
}

.home-support__feature-compact h3 {
  font-size: clamp(21px, 1.8vw, 25px);
}

.home-support__feature-compact p {
  font-size: 15px;
}

.home-format {
  width: min(calc(100vw - 96px), 1600px);
  margin-top: clamp(42px, 6vw, 72px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.home-format h2 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
  text-align: center;
}

.home-format__layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) 56px minmax(0, 3fr);
  gap: 18px;
  align-items: stretch;
}

.home-format__layout-services-only {
  grid-template-columns: 1fr;
}

.home-format__services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-format-card {
  display: flex;
  min-width: 0;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 253, 248, 0.92)),
    var(--surface);
  box-shadow: var(--shadow);
}

.home-format-card__cat {
  display: block;
  width: clamp(76px, 6.5vw, 104px);
  height: auto;
  margin: 0 auto 14px;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(47, 42, 38, 0.12));
}

.home-format-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.12;
  font-weight: 900;
}

.home-format-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.home-format-card-games {
  background:
    linear-gradient(180deg, rgba(255, 243, 232, 0.96), rgba(255, 255, 255, 0.95)),
    var(--surface);
}

.home-format-card__actions,
.home-format-card__footer {
  display: grid;
  gap: 12px;
}

.home-format-card__actions form {
  margin: 0;
}

.home-format-card__button {
  width: 100%;
  min-height: 50px;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 16px;
}

.home-format-card__button-red {
  background: #FF80A8;
  box-shadow: 0 12px 24px rgba(223, 100, 95, 0.22);
}

.home-format-card__button-red:hover {
  background: #FF80A8;
}

.home-format-card__button-yellow {
  background: #f2b94f;
  box-shadow: 0 12px 24px rgba(242, 185, 79, 0.24);
}

.home-format-card__button-yellow:hover {
  background: #e9ad3f;
}

.home-format-card__button-green {
  background: #76bd7a;
  box-shadow: 0 12px 24px rgba(118, 189, 122, 0.22);
}

.home-format-card__button-green:hover {
  background: #66ad6b;
}

.home-format-card__button-blue {
  background: #6ea8d9;
  box-shadow: 0 12px 24px rgba(110, 168, 217, 0.22);
}

.home-format-card__button-blue:hover {
  background: #5f99ca;
}

.home-format-card__price {
  color: var(--text) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.home-format__plus {
  align-self: center;
  justify-self: center;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(245, 158, 108, 0.28);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 243, 232, 0.98), rgba(234, 247, 241, 0.94)),
    #ffffff;
  color: var(--accent-dark);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  box-shadow: var(--shadow);
}

.home-format-card__note {
  position: relative;
  width: fit-content;
  border-bottom: 1px dashed currentColor;
  color: var(--light-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  cursor: help;
}

.home-format-card__tooltip {
  position: absolute;
  z-index: 20;
  right: -100px;
  bottom: calc(100% + 10px);
  width: min(300px, calc(100vw - 48px));
  border: 1px solid rgba(234, 223, 210, 0.92);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.home-format-card__note:hover .home-format-card__tooltip,
.home-format-card__note:focus-visible .home-format-card__tooltip {
  opacity: 1;
  transform: translateY(0);
}

.home-difference {
  width: min(calc(100vw - 96px), 1600px);
  margin-top: clamp(42px, 6vw, 72px);
  margin-left: 50%;
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 32px;
  padding: clamp(30px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(234, 247, 241, 0.94), rgba(255, 253, 248, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.home-difference__intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.home-difference h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 900;
}

.home-difference__copy {
  display: grid;
  gap: 14px;
}

.home-difference__copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
  font-weight: 700;
}

.home-difference__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(26px, 4vw, 42px);
}

.home-difference-card {
  min-width: 0;
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 26px rgba(47, 42, 38, 0.08);
}

.home-difference-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.18;
  font-weight: 900;
}

.home-difference-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

.game-section {
  margin-top: 64px;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-heading h2 a,
.game-card h3 a,
.text-link {
  color: var(--text);
}

.text-link {
  color: #b85f2f;
  font-weight: 800;
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.game-card {
  position: relative;
  display: flex;
  min-height: 260px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: linear-gradient(180deg, #fff3e8 0%, #ffffff 70%);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:nth-child(4n + 2) {
  background: linear-gradient(180deg, #eaf7f1 0%, #ffffff 70%);
}

.game-card:nth-child(4n + 3) {
  background: linear-gradient(180deg, #eaf4ff 0%, #ffffff 70%);
}

.game-card:nth-child(4n + 4) {
  background: linear-gradient(180deg, #fff6d8 0%, #ffffff 70%);
}

.game-card:hover {
  transform: scale(0.985);
  border-color: rgba(245, 158, 108, 0.38);
  box-shadow: var(--shadow-hover);
}

.game-card-link {
  color: inherit;
  text-decoration: none;
}

.game-card-link:hover {
  color: inherit;
}

.game-card__top {
  display: flex;
  min-height: 30px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.game-card__badge {
  display: inline-flex;
  align-self: flex-start;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  background: #fff3e8;
  color: #b85f2f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.game-card__badge:hover {
  color: #9f4f27;
}

.game-card__badge-blue {
  background: #eaf4ff;
  color: #356f9d;
}

.game-cover {
  min-height: 0;
  border-radius: 20px;
  padding: 0;
  background: rgba(255, 253, 248, 0.72);
  color: var(--accent);
}

.game-card__image {
  position: relative;
  display: block;
  height: 160px;
  aspect-ratio: auto;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(234, 223, 210, 0.8);
}

.game-card__image img {
  border-radius: inherit;
}

.game-card__free-label,
.game-card__diagnostic-label,
.game-age-label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(36, 48, 68, 0.14);
}

.game-card__free-label,
.game-card__diagnostic-label {
  top: 12px;
}

.game-card__free-label {
  left: 12px;
  background: #25b86f;
  color: #ffffff;
}

.game-card__diagnostic-label {
  right: 12px;
  background: rgba(234, 244, 255, 0.94);
  color: #356f9d;
}

.game-age-label {
  right: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #172033;
}

.game-card__placeholder {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.34), transparent 54%),
    linear-gradient(225deg, rgba(110, 168, 217, 0.18), transparent 55%),
    #fffdf8;
}

.game-card__cat {
  position: relative;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 7px solid #ffffff;
  border-radius: 44% 56% 54% 46%;
  background: var(--accent);
  color: #ffffff;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-5deg);
  box-shadow: 0 14px 26px rgba(245, 158, 108, 0.22);
}

.game-card__cat::before,
.game-card__cat::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 25px;
  height: 25px;
  border-radius: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

.game-card__cat::before {
  left: 8px;
}

.game-card__cat::after {
  right: 8px;
}

.game-card__sound {
  position: absolute;
  right: 20px;
  top: 18px;
  display: grid;
  min-width: 48px;
  min-height: 36px;
  place-items: center;
  border-radius: 14px;
  background: #fff6d8;
  color: #8a6b14;
  font-size: 18px;
  font-weight: 900;
}

.game-card__sound-blue {
  right: auto;
  top: auto;
  left: 18px;
  bottom: 18px;
  background: #eaf4ff;
  color: #356f9d;
}

.game-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px 4px 4px;
}

.game-card-header {
  display: block;
}

.game-card__title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
}

.game-card__description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--light-text);
  font-size: 14px;
  line-height: 1.45;
}

.game-card__meta {
  margin: auto 0 0;
  color: var(--light-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.game-card__button {
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 18px;
  font-size: 16px;
}

.asset-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.asset-item,
.auth-card,
.account-profile,
.empty-state,
.text-page,
.benefit-card,
.price-card,
.filter-panel,
.cookie-banner-content,
.appointment-modal .modal-content,
.success-modal .modal-content,
.login-modal .modal-content {
  border-color: var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.filter-panel {
  gap: 20px;
  padding: 24px;
  background: var(--surface-soft);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.catalog-sidebar {
  position: relative;
  z-index: 3;
}

.catalog-filter-toggle,
.catalog-filter-toggle-label {
  display: none;
}

.catalog-sidebar-inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--shadow);
}

.catalog-filter-form {
  display: grid;
  gap: 16px;
}

.filter-label {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.filter-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-label-row .filter-label {
  margin-bottom: 0;
}

.filter-help {
  position: relative;
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.filter-help-tooltip {
  position: absolute;
  z-index: 30;
  top: 50%;
  left: calc(100% + 10px);
  width: min(280px, calc(100vw - 48px));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #ffffff;
  color: var(--muted);
  box-shadow: var(--shadow-hover);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.filter-help:hover .filter-help-tooltip,
.filter-help:focus .filter-help-tooltip,
.filter-help:focus-within .filter-help-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.catalog-filter-form .form-select {
  min-height: 46px;
  border-color: var(--line);
  border-radius: var(--radius-control);
  background-color: #ffffff;
  color: var(--text);
  font-weight: 700;
  box-shadow: none;
}

.catalog-filter-form .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(245, 158, 108, 0.16);
}

.catalog-checkbox-filter {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.catalog-checkbox-filter .form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
  border-color: var(--line);
  cursor: pointer;
}

.catalog-checkbox-filter .form-check-input:checked {
  border-color: var(--accent);
  background-color: var(--accent);
}

.catalog-filter-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.catalog-filter-actions .button {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  font-size: 16px;
}

.catalog-selected-filters {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

@media (min-width: 1021px) {
  .catalog-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
  }

  .catalog-sidebar-inner {
    max-height: calc(100vh - 40px);
    overflow: visible;
    overscroll-behavior: contain;
  }
}

.catalog-results {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.catalog-results-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.catalog-results-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.16;
}

.catalog-results-head p {
  margin: 0;
  color: var(--light-text);
  font-size: 16px;
  font-weight: 800;
}

.catalog-load-more {
  grid-column: 1 / -1;
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.7);
  color: var(--light-text);
  font-weight: 800;
}

.catalog-empty-state {
  grid-column: 1 / -1;
}

.filter-group h2 {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.filter-list a,
.filter-summary span,
.tag-list a,
.tag-list span,
.access-badge {
  min-height: 36px;
  border-color: var(--line);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--light-text);
  font-size: 14px;
  font-weight: 800;
}

.filter-list a.is-active,
.access-badge {
  border-color: rgba(123, 198, 164, 0.48);
  background: #eaf7f1;
  color: #3f8667;
}

.game-detail {
  gap: clamp(28px, 5vw, 64px);
}

.game-detail-media {
  min-height: 360px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 243, 232, 0.95), rgba(234, 247, 241, 0.9)),
    var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.prices-page {
  gap: 32px;
}

.benefit-grid,
.price-grid {
  gap: 24px;
}

.benefit-card,
.price-card {
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 32px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover,
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.benefit-card h2,
.price-card h2 {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
}

.price-card-featured {
  border-color: rgba(245, 158, 108, 0.4);
  background:
    linear-gradient(180deg, #fff3e8 0%, #ffffff 72%),
    var(--surface);
}

.price-card form {
  margin: 0;
}

.price-card-button {
  width: 100%;
}

.appointment-button {
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(245, 158, 108, 0.22);
}

.appointment-button:hover {
  background: var(--accent-dark);
}

.appointment-modal .form-control,
.appointment-modal .form-select,
.login-panel .form-control,
.profile-form .form-control {
  min-height: 50px;
  border-color: var(--line);
  border-radius: var(--radius-control);
  color: var(--text);
  font-size: 16px;
}

.social-button {
  border-radius: var(--radius-control);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-top: 18px;
    text-align: center;
  }

  .home-hero h1,
  .home-hero p {
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero__media img {
    width: min(72vw, 420px);
  }
}

@media (max-width: 1020px) {
  .home-format {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .home-format__layout {
    grid-template-columns: 1fr;
  }

  .home-format__plus {
    width: 46px;
    height: 46px;
    font-size: 28px;
  }

  .home-format__services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-difference {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .home-difference__intro {
    grid-template-columns: 1fr;
  }

  .home-difference__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-support {
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .home-support__panel {
    grid-template-columns: 1fr;
  }

  .home-support__column-benefits {
    padding-right: 0;
    padding-bottom: 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(234, 223, 210, 0.8);
  }

  .home-support__care-grid {
    grid-template-columns: 1fr;
  }

  .popular-games-slider__track {
    grid-auto-columns: calc((100% - 24px) / 2);
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-help-tooltip {
    top: calc(100% + 10px);
    right: auto;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, 6px);
  }

  .filter-help:hover .filter-help-tooltip,
  .filter-help:focus .filter-help-tooltip,
  .filter-help:focus-within .filter-help-tooltip {
    transform: translate(-50%, 0);
  }

  .catalog-filter-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-section-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 22px;
  }

  .site-main {
    padding: 32px 14px 48px;
  }

  .home-hero {
    gap: 24px;
    padding: 8px 0 20px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 8vw, 44px);
    line-height: 1.12;
  }

  .home-hero p {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
  }

  .home-hero p br {
    display: none;
  }

  .home-hero__button {
    width: min(100%, 320px);
    min-height: 54px;
    margin-top: 24px;
  }

  .home-hero__media img {
    width: min(88vw, 340px);
  }

  .home-popular {
    margin-top: 25px;
  }

  .home-support {
    margin-top: 40px;
  }

  .home-support__panel {
    gap: 24px;
    padding: 24px 18px;
    border-radius: 28px;
  }

  .home-support__column h2 {
    margin-bottom: 22px;
    text-align: center;
  }

  .home-support__feature {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 14px;
  }

  .home-support__feature h3 {
    font-size: 24px;
  }

  .home-support__feature p {
    font-size: 16px;
  }

  .home-support__icon {
    width: 66px;
    height: 66px;
    font-size: 22px;
  }

  .home-support__feature-compact {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .home-support__feature-compact .home-support__icon {
    width: 66px;
    height: 66px;
    font-size: 20px;
  }

  .home-support__care-actions {
    flex-direction: column;
    gap: 14px;
  }

  .home-support__button {
    width: min(100%, 320px);
    min-width: 0;
  }

  .home-support__care-actions p {
    text-align: center;
    font-size: 15px;
  }

  .home-format {
    margin-top: 40px;
  }

  .home-format h2 {
    margin-bottom: 20px;
    font-size: clamp(30px, 8vw, 38px);
  }

  .home-format__services {
    grid-template-columns: 1fr;
  }

  .home-format-card {
    min-height: 0;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .home-format-card__cat {
    width: 78px;
    margin-bottom: 12px;
  }

  .home-format-card h3 {
    font-size: 26px;
  }

  .home-format-card__tooltip {
    width: min(280px, calc(100vw - 48px));
  }

  .home-difference {
    margin-top: 40px;
    padding: 24px 18px;
    border-radius: 28px;
  }

  .home-difference h2 {
    text-align: center;
    font-size: clamp(30px, 8vw, 38px);
  }

  .home-difference__copy p,
  .home-difference-card p {
    font-size: 16px;
  }

  .home-difference__cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-difference-card {
    padding: 20px 18px;
  }

  .home-popular__header {
    margin-bottom: 20px;
  }

  .popular-games-slider {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .popular-games-slider__track {
    grid-auto-columns: 100%;
    gap: 16px;
  }

  .popular-games-slider__control {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .site-nav a,
  .site-nav .account-nav-button {
    min-height: 38px;
    font-size: 14px;
  }

  .hero {
    min-height: 0;
    border-radius: 26px;
    padding: 28px 22px 116px;
  }

  .hero::after {
    right: 20px;
    bottom: 18px;
    width: 86px;
    height: 86px;
    border-width: 7px;
    font-size: 32px;
  }

  h1,
  .text-page h1 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1.16;
  }

  .section-heading h2,
  .asset-list h2,
  .empty-state h2,
  .appointment-modal .modal-title,
  .success-modal h2,
  .login-modal .modal-title {
    font-size: clamp(28px, 8vw, 32px);
  }

  .hero p,
  .page-heading p,
  .section-heading p,
  .game-detail-content p,
  .rich-text,
  .empty-state p,
  .text-page p {
    font-size: 16px;
    line-height: 1.62;
  }

  .button {
    min-height: 50px;
    padding: 12px 18px;
    font-size: 16px;
  }

  .game-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .catalog-filter-form,
  .catalog-filter-actions {
    grid-template-columns: 1fr;
  }

  .catalog-results-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-card {
    min-height: 360px;
    border-radius: 24px;
    padding: 20px;
  }

  .game-card__image {
    height: 150px;
  }

  .game-card__title {
    font-size: 22px;
  }

  .filter-panel,
  .text-page,
  .auth-card,
  .account-profile,
  .empty-state,
  .benefit-card,
  .price-card {
    border-radius: 22px;
  }

  .progress-summary-card-wide {
    grid-column: span 1;
  }

  .progress-panel-heading,
  .progress-mini-card,
  .progress-skill-card-head {
    flex-direction: column;
  }

  .progress-panel-heading .button,
  .progress-empty-state .button {
    width: 100%;
  }

  .progress-skill-stats {
    grid-template-columns: 1fr;
  }
}

/* Final header overrides: no horizontal nav scroll on narrow screens. */
.site-nav .site-nav-subscription {
  position: relative;
  padding-left: 40px;
  background: #FF80A8;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(232, 93, 90, 0.24);
}

.site-nav .site-nav-subscription:hover {
  background: #FF80A8;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(232, 93, 90, 0.28);
}

.site-nav .site-nav-subscription::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 13px;
  height: 11px;
  border-radius: 3px;
  background: #ffffff;
  transform: translateY(-35%);
}

.site-nav .site-nav-subscription::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 9px;
  height: 8px;
  border: 2px solid #ffffff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateY(-105%);
}

@media (max-width: 920px) {
  .site-nav {
    overflow-x: visible;
    flex-wrap: wrap;
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow-x: visible;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .site-nav .site-nav-subscription {
    padding-left: 30px;
  }

  .site-nav .site-nav-subscription::before {
    left: 13px;
  }

  .site-nav .site-nav-subscription::after {
    left: 15px;
  }
}

@media (max-width: 390px) {
  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    font-size: 12px;
  }
}

@media (min-width: 521px) and (max-width: 760px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .site-nav .site-nav-link,
  .site-nav .site-nav-button,
  .site-nav .account-nav-button {
    width: auto;
    white-space: nowrap;
  }
}

/* Final game detail overrides after all repeated component blocks. */
.game-detail div.rich-text {
  margin-top: 15px;
}

.game-detail-media {
  overflow: visible;
}

.game-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-play-button {
  position: relative;
  isolation: isolate;
  min-width: 150px;
  min-height: 58px;
  padding: 0 34px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 42%),
    linear-gradient(135deg, #f4bc72 0%, #e89b68 46%, #8fc8ad 100%);
  color: #ffffff;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(99, 81, 58, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 9px 0 #c77855,
    0 18px 26px rgba(142, 103, 77, 0.18);
  animation: game-play-bounce 2.4s ease-in-out infinite;
}

.game-play-button::after {
  content: "";
  position: absolute;
  inset: 7px 14px auto;
  z-index: -1;
  height: 18px;
  border-radius: 999px;
  pointer-events: none;
}

.game-play-button:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(135deg, #efb064 0%, #df8f5e 46%, #83bea3 100%);
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    0 11px 0 #bd704f,
    0 22px 30px rgba(142, 103, 77, 0.22);
}

.game-detail-info {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.game-detail-info-card {
  min-width: 0;
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 30px);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.game-detail-info-card:nth-child(2) {
  background: #f3fbf7;
}

.game-detail-info-card:nth-child(3) {
  background: #fff8df;
}

.game-detail-info-card-help {
  background: #eef6ff;
}

.game-detail-info-card h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.16;
  font-weight: 900;
}

.game-detail-info-card p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.game-detail-info-card p + p {
  margin-top: 12px;
}

.game-detail-info-card .button {
  margin-top: 18px;
}

@keyframes game-play-bounce {
  0%,
  76%,
  100% {
    transform: translateY(0) scale(1);
  }

  82% {
    transform: translateY(-4px) scale(1.05);
  }

  88% {
    transform: translateY(1px) scale(0.97);
  }

  94% {
    transform: translateY(-2px) scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-play-button,
  .game-play-button::after {
    animation: none;
  }
}

@media (max-width: 900px) {
  .game-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .game-detail-media {
    width: min(100%, 620px);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .site-main {
    width: min(calc(100vw - 28px), 1600px);
  }

  .game-detail {
    gap: 24px;
    width: 100%;
    min-width: 0;
  }

  .game-detail-media,
  .game-detail-content,
  .game-detail-info,
  .game-detail-info-card {
    width: 100%;
    min-width: 0;
  }

  .game-detail-media {
    min-height: 0;
    aspect-ratio: 4 / 3;
    padding: 14px;
    border-radius: 22px;
  }

  .game-detail-media img {
    border-radius: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .game-play-button {
    width: 100%;
    min-height: 62px;
    font-size: 22px;
  }

  .game-detail-info {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 4px;
  }

  .game-detail-info-card {
    border-radius: 20px;
  }

  .game-detail-info-card h2 {
    font-size: 24px;
  }

  .game-detail-info-card p {
    font-size: 16px;
    line-height: 1.58;
  }

  .game-detail-info-card .button {
    width: 100%;
  }
}

/* Mobile-only collapsed catalog filters. */
@media (max-width: 760px) {
  .catalog-layout {
    gap: 18px;
  }

  .catalog-filter-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .catalog-filter-toggle-label {
    position: relative;
    z-index: 4;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 12px 16px;
    background: #ffffff;
    color: var(--text);
    box-shadow: var(--shadow);
    cursor: pointer;
  }

  .catalog-filter-toggle-label span:first-child {
    font-size: 17px;
    font-weight: 900;
  }

  .catalog-filter-toggle-label span:last-child {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
  }

  .catalog-filter-toggle-label::after {
    content: "▾";
    flex: 0 0 auto;
    color: var(--accent-dark);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.16s ease;
  }

  .catalog-filter-toggle:checked + .catalog-filter-toggle-label::after {
    transform: rotate(180deg);
  }

  .catalog-filter-toggle:not(:checked) + .catalog-filter-toggle-label + .catalog-sidebar-inner {
    display: none;
  }

  .catalog-sidebar-inner {
    margin-top: 10px;
    padding: 16px;
    border-radius: 20px;
  }

  .catalog-results-head {
    margin-bottom: 16px;
  }
}

/* Mobile-only home page refinement. */
@media (max-width: 760px) {
  .home-hero {
    gap: 16px;
    padding: 4px 0 14px;
    text-align: left;
  }

  .home-hero h1 {
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1.12;
  }

  .home-hero p {
    max-width: none;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 700;
  }

  .home-hero__media {
    justify-content: center;
  }

  .home-hero__media img {
    width: min(74vw, 270px);
  }

  .home-popular,
  .home-support,
  .home-format,
  .home-difference {
    margin-top: 30px;
  }

  .home-popular__header {
    margin-bottom: 14px;
    text-align: left;
  }

  .home-popular__header h2,
  .home-support__column h2,
  .home-format h2,
  .home-difference h2 {
    font-size: clamp(26px, 7.2vw, 32px);
    line-height: 1.16;
    text-align: left;
  }

  .popular-games-slider {
    display: block;
    width: calc(100vw - 14px);
    margin-left: -14px;
  }

  .popular-games-slider__control {
    display: none;
  }

  .popular-games-slider__viewport {
    width: 100%;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-padding-inline: 14px;
  }

  .popular-games-slider__track {
    grid-auto-columns: minmax(260px, 82vw);
    gap: 14px;
  }

  .popular-games-slider__item .game-card {
    min-height: 318px;
  }

  .popular-games-slider__item .game-card__image {
    height: 136px;
  }

  .popular-games-slider__item .game-card__title {
    font-size: 21px;
    line-height: 1.18;
  }

  .home-popular__actions {
    justify-content: stretch;
    margin-top: 18px;
  }

  .home-popular__actions .button {
    width: 100%;
  }

  .home-support__panel {
    display: block;
    padding: 18px 14px;
    border-radius: 22px;
  }

  .home-support__column h2 {
    margin-bottom: 14px;
  }

  .home-support__column-benefits {
    padding: 0 0 18px;
  }

  .home-support__column-care {
    padding-top: 18px;
  }

  p.home-support-desc {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.48;
  }

  .home-support__feature-list,
  .home-support__care-features,
  .home-format__services,
  .home-difference__cards {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82vw);
    grid-template-columns: none;
    gap: 14px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px 4px;
    overflow-x: auto;
    scroll-padding-inline: 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-support__feature-list::-webkit-scrollbar,
  .home-support__care-features::-webkit-scrollbar,
  .home-format__services::-webkit-scrollbar,
  .home-difference__cards::-webkit-scrollbar {
    display: none;
  }

  .home-support__feature,
  .home-format-card,
  .home-difference-card {
    scroll-snap-align: start;
  }

  .home-support__feature {
    display: block;
    min-height: 220px;
    border: 1px solid rgba(234, 223, 210, 0.9);
    border-radius: 20px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(47, 42, 38, 0.06);
  }

  .home-support__icon,
  .home-support__feature-compact .home-support__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    font-size: 17px;
  }

  .home-support__feature h3,
  .home-support__feature-compact h3 {
    margin-bottom: 8px;
    font-size: 21px;
    line-height: 1.18;
  }

  .home-support__feature p,
  .home-support__feature-compact p {
    font-size: 15px;
    line-height: 1.48;
  }

  .home-support__care-grid {
    display: block;
  }

  .home-support__care-media img {
    max-height: 220px;
    object-fit: contain;
    border-radius: 18px;
  }

  .home-support__care-actions {
    align-items: stretch;
    margin-top: 14px;
  }

  .home-support__button {
    width: 100%;
  }

  .home-support__care-actions p {
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
  }

  .home-support__care-features {
    margin-top: 16px;
  }

  .home-format h2,
  .home-difference h2 {
    margin-bottom: 14px;
  }

  .home-format__layout {
    display: block;
  }

  .home-format-card {
    min-height: 350px;
    padding: 18px;
  }

  .home-format-card__cat {
    width: 64px;
    margin: 0 0 10px;
  }

  .home-format-card h3 {
    font-size: 22px;
    line-height: 1.16;
  }

  .home-format-card p {
    font-size: 15px;
    line-height: 1.46;
  }

  .home-format-card__button {
    min-height: 46px;
    border-radius: 16px;
    font-size: 15px;
  }

  .home-difference {
    padding: 18px 14px;
    border-radius: 22px;
  }

  .home-difference__intro {
    gap: 12px;
  }

  .home-difference__copy {
    gap: 10px;
  }

  .home-difference__copy p,
  .home-difference-card p {
    font-size: 15px;
    line-height: 1.5;
  }

  .home-difference__cards {
    margin-top: 16px;
  }

  .home-difference-card {
    min-height: 190px;
    padding: 18px;
    border-radius: 20px;
  }

  .home-difference-card h3 {
    font-size: 21px;
  }
}
