/* РИОН — оформление сайта платформы.
   Айдентика «Конструктив»: четыре равноправных цвета (кирпич, кобальт, шафран, изумруд),
   чернила и бумага. Заголовки — Unbounded, текст — IBM Plex Sans.
   Полоса о проекте OLAM (Узбекистан) — в его собственном стиле: лазурит, бирюза,
   Cormorant Garamond и арка-портал. */

:root {
  --ink: #1B2233;
  --ink-2: #2A3347;
  --paper: #F5F0E6;
  --paper-2: #ECE5D8;
  --card: #FFFCF6;
  --line: #E3DACB;
  --text: #363D4D;
  --muted: #5E6573;

  --brick: #E2553F;
  --brick-ink: #B53A27;      /* кирпич для текста и фонов под белым текстом */
  --brick-soft: #F8E1DB;
  --cobalt: #2F55A4;
  --cobalt-soft: #E4EAF6;
  --saffron: #F0B43C;
  --saffron-soft: #FBEFD4;
  --emerald: #2A8C6F;
  --emerald-ink: #227A60;
  --emerald-soft: #DFF0E9;

  --logo-1: var(--brick);
  --logo-2: var(--cobalt);
  --logo-3: var(--saffron);
  --logo-4: var(--emerald);

  /* OLAM UZ */
  --lapis: #142B4C;
  --turq: #4FC3C0;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(27, 34, 51, .06), 0 8px 24px rgba(27, 34, 51, .06);
  --display: "Unbounded", "Segoe UI", Arial, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; }
h1 { font: 700 clamp(32px, 4.6vw, 52px)/1.1 var(--display); letter-spacing: -.015em; }
h2 { font: 600 clamp(24px, 3vw, 34px)/1.15 var(--display); letter-spacing: -.01em; }
h3 { font: 600 20px/1.3 var(--sans); }
p { margin: 0 0 1em; }

.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cobalt); margin: 0 0 .7em; }
.eyebrow--accent { color: var(--brick-ink); }
.eyebrow--light { color: var(--turq); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: #fff; }
.blend > * { mix-blend-mode: multiply; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 230, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 28px; width: auto; display: block; }
.brand--light { --logo-2: #6F8FE0; }
.brand--light .logo { height: 32px; }

.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { background: var(--paper-2); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 0; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

/* Ссылка «Кабинет» — справа в шапке; зелёная точка — вход выполнен. */
.account-link {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 7px 16px; border: 2px solid var(--ink); border-radius: 999px;
  color: var(--ink); text-decoration: none; font: 600 15px/1.2 var(--sans); white-space: nowrap;
}
.account-link:hover, .account-link[aria-current="page"] { background: var(--ink); color: var(--paper); }
.account-link__dot { display: none; width: 9px; height: 9px; border-radius: 50%; background: var(--emerald); }
.account-link.is-in .account-link__dot { display: inline-block; }

@media (max-width: 1100px) {
  .header-row { gap: 12px; }
  .account-link { margin-left: auto; }
  .nav-toggle { display: inline-flex; order: 3; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 12px 24px 20px; }
  .site-nav a { font-size: 17px; padding: 12px 14px; }
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.btn--primary { background: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--lapis); }
.btn--light:hover { background: var(--turq); color: var(--lapis); }
.btn--wide { width: 100%; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- главный экран ---------- */

.hero { padding: 56px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-lead { font-size: 19px; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { margin: 0; }
.hero-shapes { width: 100%; height: auto; }
.hero-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 12px; font: 500 15px/1.3 var(--sans); color: var(--ink); }
.hero-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.dot--brick { background: var(--brick); }
.dot--cobalt { background: var(--cobalt); }
.dot--saffron { background: var(--saffron); }
.dot--emerald { background: var(--emerald); }
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 520px; }
}

/* ---------- секции и сетки ---------- */

.section { padding: 64px 0; }
.section--tint { background: var(--paper-2); }
.section--flush { padding-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-more::after { content: " →"; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- карточки ---------- */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font: 600 22px/1.25 var(--sans); margin-bottom: .4em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--cobalt); }
.price-line { margin: auto 0 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; }
.chips li { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--text); }
.badge { font: 600 15px/1 var(--sans); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.badge--paid { background: var(--ink); color: var(--paper); }
.badge--free { background: var(--emerald-soft); color: var(--emerald-ink); }
.badge--soon { background: var(--brick-soft); color: var(--brick-ink); }
.badge-note { font-size: 14px; color: var(--muted); }

.game-card__cover { display: block; }
.cover { aspect-ratio: 1024 / 500; overflow: hidden; background: var(--ink); }
.cover--image img { width: 100%; height: 100%; object-fit: cover; }
.cover--icon { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #F9E4BD, #E9A86A); }
.cover--icon img { width: 40%; max-width: 160px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .2)); }
.cover--gazette {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px;
  background: #ECE7DC repeating-linear-gradient(0deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 4px);
  color: #262A31; text-align: center; box-shadow: inset 0 0 0 10px #ECE7DC, inset 0 0 0 11px #8A929C;
}
.gz-rule { width: 64%; height: 7px; border-top: 3px double #8A929C; border-bottom: 1px solid #8A929C; }
.gz-kicker { font: 600 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: #6B7280; margin-top: 4px; }
.gz-title { font: 600 clamp(32px, 4.4vw, 52px)/1 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.gz-year { font: 600 18px/1 var(--sans); letter-spacing: .4em; color: #4B5563; }
.gz-sub { font: italic 500 20px/1.2 var(--serif); color: #4B5563; margin-bottom: 4px; }

/* ---------- плитки разделов ---------- */

.tile { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); text-decoration: none; min-height: 230px; color: #fff; transition: transform .15s; }
.tile h3 { color: inherit; font: 600 22px/1.2 var(--display); }
.tile p { color: inherit; opacity: .94; }
.tile:hover { transform: translateY(-3px); color: #fff; }
.tile--teal { background: var(--cobalt); }       /* языки */
.tile--terra { background: var(--emerald-ink); } /* регионы */
.tile--lapis { background: var(--brick-ink); }   /* лекции и клуб */
.tile__go { margin-top: auto; font-weight: 600; }
.tile__go::after { content: " →"; }

/* ---------- полоса OLAM UZ (свой стиль подраздела) ---------- */

.band { background: var(--lapis); color: #DCE6F0; padding: 72px 0; }
.band h2 { color: #F6F1E7; font: 600 clamp(48px, 7vw, 80px)/1.05 var(--serif); letter-spacing: .06em; }
.band p { max-width: 40em; }
.band-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 48px; align-items: center; }
.band-uz { font: italic 500 26px/1.3 var(--serif); color: var(--turq); }
.band-mark { color: var(--turq); display: grid; place-items: center; }
.band-mark .mark { width: min(220px, 60vw); height: auto; }
@media (max-width: 760px) { .band-grid { grid-template-columns: 1fr; } .band-mark { display: none; } }

/* ---------- шаги покупки ---------- */

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps h3 { margin-bottom: .4em; }
.steps p { margin: 0; }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; color: #fff; font: 600 18px/1 var(--display); margin-bottom: 14px; }
.steps li:nth-child(1) .steps__n { background: var(--brick-ink); border-radius: 50%; }
.steps li:nth-child(2) .steps__n { background: var(--cobalt); border-radius: 4px; }
.steps li:nth-child(3) .steps__n { background: var(--emerald-ink); border-radius: 50% 50% 4px 4px; }
.steps-more { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.wrap.about-short { max-width: 760px; text-align: center; }
.about-short .btn { margin-top: 8px; }

/* ---------- заголовок страницы ---------- */

.page-head { padding: 36px 0 24px; }
.page-lead { font-size: 19px; max-width: 44em; color: var(--text); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs__sep { opacity: .6; }

/* ---------- страница игры ---------- */

.game-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.game-hero__cover .cover { border-radius: var(--radius); box-shadow: var(--shadow); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; padding-top: 24px; }
.game-main h2 { margin-top: 1.4em; }
.game-main h2:first-child { margin-top: 0; }
.buy-box { position: sticky; top: 88px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.buy-box p { margin: 0; }
.buy-box__label { font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.buy-box__price { font: 700 36px/1 var(--display); color: var(--ink); }
.buy-box__note { font-size: 15px; color: var(--muted); }
.buy-box__small, .buy-box__meta { font-size: 14px; color: var(--muted); }
.buy-box__meta { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 900px) {
  .game-hero, .game-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; order: -1; }
}

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; background: var(--saffron); }
.checks li:nth-child(4n+2)::before { background: var(--brick); border-radius: 50%; }
.checks li:nth-child(4n+3)::before { background: var(--cobalt); }
.checks li:nth-child(4n+4)::before { background: var(--emerald); border-radius: 50%; }
.checks--small { margin: 0; }
.checks--small li { font-size: 15px; margin-bottom: 6px; padding-left: 24px; }
.checks--small li::before { width: 11px; height: 11px; top: .5em; }

.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* ---------- языки ---------- */

.lang { padding-bottom: 56px; }
.lang-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lang-head h2 { margin: 0; }
.lang-native { font: italic 500 22px/1 var(--sans); color: var(--brick-ink); }
.sub-h { margin: 36px 0 16px; font: 600 14px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.offer .btn { margin-top: 14px; align-self: flex-start; }
.offer__price { font-weight: 600; color: var(--ink); }
.is-soon { opacity: .88; }

/* ---------- регионы ---------- */

.region-card { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); min-height: 300px; text-decoration: none; color: #fff; transition: transform .15s; }
.region-card:hover { transform: translateY(-3px); color: #fff; }
.region-card h2 { color: inherit; margin-bottom: .3em; }
.region-card p { color: #E3E9F0; }
.region-card--uz { background: var(--lapis); }
.region-card--uz h2 { font: 600 44px/1 var(--serif); letter-spacing: .05em; }
.region-card--tsaritsyn { background: #3A4556; }
.region-card--pyatiletka { background: #1E3A5F; }
.region-card__status { align-self: flex-start; font: 600 13px/1 var(--sans); padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); margin-bottom: 18px; }
.region-card .region-card__sub { font: italic 500 18px/1.3 var(--sans); color: var(--turq); }
.region-card--tsaritsyn .region-card__sub { color: #C9CED6; }
.region-card--pyatiletka .region-card__sub { color: var(--saffron); }

.teachers { display: flex; flex-direction: column; gap: 28px; }
.teacher {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.teacher__photo {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%;
  border-radius: 16px; background: var(--paper-2);
}
.teacher__body h2 { margin: 0 0 .45em; }
.teacher__body .chips { margin-top: 8px; }
.teacher__body .btn { margin-top: 8px; }
@media (max-width: 720px) {
  .teacher { grid-template-columns: 1fr; padding: 18px; }
  .teacher__photo { max-width: 280px; }
}

/* ---------- OLAM UZ (свой стиль подраздела) ---------- */

.uz-hero { background: var(--lapis); color: #DCE6F0; padding: 32px 0 64px; }
.uz-hero h1 { color: #F6F1E7; font: 600 clamp(64px, 10vw, 112px)/1 var(--serif); letter-spacing: .06em; margin-bottom: .2em; }
.uz-hero .crumbs, .uz-hero .crumbs a { color: #9FB2C8; }
.uz-hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: center; }
.uz-lead { font-size: 20px; max-width: 36em; color: #E3E9F0; }
.note { background: var(--cobalt-soft); border-left: 4px solid var(--cobalt); padding: 14px 18px; border-radius: 8px; margin: 0 0 40px; color: var(--ink); }
.directions .card__title { font-size: 20px; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); font-size: 16px; }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink); font-weight: 600; background: var(--paper); }
.table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.formats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.formats li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.formats b { color: var(--ink); }
.formats span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) {
  .formats { grid-template-columns: repeat(2, 1fr); }
  .uz-hero-grid { grid-template-columns: 1fr; }
  .uz-hero .band-mark { display: none; }
}
@media (max-width: 520px) { .table td:first-child { white-space: normal; } }

/* ---------- вопросы, тексты, документы ---------- */

.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; color: var(--ink); }
.faq details p { padding-bottom: 6px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.legal h2 { font: 600 20px/1.3 var(--sans); margin-top: 1.6em; }
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; color: var(--ink); }

/* ---------- подвал ---------- */

.site-footer { background: var(--ink); color: #C9CFDB; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-h { font: 600 13px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E8EBF2; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); }
.footer-tagline { font: 500 16px/1.4 var(--sans); color: #C9CFDB; margin-top: 14px; max-width: 22em; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; font-size: 13px; color: #9AA3B5; }
.footer-legal p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- окно оплаты ---------- */

.pay { border: 0; border-radius: 20px; padding: 0; max-width: 560px; width: calc(100% - 32px); max-height: calc(100vh - 32px); background: var(--card); color: var(--text); box-shadow: 0 24px 80px rgba(27, 34, 51, .35); }
.pay::backdrop { background: rgba(27, 34, 51, .55); }
.pay form { margin: 0; }
.pay__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); font: 400 24px/1 var(--sans); color: var(--ink); cursor: pointer; }
.pay__body { padding: 28px 28px 24px; }
.pay h2 { font-size: 22px; padding-right: 44px; margin-bottom: .3em; }
.pay__price { font: 700 30px/1.2 var(--display); color: var(--ink); margin: 0 0 16px; }
.pay__steps { padding-left: 22px; margin: 0 0 16px; }
.pay__steps li { margin-bottom: 18px; }
.pay__steps li::marker { font-weight: 600; color: var(--cobalt); }
.pay__qr { width: 200px; height: 200px; object-fit: contain; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; }
.pay__req { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; font-size: 15px; }
.pay__req dt { color: var(--muted); }
.pay__req dd { margin: 0; color: var(--ink); font-weight: 500; }
.pay__code { font: 600 22px/1 Consolas, "Courier New", monospace; letter-spacing: .08em; background: var(--saffron-soft); color: var(--ink); padding: 8px 12px; border-radius: 8px; display: inline-block; margin: 8px 8px 0 0; }
.pay__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pay__hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.pay__small { font-size: 13px; color: var(--muted); margin: 0; }
.pay__alt { margin: 16px 0 0; font-size: 15px; }
.pay__methods { display: grid; gap: 10px; margin: 0 0 14px; }
.pay-method {
  display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; color: var(--text);
}
.pay-method b { color: var(--ink); font-size: 17px; }
.pay-method span { font-size: 15px; color: var(--muted); }
.pay-method:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.pay-method:disabled { opacity: .6; cursor: progress; }
.pay .form__error { margin-bottom: 12px; }

/* ---------- формы ---------- */

.form { display: flex; flex-direction: column; gap: 14px; }
.form > .btn:not(.btn--wide) { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; font: 500 15px/1.3 var(--sans); color: var(--ink); }
.field small { font-weight: 400; font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 17px/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
.field input::placeholder, .field textarea::placeholder { color: #8C919B; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--cobalt); }
.form__error { margin: 0; color: var(--brick-ink); font-size: 15px; font-weight: 500; }
.linklike { align-self: center; padding: 4px; border: 0; background: none; font: 500 15px/1.3 var(--sans); color: var(--cobalt); text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }

.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: var(--paper-2); border-radius: 999px; }
.tabs button { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1.2 var(--sans); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* Выбор «занятия / клуб» — две большие кнопки-переключателя. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; border: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 52px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
  font: 600 15px/1.25 var(--sans); color: var(--ink); text-align: center;
}
.seg input:checked + span { border-color: var(--cobalt); background: var(--cobalt-soft); box-shadow: inset 0 0 0 1px var(--cobalt); }
.seg input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }

.notice { margin: 0 0 24px; padding: 14px 18px; border-left: 4px solid var(--cobalt); border-radius: 10px; background: var(--cobalt-soft); color: var(--ink); }
.notice--ok { border-color: var(--emerald); background: var(--emerald-soft); }
.notice--error { border-color: var(--brick); background: var(--brick-soft); }
.pay .notice { margin: 0 0 16px; font-size: 15px; }

/* ---------- личный кабинет ---------- */

.muted { color: var(--muted); }
.small { font-size: 14px; }
.empty { margin: 0; color: var(--muted); }
.acc-loading { color: var(--muted); }

.auth-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 56px; align-items: start; }
.auth .card__body { padding: 26px 28px 24px; }
.auth-why { padding-top: 8px; }
.auth-why h2 { font-size: 26px; }
@media (max-width: 860px) { .auth-grid { grid-template-columns: 1fr; gap: 32px; } }

.cab-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.cab-head h2 { margin: 0; }
.cab-head .eyebrow { margin-bottom: .5em; letter-spacing: .02em; text-transform: none; font-weight: 500; color: var(--muted); }
.cab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.cab-card--wide { grid-column: 1 / -1; }
.cab-card h2 { font: 600 22px/1.2 var(--display); margin-bottom: 16px; }
.cab-card .sub-h { margin: 28px 0 8px; }
@media (max-width: 860px) { .cab-grid { grid-template-columns: 1fr; } }

.owned + .owned { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.owned__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.owned h3 { margin: 0; }
.owned p { margin: 4px 0 0; }
.files { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.files li { display: flex; flex-direction: column; gap: 4px; }

.rows { margin: 0; padding: 0; list-style: none; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row:last-child { border-bottom: 0; padding-bottom: 0; }
.row > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.row b { color: var(--ink); font-weight: 600; }
.row b a { color: var(--ink); }
.row__end { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.row__sum { font-weight: 600; color: var(--ink); white-space: nowrap; }
.row__action { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.row__action p { margin: 0; }
.status { padding: 6px 10px; border-radius: 999px; font: 600 13px/1 var(--sans); white-space: nowrap; }
.status--wait { background: var(--saffron-soft); color: #74500E; }
.status--ok { background: var(--emerald-soft); color: var(--emerald-ink); }
.status--off { background: var(--paper-2); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
