/* ============================================================
   sections.css — раскладка конкретных секций
   ============================================================ */

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--c-border-soft);
}
.site-header__row {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-6);
}
.site-header__logo { height: 30px; }
.site-header__logo img { height: 100%; width: auto; }
.site-header__nav { display: flex; gap: var(--sp-6); margin-left: auto; font-size: var(--fs-sm); }
.site-header__nav a:hover { color: var(--c-link); }
.site-header__contacts { display: flex; flex-direction: column; text-align: right; font-size: var(--fs-xs); line-height: 1.4; }
.site-header__contacts b { font-size: var(--fs-sm); }
.site-header .btn { padding: 12px 22px; }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span, .burger::before, .burger::after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--c-ink); border-radius: 2px;
}
.burger span   { top: 21px; }
.burger::before { top: 14px; }
.burger::after  { top: 28px; }
@media (max-width: 960px) {
  .site-header__nav, .site-header__contacts, .site-header .btn { display: none; }
  .burger { display: block; }
}

/* мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--c-bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
  display: grid; align-content: start; gap: var(--sp-5);
  transform: translateY(-100%); transition: transform 0.3s ease; visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu a { font-size: 22px; font-weight: 600; }
.mobile-menu__close { position: absolute; top: 20px; right: var(--gutter); width: 40px; height: 40px; font-size: 30px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #93bfda 0%, #b6d6e7 34%, var(--c-badge-2) 100%); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7);
  align-items: center; min-height: 560px; padding-block: var(--sp-8);
}
.hero__eyebrow { margin-bottom: var(--sp-4); }
.hero__title { margin-bottom: var(--sp-5); }
.hero__sub { max-width: 46ch; margin-bottom: var(--sp-6); }
.hero__cta { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.hero__meta { display: flex; gap: var(--sp-6); flex-wrap: wrap; font-size: var(--fs-sm); }
.hero__meta b { display: block; font-size: var(--fs-h3); font-family: var(--font-display); color: var(--c-ink); }
.hero__media { position: relative; align-self: end; }
.hero__media img {
  width: 100%; height: 100%; object-fit: contain; object-position: bottom center;
  /* растворяем нижний край (у исходных фото вшит голубой градиент) в фон hero */
  -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 84%, transparent 99%);
}
.hero__bullets { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.hero__bullets .chip { background: var(--c-bg); }
@media (max-width: 960px) {
  .hero__inner { display: flex; flex-direction: column; min-height: 0; gap: 0; text-align: center; padding-block: var(--sp-5) 0; }
  .hero__text { display: contents; }
  .hero__eyebrow { order: 1; align-self: center; margin-bottom: var(--sp-3); }
  .hero__title { order: 2; margin-bottom: var(--sp-3); }
  .hero__sub { order: 3; max-width: 40ch; margin: 0 auto var(--sp-4); }
  .lic-hero__sub2 { order: 3; max-width: 44ch; margin: calc(-1 * var(--sp-2)) auto var(--sp-4); }
  .hero__meta { order: 4; justify-content: center; margin-top: var(--sp-2); }
  .hero__bullets { order: 5; justify-items: center; }
  .hero__media { order: 6; height: auto; align-self: stretch; margin-top: var(--sp-4); }
  .hero__media img { height: auto; object-position: bottom center; }
  .hero__cta { order: 7; margin: calc(-1 * clamp(24px, 9vw, 54px)) 0 var(--sp-5); justify-content: center; position: relative; z-index: 3; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- «Кому подходит» ---------- */
.who__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.who__card { display: flex; flex-direction: column; gap: var(--sp-3); }
.who__card .card__arrow { margin-bottom: var(--sp-2); }
.who__chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.who__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--c-muted); }
@media (max-width: 960px) { .who__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .who__grid { grid-template-columns: 1fr; } }

/* ---------- «8 причин» + блок длительности ---------- */
.reasons__layout { display: grid; grid-template-columns: 360px 1fr; gap: var(--sp-6); align-items: start; }
.duration {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--c-badge-2); border-radius: var(--r-lg);
  padding: var(--sp-6); overflow: hidden;
  /* кнопка — последней, под фото: между текстом и большим фото она терялась */
  display: flex; flex-direction: column;
}
.duration__media { order: 1; }
.duration .btn { order: 2; }
.duration__big { font-family: var(--font-display); font-size: clamp(40px,6vw,64px); line-height: 1; color: var(--c-accent); }
.duration__title { font-size: var(--fs-lead); font-weight: 700; color: var(--c-ink); margin: var(--sp-3) 0; }
.duration .btn { margin-top: var(--sp-5); }
.duration__media { margin-top: var(--sp-5); border-radius: var(--r-md); }
.reasons__list { display: grid; gap: var(--sp-4); }
.reason { display: grid; grid-template-columns: 56px 1fr; gap: var(--sp-4); padding: var(--sp-5); border: 1px solid var(--c-border-soft); border-radius: var(--r-md); }
.reason__n { font-family: var(--font-display); font-size: 30px; color: var(--c-accent-soft); line-height: 1.2; }
.reason__b { font-weight: 700; color: var(--c-ink); }
.reasons__layout--nofold { grid-template-columns: 1fr; }
.reasons__layout--nofold .reasons__list { grid-template-columns: 1fr 1fr; }
@media (max-width: 960px) { .reasons__layout { grid-template-columns: 1fr; } .duration { position: static; } .reasons__layout--nofold .reasons__list { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .duration__media { margin-bottom: 0; } }

/* ---------- «Какой результат» — карточки 01–04 ---------- */
.results__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.result { border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: var(--sp-6); }
.result__n { font-family: var(--font-display); font-size: clamp(40px,5vw,64px); color: var(--c-accent-soft); line-height: 1; }
.result__t { text-transform: uppercase; font-weight: 700; color: var(--c-ink); margin: var(--sp-3) 0; }
@media (max-width: 640px) { .results__grid { grid-template-columns: 1fr; } }

/* ---------- «Почему нам доверяют» ---------- */
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.trust__stat { font-family: var(--font-display); font-size: clamp(48px,7vw,90px); line-height: 1; color: var(--c-ink); }
@media (max-width: 960px) { .trust__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- «Программа обучения» — карточки-текст ---------- */
.program__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px); gap: var(--sp-5); overflow-x: auto; padding-bottom: var(--sp-4); scroll-snap-type: x mandatory; }
.program__track::-webkit-scrollbar { height: 6px; }
.program__track::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: var(--r-pill); }
.pcard {
  scroll-snap-align: start;
  background: var(--c-bg); border: 1px solid var(--c-border-soft);
  border-radius: var(--r-lg); padding: var(--sp-6);
  display: flex; flex-direction: column; min-height: 420px;
}
.pcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.pcard__title { text-transform: uppercase; font-weight: 700; font-size: 22px; line-height: 1.15; color: var(--c-ink); margin-bottom: var(--sp-3); }
.pcard__desc { font-size: var(--fs-sm); color: var(--c-text); line-height: 1.5; }

/* ---------- Программа: сгруппированная сетка модулей (longevity) ---------- */
.pgroup + .pgroup { margin-top: var(--sp-8); }
.pgroup__head { margin-bottom: var(--sp-5); }
.pgroup__title { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; line-height: 1.1; color: var(--c-ink); }
.pgroup__head p { margin-top: var(--sp-2); }
.pgroup__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 960px) { .pgroup__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pgroup__grid { grid-template-columns: 1fr; } }
.pmod { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); background: var(--c-bg); border: 1px solid var(--c-border-soft); border-radius: var(--r-md); }
.pmod__n { align-self: flex-start; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.04em; color: var(--c-accent); background: var(--c-badge-2); border-radius: var(--r-pill); padding: 2px 12px; }
.pmod__t { font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--c-ink); }
.pmod__d { font-size: var(--fs-sm); line-height: 1.5; color: var(--c-text); }

/* ---------- Эксперты — аккордеон ---------- */
.experts-acc { display: flex; justify-content: center; gap: 8px; height: clamp(380px, 44vw, 560px); margin-top: var(--sp-6); }
/* Пропорциональная раскладка: свёрнутые карточки тоже растягиваются (flex-grow),
   но ограничены max-width, а открытая имеет бОльший вес и свой потолок — поэтому
   при малом числе карточек она не «съедает» весь ряд, а остаток делится поровну.
   Если места в избытке (2–3 карточки) — ряд центрируется. */
.eacc { position: relative; flex: 1 1 0; min-width: clamp(74px, 7vw, 98px); max-width: 240px; border-radius: 18px; overflow: hidden; background: #e9f2f7; cursor: pointer; outline: none; transition: flex-grow .55s cubic-bezier(.4,0,.2,1), max-width .55s cubic-bezier(.4,0,.2,1); }
.eacc.is-open { flex-grow: 6; max-width: clamp(420px, 44vw, 580px); }
.eacc:focus-visible { box-shadow: 0 0 0 3px var(--c-accent); }
.eacc__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
.eacc__ph { display: grid; place-items: center; background: linear-gradient(180deg, #dce9f0 0%, #b3ccdc 100%); }
.eacc__ph span { font-family: var(--font-display); font-weight: 400; font-size: clamp(52px, 7vw, 96px); letter-spacing: 0.04em; color: rgba(255,255,255,0.82); }
.eacc::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 52%; z-index: 1; opacity: 0; pointer-events: none; }
.eacc__toggle { position: absolute; top: 14px; left: 14px; z-index: 2; width: clamp(38px, 3.4vw, 46px); height: clamp(38px, 3.4vw, 46px); border-radius: 50%; background: var(--c-btn); color: #fff; display: grid; place-items: center; }
.eacc__toggle svg { width: 44%; height: 44%; }
.eacc__info { position: absolute; top: 20px; left: clamp(70px, 6vw, 82px); right: 20px; z-index: 2; opacity: 0; transition: opacity .18s ease; pointer-events: none; text-shadow: 0 1px 12px rgba(233,242,247,0.95), 0 0 3px rgba(233,242,247,0.8); }
.eacc.is-open .eacc__info { opacity: 1; transition: opacity .3s ease .42s; }
.eacc__name { font-size: clamp(20px, 2vw, 28px); font-weight: 700; line-height: 1.1; color: var(--c-ink); }
.eacc__role { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.4; color: var(--c-muted); max-width: 44ch; }
@media (max-width: 760px) {
  .experts-acc { flex-direction: row; justify-content: flex-start; height: auto; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 10px; scroll-padding-inline: var(--gutter); }
  .experts-acc::-webkit-scrollbar { height: 4px; }
  .experts-acc::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 999px; }
  .eacc { flex: 0 0 82%; min-width: 82%; max-width: none; height: clamp(420px, 116vw, 540px); scroll-snap-align: center; }
  .eacc.is-open { flex-grow: 0; max-width: none; }
  .eacc__photo { object-fit: cover; object-position: center 16%; }
  .eacc__toggle { display: none; }
  .eacc::after { inset: auto 0 0 0; height: 29%; opacity: 1; background: linear-gradient(0deg, rgba(18,34,48,0.8) 0%, rgba(18,34,48,0.32) 52%, transparent 100%); }
  .eacc__info { position: absolute; left: 22px; right: 22px; bottom: 22px; top: auto; width: auto; opacity: 1; transform: none; text-shadow: 0 1px 10px rgba(10,22,32,0.6), 0 1px 2px rgba(10,22,32,0.7); }
  .eacc__name { color: #fff; white-space: normal; }
  .eacc__role { color: rgba(255,255,255,0.86); }
}

/* ---------- Тарифы ---------- */
.tariffs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-5); align-items: stretch; }
.tariff { position: relative; border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: var(--sp-6); background: var(--c-bg); display: flex; flex-direction: column; gap: var(--sp-4); }
.tariff--pop { border-color: var(--c-ink); box-shadow: var(--shadow-card); }
.tariff__pop { position: absolute; top: calc(-1 * var(--sp-3)); left: var(--sp-6); }
.tariff__name { text-transform: uppercase; font-weight: 700; font-size: 20px; color: var(--c-ink); }
.tariff__for { font-size: var(--fs-sm); color: var(--c-muted); }
.tariff .btn { margin-top: auto; }
@media (max-width: 960px) { .tariffs__grid { grid-template-columns: 1fr; } }

/* ---------- Финальный CTA / футер ---------- */
.site-footer { background: var(--c-btn); color: var(--c-on-dark); padding-block: var(--section-y); }
.site-footer a:hover { color: var(--c-accent-soft); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-7); }
.footer__col h4 { text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--c-accent-soft); margin-bottom: var(--sp-4); }
.footer__col a, .footer__col p { display: block; font-size: var(--fs-sm); margin-bottom: var(--sp-2); color: rgba(255,255,255,0.85); }
.footer__bottom { margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,0.14); font-size: var(--fs-xs); color: rgba(255,255,255,0.6); display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.footer__socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer__col .footer__social { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin: 0; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.22); color: #fff; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.footer__col .footer__social:hover { background: #fff; border-color: #fff; color: var(--c-btn); }
.footer__social svg { width: 20px; height: 20px; display: block; }
.footer__social-m { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.05em; line-height: 1; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Главная: hero-фичи ---------- */
.home-hero__statsbar { position: relative; z-index: 1; margin-top: clamp(20px, 3vw, 40px); }
.home-hero__stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1vw, 14px); padding-bottom: clamp(20px, 3vw, 40px); }
.hstat { display: flex; align-items: center; gap: var(--sp-3); background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.55); border-radius: var(--r-md); padding: clamp(12px, 1.4vw, 18px) clamp(14px, 1.4vw, 20px); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hstat b { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; color: var(--c-ink); }
.hstat span { font-size: var(--fs-xs); line-height: 1.2; color: var(--c-muted); }
@media (max-width: 960px) { .home-hero__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .home-hero__stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Главная: карточки программ ---------- */
.phome__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.phome__card { display: grid; grid-template-columns: 130px minmax(0, 1fr); grid-template-areas: "media title" "media body"; column-gap: var(--sp-5); row-gap: var(--sp-3); align-items: start; background: var(--c-badge-2); border-radius: var(--r-lg); padding: var(--sp-5); transition: transform var(--ease), box-shadow var(--ease); overflow: hidden; }
.phome__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.phome__title { grid-area: title; }
.phome__media { grid-area: media; align-self: end; width: 130px; }
.phome__media img { width: 100%; height: auto; display: block; }
.phome__body { grid-area: body; display: flex; flex-direction: column; gap: var(--sp-3); }
.phome__more { margin-top: var(--sp-2); display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); }
.phome__more svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .phome__grid { grid-template-columns: 1fr; }
  .phome__card { grid-template-columns: 130px minmax(0, 1fr); grid-template-areas: "title title" "media body"; column-gap: var(--sp-4); }
  .phome__title { padding-bottom: var(--sp-4); border-bottom: 1px solid rgba(0,0,0,0.1); }
  .phome__media { align-self: end; }
}

/* Главная: широкая тёмная карточка (трудоустройство ОАЭ) */
.phome__featured {
  position: relative; overflow: hidden;
  display: flex; align-items: center; min-height: 440px;
  margin-top: var(--sp-5); padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #1f3a5f 0%, #26456e 100%);
  color: var(--c-on-dark);
  transition: transform var(--ease), box-shadow var(--ease);
}
.phome__featured:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.phome__featured-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--sp-4); max-width: 60%; }
.phome__featured-media { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.phome__featured-media img {
  position: absolute; right: 0; bottom: 0;
  height: 100%; width: auto; max-width: none;
  object-fit: cover; object-position: bottom right; display: block;
}
@media (max-width: 760px) {
  .phome__featured { min-height: 0; }
  .phome__featured-media { display: none; }
  .phome__featured-body { max-width: 100%; }
}

/* ---------- Главная: о нас ---------- */
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-7); align-items: center; }
.about__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- Контакты ---------- */
.contacts-hero__inner { padding-block: var(--sp-7) var(--sp-8); max-width: 62ch; }
.contacts-hero .hero__sub { margin-bottom: 0; }
.contacts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); align-items: stretch; }
.contact-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.contact-card__ic { width: 48px; height: 48px; border-radius: var(--r-pill); background: var(--c-badge-2); color: var(--c-accent); display: grid; place-items: center; }
.contact-card__ic svg { width: 24px; height: 24px; }
.contact-card__t { text-transform: uppercase; font-weight: 700; font-size: 15px; letter-spacing: 0.02em; color: var(--c-ink); }
.contact-card__body { display: grid; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--c-text); }
.contact-card__body b { color: var(--c-ink); }
.contact-card__body a:hover { color: var(--c-link); }
.contacts-actions { display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; margin-top: var(--sp-7); }
.contacts-socials { display: flex; gap: var(--sp-3); }
.contacts-socials a { width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--c-border-soft); color: var(--c-ink); display: grid; place-items: center; transition: background var(--ease), color var(--ease); }
.contacts-socials a:hover { background: var(--c-ink); color: var(--c-on-dark); }
.contacts-socials svg { width: 20px; height: 20px; }
@media (max-width: 960px) { .contacts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ---------- Юридические страницы ---------- */
.legal-hero__inner { padding-block: var(--sp-6) var(--sp-7); max-width: 70ch; }
.legal-hero__title { font-weight: 700; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; color: var(--c-ink); }
.legal-hero__inner .hero__sub { margin-top: var(--sp-4); margin-bottom: 0; }
.legal { max-width: 880px; }
.legal__h { font-weight: 700; font-size: clamp(18px, 2vw, 23px); color: var(--c-ink); margin: var(--sp-6) 0 var(--sp-3); }
.legal > .legal__h:first-child { margin-top: 0; }
.legal p { font-size: var(--fs-sm); line-height: 1.65; color: var(--c-text); margin-bottom: var(--sp-3); }
.legal__ul { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-4) var(--sp-5); }
.legal__ul li { list-style: disc; font-size: var(--fs-sm); line-height: 1.6; color: var(--c-text); }
.legal__docs { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-4); }
.doc-link { display: inline-flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border: 1px solid var(--c-border-soft); border-radius: var(--r-md); font-weight: 600; color: var(--c-ink); transition: border-color var(--ease), background var(--ease); }
.doc-link:hover { border-color: var(--c-ink); background: var(--c-surface); }
.doc-link__ic { width: 26px; height: 26px; color: var(--c-accent); flex: none; }
.doc-link__ic svg { width: 100%; height: 100%; }

/* ---------- Главная: mission-блок ---------- */
.home-mission {
  background: linear-gradient(180deg, #b2d4e4 0%, #6fa1c4 100%);
  border-radius: var(--r-lg); color: #fff; text-align: center;
  padding: clamp(44px, 6vw, 96px) clamp(24px, 5vw, 80px);
}
.home-mission__logo { height: clamp(52px, 8vw, 104px); width: auto; margin: 0 auto clamp(24px, 4vw, 52px); filter: brightness(0) invert(1); }
.home-mission__tagline { font-weight: 700; font-size: clamp(21px, 2.8vw, 34px); line-height: 1.3; max-width: 24ch; margin: 0 auto; }
.home-mission__sub { font-size: var(--fs-lead); line-height: 1.55; max-width: 56ch; margin: var(--sp-5) auto 0; color: rgba(255,255,255,0.9); }
/* Ширина ограничена, чтобы теги ложились ровными рядами: на всю ширину контейнера
   последний тег оставался один на второй строке. */
.home-mission__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin: clamp(32px, 5vw, 64px) auto 0; max-width: 640px; }
.home-mission__tags span { padding: 10px 20px; border-radius: var(--r-pill); background: rgba(255,255,255,0.2); font-size: var(--fs-sm); font-weight: 500; color: #fff; }

/* ---------- Главная: «Кому подходит» с фото-карточками ---------- */
.hwho__grid { display: grid; grid-template-columns: 1.25fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); align-items: stretch; }
.hwho-lead { position: relative; display: flex; flex-direction: column; }
.hwho-lead__t { margin-bottom: var(--sp-4); }
.hwho-lead__body { display: grid; gap: var(--sp-3); }
.hwho-lead__body .small { font-size: 16px; line-height: 1.55; }
.hwho-lead__chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-6); }
.hwho-lead__chips .chip { background: var(--c-badge-2); border-color: transparent; justify-content: center; }
.hwho-card { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-6) 0; min-height: 470px; display: flex; flex-direction: column; }
.hwho-card__t { text-transform: uppercase; font-weight: 700; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.2; color: var(--c-ink); hyphens: none; -webkit-hyphens: none; overflow-wrap: break-word; }
.hwho-card__d { font-size: 16px; line-height: 1.55; color: var(--c-text); margin-top: var(--sp-4); }
.hwho-card__img { margin-top: auto; height: 62%; width: calc(100% + 2 * var(--sp-6)); margin-inline: calc(-1 * var(--sp-6)); max-width: none; object-fit: cover; object-position: center 12%; }
.hwho-card--1 { background: #cfe6f1; }
.hwho-card--2 { background: #9ec6dc; }
.hwho-card--3 { background: linear-gradient(180deg, #7ba7c8 0%, #5d8cb2 100%); }
.hwho-card--3 .hwho-card__t { color: #fff; }
.hwho-card--3 .hwho-card__d { color: rgba(255,255,255,0.92); }
@media (max-width: 1080px) { .hwho__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .hwho__grid { grid-template-columns: 1fr; } .hwho-card { min-height: 420px; } .hwho-card__img { height: auto; flex: 1 1 auto; min-height: 220px; } }

/* ---------- Главная: «Что такое VOLNA» ---------- */
.whatis__stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-7); }
.whatis__stat { display: flex; align-items: baseline; gap: var(--sp-3); background: var(--c-bg); border: 1px solid var(--c-border-soft); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); }
.whatis__stat b { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); line-height: 1; color: var(--c-ink); }
.whatis__stat span { font-size: var(--fs-xs); color: var(--c-muted); line-height: 1.25; }
@media (max-width: 960px) { .whatis__stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .whatis__stats { grid-template-columns: repeat(2, 1fr); } }
.whatis__head { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: var(--sp-6); align-items: start; margin-bottom: var(--sp-6); }
.whatis__intro { font-size: var(--fs-lead); }
.whatis__recommend b { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 76px); line-height: 1; color: var(--c-ink); }
.whatis__recommend span { display: block; margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-text); }
@media (max-width: 860px) { .whatis__head { grid-template-columns: 1fr; gap: var(--sp-5); } }
.whatis__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 1fr; gap: var(--sp-5); }
.whatis__hl { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--sp-6); background: var(--c-badge-2); border-radius: var(--r-lg); padding: clamp(28px, 3vw, 44px); }
.whatis__hl-ring { position: relative; text-align: center; padding: clamp(38px, 12%, 58px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; max-width: 300px; margin: 0 auto; }
.whatis__hl-ring > *:not(.whatis__ring-svg) { position: relative; z-index: 1; }
.whatis__ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.whatis__ring-track { fill: none; stroke: #e2e7ea; stroke-width: 6.5; }
.whatis__ring-prog { fill: none; stroke: url(#whatisRingGrad); stroke-width: 6.5; stroke-linecap: round; stroke-dasharray: 339.29; stroke-dashoffset: 339.29; }
.whatis__hl-ring.is-in .whatis__ring-prog { animation: ring-fill 1.7s cubic-bezier(.25,.9,.3,1) forwards; }
@keyframes ring-fill { from { stroke-dashoffset: 339.29; } to { stroke-dashoffset: 108.6; } }
@media (prefers-reduced-motion: reduce) { .whatis__hl-ring.is-in .whatis__ring-prog { animation: none; stroke-dashoffset: 108.6; } }
.whatis__hl-pre { font-size: var(--fs-sm); color: var(--c-muted); }
.whatis__hl-val { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; font-size: clamp(48px, 6vw, 82px); line-height: 1; color: var(--c-ink); margin: var(--sp-2) 0 var(--sp-3); }
.whatis__hl-sub { font-size: var(--fs-sm); line-height: 1.4; color: var(--c-text); max-width: 18ch; }
.whatis__hl-note { font-weight: 700; color: var(--c-ink); }
.whatis__feat { background: var(--c-bg); border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: var(--sp-6); }
.whatis__feat-n { font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px); line-height: 1; color: var(--c-surface-2); }
.whatis__feat-t { text-transform: uppercase; font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--c-ink); margin: var(--sp-4) 0 var(--sp-3); }
.whatis__feat-d { font-size: var(--fs-sm); line-height: 1.5; color: var(--c-text); }
.whatis__feat--dark { background: var(--c-btn); border-color: transparent; }
.whatis__feat--dark .whatis__feat-t { color: #fff; }
.whatis__feat--dark .whatis__feat-d { color: rgba(255,255,255,0.8); }
.whatis__feat--dark .whatis__feat-n { color: rgba(255,255,255,0.22); }
@media (max-width: 860px) { .whatis__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; } .whatis__hl { grid-row: auto; grid-column: 1 / -1; } }
@media (max-width: 520px) { .whatis__grid { grid-template-columns: 1fr; } }

/* ---------- Футер: открытая форма (CTA) ---------- */
.lead-cta { position: relative; overflow: hidden; color: #fff; padding-block: var(--section-y);
  background: linear-gradient(180deg, #5f8fb4 0%, #a9cfe2 100%); }
.lead-cta__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1.05fr; gap: clamp(20px, 3vw, 56px); align-items: end; }
.lead-cta__text { align-self: center; }
.lead-cta__title { color: #fff; }
.lead-cta__lead { color: rgba(255,255,255,0.9); max-width: 42ch; }
.lead-cta__photo { align-self: end; height: auto; width: auto; max-height: 480px; max-width: 100%; margin-bottom: calc(-1 * var(--section-y)); z-index: 1; pointer-events: none; }
.lead-cta__form { position: relative; align-self: center; z-index: 2; }
.lead-cta__form .lead-form { display: grid; gap: var(--sp-4); }
.lead-cta__form .field label { color: #fff; }
.lead-cta__form .consent { color: rgba(255,255,255,0.92); }
.lead-cta__form .consent a { color: #fff; text-decoration: underline; }
@media (max-width: 860px) {
  .lead-cta__inner { grid-template-columns: 1fr; gap: var(--sp-6); }
  .lead-cta__photo { display: none; }
}

/* ---------- 404 ---------- */
.error404__inner { text-align: center; max-width: 640px; margin-inline: auto; padding-block: var(--sp-9); }
.error404__code { font-family: var(--font-display); font-size: clamp(90px, 18vw, 200px); line-height: 0.9; color: var(--c-accent-soft); }
.error404__title { margin: var(--sp-4) 0 var(--sp-5); }
.error404__sub { margin: 0 auto var(--sp-6); max-width: 46ch; }
.error404__actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: var(--fs-xs); color: var(--c-muted); padding-block: var(--sp-4); }
.crumbs a:hover { color: var(--c-link); }
/* внутри hero — на тонированном фоне, у верхнего края */
.hero > .crumbs { padding-top: var(--sp-5); padding-bottom: 0; }
.hero .hero__inner { padding-top: var(--sp-6); }

/* ---------- Popup ---------- */
.popup { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: var(--gutter); background: rgba(15,20,30,0.55); }
.popup.is-open { display: grid; }
.popup__box { position: relative; background: var(--c-bg); border-radius: var(--r-lg); padding: clamp(24px,4vw,40px); width: min(520px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-pop); }
.popup__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--c-ink); }
.popup__title { margin-bottom: var(--sp-4); }
.popup form { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }

/* ---------- Cookie ---------- */
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 65; max-width: 560px; margin-inline: auto; background: var(--c-btn); color: var(--c-on-dark); border-radius: var(--r-md); padding: var(--sp-5); display: flex; gap: var(--sp-4); align-items: center; font-size: var(--fs-xs); box-shadow: var(--shadow-pop); }
.cookie .btn { flex: none; padding: 10px 18px; }
.cookie[hidden] { display: none; }

/* ---------- Floating ---------- */
.floating { position: fixed; bottom: 20px; right: 20px; z-index: 55; width: 56px; height: 56px; border-radius: var(--r-pill); background: var(--c-btn); color: var(--c-on-dark); display: grid; place-items: center; box-shadow: var(--shadow-pop); }

/* ============================================================
   Страница «Лицензирование» (/relocation/)
   ============================================================ */

/* --- Hero: статистика-плашка + логотипы клиник --- */
.lic-hero .hero__inner { min-height: 460px; }
@media (max-width: 960px) {
  .lic-hero .hero__media { height: auto; }
  .lic-hero .hero__media img { height: auto; object-fit: contain; object-position: bottom center; }
}
.lic-hero__sub2 { max-width: 46ch; margin-top: calc(-1 * var(--sp-3)); margin-bottom: var(--sp-6); }
.lic-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5);
  background: var(--c-bg); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: var(--sp-6); margin-top: var(--sp-6);
}
.lic-stat__v { font-family: var(--font-display); font-size: clamp(38px, 4.4vw, 60px); line-height: 1; color: var(--c-accent); }
.lic-stat__l { font-size: var(--fs-sm); color: var(--c-text); margin-top: var(--sp-3); }
.lic-partners {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-5) var(--sp-6); margin-top: var(--sp-6); padding-bottom: var(--sp-4);
}
.lic-partners img { height: 34px; width: auto; opacity: 0.7; filter: grayscale(1); }
@media (max-width: 960px) {
  .lic-stats { grid-template-columns: repeat(2, 1fr); }
  .lic-partners { justify-content: center; gap: var(--sp-5); }
  .lic-partners img { height: 26px; }
}
@media (max-width: 520px) { .lic-stats { grid-template-columns: 1fr 1fr; gap: var(--sp-4); padding: var(--sp-5); } }

/* --- Почему VOLNA — широкая карточка сверху + две в ряд --- */
.lic-about__stack { display: grid; gap: var(--sp-5); }
.lic-about__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.lic-feat { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); }
.lic-feat__t { font-size: clamp(20px, 2vw, 28px); text-transform: uppercase; }
.lic-feat__arrow { position: absolute; top: var(--sp-6); right: var(--sp-6); }
.lic-about__row .lic-feat { padding-right: calc(var(--sp-6) + 60px); }
.lic-feat--wide { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--sp-7); align-items: center; }
.lic-feat--wide .lic-feat__main { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 42ch; }
.lic-feat--wide .lic-feat__t { padding-right: 0; max-width: 16ch; }
.lic-feat__tabs { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.lic-feat__tabs .chip { background: var(--c-bg); }
@media (max-width: 860px) {
  .lic-feat--wide { grid-template-columns: 1fr; gap: var(--sp-5); }
  .lic-about__row { grid-template-columns: 1fr; }
  .lic-feat__t { max-width: none; }
}

/* --- 10 причин --- */
.lic-reasons__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.lic-reason { display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-4); align-items: start;
  padding: var(--sp-5); border: 1px solid var(--c-border-soft); border-radius: var(--r-md); }
.lic-reason__n { font-family: var(--font-display); font-size: 30px; color: var(--c-accent-soft); line-height: 1.15; }
.lic-reason p { color: var(--c-text); }
@media (max-width: 760px) { .lic-reasons__grid { grid-template-columns: 1fr; } }

/* --- Программы подготовки / курсы + аккордеон специальностей --- */
.lic-programs__intro { margin-bottom: var(--sp-7); }
.lic-courses { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-7); align-items: start; }
.lic-courses__media { position: sticky; top: calc(var(--header-h) + 16px); border-radius: var(--r-lg); overflow: hidden; background: var(--c-tint); }
.lic-courses__media img { width: 100%; height: auto; display: block; object-fit: cover; }
.lic-spec { margin-top: var(--sp-6); border-top: 1px solid var(--c-border-soft); }
.lic-spec__item { border-bottom: 1px solid var(--c-border-soft); }
.lic-spec__q { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5) 0; cursor: pointer; list-style: none; }
.lic-spec__q::-webkit-details-marker { display: none; }
.lic-spec__name { font-weight: 700; font-size: var(--fs-lead); color: var(--c-ink); }
.lic-spec__name em { font-style: normal; font-weight: 400; color: var(--c-muted); font-size: var(--fs-sm); }
.lic-spec__ic { flex: none; width: 28px; height: 28px; color: var(--c-accent); transition: transform var(--ease); }
.lic-spec__item[open] .lic-spec__ic { transform: rotate(180deg); }
.lic-spec__a { padding-bottom: var(--sp-5); display: grid; gap: var(--sp-3); }
.lic-spec__a p { font-size: var(--fs-sm); color: var(--c-text); }
@media (max-width: 860px) { .lic-courses { grid-template-columns: 1fr; } .lic-courses__media { position: static; max-width: 360px; } }

/* --- Резидентура / стажировки — карточки «что входит» --- */
.lic-included__stack { display: grid; gap: var(--sp-7); }
.lic-incard { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-7); align-items: center;
  background: var(--c-badge-2); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 48px); overflow: hidden; }
.lic-incard--rev .lic-incard__media { order: 2; }
.lic-incard__media { border-radius: var(--r-md); overflow: hidden; align-self: stretch; display: flex; }
.lic-incard__media img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.lic-incard__whatlabel { color: var(--c-accent); }
@media (max-width: 860px) { .lic-incard, .lic-incard--rev .lic-incard__media { grid-template-columns: 1fr; order: 0; }
  .lic-incard__media { max-width: 300px; } }

/* галочки-списки */
.lic-checklist { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.lic-checklist li { display: grid; grid-template-columns: 26px 1fr; gap: var(--sp-3); align-items: start; color: var(--c-text); }
.lic-check { flex: none; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--c-accent);
  color: #fff; display: grid; place-items: center; }
.lic-check svg { width: 14px; height: 14px; }

/* --- Помощь в трудоустройстве --- */
.lic-emp { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-7); align-items: center; }
.lic-emp__media { border-radius: var(--r-lg); overflow: hidden; }
.lic-emp__media img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .lic-emp { grid-template-columns: 1fr; } .lic-emp__media { order: -1; } }

/* --- Наставники — карточки-картинки --- */
.lic-mentors { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
.lic-mentor { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); background: var(--c-bg); }
.lic-mentor img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .lic-mentors { grid-template-columns: 1fr; } }

/* --- 5 шагов --- */
.lic-steps__head { max-width: 640px; margin-bottom: var(--sp-7); }
.lic-steps__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.lic-step { border: 1px solid var(--c-border-soft); border-radius: var(--r-lg); padding: var(--sp-5); background: var(--c-bg); }
.lic-step__n { font-family: var(--font-display); font-size: 44px; line-height: 1; color: var(--c-accent-soft); }
.lic-step__t { text-transform: uppercase; font-weight: 700; font-size: 16px; color: var(--c-ink); margin: var(--sp-4) 0 var(--sp-3); }
@media (max-width: 960px) { .lic-steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .lic-steps__grid { grid-template-columns: 1fr; } }

/* ---------- intl-tel-input: подгонка под форму ---------- */
.field .iti { display: block; width: 100%; }
.field .iti .input { width: 100%; }
.iti__dropdown-content { z-index: 1300; }
.iti--inline-dropdown .iti__dropdown-content { border-radius: 12px; box-shadow: 0 12px 34px rgba(0,0,0,0.18); }

/* Форма стоит на тёмном фоне (белый текст) — дропдаун и код страны в поле
   наследуют белый color и сливаются с белым фоном. Возвращаем тёмный цвет. */
.iti__dropdown-content { color: var(--c-ink); }
.iti__country-name { color: var(--c-ink); }
.iti__selected-dial-code { color: var(--c-ink); }

/* iOS: поле поиска страны в дропдауне телефона — тоже >=16px */
.iti__search-input { font-size: 16px; color: var(--c-ink); }

/* ---------- Главная: отзывы (сторис-формат 9:16) ---------- */
.reviews__scroller { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin-top: var(--sp-6); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }
.reviews__scroller::-webkit-scrollbar { height: 5px; }
.reviews__scroller::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 999px; }
.reviews__row { display: flex; gap: var(--sp-4); width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-bottom: var(--sp-3); }
.rev-card { position: relative; flex: 0 0 auto; width: clamp(220px, 22vw, 264px); aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: #dce9f0; cursor: pointer; scroll-snap-align: start; box-shadow: var(--shadow-card); transition: transform var(--ease), box-shadow var(--ease); }
.rev-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,30,45,0.16); }
.rev-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--c-accent); }
.rev-card__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rev-card--video .rev-card__media { object-position: center; }
.rev-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--c-btn); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(10,22,32,0.28); transition: transform var(--ease), background var(--ease); }
.rev-card:hover .rev-card__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.rev-card__play svg { width: 30px; height: 30px; margin-left: 3px; }
.rev-card__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; display: flex; flex-direction: column; gap: 2px; text-align: left; background: linear-gradient(0deg, rgba(12,24,34,0.82) 0%, rgba(12,24,34,0.32) 55%, transparent 100%); color: #fff; }
.rev-card__cap b { font-size: 15px; font-weight: 700; line-height: 1.2; text-shadow: 0 1px 6px rgba(10,22,32,0.6); }
.rev-card__cap i { font-style: normal; font-size: 12.5px; line-height: 1.25; color: rgba(255,255,255,0.86); text-shadow: 0 1px 6px rgba(10,22,32,0.6); }

/* Лайтбокс отзыва */
.rev-lb { position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 28px); padding: clamp(12px, 3vw, 40px); background: rgba(8,16,24,0.86); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.rev-lb[hidden] { display: none; }
.rev-lb__stage { position: relative; height: min(88vh, 780px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--r-lg); overflow: hidden; background: #0c1822; box-shadow: 0 20px 60px rgba(0,0,0,0.5); display: flex; }
.rev-lb__stage video, .rev-lb__stage img { width: 100%; height: 100%; object-fit: contain; background: #0c1822; }
.rev-lb__close { position: absolute; top: clamp(10px, 2vw, 22px); right: clamp(10px, 2vw, 22px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; font-size: 30px; line-height: 1; display: grid; place-items: center; transition: background var(--ease); }
.rev-lb__close:hover { background: rgba(255,255,255,0.28); }
.rev-lb__nav { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.14); color: #fff; display: grid; place-items: center; transition: background var(--ease); }
.rev-lb__nav:hover { background: rgba(255,255,255,0.3); }
.rev-lb__nav svg { width: 24px; height: 24px; }
.rev-lb__nav[disabled] { opacity: 0.3; pointer-events: none; }

@media (max-width: 640px) {
  .rev-card { width: 74vw; }
  .rev-lb__nav { position: absolute; bottom: 18px; z-index: 3; width: 46px; height: 46px; background: rgba(255,255,255,0.2); }
  .rev-lb__nav--prev { left: 16px; }
  .rev-lb__nav--next { right: 16px; }
  .rev-lb__stage { height: min(82vh, 720px); }
}
