/* ==========================================================================
   Путь дракона — wayofadragon.com
   Тёмная премиальная тема. Без внешних шрифтов и библиотек:
   всё локально, чтобы CSP оставался узким (см. _headers).
   ========================================================================== */

:root{
  --bg:          #08090d;
  --bg-2:        #0e1016;
  --surface:     rgba(255,255,255,.045);
  --surface-2:   rgba(255,255,255,.07);
  --line:        rgba(255,255,255,.10);
  --line-strong: rgba(255,255,255,.18);

  --text:        #f2f3f5;
  --text-dim:    #a8adb8;
  --text-faint:  #70757f;

  --accent:      #e4443a;   /* киноварь — красный дракона */
  --accent-soft: #ff6a5e;
  --gold:        #e9c46a;
  --gold-dim:    #b9933f;

  --radius:      18px;
  --radius-sm:   12px;
  --maxw:        1200px;

  --shadow:      0 24px 60px rgba(0,0,0,.55);
  --ease:        cubic-bezier(.22,.61,.36,1);

  color-scheme: dark;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion:reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img,svg,video{ max-width:100%; height:auto; display:block; }

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

:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
  border-radius:4px;
}

.wrap{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:20px; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

/* ---------- типографика ---------- */

h1,h2,h3,h4{ margin:0; line-height:1.12; letter-spacing:-.02em; font-weight:700; }

.h-section{
  font-size:clamp(28px,4.4vw,48px);
  margin-bottom:12px;
}
.h-card{ font-size:clamp(19px,2.2vw,24px); line-height:1.25; }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold);
  margin-bottom:18px;
}
.eyebrow::before{
  content:""; width:28px; height:1px;
  background:linear-gradient(90deg,var(--gold),transparent);
}

.lead{ color:var(--text-dim); font-size:clamp(16px,1.6vw,19px); max-width:62ch; }

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

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px; padding:13px 26px;
  border:1px solid transparent; border-radius:999px;
  font:inherit; font-weight:600; font-size:15px;
  cursor:pointer; text-align:center;
  transition:transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }

.btn--primary{
  background:linear-gradient(135deg,var(--accent),#b8291f);
  color:#fff;
  box-shadow:0 10px 30px rgba(228,68,58,.32);
}
.btn--primary:hover{ box-shadow:0 16px 40px rgba(228,68,58,.44); }

.btn--gold{
  background:linear-gradient(135deg,var(--gold),var(--gold-dim));
  color:#1a1206;
  box-shadow:0 10px 30px rgba(233,196,106,.22);
}

.btn--ghost{
  background:var(--surface);
  border-color:var(--line-strong);
  color:var(--text);
  backdrop-filter:blur(8px);
}
.btn--ghost:hover{ background:var(--surface-2); border-color:var(--gold); }

.btn--sm{ min-height:40px; padding:9px 18px; font-size:14px; }

.lbl-short{ display:none; }
.btn--block{ width:100%; }

.link-arrow{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:600; font-size:15px; color:var(--gold);
}
.link-arrow svg{ transition:transform .25s var(--ease); flex:none; }
.link-arrow:hover svg{ transform:translateX(5px); }

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

.topbar{
  display:none;
  border-bottom:1px solid var(--line);
  background:#05060a;
  font-size:13px; color:var(--text-dim);
}
.topbar__in{ display:flex; flex-wrap:wrap; gap:8px 28px; align-items:center; justify-content:flex-end; padding-block:9px; }
.topbar b{ color:var(--text); font-weight:600; }
.topbar a:hover{ color:var(--gold); }
@media (min-width:900px){ .topbar{ display:block; } }

.header{
  position:sticky; top:0; z-index:60;
  background:rgba(8,9,13,.72);
  backdrop-filter:blur(18px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:border-color .3s, background-color .3s;
}
.header.is-stuck{ border-bottom-color:var(--line); background:rgba(8,9,13,.92); }
.header__in{ display:flex; align-items:center; gap:20px; min-height:70px; }

.logo{ display:flex; align-items:center; gap:12px; flex:none; }
.logo__mark{ width:38px; height:38px; flex:none; }
.logo__text{
  font-size:17px; font-weight:700; line-height:1.05; letter-spacing:-.01em;
  text-transform:uppercase;
}
.logo__text span{ display:block; color:var(--accent-soft); font-size:12.5px; letter-spacing:.22em; }

.nav{ display:none; margin-left:auto; gap:4px; }
.nav a{
  padding:9px 15px; border-radius:999px; font-size:15px; font-weight:500; color:var(--text-dim);
  transition:color .2s, background-color .2s;
}
.nav a:hover{ color:var(--text); background:var(--surface); }
@media (min-width:900px){ .nav{ display:flex; } }

.header__cta{ display:none; margin-left:14px; }
@media (min-width:1060px){ .header__cta{ display:inline-flex; } }

.burger{
  margin-left:auto; width:46px; height:46px; flex:none;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
  cursor:pointer;
}
.burger span{ display:block; width:18px; height:2px; background:var(--text); border-radius:2px; position:relative; transition:.3s var(--ease); }
.burger span::before,.burger span::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text); border-radius:2px; transition:.3s var(--ease);
}
.burger span::before{ top:-6px; }
.burger span::after{ top:6px; }
.burger[aria-expanded="true"] span{ background:transparent; }
.burger[aria-expanded="true"] span::before{ top:0; transform:rotate(45deg); }
.burger[aria-expanded="true"] span::after{ top:0; transform:rotate(-45deg); }
@media (min-width:900px){ .burger{ display:none; } }

.drawer{
  position:fixed; inset:0; z-index:70;
  background:rgba(5,6,10,.97);
  backdrop-filter:blur(10px);
  padding:92px 24px 40px;
  overflow-y:auto;
  transform:translateY(-100%);
  transition:transform .4s var(--ease);
}
.drawer.is-open{ transform:translateY(0); }
.drawer__close{
  position:absolute; top:22px; right:24px; width:46px; height:46px;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:12px;
  color:var(--text); cursor:pointer; font-size:30px; line-height:1;
}
.drawer__close:hover{ background:var(--surface-2); }
@media (min-width:900px){ .drawer__close{ display:none; } }
.drawer a.drawer__link{
  display:block; padding:16px 0; border-bottom:1px solid var(--line);
  font-size:21px; font-weight:600;
}
.drawer__phones{ margin-top:28px; display:grid; gap:14px; font-size:15px; color:var(--text-dim); }
.drawer__phones b{ display:block; color:var(--text); font-size:18px; }
.drawer .btn{ margin-top:28px; }

/* ---------- hero ---------- */

/* Первый экран должен читаться целиком, без прокрутки. Поэтому размеры здесь
   зависят не только от ширины окна, но и от его высоты: на низком ноутбучном
   экране заголовок и отступы ужимаются, на большом мониторе — нет. */
.hero{ position:relative; overflow:hidden; padding:clamp(28px,5vh,72px) 0 clamp(32px,5vh,72px); }
.hero__bg{ position:absolute; inset:0; z-index:0; pointer-events:none; }
.hero__bg::before,.hero__bg::after{ content:""; position:absolute; border-radius:50%; filter:blur(90px); }
.hero__bg::before{
  width:60vw; height:60vw; max-width:760px; max-height:760px;
  top:-22%; right:-16%;
  background:radial-gradient(circle,rgba(228,68,58,.30),transparent 68%);
}
.hero__bg::after{
  width:48vw; height:48vw; max-width:620px; max-height:620px;
  bottom:-26%; left:-12%;
  background:radial-gradient(circle,rgba(233,196,106,.16),transparent 70%);
}
.hero__grid{
  position:absolute; inset:0;
  background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 35%,#000,transparent 75%);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 35%,#000,transparent 75%);
  opacity:.5;
}

/* ── Первый экран главной: фотография вместо градиентных пятен ──────────
   Снимок лежит фоном на самой секции, поверх — затемняющая шторка, иначе
   белый заголовок теряется в подсвеченных облаках. Два файла: широкий для
   десктопа и вертикальный для телефона — на узком экране широкий кадр
   обрезался бы до неузнаваемости. */
.hero--photo{
  background-image:url(img/hero/hero-tall.jpg?v=d7acb29e07ac);
  background-size:cover; background-position:50% 18%; background-repeat:no-repeat;
  background-color:var(--bg);
}
@media (min-width:760px){
  .hero--photo{ background-image:url(img/hero/hero-wide.jpg?v=394e45484183); background-position:72% 42%; }
}
/* Фотография сама по себе светлая и пёстрая, поэтому у текста своя подложка.
   На телефоне тянем её сверху вниз, на широком экране — слева направо:
   в обоих случаях затемняется ровно та часть, где лежит текст. */
.hero--photo .hero__bg::before,
.hero--photo .hero__bg::after{ opacity:.45; }
.hero__shade{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg,rgba(8,9,13,.90) 0%,rgba(8,9,13,.70) 28%,rgba(8,9,13,.52) 56%,rgba(8,9,13,.86) 100%),
    radial-gradient(ellipse 125% 55% at 16% 24%,rgba(8,9,13,.62),transparent 74%);
}
@media (min-width:760px){
  .hero__shade{
    background:
      linear-gradient(90deg,rgba(8,9,13,.95) 0%,rgba(8,9,13,.88) 32%,rgba(8,9,13,.55) 58%,rgba(8,9,13,.28) 100%),
      linear-gradient(180deg,rgba(8,9,13,.55) 0%,transparent 28%,transparent 72%,rgba(8,9,13,.72) 100%);
  }
}
/* Красные диагональные росчерки по краям — как на эскизе. */
.hero__rays{
  position:absolute; inset:0; overflow:hidden;
  background:
    linear-gradient(112deg,transparent 0 6%,rgba(228,68,58,.55) 6.4%,transparent 7%),
    linear-gradient(112deg,transparent 0 11%,rgba(228,68,58,.28) 11.3%,transparent 12%),
    linear-gradient(248deg,transparent 0 5%,rgba(228,68,58,.42) 5.4%,transparent 6%);
  mask-image:linear-gradient(90deg,#000 0 22%,transparent 42%,transparent 58%,#000 78% 100%);
  -webkit-mask-image:linear-gradient(90deg,#000 0 22%,transparent 42%,transparent 58%,#000 78% 100%);
  opacity:.8;
}
.hero__in{ position:relative; z-index:1; }

.hero__title{
  font-size:clamp(42px,min(10vw,13vh),120px);
  font-weight:800; line-height:.92; letter-spacing:-.035em; text-transform:uppercase;
  margin-bottom:clamp(12px,2.2vh,22px);
}
.hero--photo .hero__title{ text-shadow:0 4px 34px rgba(0,0,0,.65); }
.hero--photo .hero__tag{ text-shadow:0 2px 18px rgba(0,0,0,.8); }
.hero--photo .hero__sub{ color:var(--text); opacity:.84; text-shadow:0 2px 16px rgba(0,0,0,.8); }
@media (max-width:759px){
  /* вертикальный кадр светлее в середине, чем широкий, поэтому подписям
     нужна более плотная тень — иначе серый текст тонет в подсветке дракона */
  .hero--photo .hero__tag{ text-shadow:0 2px 10px rgba(0,0,0,.95),0 0 26px rgba(0,0,0,.8); }
  .hero--photo .hero__sub{ opacity:.9; text-shadow:0 2px 10px rgba(0,0,0,.95),0 0 26px rgba(0,0,0,.8); }
}
/* ── Первый экран страницы услуги с фотографией ────────────────────────
   Снимок лежит фоном на самой секции, поверх — та же затемняющая шторка,
   что на главной. Адрес файла задаётся здесь, а не в разметке: inline-стили
   запрещены CSP, поэтому в сборщик передаётся только имя оформления.
   Кадр один на все экраны, меняется точка привязки: на телефоне в него
   попадает узкая вертикальная полоса, и выбрана она так, чтобы в полосе
   осталось главное. */
.hero--shot{
  background-size:cover; background-repeat:no-repeat;
  background-color:var(--bg);
}
/* Градиентные пятна из обычного первого экрана поверх фотографии только
   мутят картинку — приглушаем, совсем убирать не нужно, они держат
   фирменный красно-золотой подсвет. */
.hero--shot .hero__bg::before,
.hero--shot .hero__bg::after{ opacity:.4; }
.hero--shot .crumbs,
.hero--shot .hero__title--inner{ text-shadow:0 3px 22px rgba(0,0,0,.8); }
.hero--shot .hero__sub{
  color:var(--text); opacity:.92; text-shadow:0 2px 16px rgba(0,0,0,.9);
}
/* Плашки «город · даты» почти прозрачные: на светлом небе золото по золоту
   не читается, поэтому под ними своя тёмная подложка. */
.hero--shot .hero__meta span{
  background:rgba(8,9,13,.62); border-color:rgba(233,196,106,.5);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}

.hero--shot-ai{
  background-image:url(img/soberi-svoyu-ii-komandu/hero.webp?v=d466f9c1b88f);
  background-position:52% 50%;
}
@media (min-width:760px){
  .hero--shot-ai{ background-position:50% 50%; }
}

.hero--shot-turnkey{
  background-image:url(img/biznes-tur-v-kitaj-pod-klyuch/hero.jpg?v=365cf10a419f);
  background-position:78% 50%;
}
@media (min-width:760px){
  .hero--shot-turnkey{ background-position:50% 50%; }
}

.hero--shot-canton{
  background-image:url(img/tur-na-kantonskuyu-vystavku/hero.jpg?v=8a6a7c0920cd);
  background-position:65% 50%;
}
@media (min-width:760px){
  .hero--shot-canton{ background-position:50% 50%; }
}

.hero--shot-kyrgyzstan{
  background-image:url(img/business-tour-kyrgyzstan/hero.jpg?v=cfc7004797fa);
  background-position:55% 50%;
}
@media (min-width:760px){
  .hero--shot-kyrgyzstan{ background-position:50% 50%; }
}

.hero--shot-future{
  background-image:url(img/china-future-camp/hero.jpg?v=2a8edb75cc39);
  background-position:75% 50%;
}
@media (min-width:760px){
  .hero--shot-future{ background-position:50% 50%; }
}

.hero--shot-guides{
  background-image:url(img/guides-hero.jpg?v=b4abae5ad3ad);
  background-position:78% 50%;
}
@media (min-width:760px){
  .hero--shot-guides{ background-position:50% 50%; }
}

.hero--shot-route{
  background-image:url(img/prorabotka-marshruta/hero.jpg?v=ba9accda9d7f);
  background-position:78% 50%;
}
@media (min-width:760px){
  .hero--shot-route{ background-position:50% 50%; }
}

.hero--shot-tech{
  background-image:url(img/tekhnologicheskii-biznes-tur/hero.jpg?v=8befc7c8659e);
  background-position:88% 50%;
}
@media (min-width:760px){
  .hero--shot-tech{ background-position:50% 50%; }
}

.hero--shot-furniture{
  background-image:url(img/china-interior-furniture-tour/hero.jpg?v=2e4e918f1d6a);
  background-position:68% 50%;
}
@media (min-width:760px){
  .hero--shot-furniture{ background-position:50% 50%; }
}

.hero--shot-design{
  background-image:url(img/design-china/hero.jpg?v=70102f413efd);
  background-position:68% 50%;
}
@media (min-width:760px){
  .hero--shot-design{ background-position:50% 50%; }
}

.hero--shot-korea{
  background-image:url(img/biznes-tur-v-yuzhnuyu-koreyu/hero.jpg?v=6bff111f2aa1);
  background-position:72% 50%;
}
@media (min-width:760px){
  .hero--shot-korea{ background-position:50% 50%; }
}

/* Бьюти-тур: Гуанчжоу на закате — мост Лиде и подсвеченная Кантонская башня.
   На телефоне кадр сдвинут вправо, чтобы в узкую полосу попала башня,
   на широком экране опущен вниз — к огням набережной. */
.hero--shot-beauty{
  background-image:url(img/beauty-business-tour-china/hero.jpg?v=5e140bccf540);
  background-position:62% 50%;
}
@media (min-width:760px){
  .hero--shot-beauty{ background-position:50% 62%; }
}

.hero__title em{
  display:block; font-style:normal;
  background:linear-gradient(100deg,var(--gold) 0%,#fff 45%,var(--accent-soft) 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero__tag{ font-size:clamp(17px,min(2.4vw,3.1vh),26px); font-weight:600; color:var(--text); margin-bottom:8px; }
.hero__sub{ color:var(--text-dim); font-size:clamp(15px,1.6vw,18px); margin-bottom:clamp(18px,3vh,32px); }

.hero__pillars{
  display:grid; gap:12px; margin:0 0 clamp(20px,3.4vh,36px); padding:0; list-style:none;
  grid-template-columns:1fr;
}
@media (min-width:760px){ .hero__pillars{ grid-template-columns:repeat(3,1fr); } }
.hero__pillars li{
  padding:clamp(14px,2vh,20px); border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(160deg,var(--surface),transparent);
  font-size:14.5px; line-height:1.5; color:var(--text-dim);
}
/* Поверх фотографии плоская подложка просвечивает, поэтому здесь карточки
   «стеклянные»: затемнение с размытием позади текста. */
.hero--photo .hero__pillars li{
  background:linear-gradient(160deg,rgba(18,20,28,.80),rgba(10,11,16,.62));
  border-color:rgba(255,255,255,.14);
  backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:start;
}
.hero--photo .hero__pillars b{ grid-column:2; }
.hero--photo .hero__pillars li > :not(.hero__ico):not(b){ grid-column:2; }
.hero__ico{
  grid-row:1 / span 2; display:grid; place-items:center;
  width:44px; height:44px; border-radius:12px; color:var(--gold);
  border:1px solid rgba(233,196,106,.32); background:rgba(233,196,106,.08);
}
.hero__pillars b{ display:block; color:var(--gold); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; margin-bottom:8px; font-weight:700; }

.hero__actions{ display:flex; flex-wrap:wrap; gap:12px; }

/* На телефоне три карточки-колонки занимают почти весь экран, поэтому здесь
   они без «коробочной» подложки: тонкая линия слева вместо рамки и padding. */
@media (max-width:639px){
  .hero{ padding-top:16px; padding-bottom:28px; }
  .hero__tag{ margin-bottom:6px; }
  .hero__sub{ margin-bottom:14px; }
  .hero__pillars{ gap:0; margin-bottom:18px; }
  .hero__pillars li{
    padding:8px 0 8px 14px;
    border:0; border-left:2px solid rgba(233,196,106,.45); border-radius:0;
    background:none;
    font-size:14px; line-height:1.45;
  }
  .hero__pillars b{ margin-bottom:3px; font-size:11px; }
  /* Первый экран на телефоне: прайс-лист занимает всю ширину первой
     строкой, под ним три мессенджера значками в равных долях. Так набор
     занимает две строки вместо трёх и не выталкивает экран за сгиб. */
  .hero__actions{ display:flex; flex-wrap:wrap; gap:10px; }
  .hero__actions .btn{ min-height:48px; padding:11px 18px; font-size:14.5px; }
  .hero__actions .btn--primary{ flex:1 0 100%; }
  .hero__actions .btn--ghost{
    flex:1 1 0; min-width:0; padding:0; justify-content:center;
  }
  /* Подписи прячем обе: и длинную, и короткую. Текст остаётся
     в разметке и продублирован в aria-label — для экранных дикторов. */
  .hero__actions .btn--ghost .lbl-long,
  .hero__actions .btn--ghost .lbl-short{
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap;
  }
  .hero__actions .btn--ghost .btn__ico{ width:21px; height:21px; }
  .hero__actions .btn--ghost .btn__max{ font-size:13.5px; }
}

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

.section{ padding:clamp(56px,8vw,110px) 0; position:relative; }
.section--alt{ background:var(--bg-2); border-block:1px solid var(--line); }
.section__head{ max-width:760px; margin-bottom:clamp(32px,4vw,56px); }

/* ---------- анонсы ---------- */

.rail{
  display:grid; grid-auto-flow:column; grid-auto-columns:minmax(290px,330px);
  gap:18px; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:18px; margin-inline:-20px; padding-inline:20px;
  scrollbar-width:thin;
}
.rail > *{ scroll-snap-align:start; }
.rail::-webkit-scrollbar{ height:6px; }
.rail::-webkit-scrollbar-thumb{ background:var(--line-strong); border-radius:999px; }

.event{
  display:flex; flex-direction:column; gap:14px;
  padding:24px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.055),rgba(255,255,255,.012));
  transition:border-color .3s, transform .3s var(--ease);
}
.event:hover{ border-color:var(--gold-dim); transform:translateY(-4px); }
.event__date{
  align-self:flex-start; padding:7px 14px; border-radius:999px;
  background:rgba(228,68,58,.14); border:1px solid rgba(228,68,58,.34);
  color:var(--accent-soft); font-size:13px; font-weight:700; letter-spacing:.02em;
}
.event__title{ font-size:18px; font-weight:700; line-height:1.3; }
.event__text{ font-size:14.5px; color:var(--text-dim); }
.event__text em{ font-style:normal; color:var(--gold); }
.event > .link-arrow{ margin-top:auto; }

/* ---------- сетка услуг ---------- */

.cards{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:640px){ .cards{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .cards{ grid-template-columns:repeat(3,1fr); } }

.card{
  position:relative; display:flex; flex-direction:column; gap:12px;
  padding:26px 24px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  transition:border-color .3s, transform .3s var(--ease), background-color .3s;
}
.card:hover{ border-color:var(--line-strong); transform:translateY(-4px); }
.card__num{
  font-size:12px; font-weight:700; letter-spacing:.12em; color:var(--text-faint);
  font-variant-numeric:tabular-nums;
}
.card__title{ font-size:18px; font-weight:650; line-height:1.3; }
.card__note{ font-size:14.5px; color:var(--text-dim); }
.card > .link-arrow{ margin-top:auto; padding-top:6px; }

/* ---------- раскрытые услуги ---------- */

.svc{
  scroll-margin-top:92px;
  padding:clamp(26px,3.4vw,44px);
  border:1px solid var(--line); border-radius:calc(var(--radius) + 4px);
  background:linear-gradient(150deg,rgba(255,255,255,.05),rgba(255,255,255,.01));
}
.svc + .svc{ margin-top:18px; }
.svc__title{ font-size:clamp(22px,2.8vw,32px); margin-bottom:22px; }
.svc__title::after{
  content:""; display:block; width:56px; height:3px; margin-top:16px; border-radius:2px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
}
.svc__steps{ list-style:none; margin:0 0 26px; padding:0; display:grid; gap:16px; }
@media (min-width:900px){ .svc__steps{ grid-template-columns:repeat(3,1fr); gap:22px; } }
.svc__steps li{
  position:relative; padding-left:30px;
  font-size:15.5px; color:var(--text-dim);
}
.svc__steps li::before{
  content:"→"; position:absolute; left:0; top:0;
  color:var(--accent-soft); font-weight:700;
}
.svc__bullets{ list-style:none; margin:0 0 26px; padding:0; display:grid; gap:12px; }
@media (min-width:760px){ .svc__bullets{ grid-template-columns:repeat(2,1fr); } }
.svc__bullets li{ position:relative; padding-left:28px; font-size:15.5px; color:var(--text-dim); }
.svc__bullets li::before{
  content:""; position:absolute; left:4px; top:9px; width:7px; height:7px; border-radius:50%;
  background:var(--gold);
}
.svc__body{ color:var(--text-dim); font-size:15.5px; margin:0 0 20px; max-width:78ch; }
.svc__actions{ display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- преимущества ---------- */

.feats{ display:grid; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
@media (min-width:640px){ .feats{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .feats{ grid-template-columns:repeat(3,1fr); } }
.feat{
  background:var(--bg-2); padding:26px 24px;
  display:flex; gap:16px; align-items:flex-start;
  font-size:15.5px; color:var(--text);
}
.feat svg{ flex:none; color:var(--gold); margin-top:2px; }

/* ---------- telegram ---------- */

.tg{
  display:grid; gap:28px; align-items:center;
  padding:clamp(28px,4vw,52px);
  border:1px solid var(--line); border-radius:calc(var(--radius) + 6px);
  background:radial-gradient(100% 160% at 0% 0%,rgba(42,171,238,.16),transparent 60%),var(--bg-2);
}
@media (min-width:900px){ .tg{ grid-template-columns:1.1fr .9fr; gap:48px; } }
.tg h2{ font-size:clamp(22px,2.6vw,30px); margin-bottom:14px; }
.tg__list{ list-style:none; margin:0 0 26px; padding:0; display:grid; gap:10px; }
.tg__list li{ position:relative; padding-left:26px; color:var(--text-dim); font-size:15.5px; }
.tg__list li::before{ content:"◆"; position:absolute; left:0; color:#2aabee; font-size:11px; top:4px; }

/* ---------- отзывы ---------- */

.slider{ position:relative; }

.quotes{
  display:grid; grid-auto-flow:column;
  grid-auto-columns:100%;
  gap:18px; overflow-x:auto; scroll-snap-type:x mandatory;
  margin-inline:-20px; padding:4px 20px 8px;
  scrollbar-width:none;
}
.quotes::-webkit-scrollbar{ display:none; }
.quotes > *{ scroll-snap-align:center; }
.quotes:focus-visible{ outline:2px solid var(--gold); outline-offset:4px; border-radius:var(--radius); }

/* Колонка всегда во всю ширину ленты: на экране ровно один отзыв, соседние
   не выглядывают. Ширина задана одним значением, а не minmax(): у minmax()
   с фиксированным максимумом базовый размер равен минимуму, и в ленте без
   свободного места колонки схлопнулись бы по содержимому. */

.quote{
  display:flex; flex-direction:column; gap:16px;
  /* читать строку во весь монитор неудобно — ограничиваем и центрируем */
  width:100%; max-width:760px; margin-inline:auto;
  min-height:320px;
  padding:clamp(28px,4vw,44px); border:1px solid var(--line); border-radius:calc(var(--radius) + 4px);
  background:linear-gradient(165deg,rgba(255,255,255,.055),rgba(255,255,255,.012));
}
.quote::before{
  content:"«"; font-size:72px; line-height:.6; color:var(--accent); opacity:.5; font-family:Georgia,serif;
}
.quote p{ margin:0; font-size:clamp(15.5px,1.5vw,17.5px); color:var(--text-dim); }
.quote footer{ margin-top:auto; padding-top:8px; font-weight:700; color:var(--gold); font-size:16px; }

.slider__bar{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin-top:22px;
}
.slider__btn{
  width:48px; height:48px; flex:none;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line-strong); border-radius:50%;
  color:var(--text); cursor:pointer;
  transition:border-color .25s, color .25s, background-color .25s, opacity .25s;
}
.slider__btn:hover:not(:disabled){ border-color:var(--gold); color:var(--gold); }
.slider__btn:disabled{ opacity:.3; cursor:default; }
.slider__count{
  font-size:15px; color:var(--text-faint); font-variant-numeric:tabular-nums;
  min-width:62px; text-align:center;
}
.slider__count b{ color:var(--text); font-weight:700; }

/* ---------- видеоотзывы ---------- */

.videos{ display:grid; gap:18px; grid-template-columns:1fr; margin-top:22px; }
@media (min-width:760px){ .videos{ grid-template-columns:repeat(2,1fr); } }

.video{ margin:0; display:flex; flex-direction:column; gap:12px; }
.video iframe{
  width:100%; aspect-ratio:16/9; height:auto;
  border:1px solid var(--line); border-radius:var(--radius);
  background:#000; display:block;
}
.video figcaption{ font-size:14px; color:var(--text-faint); }


/* ---------- статьи ---------- */

.posts{ display:grid; gap:16px; grid-template-columns:1fr; }
@media (min-width:640px){ .posts{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .posts{ grid-template-columns:repeat(4,1fr); } }
.post{
  display:flex; flex-direction:column; gap:14px; justify-content:space-between;
  padding:26px 22px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--bg-2);
  transition:border-color .3s, transform .3s var(--ease);
}
.post:hover{ border-color:var(--gold-dim); transform:translateY(-4px); }
.post h3{ font-size:17.5px; line-height:1.32; font-weight:650; }

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

.form{ display:grid; gap:16px; }
.field{ display:grid; gap:7px; }
.field > label{ font-size:13.5px; font-weight:600; color:var(--text-dim); }
.req{ color:var(--accent-soft); }

.input,.textarea,.select{
  width:100%; min-height:48px; padding:12px 15px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line-strong); border-radius:var(--radius-sm);
  color:var(--text); font:inherit; font-size:15.5px;
  transition:border-color .2s, background-color .2s;
}
.textarea{ min-height:108px; resize:vertical; }
.input::placeholder,.textarea::placeholder{ color:var(--text-faint); }
.input:focus,.textarea:focus,.select:focus{ border-color:var(--gold); background:rgba(255,255,255,.07); outline:none; }
.input:user-invalid,.textarea:user-invalid{ border-color:var(--accent); }

.phone-row{ display:grid; grid-template-columns:104px 1fr; gap:10px; }

.check{
  display:grid; grid-template-columns:22px 1fr; gap:12px; align-items:start;
  font-size:13.5px; color:var(--text-dim); line-height:1.5; cursor:pointer;
}
.check input{
  width:22px; height:22px; margin:0; accent-color:var(--accent); cursor:pointer;
}
.check a{ color:var(--gold); text-decoration:underline; text-underline-offset:2px; }

/* honeypot: ловушка для ботов — человек её не видит и не доберётся табом */
.hp{
  position:absolute !important; left:-9999px !important;
  width:1px !important; height:1px !important; opacity:0 !important;
  pointer-events:none;
}

.form__msg{ font-size:14px; min-height:20px; }
.form__msg--ok{ color:#53d08a; }
.form__msg--err{ color:var(--accent-soft); }

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

.contacts{ display:grid; gap:36px; }
@media (min-width:980px){ .contacts{ grid-template-columns:1fr 1fr; gap:56px; } }

.contact-block{ display:grid; gap:22px; }
.contact-card{
  padding:24px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(160deg,var(--surface),transparent);
}
.contact-card h3{ font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; }
.contact-card a{ color:var(--text); }
.contact-card a:hover{ color:var(--gold); }
.contact-card__phone{ display:block; font-size:21px; font-weight:700; letter-spacing:-.01em; margin-bottom:6px; }
.contact-card p{ margin:0; color:var(--text-dim); font-size:15px; }

.form-panel{
  padding:clamp(24px,3vw,38px);
  border:1px solid var(--line); border-radius:calc(var(--radius) + 4px);
  background:var(--bg-2);
}
.form-panel h2{ font-size:clamp(22px,2.6vw,30px); margin-bottom:10px; }
.form-panel > p{ color:var(--text-dim); font-size:15px; margin:0 0 24px; }

/* ---------- футер ---------- */

.footer{ background:#05060a; border-top:1px solid var(--line); padding:clamp(48px,6vw,80px) 0 32px; font-size:14.5px; }
.footer__top{ display:grid; gap:34px; }
@media (min-width:880px){ .footer__top{ grid-template-columns:1.2fr 1fr 1fr; gap:48px; } }
.footer h3{ font-size:12.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:16px; }
.footer p{ margin:0 0 10px; color:var(--text-dim); }
.footer a{ color:var(--text-dim); }
.footer a:hover{ color:var(--gold); }
.footer strong{ color:var(--text); font-weight:650; }
.legal{ margin-top:38px; padding-top:26px; border-top:1px solid var(--line); display:grid; gap:14px; color:var(--text-faint); font-size:13px; }
.legal__row{ display:flex; flex-wrap:wrap; gap:8px 22px; align-items:center; }
.legal a{ color:var(--text-dim); }

.socials{ display:flex; flex-wrap:wrap; gap:10px; margin-top:6px; }
.socials a{
  width:42px; height:42px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:12px; color:var(--text-dim);
  transition:border-color .25s, color .25s, transform .25s var(--ease);
}
.socials a:hover{ border-color:var(--gold); color:var(--gold); transform:translateY(-3px); }

/* ---------- плавающие кнопки ---------- */

.float{
  position:fixed; right:16px; bottom:16px; z-index:50;
  display:grid; gap:10px;
}
.float a{
  width:52px; height:52px; display:grid; place-items:center;
  border-radius:50%; color:#fff;
  box-shadow:0 10px 26px rgba(0,0,0,.5);
  transition:transform .25s var(--ease);
}
.float a:hover{ transform:scale(1.08); }
.float__tg{ background:#2aabee; }
.float__max{ background:linear-gradient(135deg,#7b5cff,#4b2fd6); font-weight:700; font-size:13px; }

/* ---------- модальные окна ---------- */

.modal{
  position:fixed; inset:0; z-index:90;
  display:grid; place-items:center;
  padding:20px;
  background:rgba(4,5,8,.82);
  backdrop-filter:blur(6px);
  opacity:0; visibility:hidden;
  transition:opacity .3s, visibility .3s;
}
.modal.is-open{ opacity:1; visibility:visible; }
.modal__box{
  width:100%; max-width:560px; max-height:88vh; overflow-y:auto;
  padding:clamp(24px,3vw,36px);
  background:var(--bg-2); border:1px solid var(--line-strong);
  border-radius:calc(var(--radius) + 6px); box-shadow:var(--shadow);
  transform:translateY(16px) scale(.98);
  transition:transform .35s var(--ease);
}
.modal.is-open .modal__box{ transform:none; }
.modal__box--wide{ max-width:860px; }
.modal__head{ display:flex; align-items:flex-start; gap:16px; margin-bottom:8px; }
.modal__head h2{ font-size:clamp(20px,2.4vw,26px); }
.modal__close{
  margin-left:auto; flex:none; width:40px; height:40px;
  display:grid; place-items:center;
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  color:var(--text); font-size:20px; line-height:1; cursor:pointer;
}
.modal__close:hover{ border-color:var(--accent); color:var(--accent-soft); }
.modal__box > p.modal__note{ color:var(--text-dim); font-size:15px; margin:0 0 22px; }

/* ---------- cookie ---------- */

.cookie{
  position:fixed; left:16px; right:16px; bottom:16px; z-index:80;
  display:none; gap:16px; align-items:center; flex-wrap:wrap;
  max-width:760px; margin-inline:auto;
  padding:18px 20px;
  background:rgba(14,16,22,.97); border:1px solid var(--line-strong);
  border-radius:var(--radius); box-shadow:var(--shadow);
  font-size:14px; color:var(--text-dim);
}
.cookie.is-open{ display:flex; }
.cookie p{ margin:0; flex:1 1 280px; }
.cookie a{ color:var(--gold); text-decoration:underline; }
.cookie__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* ---------- текстовые страницы (политика, оферта, 404) ---------- */

.doc{ padding:clamp(40px,6vw,88px) 0; }
.doc__inner{ max-width:820px; }
.doc h1{ font-size:clamp(28px,4vw,44px); margin-bottom:14px; }
.doc__meta{ color:var(--text-faint); font-size:14px; margin-bottom:40px; }
.doc h2{
  font-size:clamp(20px,2.4vw,26px); margin:44px 0 16px; padding-top:22px;
  border-top:1px solid var(--line);
}
.doc h3{ font-size:17px; margin:28px 0 12px; color:var(--gold); }
.doc p{ color:var(--text-dim); font-size:15.5px; margin:0 0 14px; }
.doc ul{ margin:0 0 18px; padding-left:22px; color:var(--text-dim); font-size:15.5px; }
.doc li{ margin-bottom:9px; }
.doc table{ width:100%; border-collapse:collapse; margin:0 0 22px; font-size:14.5px; }
.doc th,.doc td{ border:1px solid var(--line); padding:12px 14px; text-align:left; vertical-align:top; color:var(--text-dim); }
.doc th{ background:var(--surface); color:var(--text); font-weight:650; }
.doc__scroll{ overflow-x:auto; }
.doc .back{ display:inline-flex; margin-bottom:32px; }

.err{ min-height:70vh; display:grid; place-items:center; text-align:center; padding:60px 20px; }
.err__code{
  font-size:clamp(84px,20vw,200px); font-weight:800; line-height:.9; letter-spacing:-.05em;
  background:linear-gradient(140deg,var(--accent),var(--gold));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ---------- появление при прокрутке ---------- */

.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .btn:hover,.card:hover,.event:hover,.post:hover,.socials a:hover,.float a:hover{ transform:none; }
}

.video-title{ margin-top:46px; }
.err__lead{ margin-inline:auto; margin-block:18px 28px; }
.err__actions{ justify-content:center; }

/* ==========================================================================
   Внутренние страницы услуг
   ========================================================================== */

/* Первый экран внутренней страницы занимает почти всю высоту окна, а не узкую
   полосу. Вычитаем шапку: на широких экранах над ней ещё строка с телефонами.
   min-height, а не height — если текст длиннее, блок просто вырастет.
   svh вместо vh: на телефоне vh считается по экрану без адресной строки,
   и первый экран уезжал бы под неё. */
.hero--inner{
  display:flex; align-items:center;
  min-height:calc(100vh - 70px);
  min-height:calc(100svh - 70px);
  padding:clamp(32px,6vh,80px) 0;
}
@media (min-width:900px){
  .hero--inner{
    min-height:calc(100vh - 111px);
    min-height:calc(100svh - 111px);
  }
}
.hero--inner .hero__in{ width:100%; }

.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  font-size:13.5px; color:var(--text-faint); margin-bottom:22px;
}
.crumbs a:hover{ color:var(--gold); }
.crumbs [aria-current]{ color:var(--text-dim); }

/* Заголовок услуги — это предложение, а не короткий лозунг:
   набирать его размером главной страницы нельзя. */
.hero__title--inner{
  font-size:clamp(28px,min(4.4vw,6vh),54px);
  line-height:1.1; text-transform:none; letter-spacing:-.02em;
  max-width:19ch;
}
.hero--inner .hero__sub{ font-size:clamp(16px,1.8vw,21px); max-width:62ch; }

.prose{ max-width:72ch; }
.prose p{ color:var(--text-dim); font-size:clamp(16px,1.7vw,19px); margin:0 0 16px; }
.prose p:last-child{ margin-bottom:0; }

.cta{
  margin-top:clamp(28px,4vw,44px);
  padding:clamp(24px,3.4vw,40px);
  border:1px solid var(--line); border-radius:calc(var(--radius) + 6px);
  background:
    radial-gradient(120% 140% at 0% 0%,rgba(228,68,58,.16),transparent 60%),
    var(--bg-2);
}
.cta p{ margin:0 0 22px; color:var(--text-dim); font-size:clamp(16px,1.7vw,18.5px); max-width:72ch; }

.pull{
  margin:clamp(28px,4vw,44px) auto 0; max-width:60ch; text-align:center;
  font-size:clamp(18px,2.2vw,26px); font-weight:600; line-height:1.4;
  color:var(--text);
}

.steps{ counter-reset:step; list-style:none; margin:0; padding:0; display:grid; gap:14px; }
@media (min-width:760px){ .steps{ grid-template-columns:repeat(2,1fr); } }
.steps > li{
  counter-increment:step;
  position:relative; padding:24px 24px 24px 74px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
}
.steps > li::before{
  content:counter(step);
  position:absolute; left:24px; top:22px;
  width:34px; height:34px; display:grid; place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),#b8291f);
  color:#fff; font-weight:700; font-size:15px;
}
.steps > li > h3{ font-size:17.5px; font-weight:650; margin-bottom:8px; }
.steps p{ margin:0; color:var(--text-dim); font-size:15px; }

@media (min-width:1100px){ .videos--three{ grid-template-columns:repeat(3,1fr); } }

.float__wa{ background:#25d366; }

/* ---------- фотографии на страницах услуг ---------- */

.split{ display:grid; gap:clamp(24px,3.4vw,44px); align-items:center; }
@media (min-width:900px){ .split{ grid-template-columns:1.05fr .95fr; } }

.shot{ margin:0; }
.shot img{
  width:100%; height:auto; display:block;
  border:1px solid var(--line); border-radius:calc(var(--radius) + 4px);
  background:var(--bg-2);
}
.shot figcaption{ margin-top:10px; font-size:14px; color:var(--text-faint); }

.photos{ display:grid; gap:16px; grid-template-columns:1fr; margin-top:clamp(28px,4vw,44px); }
@media (min-width:640px){ .photos{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .photos{ grid-template-columns:repeat(3,1fr); } }
.photos .shot img{ aspect-ratio:4/3; object-fit:cover; }

/* один видеоотзыв — не растягиваем на всю ширину, иначе он подавляет страницу */
.videos--one{ grid-template-columns:1fr; max-width:760px; }

/* ---------- QR и кнопка в блоке Telegram ---------- */

.tg__cta{ display:grid; justify-items:center; align-content:center; gap:18px; }

/* QR показываем только на десктопе: с телефона его нечем сканировать —
   там работает кнопка. */
.tg__qr{ display:none; margin:0; text-align:center; }
@media (min-width:900px){ .tg__qr{ display:block; } }

.tg__qr img{
  width:220px; height:220px; display:block;
  /* QR читается только на светлом фоне и с полями вокруг: стандарт просит
     «тихую зону» примерно в четыре модуля, отсюда такой padding */
  padding:24px; background:#fff; border-radius:var(--radius);
}
.tg__qr figcaption{ margin-top:10px; font-size:13.5px; color:var(--text-faint); }

.tg__cta .btn{ min-width:220px; }

/* ---------- шаги с иконками ---------- */

.steps--icons{ counter-reset:none; }
@media (min-width:1000px){ .steps--icons{ grid-template-columns:repeat(3,1fr); } }
.steps--icons > li{ padding:26px 24px; }
.steps--icons > li::before{ content:none; }
.steps--icons img{
  width:56px; height:56px; margin-bottom:16px;
  /* иконки — белая графика на прозрачном фоне, на тёмной теме приглушаем
     до золотого акцента, чтобы не спорили с заголовками */
  opacity:.9;
}

/* ---------- сетки фотографий ---------- */

.photos--three{ grid-template-columns:1fr; }
@media (min-width:640px){ .photos--three{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .photos--three{ grid-template-columns:repeat(3,1fr); } }

/* внутри .split отступ сверху не нужен, самостоятельным блоком — нужен */
.photos--pair{ grid-template-columns:1fr; }
.split .photos--pair{ margin-top:0; }
@media (min-width:480px){ .photos--pair{ grid-template-columns:repeat(2,1fr); } }

.svc__bullets--one{ grid-template-columns:1fr; }
@media (min-width:760px){ .svc__bullets--one{ grid-template-columns:1fr; } }

.section__head--mt{ margin-top:clamp(40px,6vw,76px); }

/* ---------- таблица-расписание ---------- */

.table-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); }
.schedule{ width:100%; border-collapse:collapse; font-size:15.5px; min-width:420px; }
.schedule tr + tr{ border-top:1px solid var(--line); }
.schedule th{
  text-align:left; white-space:nowrap; font-weight:700; color:var(--gold);
  padding:16px 20px; font-variant-numeric:tabular-nums; width:1%;
  background:rgba(255,255,255,.03);
}
.schedule td{ padding:16px 20px; color:var(--text-dim); }

/* ---------- снимок документа ---------- */

.shot--doc img{
  /* светлый скрин на тёмном фоне: даём белую подложку и поля,
     иначе края документа сливаются с границей блока */
  background:#fff; padding:10px;
}

/* ---------- простые нумерованные шаги ---------- */

.steps--plain > li{ padding:22px 24px 22px 74px; }
.steps--plain h3{ margin:0; font-size:17px; }

/* ---------- список стран ---------- */

.countries{ list-style:none; margin:0; padding:0; display:grid; gap:12px; grid-template-columns:1fr; }
@media (min-width:640px){ .countries{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .countries{ grid-template-columns:repeat(3,1fr); } }
.countries li{
  display:flex; align-items:center; gap:14px;
  padding:16px 20px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  font-size:15.5px; color:var(--text);
}
.flag{ font-size:24px; line-height:1; flex:none; }

.apec-list{ margin:0 0 14px; padding-left:22px; color:var(--text-dim); font-size:15.5px; columns:2; column-gap:28px; }
@media (max-width:520px){ .apec-list{ columns:1; } }
.apec-list li{ margin-bottom:7px; break-inside:avoid; }
.note{ margin:0; font-size:13.5px; color:var(--text-faint); }
.lead--mt{ margin-top:14px; }

/* ---------- плитки с фактами ---------- */

.facts{ display:grid; gap:16px; align-content:start; }
.fact{
  padding:24px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(160deg,var(--surface),transparent);
}
.fact b{ display:block; font-size:clamp(26px,3vw,34px); color:var(--gold); line-height:1.1; margin-bottom:8px; }
.fact span{ color:var(--text-dim); font-size:15px; }

.facts--row{ margin-top:clamp(24px,3vw,36px); grid-template-columns:1fr; }
@media (min-width:640px){ .facts--row{ grid-template-columns:repeat(2,1fr); } }

.section--tight{ padding-block:clamp(28px,4vw,52px); }
.shot--wide img{ max-height:460px; object-fit:cover; }

/* ---------- риски и решения ---------- */

.compare{ display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width:900px){ .compare{ grid-template-columns:repeat(2,1fr); } }
.compare__col{
  padding:clamp(24px,3vw,34px); border:1px solid var(--line); border-radius:calc(var(--radius) + 4px);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
}
.compare__col h3{ font-size:19px; margin-bottom:18px; }
.compare__col--risk h3{ color:var(--accent-soft); }
.compare__col--fix h3{ color:#53d08a; }
.compare__col ul{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.compare__col li{ display:grid; grid-template-columns:24px 1fr; gap:12px; font-size:15.5px; color:var(--text-dim); }

.mark{ font-size:15px; line-height:1.5; }

.checks{ list-style:none; margin:0; padding:0; display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:860px){ .checks{ grid-template-columns:repeat(2,1fr); } }
.checks li{
  display:grid; grid-template-columns:24px 1fr; gap:12px; align-items:start;
  padding:18px 20px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.045),rgba(255,255,255,.01));
  font-size:15.5px; color:var(--text-dim);
}

/* ---------- карточка услуги с ценой ---------- */

.price-card{
  display:flex; flex-direction:column; gap:12px;
  padding:26px 24px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  transition:border-color .3s, transform .3s var(--ease);
}
.price-card:hover{ border-color:var(--line-strong); transform:translateY(-4px); }
.price{ margin:0; font-size:14.5px; color:var(--text-faint); }
.price b{ color:var(--gold); font-size:16px; }
.dots{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.dots li{ position:relative; padding-left:18px; font-size:15px; color:var(--text-dim); }
.dots li::before{ content:"•"; position:absolute; left:2px; color:var(--accent-soft); }

.price-card__sub{ margin:0; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-faint); }

/* ---------- цифры ---------- */

.stats{ display:grid; gap:16px; grid-template-columns:repeat(2,1fr); }
@media (min-width:860px){ .stats{ grid-template-columns:repeat(5,1fr); } }
.stat{
  padding:24px 20px; border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(160deg,var(--surface),transparent); text-align:center;
}
.stat b{
  display:block; font-size:clamp(30px,3.6vw,42px); line-height:1; margin-bottom:10px;
  background:linear-gradient(140deg,var(--gold),var(--accent-soft));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-variant-numeric:tabular-nums;
}
.stat span{ font-size:14px; color:var(--text-dim); }

.price-card__img{ width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:var(--radius-sm); margin-bottom:4px; }

.price-card--wide{ display:grid; gap:clamp(20px,3vw,36px); align-items:start; padding:clamp(24px,3.4vw,40px); }
@media (min-width:900px){ .price-card--wide{ grid-template-columns:1.25fr .75fr; } }
.price-card--wide + .price-card--wide{ margin-top:18px; }
.price-card--wide:hover{ transform:none; }
.dots--num{ counter-reset:d; }
.dots--num li::before{ counter-increment:d; content:counter(d) "."; font-weight:700; }
.stats--four{ grid-template-columns:repeat(2,1fr); }
@media (min-width:860px){ .stats--four{ grid-template-columns:repeat(4,1fr); } }

/* Кнопки под текстовым блоком: нужен отступ, иначе они прилипают к списку.
   Класс reveal на них обязателен — соседний блок появляется со сдвигом на 22px,
   и без общей анимации кнопки на мгновение оказываются под ним. */
.svc__actions--block{ margin-top:clamp(28px,4vw,44px); }

/* ---------- карточка «картинка сверху, тезис под ней» ---------- */

.cards--four{ grid-template-columns:1fr; }
@media (min-width:640px){ .cards--four{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1100px){ .cards--four{ grid-template-columns:repeat(4,1fr); } }

.card--photo{ padding:0; overflow:hidden; gap:0; }
.card--photo img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.card--photo .card__title{ padding:20px 22px 24px; font-size:17.5px; }

.svc__steps--one{ grid-template-columns:1fr; }
@media (min-width:900px){ .svc__steps--one{ grid-template-columns:1fr; gap:16px; } }

.checks--one{ grid-template-columns:1fr; }
@media (min-width:860px){ .checks--one{ grid-template-columns:1fr; } }

/* шаги с длинным текстом — в одну колонку, иначе строки рвутся */
.steps--wide{ grid-template-columns:1fr; }
@media (min-width:760px){ .steps--wide{ grid-template-columns:1fr; } }
.steps--wide > li::before{ content:none; }
.steps--wide{ counter-reset:none; }
.steps--wide > li{ padding:26px 28px; }
.steps--wide h3{ color:var(--gold); font-size:13px; letter-spacing:.14em; text-transform:uppercase; margin-bottom:12px; }

.facts--grid{ grid-template-columns:1fr; }
@media (min-width:640px){ .facts--grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1000px){ .facts--grid{ grid-template-columns:repeat(3,1fr); } }
.facts--grid .fact b{ font-size:clamp(19px,2.2vw,24px); }

.card__icon{ font-size:30px; line-height:1; }
.steps--compact > li{ padding:16px 20px 16px 64px; }
.steps--compact > li::before{ top:14px; left:18px; width:30px; height:30px; font-size:14px; }
.steps--compact h3{ font-size:15.5px; font-weight:500; color:var(--text-dim); }
@media (min-width:1000px){ .steps--compact{ grid-template-columns:repeat(2,1fr); } }

.dots--mt{ margin-top:14px; margin-bottom:22px; }
.checks--mt{ margin-top:14px; }
.split--mt{ margin-top:clamp(28px,4vw,44px); }
.price-card__note{ margin:0; font-size:14.5px; color:var(--text-dim); display:grid; grid-template-columns:24px 1fr; gap:10px; }

/* два снимка в колонку рядом с текстом */
.photos--stack{ margin-top:0; grid-template-columns:1fr; gap:16px; }
.photos--stack .shot img{ aspect-ratio:3/2; object-fit:cover; }

.countries--plain li{ justify-content:flex-start; font-size:15px; padding:14px 18px; }

/* перечень товарных категорий внутри карточки потока */
.dots--cats{ margin-top:6px; }
.dots--cats li{ font-size:14.5px; }
@media (min-width:520px){ .dots--cats{ columns:2; column-gap:24px; } .dots--cats li{ break-inside:avoid; } }

/* в дне программы может быть несколько абзацев — разделяем их */
.steps > li p + p{ margin-top:10px; }

/* ==========================================================================
   Онлайн-консультант
   ========================================================================== */

.chat-fab{
  position:fixed; right:16px; bottom:16px; z-index:85;
  width:58px; height:58px; display:grid; place-items:center;
  border:none; border-radius:50%; cursor:pointer;
  background:linear-gradient(135deg,var(--gold),var(--accent));
  box-shadow:0 12px 30px rgba(0,0,0,.5);
  transition:transform .25s var(--ease);
}
.chat-fab:hover{ transform:scale(1.06); }
.chat-fab__ava{
  font-weight:800; font-size:21px; color:#1a1408; line-height:1;
}
.chat-fab__x{ display:none; color:#1a1408; }
.chat-open .chat-fab__ava{ display:none; }
.chat-open .chat-fab__x{ display:block; }

/* кнопки мессенджеров поднимаются, чтобы не налезать на чат */
body.has-chat .float{ bottom:88px; }

.chat-hint{
  position:fixed; right:84px; bottom:24px; z-index:84;
  max-width:260px; padding:14px 34px 14px 16px;
  background:var(--bg-2); color:var(--text);
  border:1px solid var(--line-strong); border-radius:16px 16px 4px 16px;
  box-shadow:var(--shadow); cursor:pointer; font-size:14px; line-height:1.45;
}
.chat-hint__text{ margin:0; }
.chat-hint__x{
  position:absolute; top:6px; right:8px;
  background:none; border:none; color:var(--text-faint);
  font-size:17px; line-height:1; cursor:pointer; padding:4px;
}
.chat-hint__x:hover{ color:var(--text); }
@media (max-width:520px){ .chat-hint{ display:none; } }

.chat-panel{
  position:fixed; right:16px; bottom:86px; z-index:86;
  width:360px; max-width:calc(100vw - 32px);
  max-height:min(74vh,580px);
  display:flex; flex-direction:column; overflow:hidden;
  background:var(--bg-2); border:1px solid var(--line-strong);
  border-radius:20px; box-shadow:var(--shadow);
}
.chat-panel[hidden]{ display:none; }

.chat-head{
  display:flex; align-items:center; gap:12px; padding:14px 14px 13px;
  background:linear-gradient(135deg,rgba(233,196,106,.16),rgba(228,68,58,.10));
  border-bottom:1px solid var(--line);
}
.chat-head__ava{
  width:40px; height:40px; flex:none; display:grid; place-items:center; border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--accent));
  color:#1a1408; font-weight:800; font-size:17px;
}
.chat-head__who{ flex:1 1 auto; min-width:0; }
.chat-head__who b{ display:block; font-size:15px; }
.chat-head__who i{
  display:flex; align-items:center; gap:6px;
  font-style:normal; font-size:11.5px; color:var(--text-faint); margin-top:3px;
}
.chat-head__dot{
  width:7px; height:7px; border-radius:50%; background:#53d08a; flex:none;
  box-shadow:0 0 0 3px rgba(83,208,138,.18);
}
.chat-head__btn{
  flex:none; width:30px; height:30px; display:grid; place-items:center;
  background:none; border:none; color:var(--text-faint); cursor:pointer; border-radius:8px;
}
.chat-head__btn:hover{ color:var(--text); background:var(--surface); }

.chat-body{
  flex:1 1 auto; overflow-y:auto; padding:16px 14px;
  display:flex; flex-direction:column; gap:10px;
  scrollbar-width:thin;
}
.chat-msg{
  max-width:86%; padding:10px 14px; border-radius:16px;
  font-size:14.5px; line-height:1.5; white-space:pre-wrap; word-break:break-word;
}
.chat-msg a{ color:var(--gold); text-decoration:underline; text-underline-offset:2px; }
.chat-msg--bot{
  align-self:flex-start; background:var(--surface-2); color:var(--text);
  border-bottom-left-radius:5px;
}
.chat-msg--me{
  align-self:flex-end; color:#fff; border-bottom-right-radius:5px;
  background:linear-gradient(135deg,var(--accent),#b8291f);
}
.chat-msg--system{
  align-self:center; max-width:100%; text-align:center;
  background:none; color:var(--accent-soft); font-size:13.5px; padding:4px 0;
}

.chat-typing{ align-self:flex-start; display:flex; gap:5px; padding:12px 14px; }
.chat-typing span{
  width:7px; height:7px; border-radius:50%; background:var(--text-faint);
  animation:chatdot 1.2s infinite;
}
.chat-typing span:nth-child(2){ animation-delay:.18s; }
.chat-typing span:nth-child(3){ animation-delay:.36s; }
@keyframes chatdot{ 0%,60%,100%{ opacity:.25; } 30%{ opacity:1; } }
@media (prefers-reduced-motion:reduce){ .chat-typing span{ animation:none; opacity:.5; } }

.chat-mats{ display:grid; gap:7px; align-self:flex-start; max-width:86%; }
.chat-mats a{
  padding:9px 13px; border:1px solid var(--line-strong); border-radius:12px;
  font-size:13.5px; color:var(--text); background:var(--surface);
}
.chat-mats a:hover{ border-color:var(--gold); color:var(--gold); }

.chat-chips{ display:flex; flex-wrap:wrap; gap:7px; padding:0 14px 12px; }
.chat-chips[hidden]{ display:none; }
.chat-chips button{
  padding:8px 13px; border:1px solid var(--line-strong); border-radius:999px;
  background:var(--surface); color:var(--text-dim);
  font:inherit; font-size:13px; cursor:pointer;
}
.chat-chips button:hover{ border-color:var(--gold); color:var(--text); }

.chat-form{
  display:flex; align-items:flex-end; gap:8px;
  padding:12px 14px; border-top:1px solid var(--line);
}
.chat-input{
  flex:1 1 auto; resize:none; max-height:120px;
  padding:10px 13px; border:1px solid var(--line-strong); border-radius:14px;
  background:rgba(255,255,255,.04); color:var(--text);
  font:inherit; font-size:14.5px; line-height:1.45;
}
.chat-input:focus{ outline:none; border-color:var(--gold); }
.chat-send{
  flex:none; width:40px; height:40px; display:grid; place-items:center;
  border:none; border-radius:50%; cursor:pointer; color:#fff;
  background:linear-gradient(135deg,var(--accent),#b8291f);
}
.chat-send:disabled{ opacity:.45; cursor:default; }

/* ловушка для ботов */
.chat-hp{
  position:absolute !important; left:-9999px !important;
  width:1px !important; height:1px !important; opacity:0 !important;
}

.chat-disc{
  margin:0; padding:0 14px 13px;
  font-size:11.5px; line-height:1.45; color:var(--text-faint);
}

/* Открытая панель чата занимает тот же угол, что и кнопки мессенджеров —
   на время разговора убираем их, иначе они оказываются под панелью. */
body.chat-open .float{ display:none; }

.chat-demo{
  margin:0; padding:9px 14px; font-size:12px; line-height:1.4;
  color:var(--gold); background:rgba(233,196,106,.10);
  border-bottom:1px solid var(--line);
}
.chat-demo[hidden]{ display:none; }

/* Карточка со снимком сверху и списком под ним — «Кому подойдёт», «Форматы
   работы», «Где действует программа». Отличается от .card--photo тем, что
   под заголовком идёт список, поэтому отступы живут в .card__body. */
.card--shot{ padding:0; overflow:hidden; gap:0; }
.card--shot img{ width:100%; aspect-ratio:4/3; object-fit:cover; display:block; }
.card__body{ display:flex; flex-direction:column; gap:12px; padding:24px 24px 26px; }

/* Итоговая строка в конце раздела. */
.pullout{
  margin:clamp(28px,4vw,44px) auto 0; max-width:760px; text-align:center;
  font-size:clamp(17px,2vw,21px); line-height:1.45; font-weight:600;
  color:var(--text); text-wrap:balance;
}
.pullout::before{
  content:""; display:block; width:48px; height:2px; margin:0 auto 18px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
}

/* «Где и когда» под заголовком страницы тура. Город и даты ищут первым делом,
   поэтому они вынесены из текста в отдельную строку-плашку. */
.hero__meta{
  display:flex; flex-wrap:wrap; gap:8px;
  margin:clamp(16px,2vw,22px) 0 0;
}
.hero__meta-break{ display:none; }
@media (min-width:760px){
  .hero__meta span.hero__meta-break{
    display:block; flex-basis:100%; width:100%; height:0;
    padding:0; border:0; background:transparent; backdrop-filter:none;
  }
}
.hero__meta span{
  padding:8px 16px; border-radius:999px;
  border:1px solid rgba(233,196,106,.38);
  background:rgba(233,196,106,.09);
  color:var(--gold); font-weight:650;
  font-size:clamp(13.5px,1.5vw,15.5px); letter-spacing:.02em;
  white-space:nowrap;
}

/* Программа тура по дням. Каждый день — отдельная карточка с крупным номером
   и датой в шапке; расписание внутри идёт лентой времени с точками, чтобы день
   читался как последовательность событий, а не как сплошной абзац. */
.days{ display:grid; gap:clamp(18px,2.4vw,26px); }

.day{
  position:relative; overflow:hidden;
  border:1px solid var(--line-strong); border-radius:var(--radius);
  background:
    linear-gradient(180deg,rgba(228,68,58,.07),rgba(228,68,58,0) 160px),
    linear-gradient(165deg,rgba(255,255,255,.055),rgba(255,255,255,.015));
}
/* тонкая полоса сверху — она отбивает карточки друг от друга даже на беглом взгляде */
.day::before{
  content:""; position:absolute; inset:0 0 auto; height:3px;
  background:linear-gradient(90deg,var(--accent),var(--gold));
}

.day__head{
  display:flex; align-items:flex-start; gap:clamp(14px,2vw,20px);
  padding:clamp(22px,3vw,28px) clamp(20px,3vw,30px) clamp(18px,2.2vw,22px);
  border-bottom:1px solid var(--line);
}
.day__num{
  flex:none; width:clamp(48px,6vw,60px); height:clamp(48px,6vw,60px);
  display:grid; place-items:center; border-radius:14px;
  background:linear-gradient(135deg,var(--accent),#b8291f);
  color:#fff; font-weight:700; font-size:clamp(19px,2.3vw,23px);
  font-variant-numeric:tabular-nums; letter-spacing:-.02em;
}
.day__date{
  display:block; color:var(--gold); font-size:13px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; margin-bottom:7px;
}
.day__title{ font-size:clamp(18px,2vw,22px); font-weight:650; line-height:1.28; }

.day__body{ padding:clamp(20px,2.6vw,26px) clamp(20px,3vw,30px) clamp(22px,3vw,28px); }
.day .shot{ margin:0 0 clamp(20px,2.4vw,24px); }
.day .shot img{
  aspect-ratio:16/7; object-fit:cover; border-radius:calc(var(--radius) - 8px);
}

/* На широком экране расписание и снимок стоят рядом: слева время, справа фото.
   В разметке figure идёт первой — так на узком экране снимок остаётся сверху,
   а здесь его переставляет сетка. */
@media (min-width:900px){
  .day__body--split{
    display:grid; align-items:start;
    grid-template-columns:1fr clamp(260px,30%,380px);
    gap:clamp(24px,3vw,34px);
  }
  .day__body--split .shot{ grid-column:2; grid-row:1; margin:0; }
  .day__body--split .shot img{ aspect-ratio:4/3; }
  .day__body--split .sched{ grid-column:1; grid-row:1; }
}

/* Лента времени: вертикальная линия слева и точка у каждого события. */
.sched{ list-style:none; margin:0; padding:0; position:relative; }
.sched::before{
  content:""; position:absolute; left:4px; top:9px; bottom:9px; width:1px;
  background:linear-gradient(180deg,rgba(233,196,106,.45),rgba(233,196,106,.08));
}
.sched__row{
  position:relative; padding:0 0 clamp(16px,2vw,20px) 26px;
  display:grid; gap:3px 20px;
}
.sched__row:last-child{ padding-bottom:0; }
.sched__row::before{
  content:""; position:absolute; left:0; top:7px; width:9px; height:9px;
  border-radius:50%; background:var(--gold);
  box-shadow:0 0 0 3px rgba(233,196,106,.14);
}
@media (min-width:760px){
  .sched__row{ grid-template-columns:130px 1fr; }
  /* Строка без времени — продолжение предыдущего события, а не новое.
     Колонку времени оставляем пустой, текст ставим во вторую: иначе абзац
     начинается под временем и выбивается из столбца описаний. */
  .sched:not(.sched--plain) .sched__row--note .sched__what{ grid-column:2; }
  /* В расписании, где времени нет вовсе, отступ под пустую колонку не нужен. */
  .sched--plain .sched__row--note{ grid-template-columns:1fr; }
}
.sched__time{
  color:var(--gold); font-weight:650; font-size:14.5px;
  font-variant-numeric:tabular-nums; white-space:nowrap; padding-top:1px;
}
.sched__what{ color:var(--text-dim); font-size:15.5px; line-height:1.55; }
.sched__what .dots{ margin-top:9px; }

/* День без времени (например «Реализация и контракты») — точка не нужна,
   это не момент расписания, а описание дня целиком. */
.sched__row--note::before{ content:none; }
/* Точки у такой строки нет, но отбивка под ленту сохраняется, чтобы текст
   стоял в один край с остальными. Сбрасываем её только там, где ленты нет. */
.sched--plain .sched__row--note{ padding-left:0; }
.sched--plain::before{ content:none; }

/* Номер дня бывает не однозначным: в технологическом туре выставка занимает
   два дня подряд и карточка подписана «03–04». Для таких меток квадрат
   превращается в прямоугольник по содержимому. */
.day__num--wide{ width:auto; min-width:clamp(48px,6vw,60px); padding:0 14px; }

/* День, описанный сплошным абзацем, а не почасовым расписанием
   (бьюти-тур: на источнике время по часам не расписано). */
.day__text{ margin:0; color:var(--text-dim); font-size:15.5px; line-height:1.6; }

/* Иконки внутри кнопок первого экрана. */
.btn__ico, .btn__arrow{ flex:none; }
.btn__arrow{ margin-left:2px; }
.btn__max{
  flex:none; font-size:12px; font-weight:800; letter-spacing:.02em;
  text-transform:lowercase; opacity:.9;
}

/* На телефоне карточки идут без «коробки», но иконка остаётся — она держит
   ритм колонки и повторяет эскиз. */
@media (max-width:639px){
  /* выше для телефона задан gap:0 — со «стеклянными» карточками он нужен */
  .hero--photo .hero__pillars{ gap:8px; }
  .hero--photo .hero__pillars li{
    background:linear-gradient(160deg,rgba(18,20,28,.80),rgba(10,11,16,.62));
    border:1px solid rgba(255,255,255,.12); border-radius:14px;
    padding:11px 13px; column-gap:11px;
    font-size:13.5px; line-height:1.4;
  }
  .hero__ico{ width:34px; height:34px; border-radius:9px; }
  .hero__ico svg{ width:19px; height:19px; }
}

/* ── Вопросы и ответы ───────────────────────────────────────────────────
   На <details>: раскрытие делает сам браузер, без скриптов. Значит, блок
   работает и с отключённым JS, и CSP расширять не нужно.
   Строка вопроса оформлена как кнопка: рамка, наведение, круглый значок
   «плюс» справа — иначе непонятно, что по ней надо щёлкнуть. */
.faq{ display:grid; gap:10px; }
.faq__item{
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  transition:border-color .3s, background-color .3s;
  overflow:hidden;
}
.faq__item:hover{ border-color:rgba(233,196,106,.42); }
.faq__item[open]{
  border-color:rgba(233,196,106,.5);
  background:linear-gradient(165deg,rgba(233,196,106,.07),rgba(255,255,255,.015));
}
.faq__item summary{
  display:flex; align-items:center; gap:16px; cursor:pointer;
  padding:clamp(15px,2vw,19px) clamp(16px,2.2vw,22px);
  font-size:16px; font-weight:600; line-height:1.4; color:var(--text);
  list-style:none; user-select:none;
  transition:color .25s, background-color .25s;
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__item summary:hover{ color:var(--gold); background:rgba(255,255,255,.03); }
.faq__item summary:focus-visible{ outline:2px solid var(--gold); outline-offset:-3px; }
/* Круглая кнопка со знаком «плюс». Обе палочки — отдельными псевдоэлементами
   внутри значка, чтобы вертикальную можно было убрать при раскрытии. */
.faq__sign{
  flex:none; margin-left:auto; position:relative;
  width:30px; height:30px; border-radius:50%;
  border:1px solid rgba(233,196,106,.42); background:rgba(233,196,106,.1);
  transition:background-color .25s, border-color .25s, transform .3s var(--ease);
}
.faq__sign::before,
.faq__sign::after{
  content:""; position:absolute; left:50%; top:50%; background:var(--gold);
  transform:translate(-50%,-50%); transition:opacity .25s, transform .3s var(--ease);
}
.faq__sign::before{ width:13px; height:2px; border-radius:2px; }
.faq__sign::after{ width:2px; height:13px; border-radius:2px; }
.faq__item summary:hover .faq__sign{
  background:rgba(233,196,106,.2); border-color:rgba(233,196,106,.7);
}
.faq__item[open] .faq__sign{ transform:rotate(180deg); }
.faq__item[open] .faq__sign::after{ opacity:0; transform:translate(-50%,-50%) rotate(90deg); }

.faq__answer{
  padding:0 clamp(16px,2.2vw,22px) clamp(17px,2.2vw,21px);
  /* отбивка от вопроса, чтобы ответ не слипался с заголовком */
  margin-left:clamp(16px,2.2vw,22px); margin-right:clamp(16px,2.2vw,22px);
  padding-left:0; padding-right:0;
  border-top:1px solid var(--line);
  color:var(--text-dim); font-size:15.5px; line-height:1.6;
}
.faq__answer p{ margin:12px 0 10px; }
.faq__answer p:last-child{ margin-bottom:0; }

/* Подсказка над списком — чтобы с первого взгляда было ясно, что это
   раскрывающиеся пункты, а не просто заголовки. */
.faq__hint{
  margin:0 0 14px; font-size:14px; color:var(--text-faint);
  display:flex; align-items:center; gap:8px;
}
.faq__hint::before{
  content:""; width:18px; height:18px; flex:none; border-radius:50%;
  border:1px solid rgba(233,196,106,.42); background:rgba(233,196,106,.1);
  background-image:
    linear-gradient(var(--gold),var(--gold)),
    linear-gradient(var(--gold),var(--gold));
  background-size:9px 1.5px, 1.5px 9px;
  background-position:center, center;
  background-repeat:no-repeat, no-repeat;
}

/* В списке «что входит» первым словом идёт сама услуга, дальше пояснение. */
.checks b{ color:var(--text); font-weight:650; }

/* Портрет рядом с текстом: на широком экране снимок слева, список справа. */
.split--portrait{ align-items:start; }
@media (min-width:860px){
  .split--portrait{ grid-template-columns:minmax(220px,300px) 1fr; gap:clamp(24px,3vw,40px); }
}
.shot--portrait img{ aspect-ratio:4/5; object-fit:cover; object-position:50% 20%; }

/* Кнопка во всю ширину карточки тарифа, прижата к низу. */
.card .btn--block{ margin-top:auto; width:100%; }

/* Поездки без фиксированных дат. Подпись «Любое удобное время» — не дата,
   поэтому она оформлена иначе: не красным акцентом, а спокойной плашкой,
   чтобы в ленте не читалась как ещё одно число календаря. */
.event--anytime .event__date{
  color:var(--gold); background:rgba(233,196,106,.1);
  border:1px solid rgba(233,196,106,.3); border-radius:999px;
  padding:4px 12px; display:inline-block;
}

/* ── Карточки университетов ─────────────────────────────────────────────
   Список длинный (15 вузов), поэтому карточка компактная: город плашкой,
   русское название заголовком, под ним оригинальное имя, дальше описание. */
.unis{ display:grid; gap:14px; grid-template-columns:1fr; }
@media (min-width:720px){ .unis{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1150px){ .unis{ grid-template-columns:repeat(3,1fr); } }
.uni{
  display:flex; flex-direction:column; gap:12px;
  padding:clamp(18px,2.2vw,22px);
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  transition:border-color .3s, transform .3s var(--ease);
}
.uni:hover{ border-color:var(--line-strong); transform:translateY(-3px); }
.uni__head{ display:grid; gap:6px; }
.uni__city{
  justify-self:start; padding:3px 10px; border-radius:999px;
  border:1px solid rgba(233,196,106,.3); background:rgba(233,196,106,.1);
  color:var(--gold); font-size:11.5px; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
}
.uni__name{ font-size:17px; font-weight:650; line-height:1.3; }
.uni__orig{ margin:0; font-size:13px; color:var(--text-faint); line-height:1.45; }
.uni__note{ margin:0; font-size:14.5px; line-height:1.55; color:var(--text-dim); }

/* ── Статьи ─────────────────────────────────────────────────────────────
   Текст статьи читают подряд, поэтому колонка уже, чем у страниц услуг:
   длинная строка утомляет глаз. */
.wrap--narrow{ max-width:860px; }
.hero--article{ padding-bottom:clamp(20px,3vh,36px); }
.hero--article .hero__sub{ max-width:70ch; }

.article{ font-size:16.5px; line-height:1.75; color:var(--text-dim); }
.article p{ margin:0 0 18px; }
.article p:last-child{ margin-bottom:0; }
.article__h2{
  margin:clamp(28px,4vw,40px) 0 16px;
  font-size:clamp(20px,2.4vw,26px); font-weight:650; line-height:1.3;
  color:var(--text); letter-spacing:-.01em;
}
.article__list{ counter-reset:a; list-style:none; margin:0 0 20px; padding:0; display:grid; gap:14px; }
.article__list li{
  counter-increment:a; position:relative; padding:0 0 0 46px;
}
.article__list li::before{
  content:counter(a);
  position:absolute; left:0; top:2px;
  width:30px; height:30px; display:grid; place-items:center; border-radius:50%;
  background:rgba(233,196,106,.1); border:1px solid rgba(233,196,106,.32);
  color:var(--gold); font-weight:700; font-size:13.5px;
  font-variant-numeric:tabular-nums;
}
.article__list b{ color:var(--text); font-weight:650; }
/* Абзац о компании в конце статьи — отбит линией, чтобы не путался
   с основным текстом. */
.article__note{
  margin-top:clamp(26px,3.5vw,36px); padding-top:clamp(20px,2.6vw,26px);
  border-top:1px solid var(--line); color:var(--text);
}

/* Список статей в разделе /staty/. На главной блок «База знаний» остаётся
   компактным, а здесь у каждой статьи есть место под аннотацию. */
.posts--list{ grid-template-columns:1fr; gap:16px; }
@media (min-width:820px){ .posts--list{ grid-template-columns:repeat(2,1fr); } }
.post--card{
  display:flex; flex-direction:column; gap:12px;
  padding:clamp(22px,2.8vw,28px);
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(165deg,rgba(255,255,255,.05),rgba(255,255,255,.012));
  transition:border-color .3s, transform .3s var(--ease);
}
.post--card:hover{ border-color:var(--line-strong); transform:translateY(-3px); }
.post__title{ font-size:clamp(18px,2vw,21px); font-weight:650; line-height:1.3; }
.post__title a{ color:var(--text); }
.post__title a:hover{ color:var(--gold); }
.post__lead{ margin:0; color:var(--text-dim); font-size:15px; line-height:1.6; }
.post--card .link-arrow{ margin-top:auto; padding-top:4px; }

/* Ссылка на весь раздел под списком-анонсом.
   Класса reveal у неё намеренно нет: если наблюдатель по какой-то причине
   не сработает, элемент с reveal так и останется прозрачным, а кнопка
   навигации обязана быть видна всегда. */
.section__more{
  margin-top:clamp(34px,4.5vw,52px);
  display:flex; justify-content:center;
}

/* ── Блок кнопок связи на телефоне ──────────────────────────────────────
   Четыре кнопки в столбик занимали пол-экрана и выглядели рваным краем:
   ширина у каждой своя, по длине подписи. На узком экране собираем их
   в одну строку: заявка растягивается на всё свободное место, мессенджеры
   сжимаются до круглых значков. Подписи прячем, но они остаются в разметке
   и продублированы в aria-label — для экранных дикторов и поиска. */
@media (max-width:639px){
  .svc__actions{
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  }
  /* Минимум 140 px у главной кнопки — это и держит раскладку.
     При одной главной кнопке (обычный случай) ей достаётся 182 px,
     и весь ряд вместе с тремя значками умещается в строку.
     Там, где главных кнопок две — а такие блоки на главной есть, —
     они занимают строку вдвоём, а значки переносятся вниз: лучше
     так, чем сминать подписи в столбик по букве. */
  .svc__actions .btn--primary{
    flex:1 1 120px; min-width:120px; padding-inline:14px;
    font-size:14px; white-space:nowrap;
  }
  .svc__actions .btn--ghost{
    flex:0 0 auto; width:44px; min-height:44px; padding:0;
    border-radius:50%; justify-content:center;
  }
  .svc__actions .btn--ghost .btn__label{
    position:absolute; width:1px; height:1px; overflow:hidden;
    clip-path:inset(50%); white-space:nowrap;
  }
  .svc__actions .btn--ghost .btn__ico{ width:20px; height:20px; }
  .svc__actions .btn--ghost .btn__max{ font-size:12px; }
}

/* На очень узких экранах (320–360 px) подпись заявки может не влезть
   рядом с тремя значками — убираем лишние отступы, а не ломаем строку. */
@media (max-width:359px){
  .svc__actions{ gap:6px; }
  .svc__actions .btn--primary{ padding-inline:12px; font-size:14px; }
  .svc__actions .btn--ghost{ width:44px; min-height:44px; }
}

/* Плавающая колонка спрятана, пока на экране первый экран (только телефон).
   Не display:none, а прозрачность со сдвигом — чтобы возвращалась плавно. */
.float--off{
  opacity:0; pointer-events:none; transform:translateX(14px);
}
.float{ transition:opacity .25s var(--ease), transform .25s var(--ease); }
