/* ============================================================
   EARM — Ассоциация респираторной медицины
   Токены сняты с макета Figma (1920w_light, кабинет 1–3)
   ============================================================ */

:root {
  --ink: #0E1628;
  --ink-2: #0F172A;
  --muted: #6A788B;
  --muted-2: #949BA9;
  --line: #E5E7EA;
  --line-2: #DCDCDC;
  --mint: #EFFCF8;
  --mint-2: #EAF6F1;
  --green: #47BB8E;
  --teal: #23AD93;
  --teal-dark: #1B9C85;
  --teal-soft: rgba(35, 173, 147, .10);
  --orange: #EE7F50;
  --peach: #F9966C;
  --yellow: #FFD05A;
  --blue: #0166FF;
  --grey: #F3F3F3;
  --info-bg: #F6F9FB;
  --info-line: #3F84B9;
  --warn-bg: #FFF3CD;

  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1220px;
  --container-narrow: 1140px;
  --gutter: 24px;

  --r-sm: 4px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 999px;

  --shadow-card: 0 2px 20px rgba(14, 22, 40, .04);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 44px; border-radius: var(--r-md);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn--teal   { background: var(--teal);   color: #fff; }
.btn--teal:hover { background: var(--teal-dark); }
.btn--green  { background: var(--green);  color: #fff; height: 56px; padding-inline: 32px; border-radius: 28px; }
.btn--green:hover { background: #3fab81; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: #e26f40; }
.btn--yellow { background: var(--yellow); color: var(--ink); height: 44px; border-radius: 22px; font-weight: 600; }
.btn--yellow:hover { background: #ffc73a; }
.btn--blue   { background: var(--blue); color: #fff; height: 44px; border-radius: var(--r); }
.btn--ghost  { background: rgba(35,173,147,.35); color: #fff; cursor: default; }
.btn--sm     { height: 38px; padding-inline: 22px; font-size: 14px; }
.btn--pill   { border-radius: var(--r-pill); }
.btn--block  { width: 100%; }
.btn--upload { height: 46px; width: 326px; max-width: 100%; border-radius: 17px; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--mint); text-align: center; font-size: 13px; color: var(--ink);
  height: 60px; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.topbar__arrow { width: 16px; height: 16px; }

.header { background: #fff; position: relative; z-index: 20; }
.header__inner { display: flex; align-items: center; min-height: 150px; gap: 32px; }
.logo { display: block; width: 82px; height: 82px; flex: 0 0 auto; border-radius: 7px; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }

.nav { display: flex; align-items: center; gap: 22px; margin-left: 40px; }
.nav .header__actions { display: none; }
.nav__link { white-space: nowrap; font-size: 15px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link .caret { width: 10px; height: 10px; }
.nav__item { position: relative; }
.nav__item--drop:hover .nav__sub, .nav__item--drop:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub {
  position: absolute; left: 0; top: 100%; min-width: 230px; padding: 10px 0; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(14,22,40,.10);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav__sub a { display: block; padding: 8px 18px; font-size: 14px; color: var(--ink); }
.nav__sub a:hover { background: var(--mint); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.header__login { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.header__login img { width: 18px; height: 18px; }
.header__login--teal { color: var(--teal); }
.header__login--teal img { width: 20px; height: 20px; }

.lang {
  position: absolute; right: 0; top: 8px;
  display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 22px;
  background: var(--ink-2); color: #fff; border-radius: 8px 0 0 8px; font-size: 15px;
}
.lang img { width: 18px; height: 12px; border-radius: 3px; }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   LANDING
   ============================================================ */
.hero { position: relative; text-align: center; padding: 60px 0 40px; }
.hero__eyebrow { font-size: 15px; letter-spacing: .04em; color: var(--ink); margin-bottom: 20px; }
.hero__title { font-size: clamp(34px, 5vw, 60px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; max-width: 26ch; margin-inline: auto; }
.hero__lead { max-width: 620px; margin: 40px auto 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.hero__actions { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 36px; }
.hero__more { font-size: 15px; color: var(--muted); }
.hero__more:hover { color: var(--ink); }
.hero__curve { margin: 40px auto 0; width: min(760px, 90%); opacity: .9; }
.hero__lungs, .hero__book { position: absolute; }
.hero__lungs { left: calc(50% - 570px); top: 70px; width: 85px; }
.hero__book  { right: calc(50% - 530px); top: 40px; width: 55px; }

.stats { background: var(--mint); padding: 72px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stat__num { font-size: 60px; font-weight: 300; line-height: 1.1; letter-spacing: -.02em; }
.stat__text { margin-top: 14px; font-size: 13px; color: var(--muted); max-width: 300px; line-height: 1.6; }

/* sections */
.section { padding: 100px 0; }
.section--mint { background: var(--mint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section__head--left { text-align: left; margin-inline: 0; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }
.section__lead { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* who we are */
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.who__panel { background: var(--grey); border-radius: var(--r-lg); padding: 28px 34px; }
.who__panel-head { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 20px; }
.who__panel-head span:last-child { color: var(--muted); }
.lesson { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r); background: #fff; font-size: 13px; color: var(--muted); }
.lesson + .lesson { margin-top: 14px; }
.lesson--active { background: var(--peach); color: #fff; }
.lesson__ico { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.lesson--active .lesson__ico { color: var(--orange); }
.lesson:not(.lesson--active) .lesson__ico { background: var(--mint); color: var(--green); }
.lesson__time { margin-left: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--mint); border-radius: var(--r-lg); padding: 30px 30px 34px; }
.feature__ico { width: 60px; height: 60px; border-radius: var(--r); display: grid; place-items: center; margin-bottom: 26px; color: #fff; }
.feature__ico--peach { background: var(--peach); }
.feature__ico--green { background: var(--green); }
.feature__ico--orange { background: var(--orange); }
.feature h3 { font-size: 20px; font-weight: 400; margin-bottom: 14px; }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* courses */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course { background: #fff; border-radius: var(--r-lg); padding: 16px 16px 20px; box-shadow: var(--shadow-card); }
.course__img { aspect-ratio: 332/227; border-radius: var(--r); overflow: hidden; }
.course__img img { width: 100%; height: 100%; object-fit: cover; }
.course__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.tag { display: inline-block; padding: 5px 12px; border-radius: 12px; background: var(--mint); color: var(--green); font-size: 11px; }
.rating { font-size: 11px; color: var(--muted); }
.rating b { color: var(--orange); font-weight: 400; }
.course h3 { font-size: 15px; font-weight: 400; line-height: 1.45; margin-top: 16px; min-height: 44px; }
.course__info { display: flex; gap: 22px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.course__info span { display: inline-flex; align-items: center; gap: 6px; }
.course__foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.course__foot img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.course__price { margin-left: auto; color: var(--blue); }
.section__cta { text-align: center; margin-top: 60px; }

/* why */
.why { display: grid; grid-template-columns: 456px 1fr; gap: 90px; align-items: start; }
.why__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 456/502; }
.why__img img { width: 100%; height: 100%; object-fit: cover; }
.why__note { margin-top: 20px; display: flex; gap: 18px; align-items: center; background: var(--grey); border-radius: var(--r-lg); padding: 18px 20px; font-size: 13px; line-height: 1.5; }
.why__note-ico { width: 56px; height: 56px; border-radius: var(--r); background: var(--orange); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.why__body .eyebrow { margin-bottom: 20px; }
.why__body .h2 { margin-bottom: 20px; }
.why__body > p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 36px; }
.point { display: flex; gap: 18px; }
.point + .point { margin-top: 30px; }
.point__ico { width: 32px; height: 32px; border-radius: 50%; background: var(--peach); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.point h3 { font-size: 14px; font-weight: 400; margin-bottom: 8px; }
.point p { font-size: 12px; color: var(--muted); line-height: 1.7; }

/* experts */
.experts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.expert { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.expert__img { position: relative; aspect-ratio: 270/270; }
.expert__img img { width: 100%; height: 100%; object-fit: cover; }
.expert__socials { position: absolute; left: 24px; right: 24px; bottom: 26px; height: 26px; border-radius: 4px; background: rgba(255,255,255,.35); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; font-size: 12px; }
.expert__body { padding: 16px 22px 20px; }
.expert__role { font-size: 10px; color: var(--muted); }
.expert__name { font-size: 18px; font-weight: 400; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.expert__name img { width: 16px; height: 16px; }
.expert__hours { font-size: 10px; color: var(--muted); margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 60px; }
.step__num { width: 60px; height: 60px; border-radius: 50%; background: var(--peach); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 300; margin-bottom: 30px; }
.step h3 { font-size: 20px; font-weight: 400; margin-bottom: 14px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.7; max-width: 300px; }

/* testimonial */
.testimonial { display: grid; grid-template-columns: 456px 1fr; gap: 160px; align-items: center; }
.testimonial__card { position: relative; background: #414549; border-radius: var(--r-lg); aspect-ratio: 456/506; overflow: hidden; color: #fff; }
.testimonial__card img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.testimonial__who { position: absolute; left: 44px; bottom: 40px; }
.testimonial__who b { font-size: 20px; font-weight: 400; display: block; }
.testimonial__who span { font-size: 13px; opacity: .9; }
.quote-mark { width: 56px; color: var(--peach); margin-bottom: 44px; }
.testimonial__text { font-size: clamp(22px, 2.3vw, 30px); font-weight: 400; line-height: 1.4; margin-bottom: 30px; }
.testimonial__body > p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 40px; }

/* cta */
.cta { text-align: center; }
.cta__nums { display: flex; justify-content: center; gap: 40px; margin: 70px 0 50px; }
.cta__num { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 400; }
.cta__num::before { content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--peach); }
.cta__num-wrap small { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.subscribe { display: flex; align-items: center; max-width: 580px; margin: 0 auto; padding: 8px 8px 8px 30px; background: var(--mint); border-radius: 36px; }
.subscribe input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; color: var(--ink); outline: none; }
.subscribe input::placeholder { color: var(--muted); }
.cta__safe { margin-top: 20px; font-size: 11px; color: var(--muted); }

/* footer (landing) */
.footer { background: var(--grey); padding: 80px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer__about p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 20px 0 30px; max-width: 340px; }
.footer h4 { font-size: 16px; font-weight: 400; margin-bottom: 20px; }
.footer__links li { margin-bottom: 12px; }
.footer__links a { font-size: 13px; color: var(--muted); }
.footer__links a:hover { color: var(--ink); }
.footer__bottom { margin-top: 90px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* ============================================================
   CABINET
   ============================================================ */
.page-hero { background: var(--mint); text-align: center; padding: 58px 0 52px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--ink); }
.crumbs span::before { content: "\203A"; margin: 0 6px; }
.page-hero h1 { font-size: 34px; font-weight: 700; line-height: 1.2; }
.page-hero p { margin-top: 20px; font-size: 14px; color: var(--muted); }

.cabinet { display: grid; grid-template-columns: 291px 1fr; gap: 40px; padding: 84px 0 120px; }

.side { position: sticky; top: 24px; align-self: start; }
.side__link { display: block; padding: 12px 24px; font-size: 15px; line-height: 1.5; color: var(--ink); border-radius: var(--r-sm); transition: background-color .15s, color .15s; }
.side__link:hover { background: var(--mint); }
.side__link.is-active { background: var(--teal); color: #fff; }
.side__link.is-active:hover { background: var(--teal-dark); }
.side__sep { height: 1px; background: var(--muted); margin: 8px 0 8px; }

.cab-title { font-size: 22px; font-weight: 700; margin-bottom: 30px; }
.cab-meta { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.cab-meta:last-of-type { margin-bottom: 30px; }

.notice { padding: 20px 22px; font-size: 15px; line-height: 1.65; border-radius: 4px; }
.notice--info { background: var(--info-bg); border-top: 2px solid var(--info-line); display: flex; gap: 12px; align-items: flex-start; }
.notice--info img { width: 18px; height: 18px; margin-top: 4px; flex: 0 0 auto; }
.notice--warn { background: var(--warn-bg); font-size: 14px; margin-top: 30px; }

.cab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 50px 0 70px; }
.cab-stat { border: 1px solid var(--muted); border-radius: 5.5px; padding: 32px 20px 30px; text-align: center; background: #fff; }
.cab-stat__ring { width: 60px; height: 60px; border-radius: 50%; background: var(--teal-soft); margin: 0 auto 12px; }
.cab-stat__num { font-size: 24px; font-weight: 700; line-height: 1.2; }
.cab-stat__label { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* wizard */
.wizard { min-height: 420px; }
.wizard__step { display: none; }
.wizard__step.is-active { display: block; }
.step-title { font-size: 20px; font-weight: 600; margin-bottom: 28px; }
.step-sub { font-size: 13px; font-weight: 600; margin-bottom: 18px; }

.choice-grid { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 60px; }
.choice { position: relative; width: 200px; text-align: center; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__img { display: block; position: relative; height: 96px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; background: #fff; }
.choice__img img { width: 100%; height: 100%; object-fit: cover; }
.choice__img--logo { display: grid; place-items: center; padding: 12px 18px; border: 1px solid var(--line); }
.choice__img--logo img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.choice__check {
  position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--teal-dark); border: 4px solid #fff;
  display: grid; place-items: center; color: #fff; opacity: .35; transition: opacity .15s;
}
.choice__check svg { width: 10px; height: 10px; }
.choice:hover .choice__img { border-color: rgba(35,173,147,.35); }
.choice input:checked + .choice__img { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.choice input:checked + .choice__img .choice__check { opacity: 1; }
.choice input:focus-visible + .choice__img { outline: 2px solid var(--teal); outline-offset: 3px; }
.choice__label { display: block; margin-top: 18px; font-size: 14px; line-height: 1.6; }
.choice__label small { display: block; font-size: 14px; color: var(--ink); }
.choice__label--caps { font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }

.wizard__nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wizard__hint { display: flex; align-items: center; gap: 16px; font-size: 13px; line-height: 1.5; margin-left: 10px; }
.wizard__hint img { width: 38px; }

/* payment step */
.pay { display: grid; grid-template-columns: 1fr 370px; gap: 60px; align-items: start; }
.pay + .pay { margin-top: 100px; }
.pay__total { font-size: 15px; margin: 22px 0 32px; }
.file { display: block; margin-bottom: 26px; }
.file input { display: block; font-size: 13px; color: var(--muted); }
.qr-card { border: 1px solid var(--line); border-radius: 5px; padding: 14px; background: #fff; }
.qr-card img { width: 100%; border-radius: 4px; }
.qr-card__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { background: var(--mint-2); border-radius: var(--r); padding: 16px 16px 20px; }
.req__title { font-size: 15px; font-weight: 600; margin-bottom: 20px; }
.req__row { display: flex; gap: 16px; align-items: baseline; padding: 10px 14px; background: #fff; border: 1px solid var(--line-2); border-radius: 3.5px; font-size: 13px; }
.req__row + .req__row { margin-top: 9px; }
.req__row span:first-child { color: var(--muted); font-size: 11px; min-width: 32px; }
.req__row b { font-weight: 700; word-break: break-all; }
.pay__notice { margin-top: 40px; }

/* purchases / empty */
.purchases { margin-top: 140px; }
.purchases h2 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.purchases p { font-size: 13px; }
.purchases p a { color: var(--ink); text-decoration: underline; }
.empty { text-align: center; margin-top: 30px; }
.empty img { width: 440px; max-width: 100%; margin: 0 auto; }
.empty p { font-size: 13px; color: var(--ink); margin-top: 0; }

/* footer (cabinet) */
.footer-c { padding: 80px 0 30px; }
.footer-c__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-c__about p { max-width: 350px; font-size: 13px; color: var(--muted); line-height: 2; margin: 24px 0 26px; }
.footer-c h4 { font-size: 16px; font-weight: 400; color: var(--teal); margin-bottom: 22px; }
.footer-c__links li { margin-bottom: 14px; }
.footer-c__links a { font-size: 15px; color: var(--muted); }
.footer-c__links a:hover { color: var(--ink); }
.footer-c__bottom { margin-top: 80px; padding-top: 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-c__bottom > span { color: var(--muted); }
.contacts { display: flex; gap: 20px; }
.contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.contacts img { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1560px) {
  .lang { position: static; height: 44px; border-radius: 8px; padding: 0 14px; margin-left: 16px; }
}

@media (max-width: 1240px) {
  .header__inner { gap: 20px; }
  .nav { gap: 16px; margin-left: 12px; }
  .nav__link { font-size: 14px; }
  .hero__lungs { left: 2%; }
  .hero__book { right: 3%; }
}

@media (max-width: 1024px) {
  .section { padding: 72px 0; }
  .hero__lungs, .hero__book { display: none; }
  .who, .why, .testimonial { grid-template-columns: 1fr; gap: 40px; }
  .why__img, .testimonial__card { max-width: 456px; }
  .experts { grid-template-columns: repeat(2, 1fr); }
  .courses, .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cabinet { grid-template-columns: 1fr; gap: 32px; padding-top: 56px; }
  .side { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .side__link { padding: 10px 16px; font-size: 14px; }
  .side__sep { display: none; }
  .pay { grid-template-columns: 1fr; }
  .footer-c__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .burger { display: flex; }
  .header__inner { min-height: 96px; }
  .logo { width: 60px; height: 60px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: #fff; border-top: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    box-shadow: 0 16px 32px rgba(14,22,40,.08);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 8px 16px; }
  .header__actions { display: none; }
  .nav .header__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 16px 0 0; }
  .lang { margin-left: 8px; }
  .hero__lungs, .hero__book { display: none; }
  .hero__actions { flex-direction: column; gap: 20px; }
  .stats__grid, .courses, .features, .steps, .experts, .cab-stats { grid-template-columns: 1fr; }
  .stat__num { font-size: 48px; }
  .cta__nums { flex-direction: column; align-items: center; gap: 24px; }
  .footer__grid, .footer-c__grid { grid-template-columns: 1fr; }
  .footer__bottom, .footer-c__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .contacts { justify-content: center; flex-wrap: wrap; }
  .page-hero h1 { font-size: 28px; }
  .choice { width: calc(50% - 14px); }
  .purchases { margin-top: 80px; }
  .btn--upload { width: 100%; }
  .subscribe { flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; }
  .subscribe input { width: 100%; padding: 8px 12px; }
  .subscribe .btn { width: 100%; }
}

/* ==== backend additions ==== */
/* Публичные страницы бэкенда: только новые классы, ничего из зипа не переопределяем. */
.subscribe-note { max-width: 580px; margin: 0 auto 20px; text-align: left; }
.error-detail { font-size: 13px; color: var(--muted); margin-top: 8px; }
.empty .empty__btn { margin-top: 24px; }

.filter-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-tags--left { justify-content: flex-start; margin-bottom: 24px; }
.filter-tags .tag { padding: 8px 16px; font-size: 13px; border-radius: 18px; }
.filter-tags a.tag:hover { background: var(--mint-2); color: var(--teal-dark); }
.filter-tags .tag.is-active { background: var(--teal); color: #fff; }

.page-body { max-width: 800px; font-size: 15px; line-height: 1.8; color: var(--ink); }
.page-body p { margin-bottom: 16px; }
.page-body h2, .page-body h3, .page-body h4 { margin: 28px 0 14px; font-weight: 600; }
.page-body ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.page-body ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.page-body li { margin-bottom: 6px; }
.page-body img { border-radius: var(--r); }
.page-body a { color: var(--blue); text-decoration: underline; }
.page-body blockquote { margin: 0 0 16px; padding: 12px 20px; border-left: 3px solid var(--teal); background: var(--mint); border-radius: 0 var(--r) var(--r) 0; }

.detail-grid { display: grid; grid-template-columns: 1fr 370px; gap: 60px; align-items: start; }
.detail-grid--rev { grid-template-columns: 300px 1fr; }
.item-cover { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 30px; max-width: 800px; }
.item-cover img { width: 100%; }
.section-subtitle { margin: 80px 0 30px; }
.news-excerpt { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.req .req__btn { margin-top: 20px; }

.course-aside .course-aside__btn, .course-aside .course-aside__note { margin-top: 16px; }

.author-line { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; max-width: 800px; }
.author-line img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-line b { font-weight: 600; display: block; }
.author-line span { font-size: 12px; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item { display: block; position: relative; border-radius: var(--r); overflow: hidden; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 8px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(14, 22, 40, .65)); }
.photos-lead { margin-bottom: 40px; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.partner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 28px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; font-size: 14px; box-shadow: var(--shadow-card); }
.partner-card img { max-height: 120px; max-width: 80%; width: auto; object-fit: contain; }

.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; font-size: 15px; }
.contact-list a { display: inline-flex; align-items: center; gap: 10px; }
.contact-list a:hover { color: var(--teal-dark); }
.contact-list img { width: 16px; height: 16px; }

.req--clinrecs .req__row { align-items: center; flex-wrap: wrap; }
.req--clinrecs .req__row span:first-child { min-width: 44px; }
.req--clinrecs .req__row b { word-break: normal; flex: 1; min-width: 200px; }
.clinrec-file { margin-left: auto; color: var(--blue); font-weight: 600; white-space: nowrap; }

.lecturer-photo { border-radius: var(--r-lg); overflow: hidden; }
.lecturer-photo img { width: 100%; object-fit: cover; }
.lecturer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.lecturer-verified { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.lecturer-verified img { width: 16px; height: 16px; }

@media (max-width: 1024px) {
  .detail-grid, .detail-grid--rev { grid-template-columns: 1fr; gap: 40px; }
  .partners-grid, .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .partners-grid, .gallery { grid-template-columns: 1fr; }
  .filter-tags { justify-content: flex-start; }
}

/* --- кабинет и auth (агент cabinet): только новые классы --- */
.auth-wrap { display: flex; justify-content: center; padding: 84px 0 120px; }
.auth-card { width: 520px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px 36px; box-shadow: var(--shadow-card); }
.auth-card .notice { margin-bottom: 24px; }
.auth-card .notice--warn { margin-top: 0; }
.auth-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; }
.auth-links { margin-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.auth-links a { color: var(--blue); }
.auth-links a:hover { text-decoration: underline; }

.form-field { display: block; margin-bottom: 18px; }
.form-field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.form-field input:disabled { background: var(--grey); color: var(--muted); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.cab-form { max-width: 560px; }
.cab-subtitle { font-size: 18px; font-weight: 600; margin: 48px 0 20px; }
.cab-meta a { color: var(--blue); }
.cab-meta a:hover { text-decoration: underline; }

.cab-table-wrap { overflow-x: auto; }
.cab-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cab-table th, .cab-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cab-table td:nth-child(2) { white-space: normal; }
.cab-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.cab-table a { color: var(--blue); }
.cab-table a:hover { text-decoration: underline; }

.ticket-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.ticket-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 14px; color: var(--ink); transition: border-color .15s; }
.ticket-item:hover { border-color: var(--teal); }
.ticket-item__meta { font-size: 12px; color: var(--muted); white-space: nowrap; }

.msgs { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 10px; }
.msg { max-width: 640px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--mint); font-size: 14px; line-height: 1.6; }
.msg--staff { background: var(--mint-2); border: 1px solid var(--line-2); }
.msg__meta { font-size: 11px; color: var(--muted); margin-bottom: 6px; }

.courses--cab { margin-top: 24px; }
.cab-course { position: relative; }
.cab-course__status { position: absolute; top: 10px; right: 10px; z-index: 1; background: var(--teal); color: #fff; }

.wizard__back { margin-top: 24px; }
.kaspi-pay { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 24px 18px; }
.kaspi-pay img { max-width: 240px; border-radius: 4px; }
.kaspi-pay__hint, .kaspi-pay__status { font-size: 12px; color: var(--muted); line-height: 1.6; }
[data-cab-error] { margin-top: 30px; }

/* ==== i18n additions (агент i18n): переключатель языка ==== */
.lang--fixed { position: absolute; right: 0; top: 8px; }
.lang-wrap { position: absolute; right: 0; top: 8px; }
.lang-wrap .lang { position: static; }
.lang-wrap .nav__sub { left: auto; right: 0; top: 100%; min-width: 170px; }
.lang-wrap:hover .nav__sub, .lang-wrap:focus-within .nav__sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__link--lang { display: none; }
@media (max-width: 1560px) {
  .lang-wrap { position: relative; top: auto; right: auto; margin-left: 16px; }
  .lang-wrap .lang { margin-left: 0; }
}
@media (max-width: 800px) {
  .lang--fixed, .lang-wrap--fixed { display: none; }
  .nav .nav__link--lang { display: block; }
  .lang-wrap { margin-left: 8px; }
}

/* ==== cookie consent (агент cookie): плашка согласия на cookie ==== */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-card); }
.cookie-bar__inner { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.cookie-bar__text { flex: 1 1 auto; margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); }
.cookie-bar__link { color: var(--teal); text-decoration: underline; white-space: nowrap; }
.cookie-bar__form { flex: 0 0 auto; margin: 0; }
@media (max-width: 800px) {
  .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-bar__form .btn { width: 100%; }
}
.nav__sub .lang__flag { display: inline-block; width: 18px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
/* заголовок раздела без баннера (по просьбе заказчика вместо .page-hero) */
.page-title { padding: 56px 0 0; }
.page-title h1 { font-size: 34px; font-weight: 700; line-height: 1.2; }
.page-title + .section, .page-title + main.section { padding-top: 32px; }
@media (max-width: 800px) { .page-title { padding-top: 32px; } .page-title h1 { font-size: 28px; } }
/* блок информации о событии: не рвать слова посередине (адрес, название отеля) */
.req--event .req__row b { word-break: normal; overflow-wrap: anywhere; }
.req--event .req__row span:first-child { min-width: 64px; }
/* шапка вошедшего (7 пунктов + «События | XIV КОНГРЕСС»): компактнее на экранах до 1560px, гостевая шапка не меняется */
@media (max-width: 1560px) and (min-width: 801px) {
  .header--user .header__inner { gap: 12px; }
  .header--user .nav { gap: 10px; margin-left: 8px; }
  .header--user .nav__link { font-size: 13px; }
  .header--user .header__actions { gap: 12px; }
  .header--user .header__actions .btn--sm { padding-inline: 14px; }
  .header--user .lang-wrap { margin-left: 8px; flex: 0 0 auto; }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .header__inner { gap: 12px; flex-wrap: wrap; row-gap: 0; padding-block: 12px; position: relative; padding-right: calc(var(--gutter) + 92px); }
  .nav { gap: 10px; margin-left: 8px; flex-wrap: wrap; row-gap: 4px; }
  .nav__link { font-size: 13px; }
  .header__actions { gap: 12px; }
  .header__actions .btn--sm { padding-inline: 14px; }
  .lang-wrap { position: absolute; right: var(--gutter); top: 53px; transform: translateY(-50%); margin: 0; }
}
