/* Amber Key — общие стили всех страниц */
/* =========================================================
   TOKENS — цвета взяты из логотипа (золото на чёрном)
   ========================================================= */
:root {
  --ink:        #0b0907;   /* base */
  --ink-deep:   #050403;   /* самая тёмная секция */
  --surface-1:  #110e0b;   /* elevated section */
  --surface-2:  #17130f;   /* card */
  --surface-3:  #1f1a14;   /* floating */
  --gold-100:   #f6e3a8;
  --gold-300:   #e6bd5c;
  --gold-500:   #c9962f;
  --gold-700:   #8a6220;
  --text:       #efe8da;
  --text-muted: #a39a89;
  --text-soft:  #cfc6b5;   /* более светлый текст для длинных описаний */
  --text-dim:   #6f6759;
  --line:       rgba(230, 189, 92, .14);
  --line-soft:  rgba(239, 232, 218, .08);

  --metal: linear-gradient(135deg, #f6e3a8 0%, #e6bd5c 28%, #b8862a 55%, #e9c46a 78%, #a87a24 100%);

  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem;  --s-6: 4rem; --s-7: 6rem;   --s-8: 8rem;

  --r-sm: .75rem; --r-md: 1rem; --r-lg: 1.5rem; --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 58px);
  --container: 1436px;

  --shadow-1: 0 1px 0 rgba(246, 227, 168, .04) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-2: 0 1px 0 rgba(246, 227, 168, .06) inset, 0 24px 60px -20px rgba(0, 0, 0, .75), 0 8px 24px -12px rgba(138, 98, 32, .25);
  --shadow-gold: 0 10px 30px -10px rgba(201, 150, 47, .55), 0 2px 6px -2px rgba(201, 150, 47, .4);

  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--text-muted);
  font-family: 'Onest', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* плёночное зерно поверх всего сайта */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .7 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--gold-500); color: var(--ink); }

.container-x { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Typography ---------- */
/* Засечный шрифт — только для ключевых заголовков (H1 и заголовки секций) */
.h-display, .h-section {
  font-family: 'Cormorant Garamond', serif; font-weight: 500; color: var(--text); font-variant-numeric: lining-nums;
}
.h-card, .stat__num, .panel__count { font-family: 'Onest', sans-serif; color: var(--text); }
.h-display { font-size: clamp(1.9rem, 5.6vw, 4.6rem); line-height: 1; letter-spacing: -.03em; }
.h-section { font-size: clamp(2.05rem, 4.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.03em; }
.h-card    { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }
.gold-text { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--text); font-size: clamp(1.15rem, 1.75vw, 1.55rem); line-height: 1.55; font-family: 'Onest', sans-serif; font-weight: 400; letter-spacing: -.015em; }

/* Перенос строк: без «висячих» одиночных слов в конце абзацев */
p, li, h1, h2, h3, .why-card__desc, .why-card__title, .stat__label, .hero-card__title { text-wrap: pretty; }

/* ---------- Badge (точка + подпись) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem 1rem .4rem .8rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(201, 150, 47, .06);
  color: var(--gold-100); font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2;
}
.badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-300);
  box-shadow: 0 0 0 3px rgba(230, 189, 92, .18), 0 0 12px rgba(230, 189, 92, .7);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .75rem;
  padding: .9rem 1.5rem; border-radius: var(--r-pill);
  font-weight: 500; font-size: .95rem; line-height: 1; white-space: nowrap; cursor: pointer;
  transition: transform .45s var(--ease-spring), opacity .3s ease;
}
.btn .ico { font-size: 1.15rem; transition: transform .45s var(--ease-spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }

.btn-gold { background: var(--metal); color: #1a1206; box-shadow: var(--shadow-gold); }
.btn-gold::after { /* блик */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 250, 230, .55) 50%, transparent 70%);
  transition: opacity .4s ease;
}
.btn-gold:hover::after { opacity: 1; }
.btn-ghost { color: var(--text); border: 1px solid rgba(239, 232, 218, .22); background: rgba(11, 9, 7, .35); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold-300); }
.btn-dark { background: var(--ink); color: var(--gold-100); border: 1px solid var(--line); }

.link-underline {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; padding-top: .7rem; padding-bottom: .6rem;
  color: var(--text); font-weight: 500;
}
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-500);
  transform-origin: left; transition: transform .5s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(.35); }
.link-underline .ico { color: var(--gold-300); transition: transform .45s var(--ease-spring); }
.link-underline:hover .ico { transform: translate(3px, -3px); }
.link-underline:active { opacity: .7; }

/* Золотая линия со свечением — как под словом AMBER KEY в логотипе */
.glow-rule { position: relative; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
.glow-rule::after {
  content: ""; position: absolute; left: 50%; top: -1px; width: 220px; height: 3px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(246, 227, 168, .95), rgba(230, 189, 92, .35) 50%, transparent);
  filter: blur(.5px);
}

/* ---------- Image treatment ---------- */
.media { position: relative; overflow: hidden; background: var(--surface-2); isolation: isolate; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media::before { /* тёплый тон */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #6b4a1a; mix-blend-mode: multiply; opacity: .28;
}
.media::after { /* градиент снизу */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0) 55%);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
/* задержки анимаций: data-d="1" = .1s */
[data-d="08"] { --d: .08s; } [data-d="1"] { --d: .1s; } [data-d="12"] { --d: .12s; } [data-d="15"] { --d: .15s; }
[data-d="16"] { --d: .16s; } [data-d="2"] { --d: .2s; } [data-d="24"] { --d: .24s; } [data-d="3"] { --d: .3s; }
[data-d="4"] { --d: .4s; } [data-d="5"] { --d: .5s; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform .5s var(--ease-out); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding-block: var(--s-3);
  transition: padding .4s var(--ease-out);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(11, 9, 7, .78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: opacity .4s ease;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled .site-header__bar { padding-block: .75rem; }

.brand { display: inline-flex; align-items: center; gap: .9rem; transition: opacity .3s ease; }
.brand:hover { opacity: .85; }
.brand:active { opacity: .7; }
.brand__mono { height: 44px; width: auto; filter: drop-shadow(0 2px 10px rgba(201, 150, 47, .25)); }
.brand__word { height: 13px; width: auto; }

.nav-pill {
  display: none; align-items: center; gap: .25rem; padding: .35rem;
  border-radius: var(--r-pill); border: 1px solid rgba(239, 232, 218, .14);
  background: rgba(11, 9, 7, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-pill > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1rem; border-radius: var(--r-pill);
  color: var(--text); font-size: .95rem; font-weight: 500; line-height: 1;
  transition: opacity .3s ease, transform .3s var(--ease-spring);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--gold-100); }
.nav-link[aria-current="page"] { background: rgba(201, 150, 47, .12); }
.nav-link:active { transform: scale(.97); }
.nav-link .ico { font-size: .9rem; transition: transform .4s var(--ease-spring); }
.has-menu:hover .nav-link .ico, .has-menu:focus-within .nav-link .ico { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 12px); left: 50%; min-width: 320px; padding: .5rem;
  border-radius: var(--r-md); background: var(--surface-3); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .3s ease, transform .45s var(--ease-spring);
}
.dropdown::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .9rem; border-radius: var(--r-sm); color: var(--text); font-size: .95rem; line-height: 1.3;
  transition: background-color .25s ease;
}
.dropdown a .ico { color: var(--gold-300); opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .4s var(--ease-spring); }
.dropdown a:hover { background: rgba(201, 150, 47, .08); }
.dropdown a:hover .ico { opacity: 1; transform: none; }
.dropdown a:active { background: rgba(201, 150, 47, .14); }

.header-cta { display: none; }
.burger {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(239, 232, 218, .2); color: var(--text); background: rgba(11, 9, 7, .45);
  transition: transform .3s var(--ease-spring), border-color .3s ease;
}
.burger:hover { border-color: var(--gold-300); }
.burger:active { transform: scale(.94); }
.burger .ico { font-size: 1.3rem; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-3) var(--gutter) var(--s-5);
  background: radial-gradient(120% 60% at 100% 0%, rgba(201, 150, 47, .14), transparent 60%), var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .35s ease, transform .5s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line-soft);
  font-family: 'Onest', sans-serif; font-weight: 500; font-size: 1.2rem; letter-spacing: -.01em; color: var(--text); line-height: 1.3;
}
.mobile-menu nav a .ico { color: var(--gold-300); font-size: 1.1rem; }
.mobile-menu nav a:active { color: var(--gold-100); }
.mobile-menu__label { margin-top: var(--s-2); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }

@media (min-width: 1100px) {
  .nav-pill { display: flex; }
  .header-cta { display: inline-flex; }
  .burger { display: none; }
}
@media (min-width: 640px) and (max-width: 1099px) { .header-cta { display: inline-flex; } }
@media (max-width: 420px) { .brand__word { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; color: var(--text); isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; transform: scale(1.06); animation: heroZoom 14s var(--ease-out) forwards; }
.hero__bg::before { content: ""; position: absolute; inset: 0; background: #5a3d14; mix-blend-mode: multiply; opacity: .45; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(80% 70% at 15% 75%, rgba(11, 9, 7, .85), transparent 70%),
    radial-gradient(60% 50% at 85% 10%, rgba(201, 150, 47, .14), transparent 70%),
    linear-gradient(to top, rgba(11, 9, 7, .95) 0%, rgba(11, 9, 7, .2) 45%, rgba(11, 9, 7, .55) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }

/* Первый экран занимает всю высоту окна; содержимое прижато к низу,
   поэтому главная кнопка всегда у нижнего края экрана — в зоне большого пальца */
.hero__inner {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(1.75rem, 4.5vh, 3rem);
  padding-top: 6.5rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}
.hero__text { display: grid; gap: clamp(1rem, 2.5vh, 1.5rem); }
.hero__bottom { display: flex; flex-direction: column; gap: 1.25rem; }
.hero__bottom .hero-card { order: -1; }          /* на телефоне карточка выше кнопок */
.hero__title { max-width: 13.5em; }
.hero__title em { font-style: italic; }

/* Кнопки в первом экране: главная золотая + быстрый контакт */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.btn-lg { padding: 1.15rem 1.9rem; font-size: 1rem; }
.hero__contact {
  display: inline-flex; align-items: center; gap: .9rem; color: var(--text);
  transition: opacity .3s ease;
}
.hero__contact-ico {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(230, 189, 92, .45); background: rgba(11, 9, 7, .45); color: var(--gold-100); font-size: 1.25rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .5s var(--ease-spring), border-color .3s ease, background-color .3s ease;
}
/* мягкая «волна» вокруг иконки телефона */
.hero__contact-ico::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold-300);
  opacity: 0; animation: ring 2.8s var(--ease-out) infinite 1.5s;
}
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.55); opacity: 0; } }
.hero__contact-text { display: grid; gap: .15rem; line-height: 1.2; }
.hero__contact-text small { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.hero__contact-text b { font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; }
.hero__contact:hover .hero__contact-ico { transform: scale(1.06); border-color: var(--gold-300); background: rgba(201, 150, 47, .18); }
.hero__contact:active { opacity: .75; }

.hero-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; max-width: 400px; padding: .35rem;
  border-radius: var(--r-lg); border: 1px solid rgba(239, 232, 218, .14);
  background: rgba(23, 19, 15, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
  transition: transform .5s var(--ease-spring), border-color .3s ease;
}
.hero-card:hover { transform: translateY(-4px); border-color: var(--line); }
.hero-card:active { transform: translateY(-1px); }
.hero-card .media { border-radius: calc(var(--r-lg) - .3rem); aspect-ratio: 1 / 1; }
.hero-card:hover .media img { transform: scale(1.06); }
.hero-card__body { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: .5rem .5rem .75rem 0; }
.hero-card__tag { align-self: flex-start; }
.hero-card__title { font-family: 'Onest', sans-serif; font-size: 1.15rem; line-height: 1.3; color: var(--text); font-weight: 500; letter-spacing: -.015em; }
.hero-card__arrow {
  position: absolute; top: .4rem; right: .4rem; display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-sm); border: 1px solid rgba(239, 232, 218, .2); color: var(--gold-100);
  transition: transform .45s var(--ease-spring), border-color .3s ease;
}
.hero-card:hover .hero-card__arrow { transform: rotate(45deg); border-color: var(--gold-300); }
.badge--sm { padding: .3rem .75rem .3rem .6rem; font-size: .8rem; letter-spacing: .1em; }

.hero__lead { max-width: 30rem; color: rgba(239, 232, 218, .82); font-size: 1.05rem; line-height: 1.6; }

/* hero load-in */
.hero .rise { opacity: 0; transform: translateY(24px); animation: rise 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .hero__inner { padding-bottom: clamp(2rem, 5.5vh, 3.25rem); }
  .hero__bottom { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
  .hero__bottom .hero-card { order: 0; flex: none; width: 400px; }
}
@media (max-width: 899px) {
  .hero-card { grid-template-columns: 96px 1fr; }
  .hero-card__title { font-size: 1.05rem; }
}
@media (max-width: 1023px) {
  .svc-card__panel { left: .75rem; right: .75rem; bottom: .75rem; padding: 1.1rem 1rem; min-height: 8.5rem; }
  .svc-card .svc-card__title { font-size: 1.02rem; }
}
@media (max-width: 899px) {
  /* кнопка — последний элемент экрана, контакт над ней */
  .hero__actions { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
  .hero__btn { justify-content: center; width: 100%; padding-block: 1.2rem; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  /* планшет в горизонтальном положении: контакт над кнопкой, кнопка внизу */
  .hero__actions { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; }
}
/* невысокие экраны (маленькие телефоны, телефон в горизонтальном положении) — убираем второстепенное */
@media (max-width: 899px) and (max-height: 700px) { .hero__bottom .hero-card { display: none; } }
@media (max-height: 520px) {
  .hero__lead, .hero-card { display: none; }
  .hero__inner { padding-top: 5.25rem; }
}
@media (max-height: 520px) and (min-width: 600px) {
  .hero__actions { flex-direction: row; align-items: center; }
  .hero__btn { width: auto; }
}

/* =========================================================
   SECTIONS — общая вертикальная ритмика
   ========================================================= */
.section { position: relative; padding-block: clamp(5rem, 9vw, 8rem); }
.section--elev { background: var(--surface-1); }
.section--deep {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(201, 150, 47, .10), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(138, 98, 32, .10), transparent 70%),
    var(--ink-deep);
}
.section-head { display: grid; justify-items: center; gap: var(--s-3); text-align: center; margin-bottom: clamp(3rem, 5vw, 4rem); }
.section-head .h-section { max-width: 14em; }

/* ---------- ABOUT ---------- */
.about__lede { max-width: 30em; margin-inline: auto; text-align: center; }
.about__lede span { color: var(--text-muted); }
.about__rule { margin-block: clamp(3rem, 6vw, 4.5rem); }
.about__row { display: grid; gap: var(--s-4); }
.about__label { display: flex; gap: .75rem; align-items: baseline; color: var(--text); font-weight: 500; }
.about__label small { color: var(--text-dim); font-size: .85rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding-inline: clamp(.75rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num { display: block; font-family: 'Onest', sans-serif; font-weight: 300; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.045em; }
.stat__label { display: block; margin-top: .6rem; font-size: .92rem; line-height: 1.45; }
.about__photos { display: grid; gap: var(--s-3); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.about__photos .media { border-radius: var(--r-md); aspect-ratio: 4 / 3; box-shadow: var(--shadow-1); }
.about__photos .media:hover img { transform: scale(1.04); }
@media (min-width: 1400px) { .about__row { grid-template-columns: 1fr 1.65fr; } }
@media (min-width: 900px) {
  .about__photos { grid-template-columns: 1.25fr 1fr; }
  .about__photos .media { aspect-ratio: auto; height: clamp(420px, 40vw, 565px); }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; gap: var(--s-3); }
  .stat { border-left: 0; padding-left: 0; padding-top: var(--s-3); border-top: 1px solid var(--line); }
}

/* ---------- SERVICES CAROUSEL ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee__track { display: flex; gap: var(--s-3); width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-3) / 2)); } }

.svc-card {
  position: relative; display: block; flex: none; width: clamp(270px, 30vw, 428px); aspect-ratio: 428 / 640;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .6s var(--ease-spring);
}
.svc-card .media { position: absolute; inset: 0; }
.svc-card:hover { transform: translateY(-6px); }
.svc-card:hover .media img { transform: scale(1.06); }
.svc-card:active { transform: translateY(-2px) scale(.99); }
.svc-card__panel {
  position: absolute; z-index: 2; left: 1.75rem; right: 1.75rem; bottom: 1.75rem; min-height: 9.5rem;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.5rem;
  border-radius: var(--r-lg); background: rgba(23, 19, 15, .82); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-2);
}
.svc-card__key { font-size: 2.1rem; color: var(--gold-300); }
.svc-card__title { font-family: 'Onest', sans-serif; font-weight: 500; color: var(--text); font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.3; letter-spacing: -.015em; }
.svc-card__go {
  position: absolute; top: 1.1rem; right: 1.1rem; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(239, 232, 218, .06); color: var(--gold-100); transition: transform .45s var(--ease-spring), background-color .3s ease;
}
.svc-card:hover .svc-card__go { transform: rotate(45deg); background: rgba(201, 150, 47, .2); }

/* ---------- PROGRAMS (dark list) ---------- */
.prog {
  position: relative; isolation: isolate; display: grid; gap: var(--s-3) var(--s-4);
  grid-template-areas: "num" "main" "tags" "media";
  padding-block: clamp(2.5rem, 4.5vw, 3.75rem);
}
/* золотая линия-разделитель, «прорисовывается» при появлении */
.prog::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold-500), rgba(230, 189, 92, .25) 45%, rgba(230, 189, 92, .08));
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out);
}
/* мягкое свечение строки при наведении */
.prog::after {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(45% 70% at 18% 45%, rgba(201, 150, 47, .09), transparent 70%);
  transition: opacity .6s ease;
}
.prog:hover::after { opacity: 1; }
.prog:last-of-type { border-bottom: 1px solid var(--line-soft); }

.prog__num {
  grid-area: num; font-family: 'Onest', sans-serif; font-weight: 300;
  font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: .9; letter-spacing: -.05em;
}
.prog__num span { display: inline-block; opacity: .55; transition: opacity .5s ease, transform .6s var(--ease-spring); }
.prog:hover .prog__num span { opacity: 1; transform: translateY(-3px); }

.prog__main { grid-area: main; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.prog__title { font-size: clamp(1.4rem, 2vw, 1.8rem); transition: transform .6s var(--ease-spring); }
.prog:hover .prog__title { transform: translateX(6px); }
.prog__desc { max-width: 31rem; color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; }
.prog__meta {
  display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem .5rem .8rem; border-radius: var(--r-pill);
  border: 1px solid rgba(230, 189, 92, .35); background: rgba(201, 150, 47, .1);
  color: var(--gold-100); font-size: .92rem; font-weight: 500; line-height: 1.3;
}
.prog__meta::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 10px rgba(230, 189, 92, .8); }
.prog__meta.is-urgent::before { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .55; } }
.prog__link { margin-top: .25rem; }

.prog__tags-wrap { grid-area: tags; align-self: start; }
.prog__label { margin-bottom: 1rem; font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.prog__tags { display: grid; border-top: 1px solid var(--line-soft); }
.prog__tags li {
  display: flex; align-items: center; gap: .85rem; padding: .78rem 0; border-bottom: 1px solid var(--line-soft);
  color: var(--text); font-size: 1rem; line-height: 1.35;
  transition: color .3s ease, opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.prog__tags li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 10px rgba(230, 189, 92, .6); transition: transform .4s var(--ease-spring); }
.prog__tags li:hover { color: var(--gold-100); }
.prog__tags li:hover::before { transform: scale(1.5); }

.prog__media { grid-area: media; display: block; border-radius: var(--r-md); aspect-ratio: 4 / 3; box-shadow: var(--shadow-2); }
.prog__media img { transform: scale(1.18); transition: transform 1.8s var(--ease-out); }
.prog__media:hover img { transform: scale(1.06); }
.prog__media:active { opacity: .9; }
/* «шторка», которая открывает фото */
.prog__veil {
  position: absolute; inset: 0; z-index: 2; background: var(--ink-deep); transform-origin: right;
  transition: transform 1.2s cubic-bezier(.77, 0, .18, 1) .25s;
}
.prog__veil::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-300); box-shadow: 0 0 18px rgba(230, 189, 92, .8); }
.prog__go {
  position: absolute; z-index: 3; right: .9rem; bottom: .9rem; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(11, 9, 7, .55); border: 1px solid rgba(239, 232, 218, .2); color: var(--gold-100); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .5s var(--ease-spring), background-color .3s ease;
}
.prog__media:hover .prog__go { transform: rotate(45deg); background: rgba(201, 150, 47, .35); }

/* поэтапное появление содержимого строки */
.prog .a { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.prog .prog__tags li { opacity: 0; transform: translateY(12px); }
.prog.is-in::before { transform: scaleX(1); }
.prog.is-in .a, .prog.is-in .prog__tags li { opacity: 1; transform: none; }
.prog.is-in .prog__veil { transform: scaleX(0); }
.prog.is-in .prog__media img { transform: scale(1); }
.prog.is-in .prog__media:hover img { transform: scale(1.06); }
.prog .a1 { transition-delay: .1s; } .prog .a2 { transition-delay: .2s; } .prog .a3 { transition-delay: .3s; }
.prog .a4 { transition-delay: .4s; } .prog .a5 { transition-delay: .5s; }
.prog.is-in .prog__tags li:nth-child(1) { transition-delay: .35s, .35s, .35s, .35s; }
.prog.is-in .prog__tags li:nth-child(2) { transition-delay: .42s, .42s, .42s, .42s; }
.prog.is-in .prog__tags li:nth-child(3) { transition-delay: .49s, .49s, .49s, .49s; }
.prog.is-in .prog__tags li:nth-child(4) { transition-delay: .56s, .56s, .56s, .56s; }
.prog.is-in .prog__tags li:nth-child(5) { transition-delay: .63s, .63s, .63s, .63s; }
.prog.is-in .prog__tags li:nth-child(6) { transition-delay: .7s, .7s, .7s, .7s; }
.prog.is-in .prog__tags li:hover { transition-delay: 0s; }

.prog-cta { display: flex; justify-content: center; margin-top: var(--s-5); }

/* Телефон: фото сразу под заголовком, список без линий-разделителей */
@media (max-width: 699px) {
  .prog { grid-template-areas: none; grid-template-columns: minmax(0, 1fr); row-gap: 1.1rem; }
  .prog__num, .prog__tags-wrap, .prog__media { grid-area: auto; }
  .prog__main { display: contents; }
  .prog__num { order: 1; }
  .prog__title { order: 2; }
  .prog__media { order: 3; margin-block: .35rem .4rem; }
  .prog__desc { order: 4; }
  .prog__meta { order: 5; justify-self: start; }
  .prog__link { order: 6; justify-self: start; }
  .prog__tags-wrap { order: 7; margin-top: .5rem; }
  .prog__tags { border-top: 0; gap: .15rem; }
  .prog__tags li { border-bottom: 0; padding: .45rem 0; }
}
@media (min-width: 700px) {
  .prog { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(240px, 300px); grid-template-areas: "num main media" "num tags media"; column-gap: var(--s-4); }
}
@media (min-width: 1200px) {
  .prog { grid-template-columns: 5.5rem minmax(0, 1.05fr) minmax(0, 1fr) 340px; grid-template-areas: "num main tags media"; column-gap: var(--s-5); }
  .prog__tags-wrap { padding-top: .35rem; }
}

/* ---------- CLIENTS (cards grid) ---------- */
.clients { display: grid; gap: var(--s-3); }
.client {
  position: relative; display: grid; gap: var(--s-3); padding: 1.5rem; border-radius: var(--r-lg);
  background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box; border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-1); transition: transform .6s var(--ease-spring), border-color .4s ease;
}
.client:hover { transform: translateY(-4px); border-color: var(--line); }
.client__body { display: flex; flex-direction: column; gap: 1rem; }
.client__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(201, 150, 47, .1); color: var(--gold-300); font-size: 1.35rem; }
.client__tag { position: absolute; top: 1.5rem; right: 1.5rem; padding: .35rem .9rem; border-radius: var(--r-pill); background: rgba(239, 232, 218, .05); border: 1px solid var(--line-soft); color: var(--text-muted); font-size: .85rem; line-height: 1.3; }
.client__desc { max-width: 22rem; }
.client__btn { align-self: flex-start; }
.client__meta { margin-top: auto; padding-top: var(--s-2); color: var(--text); font-size: .9rem; font-weight: 500; }
.client .media { border-radius: var(--r-sm); aspect-ratio: 4 / 3.5; }
.client:hover .media img { transform: scale(1.05); }
@media (min-width: 640px) {
  .client { grid-template-columns: 1fr 1fr; padding: 1.75rem 1rem 1rem 1.75rem; }
  .client__body { padding-top: .25rem; padding-bottom: .75rem; }
  .client .media { margin-top: 3.5rem; aspect-ratio: auto; min-height: 265px; }
}
@media (min-width: 1200px) { .clients { grid-template-columns: 1fr 1fr; } }

/* ---------- PROCESS (tabs) ---------- */
.tabs { border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-2); overflow: hidden; position: relative; }
.tabs::before { /* точечный узор, как в референсе */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(230, 189, 92, .16) 1px, transparent 1.2px); background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(70% 90% at 15% 40%, #000, transparent 70%); mask-image: radial-gradient(70% 90% at 15% 40%, #000, transparent 70%);
}
.tabs__list { position: relative; display: flex; justify-content: space-between; gap: var(--s-3); padding: 0 1.5rem; border-bottom: 1px solid var(--line-soft); overflow-x: auto; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: .55rem; padding: 1.35rem 0; white-space: nowrap;
  color: var(--text-muted); font-weight: 500; font-size: 1rem; line-height: 1;
  transition: color .3s ease, opacity .3s ease;
}
.tab .ico { font-size: 1.05rem; }
.tab:hover { color: var(--text); }
.tab:active { opacity: .7; }
.tab[aria-selected="true"] { color: var(--gold-300); }
.tab__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold-300); transform: scaleX(0); transform-origin: left; }
.tab[aria-selected="true"] .tab__bar { transform: scaleX(1); }
.tabs.is-auto .tab[aria-selected="true"] .tab__bar { animation: tabProgress var(--tab-time, 6s) linear forwards; }
.tabs.is-paused .tab__bar, .tabs:hover .tab__bar { animation-play-state: paused !important; }
@keyframes tabProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 899px) {
  .tabs__list { flex-wrap: wrap; justify-content: flex-start; gap: .25rem 1.25rem; padding: .75rem 1.25rem; overflow: visible; }
  .tab { padding: .7rem 0; font-size: .95rem; }
  .tab__bar { bottom: .2rem; }
}
.panel { position: relative; display: grid; gap: var(--s-4); padding: 1rem; }
.panel[hidden] { display: none; }
.panel__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) .5rem var(--s-2); }
.panel__count { font-family: 'Onest', sans-serif; font-weight: 300; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1; color: var(--gold-300); }
.panel__count small { font-size: 1.1rem; color: var(--text-dim); }
.checks { display: grid; gap: .85rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; color: var(--text); line-height: 1.45; }
.checks .ico { margin-top: .1rem; font-size: 1.2rem; color: var(--gold-300); }
.panel .media { border-radius: var(--r-md); aspect-ratio: 4 / 3; }
.panel.is-entering .panel__body > *, .panel.is-entering .media { animation: rise .8s var(--ease-out) both; }
.panel.is-entering .panel__body > :nth-child(2) { animation-delay: .06s; }
.panel.is-entering .panel__body > :nth-child(3) { animation-delay: .12s; }
.panel.is-entering .panel__body > :nth-child(4) { animation-delay: .18s; }
@media (min-width: 900px) {
  .tabs__list { padding: 0 1.75rem; }
  .panel { grid-template-columns: 1fr 1fr; align-items: center; padding: 1rem 1rem 1rem 3rem; }
  .panel__body { padding: 0; gap: var(--s-4); }
  .panel .media { aspect-ratio: auto; height: 500px; }
}

/* ---------- WHY (wide image + cards) ---------- */
.why__stage { position: relative; }
.why__stage > .media { width: 100%; height: clamp(300px, 41.5vw, 548px); border-radius: var(--r-lg); }
.why__cards { display: grid; gap: var(--s-2); margin-top: var(--s-3); position: relative; z-index: 3; }
.why-card {
  display: flex; flex-direction: column; gap: 1rem; min-height: 13.75rem; padding: 1.5rem; border-radius: var(--r-md);
  background: var(--surface-3); border: 1px solid var(--line-soft); box-shadow: var(--shadow-2);
}
.why-card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(201, 150, 47, .1); color: var(--gold-300); font-size: 1.3rem; }
.why-card__title { margin-top: .5rem; font-family: 'Onest', sans-serif; font-weight: 500; color: var(--text); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.3; letter-spacing: -.015em; }
.why-card__desc { font-size: .92rem; line-height: 1.5; }
@media (min-width: 1200px) {
  .why__cards { grid-template-columns: repeat(4, 1fr); margin: -7rem var(--s-4) 0; }
}
@media (min-width: 560px) and (max-width: 1199px) { .why__cards { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; overflow: hidden; background: var(--ink-deep); padding-top: clamp(5rem, 9vw, 7rem); isolation: isolate; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, rgba(201, 150, 47, .16), transparent 70%), radial-gradient(30% 40% at 100% 100%, rgba(138, 98, 32, .12), transparent 70%);
}
.footer__key { position: absolute; z-index: -1; right: 2.5%; top: 9rem; width: 260px; height: auto; aspect-ratio: 2 / 1; stroke-width: .7; opacity: .12; color: var(--gold-300); }
@media (max-width: 1399px) { .footer__key { display: none; } }
.footer__cta { display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.footer__cta p { max-width: 34rem; }
.footer__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: var(--s-2); }
.footer__grid { display: grid; gap: var(--s-5); margin-top: clamp(4rem, 7vw, 6rem); padding-block: var(--s-6) var(--s-5); border-top: 1px solid var(--line); }
.footer__logo { width: 180px; }
.footer__h { margin-bottom: .5rem; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.footer__links { display: grid; gap: 0; }
.footer__links a { display: inline-block; padding-block: .6rem; }
.footer__links a, .footer__contact a { color: var(--text-muted); transition: color .3s ease; }
.footer__links a:hover, .footer__contact a:hover { color: var(--gold-100); }
.footer__links a:active, .footer__contact a:active { opacity: .7; }
.footer__contact { display: grid; gap: .9rem; }
.footer__contact b { display: block; color: var(--text); font-weight: 500; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: var(--s-3); border-top: 1px solid var(--line-soft); font-size: .85rem; color: var(--text-dim); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }

/* Очень узкие экраны (320px) */
@media (max-width: 359px) {
  .h-display { font-size: 1.62rem; }
  .h-section { font-size: 1.75rem; }
  body { font-size: .94rem; }
  .checks li, .prog__tags li { font-size: .9rem; }
  .panel { padding: .75rem; }
  .hero__contact-ico { display: none; }
  .panel__body .btn { font-size: .9rem; padding-inline: .9rem; }
  .panel__body .btn .ico { display: none; }
}
@media (max-width: 400px) {
  .hero-card__arrow { display: none; }
}

/* Телефоны: длинные кнопки переносятся, а не расширяют блок */
@media (max-width: 899px) {
  /* на телефоне текст лежит поверх фото — затемняем сильнее для читаемости */
  .hero__bg img { object-position: 62% 20%; }
  .hero__bg::after {
    background:
      linear-gradient(to bottom, rgba(11, 9, 7, .35) 0%, rgba(11, 9, 7, .55) 28%, rgba(11, 9, 7, .88) 52%, rgba(11, 9, 7, .97) 100%);
  }
}
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; justify-content: center; line-height: 1.25; padding-inline: 1.15rem; gap: .6rem; }
  .panel { padding: .75rem; }
  .panel__body { padding-inline: .25rem; }
  .panel__body .btn, .prog-cta .btn, .footer__actions .btn { width: 100%; }
}
.panel > *, .prog > *, .client > *, .hero__bottom > * { min-width: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero .rise, .prog .a, .prog .prog__tags li { opacity: 1; transform: none; }
  .prog::before, .prog__veil { transform: none; }
  .prog__veil { display: none; }
  .marquee { overflow-x: auto; }
}

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — общие блоки услуг
   ========================================================= */

/* ---------- Первый экран страницы услуги ---------- */
.hero--page .hero__title { max-width: 15em; font-size: clamp(1.9rem, 4.4vw, 4rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .9rem; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); padding-block: .5rem; transition: color .3s ease; }
.crumbs a:hover { color: var(--gold-100); }
.crumbs a:active { opacity: .7; }
.crumbs span[aria-current] { color: var(--gold-300); }
.crumbs .ico { font-size: .8rem; color: var(--text-dim); transform: rotate(-90deg); }

/* карточка «ключевые факты» — на месте карточки «О компании» с главной */
.facts {
  display: grid; padding: .35rem 1.35rem; border-radius: var(--r-lg);
  border: 1px solid rgba(239, 232, 218, .14); background: rgba(23, 19, 15, .55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-2);
}
.facts li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); }
.facts li:last-child { border-bottom: 0; }
.facts__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(201, 150, 47, .12); color: var(--gold-300); font-size: 1.15rem; }
.facts b { display: block; color: var(--text); font-weight: 500; line-height: 1.3; }
.facts small { display: block; margin-top: .1rem; color: var(--text-muted); font-size: .875rem; line-height: 1.35; }
.hero__bottom .facts { order: -1; }
@media (min-width: 900px) { .hero__bottom .facts { order: 0; flex: none; width: 380px; } }
@media (max-width: 899px) and (max-height: 760px) { .hero__bottom .facts { display: none; } }
@media (max-height: 520px) { .facts { display: none; } }

/* ---------- Вступление «О программе» ---------- */
.intro { display: grid; gap: var(--s-4); }
.intro__head { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.intro__head .h-section { max-width: 13em; }
.intro__body { display: grid; gap: 1.25rem; }
.intro__lead { color: var(--text); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.55; letter-spacing: -.01em; }
.intro__body p:not(.intro__lead) { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.75; }
.intro__sign { display: flex; align-items: center; gap: .9rem; margin-top: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-soft); color: var(--text); font-weight: 500; }
.intro__sign .ico { font-size: 2rem; color: var(--gold-300); }
.intro__sign small { display: block; color: var(--text-muted); font-weight: 400; font-size: .9rem; }
.intro .stats { margin-top: .75rem; }
.intro__media { margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--r-lg); aspect-ratio: 16 / 9; box-shadow: var(--shadow-1); }
@media (min-width: 1000px) {
  .intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-7); }
  .intro__head { position: sticky; top: 7rem; }
  .intro__media { aspect-ratio: 21 / 9; }
}

/* ---------- Сетка преимуществ (тонкие линии между ячейками) ---------- */
.bgrid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; }
.bgrid__item {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 1rem;
  min-height: 12.5rem; padding: clamp(1.5rem, 2.4vw, 2.1rem); background: var(--ink);
}
.section--elev .bgrid__item { background: var(--surface-1); }
.bgrid__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(80% 70% at 0% 0%, rgba(201, 150, 47, .12), transparent 70%);
}
.bgrid__item:hover::before { opacity: 1; }
.bgrid__top { display: flex; align-items: center; justify-content: space-between; }
.bgrid__num { font-weight: 300; font-size: 1.6rem; letter-spacing: -.04em; line-height: 1; color: var(--gold-300); opacity: .6; font-variant-numeric: lining-nums; transition: opacity .4s ease; }
.bgrid__item:hover .bgrid__num { opacity: 1; }
.bgrid__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(230, 189, 92, .28); color: var(--gold-300); font-size: 1.25rem; transition: transform .5s var(--ease-spring), background-color .3s ease; }
.bgrid__item:hover .bgrid__ico { transform: rotate(-8deg) scale(1.06); background: rgba(201, 150, 47, .12); }
.bgrid__title { margin-top: auto; color: var(--text); font-weight: 500; font-size: clamp(1.08rem, 1.3vw, 1.2rem); line-height: 1.35; letter-spacing: -.015em; }
.bgrid__text { color: var(--text-muted); font-size: .95rem; line-height: 1.55; }
@media (min-width: 600px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Блок-акцент страны (две колонки + карточка с цифрой) ---------- */
.spot { display: grid; gap: var(--s-5); align-items: center; }
.spot__body { display: grid; gap: 1.25rem; justify-items: start; }
.spot__body p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.75; max-width: 36rem; }
.dots { display: grid; gap: .2rem; width: 100%; max-width: 36rem; }
.dots li { display: flex; align-items: baseline; gap: .85rem; padding: .45rem 0; color: var(--text); line-height: 1.45; }
.dots li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 10px rgba(230, 189, 92, .6); transform: translateY(-2px); }
.dots--2 { column-gap: 2rem; }
@media (min-width: 640px) { .dots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; } }

.spot__card {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.1rem; padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--r-lg); border: 1px solid rgba(230, 189, 92, .35);
  background: radial-gradient(90% 80% at 100% 0%, rgba(201, 150, 47, .16), transparent 60%), var(--surface-2);
  box-shadow: var(--shadow-2);
}
.spot__card::after { /* ключ из логотипа — водяной знак */
  content: ""; position: absolute; z-index: -1; right: -2.5rem; bottom: -1rem; width: 15rem; height: 7.5rem; opacity: .07;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' fill='none' stroke='%23e6bd5c' stroke-width='.8'%3E%3Cpath d='M2 10h22M20 7.5v5M22.5 7.5v5M5 10v4.5h3V12'/%3E%3Ccircle cx='29' cy='6.3' r='3.3'/%3E%3Ccircle cx='29' cy='13.7' r='3.3'/%3E%3Ccircle cx='34.8' cy='10' r='3.3'/%3E%3C/svg%3E");
}
.spot__label { font-size: .8rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-300); }
.spot__fig { font-weight: 300; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: lining-nums; }
.spot__fig small { font-size: .38em; letter-spacing: -.01em; font-weight: 400; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.spot__card p { color: var(--text-soft); line-height: 1.65; }
.spot__card .dots li { color: var(--text); }
@media (min-width: 1000px) { .spot { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-7); } }

/* ---------- Облако «Кому подходит» ---------- */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; max-width: 62rem; margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: .65rem; padding: .8rem 1.3rem; border-radius: var(--r-pill);
  border: 1px solid rgba(239, 232, 218, .14); background: rgba(239, 232, 218, .04);
  color: var(--text); font-size: 1rem; line-height: 1.3;
  transition: border-color .3s ease, background-color .3s ease, transform .45s var(--ease-spring);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 10px rgba(230, 189, 92, .6); }
.pill:hover { border-color: rgba(230, 189, 92, .5); background: rgba(201, 150, 47, .08); transform: translateY(-2px); }

/* ---------- Фото + список (что входит в сопровождение) ---------- */
.split { display: grid; gap: var(--s-5); align-items: start; }
.split__media { border-radius: var(--r-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow-2); }
.split__body { display: grid; gap: 1.5rem; justify-items: start; }
.split__lead { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; max-width: 34rem; }
.checks--lg { width: 100%; gap: 0; }
.checks--lg li { padding: .95rem 0; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; align-items: center; }
.checks--lg li:first-child { border-top: 1px solid var(--line-soft); }
.checks--lg .ico { margin-top: 0; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s-7); }
  .split__media { position: sticky; top: 6.5rem; aspect-ratio: 4 / 5; }
  .split--rev .split__media { order: 2; }
}

/* ---------- Документы (карточка-досье) ---------- */
.dossier { display: grid; gap: var(--s-4); align-items: start; }
.dossier__head { display: grid; gap: 1.25rem; justify-items: start; }
.dossier__head p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; max-width: 30rem; }
.note {
  display: flex; gap: .9rem; align-items: flex-start; max-width: 30rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md);
  border: 1px solid rgba(230, 189, 92, .3); background: rgba(201, 150, 47, .07); color: var(--gold-100) !important; font-size: .98rem !important; line-height: 1.55 !important;
}
.note .ico { flex: none; margin-top: .1rem; font-size: 1.25rem; color: var(--gold-300); }
.doclist {
  counter-reset: doc; display: grid; padding: .5rem clamp(1.25rem, 2.5vw, 2.25rem); border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold-500); box-shadow: var(--shadow-2);
}
.doclist li { counter-increment: doc; display: flex; gap: 1.1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); color: var(--text); line-height: 1.45; }
.doclist li:last-child { border-bottom: 0; }
.doclist li::before { content: counter(doc, decimal-leading-zero); flex: none; min-width: 1.6rem; color: var(--gold-300); font-weight: 300; font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
@media (min-width: 1000px) { .dossier { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s-7); } .dossier__head { position: sticky; top: 7rem; } }

/* ---------- Этапы — линия времени ---------- */
.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline__step { position: relative; display: grid; gap: .5rem; padding: 0 0 2.25rem 4rem; }
.timeline__step::before { /* вертикальная линия (телефон) */
  content: ""; position: absolute; left: 1.35rem; top: 2.9rem; bottom: .4rem; width: 1px; background: linear-gradient(var(--gold-500), rgba(230, 189, 92, .1));
  transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-out) .2s;
}
.timeline__step:last-child::before { display: none; }
.timeline__step.is-in::before { transform: none; }
.timeline__n {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid rgba(230, 189, 92, .45); background: var(--ink); color: var(--gold-100); font-weight: 400; font-size: .95rem; font-variant-numeric: lining-nums;
  box-shadow: 0 0 0 6px rgba(201, 150, 47, .06);
}
.section--elev .timeline__n { background: var(--surface-1); }
.timeline__t { padding-top: .5rem; color: var(--text); font-weight: 500; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; }
.timeline__step p { color: var(--text-muted); line-height: 1.6; max-width: 26rem; }
.timeline-cta { display: flex; justify-content: center; margin-top: var(--s-4); }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.25rem var(--s-5); }
  .timeline__step { padding: 4.25rem 0 0; }
  .timeline__step::before { /* горизонтальная линия (компьютер) */
    left: 3.5rem; right: -1.5rem; top: 1.375rem; bottom: auto; width: auto; height: 1px;
    background: linear-gradient(90deg, var(--gold-500), rgba(230, 189, 92, .08)); transform: scaleX(0); transform-origin: left;
  }
  .timeline__step:nth-child(3n)::before { display: none; }
  .timeline__step:last-child::before { display: none; }
  .timeline__step.is-in::before { transform: none; }
}

/* ---------- Почему Amber Key (заголовок + список) ---------- */
.whyl { display: grid; gap: var(--s-4); align-items: start; }
.whyl__head { display: grid; gap: var(--s-3); justify-items: start; }
.whyl__list { display: grid; }
.whyl__list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
.whyl__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.whyl__ico { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(201, 150, 47, .1); color: var(--gold-300); font-size: 1.25rem; transition: transform .5s var(--ease-spring); }
.whyl__list li:hover .whyl__ico { transform: scale(1.08); }
.whyl__list h3 { align-self: end; color: var(--text); font-weight: 500; font-size: 1.12rem; line-height: 1.35; letter-spacing: -.015em; }
.whyl__list p { color: var(--text-muted); line-height: 1.6; }
@media (min-width: 1000px) { .whyl { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-7); } .whyl__head { position: sticky; top: 7rem; } }

/* ---------- Важная заметка ---------- */
.notice {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 1.1rem; max-width: 56rem; margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 3.25rem); border-radius: var(--r-lg); border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 0% 0%, rgba(201, 150, 47, .12), transparent 65%), var(--surface-2);
}
.notice__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(230, 189, 92, .4); color: var(--gold-300); font-size: 1.35rem; }
.notice h2 { color: var(--text); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; letter-spacing: -.02em; }
.notice p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.75; }
.notice + .notice { margin-top: var(--s-3); }

/* ---------- Большой призыв к действию с фото ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(82vh, 760px); padding-block: clamp(5rem, 10vw, 7rem) clamp(3rem, 6vw, 4.5rem); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta-band__bg::before { content: ""; position: absolute; inset: 0; background: #5a3d14; mix-blend-mode: multiply; opacity: .4; }
.cta-band__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5, 4, 3, .96) 8%, rgba(5, 4, 3, .55) 55%, rgba(5, 4, 3, .75) 100%),
              radial-gradient(70% 90% at 0% 100%, rgba(5, 4, 3, .9), transparent 70%);
}
.cta-band__inner { display: grid; gap: 1.4rem; justify-items: start; }
.cta-band__inner .h-section { max-width: 13em; }
.cta-band__inner p { max-width: 36rem; color: rgba(239, 232, 218, .85); font-size: 1.0625rem; line-height: 1.7; }
.cta-band .hero__actions { margin-top: .75rem; }
@media (max-width: 899px) { .cta-band .hero__actions { width: 100%; } }

/* подвал без собственного призыва (на внутренних страницах есть свой блок) */
.footer--compact { padding-top: 0; }
.footer--compact .footer__grid { margin-top: 0; border-top: 0; }

/* =========================================================
   РАБОЧИЕ ВИЗЫ
   ========================================================= */
.countries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.country {
  position: relative; overflow: hidden; display: grid; gap: .35rem; padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease-spring), border-color .3s ease;
}
.country:hover { transform: translateY(-4px); border-color: rgba(230, 189, 92, .45); }
.country__code { font-weight: 300; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.country__name { color: var(--text); font-weight: 500; font-size: clamp(.92rem, 1.4vw, 1.05rem); line-height: 1.3; }
.countries-note { margin-top: 1.5rem; text-align: center; color: var(--text-muted); }
@media (min-width: 1000px) { .countries { gap: 1rem; } .country { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.25rem; } }
@media (max-width: 359px) { .countries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.urgent {
  position: relative; display: grid; overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid rgba(230, 189, 92, .45); background: var(--surface-2); box-shadow: var(--shadow-2);
}
.urgent__media { min-height: 280px; aspect-ratio: 4 / 3; }
.urgent__body { display: grid; gap: 1.25rem; justify-items: start; align-content: center; padding: clamp(1.75rem, 4vw, 3.5rem); }
.urgent__body h2 { color: var(--text); font-weight: 500; font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -.025em; max-width: 22em; }
.urgent__body p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; max-width: 34rem; }
@media (min-width: 900px) { .urgent { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .urgent__media { aspect-ratio: auto; height: 100%; } }

.vac { display: grid; gap: var(--s-2); }
.vac__card {
  display: grid; gap: 1.1rem; align-content: start; padding: clamp(1.5rem, 2.5vw, 2rem); border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1);
  transition: border-color .4s ease, transform .6s var(--ease-spring);
}
.vac__card:hover { border-color: var(--line); transform: translateY(-4px); }
.vac__head { display: flex; align-items: center; gap: .9rem; }
.vac__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(201, 150, 47, .1); color: var(--gold-300); font-size: 1.25rem; flex: none; }
.vac__card h3 { color: var(--text); font-weight: 500; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.015em; }
.vac__card .dots li { padding: .3rem 0; color: var(--text-soft); }
.vac__card--note { align-content: center; border-style: dashed; border-color: rgba(230, 189, 92, .35); background: transparent; }
.vac__card--note p { color: var(--text-soft); line-height: 1.7; }
@media (min-width: 700px) { .vac { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   ИНВЕСТИЦИИ
   ========================================================= */
.program { display: grid; gap: var(--s-4); align-items: start; }
.program__media { border-radius: var(--r-lg); aspect-ratio: 4 / 3; box-shadow: var(--shadow-2); }
.program__body { display: grid; gap: 1.35rem; justify-items: start; }
.program__index { font-weight: 300; font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: .9; letter-spacing: -.05em; }
.program__body h2 { color: var(--text); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.2; letter-spacing: -.025em; }
.program__body > p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.75; max-width: 36rem; }
.program + .program { margin-top: clamp(4rem, 8vw, 6.5rem); padding-top: clamp(4rem, 8vw, 6.5rem); border-top: 1px solid var(--line-soft); }
@media (min-width: 1000px) {
  .program { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-7); }
  .program__media { position: sticky; top: 6.5rem; aspect-ratio: 4 / 5; }
  .program--rev .program__media { order: 2; }
}

.pricelist { width: 100%; display: grid; padding: .35rem clamp(1.25rem, 2.5vw, 2rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold-500); }
.pricelist li { display: flex; align-items: baseline; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.pricelist li:last-child { border-bottom: 0; }
.pricelist__name { color: var(--text); font-weight: 500; }
.pricelist__dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(230, 189, 92, .35); transform: translateY(-.3rem); }
.pricelist__price { flex: none; color: var(--gold-100); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.pricelist__price small { color: var(--text-muted); font-size: .85em; margin-right: .25rem; }

.figs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.fig { display: grid; gap: .45rem; align-content: start; padding: 1.35rem 1.25rem; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line-soft); }
.fig__num { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.fig__num small { font-size: .5em; letter-spacing: 0; font-weight: 400; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.fig p { color: var(--text-soft); font-size: .95rem; line-height: 1.45; }
@media (max-width: 359px) { .figs { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   DIGITAL NOMAD — условия
   ========================================================= */
.req { display: grid; gap: var(--s-2); }
.req__card { display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1); }
.req__card--gold { border-color: rgba(230, 189, 92, .4); background: radial-gradient(80% 60% at 100% 0%, rgba(201, 150, 47, .12), transparent 60%), var(--surface-2); }
.req__card h3 { color: var(--text); font-weight: 500; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.02em; }
.req__card .checks li { color: var(--text); }
.req__lead { max-width: 44rem; margin: -1.5rem auto var(--s-5); text-align: center; color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; }
@media (min-width: 1000px) { .req { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--s-3); } }

/* =========================================================
   КОНТАКТЫ
   ========================================================= */
.ccards { display: grid; gap: .75rem; }
.ccard {
  display: grid; gap: .55rem; align-content: start; padding: 1.4rem 1.5rem; border-radius: var(--r-lg);
  border: 1px solid rgba(239, 232, 218, .14); background: rgba(23, 19, 15, .62);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-2);
}
.ccard__label { display: flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.ccard__label .ico { font-size: 1.05rem; }
.ccard__value { color: var(--text); font-weight: 500; font-size: 1.12rem; line-height: 1.4; transition: color .3s ease; }
a.ccard__value:hover { color: var(--gold-100); }
a.ccard__value:active { opacity: .7; }
.ccard small { color: var(--text-muted); font-size: .9rem; line-height: 1.45; }
.msgr { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.msgr a {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .5rem .95rem; border-radius: var(--r-pill);
  border: 1px solid rgba(230, 189, 92, .35); color: var(--gold-100); font-size: .92rem; font-weight: 500;
  transition: background-color .3s ease, transform .4s var(--ease-spring);
}
.msgr a:hover { background: rgba(201, 150, 47, .15); transform: translateY(-2px); }
.msgr a:active { transform: scale(.97); }
@media (min-width: 640px) { .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hero__bottom .ccards { width: 620px; flex: none; } }
.hero--contact .hero__bottom .ccards { order: -1; }
@media (min-width: 900px) { .hero--contact .hero__bottom .ccards { order: 0; } }

.cform-wrap { display: grid; gap: var(--s-5); align-items: start; }
.cform-wrap__head { display: grid; gap: 1.25rem; justify-items: start; }
.cform-wrap__head p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; max-width: 30rem; }
.cform { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--r-lg); background: var(--surface-2); border: 1px solid var(--line-soft); border-top: 2px solid var(--gold-500); box-shadow: var(--shadow-2); }
.cform__row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .5rem; }
.field label { color: var(--text); font-size: .95rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem; border-radius: var(--r-sm); border: 1px solid rgba(239, 232, 218, .16);
  background: var(--ink); color: var(--text); font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6bd5c' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(230, 189, 92, .35); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--gold-300); box-shadow: 0 0 0 3px rgba(230, 189, 92, .18); }
.field.is-invalid input { border-color: #d9826b; }
.field__err { display: none; color: #e9a08c; font-size: .875rem; }
.field.is-invalid .field__err { display: block; }
.cform__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .35rem; }
.cform__alt { color: var(--text); font-weight: 500; padding-block: .7rem; border-bottom: 1px solid var(--gold-500); transition: color .3s ease; }
.cform__alt:hover { color: var(--gold-100); }
.cform__alt:active { opacity: .7; }
.cform__hint { color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
@media (min-width: 640px) { .cform__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cform-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-7); } .cform-wrap__head { position: sticky; top: 7rem; } }
@media (max-width: 480px) { .cform__actions .btn { width: 100%; } }

.map { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow-2); aspect-ratio: 16 / 9; min-height: 340px; background: var(--surface-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) sepia(.35) hue-rotate(-10deg) brightness(.85) contrast(.95); }
.map__card {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem; max-width: 26rem; display: grid; gap: .35rem; padding: 1.1rem 1.25rem; border-radius: var(--r-md);
  background: rgba(11, 9, 7, .85); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.map__card b { color: var(--text); font-weight: 500; }
.map__card small { color: var(--text-muted); font-size: .875rem; line-height: 1.45; }
@media (max-width: 640px) { .map { aspect-ratio: 3 / 4; } }

/* общий отступ под заголовком секции внутри страниц */
.section-head--left { justify-items: start; text-align: left; }
.section-head--left .h-section { max-width: 15em; }

/* активный пункт меню на страницах услуг */
.nav-link.is-active { color: var(--gold-100); background: rgba(201, 150, 47, .12); }
.dropdown a[aria-current="page"] { color: var(--gold-100); background: rgba(201, 150, 47, .08); }
.mobile-menu nav a[aria-current="page"] { color: var(--gold-100); }

/* Контакты: карточки + карта */
.contact-grid { display: grid; gap: var(--s-3); align-items: stretch; }
.contact-grid .ccard { background: var(--surface-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .contact-grid .map { aspect-ratio: auto; height: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .timeline__step::before { transform: none !important; }
}

/* ---------- Внутренние страницы: защита от выхода текста за край экрана ---------- */
.intro > *, .spot > *, .split > *, .dossier > *, .whyl > *, .program > *, .req > *, .vac > *,
.bgrid > *, .countries > *, .figs > *, .cform-wrap > *, .contact-grid > *, .ccards > *, .timeline > *, .urgent > * { min-width: 0; }
.cta-band__inner > *, .spot__body > *, .split__body > *, .dossier__head > *, .intro__head > *, .whyl__head > *,
.program__body > *, .cform-wrap__head > *, .urgent__body > *, .section-head > *, .hero__text > * { max-width: 100%; }
.cta-band__inner, .hero__text { min-width: 0; width: 100%; }
.h-section { text-wrap: balance; }
.bgrid__title, .whyl__list h3, .vac__card h3, .timeline__t, .program__body h2, .urgent__body h2, .notice h2, .req__card h3 { text-wrap: balance; }
@media (min-width: 640px) and (max-width: 999px) { .vac { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) {
  .figs { grid-template-columns: minmax(0, 1fr); }
  .h-section { font-size: 1.85rem; }
  .hero--page .hero__title { font-size: 1.8rem; }
  .countries { gap: .5rem; }
  .country { padding: .9rem; }
  .bgrid__item { min-height: 0; }
}
@media (max-width: 359px) { .h-section { font-size: 1.62rem; } .hero--page .hero__title { font-size: 1.6rem; } }
.intro, .spot, .split, .dossier, .whyl, .program, .req, .vac, .cform-wrap, .contact-grid, .ccards, .timeline, .urgent,
.spot__card, .doclist, .pricelist, .bgrid { grid-template-columns: minmax(0, 1fr); }
.pill { max-width: 100%; }

/* многоколоночные версии (повторно, после базового minmax) */
@media (min-width: 600px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .ccards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .urgent { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
@media (min-width: 1000px) {
  .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .spot { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .dossier { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .whyl { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .program { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .req { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .vac { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cform-wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vac__card, .urgent__body, .req__card, .program__body, .spot__body, .split__body { grid-template-columns: minmax(0, 1fr); }
.urgent__media { min-height: 0; width: 100%; }
@media (min-width: 900px) { .urgent__media { min-height: 280px; } }

/* Заголовки секций в двухколоночных блоках — меньше, чтобы фразы не рассыпались по слову */
@media (min-width: 1000px) {
  .intro__head .h-section, .dossier__head .h-section, .whyl__head .h-section, .spot__body .h-section,
  .split__body .h-section, .cform-wrap__head .h-section { font-size: clamp(2.1rem, 3.1vw, 3rem); }
}
.pricelist li { flex-wrap: wrap; }
.pricelist__name { white-space: nowrap; }
@media (max-width: 480px) {
  .vac__head { flex-direction: column; align-items: flex-start; }
  .intro .stats { grid-template-columns: minmax(0, 1fr); }
}

/* Короткие строки (пункты списков, подзаголовки) — равномерный перенос, длинные абзацы — без висячих слов */
main li, main h3, main h2:not(.h-section), .ccard small, .bgrid__text, .timeline__step p, .fig p, .vac__card p, .whyl__list p, .stat__label, .note span { text-wrap: balance; }

/* Цифры в блоке «О программе» — списком: цифра и подпись в одну строку */
.intro .stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
.intro .stat { display: flex; align-items: center; gap: 1.25rem; padding: .9rem 0; border-left: 0; border-top: 1px solid var(--line); }
.intro .stat:first-child { padding-left: 0; }
.intro .stat__num { flex: none; min-width: 4.5rem; font-size: clamp(2rem, 3vw, 2.6rem); }
.intro .stat__label { margin-top: 0; }
.cta-band__inner .h-section { max-width: 20em; }
.split__lead { text-wrap: balance; }
@media (max-width: 480px) { .urgent__body h2 { font-size: 1.35rem; } .vac__card h3 { font-size: 1.1rem; } }
@media (min-width: 1000px) and (max-width: 1279px) { .fig { padding: 1.1rem 1rem; } .fig p { font-size: .9rem; } }
@media (min-width: 1000px) and (max-width: 1279px) { .figs { grid-template-columns: minmax(0, 1fr); } .ccards { grid-template-columns: minmax(0, 1fr); } }
a.ccard__value { display: block; padding-block: .55rem; margin-block: -.3rem; }
.panel .h-card, .client .h-card { text-wrap: pretty; }

/* «Что входит в сопровождение»: фото по высоте текстового блока */
@media (min-width: 1000px) {
  .split { align-items: stretch; }
  .split__media { position: relative; top: auto; aspect-ratio: auto; height: auto; min-height: 420px; }
  .split__media img { position: absolute; inset: 0; }
}

/* =========================================================
   УНИКАЛЬНЫЕ ПЕРВЫЕ ЭКРАНЫ ВНУТРЕННИХ СТРАНИЦ (.hx)
   Телефон: медиа → текст → кнопки (кнопка у нижнего края).
   Компьютер: текст и кнопки слева, медиа справа на всю высоту.
   ========================================================= */
.hx { background:
  radial-gradient(60% 50% at 85% 20%, rgba(201, 150, 47, .10), transparent 70%),
  radial-gradient(50% 50% at 0% 100%, rgba(138, 98, 32, .10), transparent 70%), var(--ink); }
.hx__inner {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(1.1rem, 3vh, 2rem); padding-top: 6.25rem; padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
}
.hx__inner > * { min-width: 0; }
.hx__text { display: grid; gap: clamp(.8rem, 2vh, 1.3rem); justify-items: start; }
.hx__title { font-size: clamp(1.85rem, 4.3vw, 4rem); max-width: 14em; }
.hx__title em { font-style: italic; }
.hx__lead { max-width: 32rem; }
.hx__media { order: -1; position: relative; }
.hx__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hx__bg img { width: 100%; height: 100%; object-fit: cover; }
.hx__bg::before { content: ""; position: absolute; inset: 0; background: #5a3d14; mix-blend-mode: multiply; opacity: .4; }
.hx__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 9, 7, .96) 10%, rgba(11, 9, 7, .62) 55%, rgba(11, 9, 7, .78)); }
@media (min-width: 1000px) {
  .hx__inner {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    grid-template-rows: 1fr auto auto; grid-template-areas: ". media" "text media" "actions media";
    column-gap: var(--s-6); row-gap: 2rem; padding-bottom: clamp(2rem, 5.5vh, 3.25rem);
  }
  .hx__text { grid-area: text; }
  .hx__media { grid-area: media; order: 0; align-self: stretch; }
  .hx__actions { grid-area: actions; }
}

/* ---------- 1. Рамка (ВНЖ) ---------- */
.hx__word {
  position: absolute; z-index: -1; left: -.04em; bottom: -.12em; margin: 0; pointer-events: none;
  font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(6rem, 21vw, 22rem); line-height: .8; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(230, 189, 92, .13); white-space: nowrap;
}
.frame { height: clamp(190px, 31svh, 340px); }
.frame__img { position: absolute; inset: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.frame::after { content: ""; position: absolute; inset: 10px; z-index: 2; border-radius: calc(var(--r-lg) - 6px); border: 1px solid rgba(246, 227, 168, .3); pointer-events: none; }
.frame__facts { display: none; }
@media (min-width: 1000px) {
  .frame { height: auto; margin-top: .5rem; }
  .frame__facts { display: grid; position: absolute; z-index: 3; left: -3.5rem; bottom: 2rem; width: 330px; background: rgba(17, 14, 11, .82); }
}

/* ---------- 2. Арка (Digital Nomad) ---------- */
.hx--arch { background:
  radial-gradient(45% 55% at 78% 55%, rgba(230, 189, 92, .16), transparent 70%),
  radial-gradient(40% 40% at 0% 100%, rgba(138, 98, 32, .12), transparent 70%), var(--ink); }
.arch { height: clamp(200px, 34svh, 360px); width: min(100%, 300px); }
.arch__img { position: absolute; inset: 0; border-radius: 999px 999px var(--r-lg) var(--r-lg); box-shadow: var(--shadow-2), 0 0 0 1px rgba(230, 189, 92, .3); }
.arch__ring { position: absolute; z-index: 3; width: 108px; height: 108px; right: -40px; top: 18%; animation: spin 26s linear infinite; }
.arch__ring text { font-family: 'Onest', sans-serif; font-size: 13.5px; font-weight: 500; letter-spacing: .32em; fill: var(--gold-100); text-transform: uppercase; }
.arch__ring-ico { position: absolute; z-index: 4; right: -40px; top: 18%; width: 108px; height: 108px; display: grid; place-items: center; pointer-events: none; }
.arch__ring-ico .ico { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--metal); color: #1a1206; box-shadow: var(--shadow-gold); }
@keyframes spin { to { transform: rotate(360deg); } }
.arch__chips { display: none; }
@media (min-width: 1000px) {
  .arch { width: min(100%, 470px); height: auto; justify-self: end; margin-top: .5rem; }
  .arch__ring { width: 150px; height: 150px; right: auto; left: -62px; top: 16%; }
  .arch__ring-ico { width: 150px; height: 150px; right: auto; left: -62px; top: 16%; }
  .arch__ring-ico .ico { width: 54px; height: 54px; padding: 14px; }
  .arch__chips { display: grid; gap: .6rem; position: absolute; z-index: 3; left: -4.5rem; bottom: 2.25rem; }
  .arch__chip { display: inline-flex; align-items: center; gap: .6rem; justify-self: start; padding: .65rem 1.05rem; border-radius: var(--r-pill);
    background: rgba(17, 14, 11, .82); border: 1px solid var(--line); color: var(--text); font-size: .92rem; font-weight: 500;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-1); }
  .arch__chip .ico { color: var(--gold-300); font-size: 1.05rem; }
  .arch__chip--2 { margin-left: 2.5rem; } .arch__chip--3 { margin-left: 1rem; }
}

/* ---------- 3. Лента стран (Рабочие визы) ---------- */
.hx--ticker .hx__text { justify-items: center; text-align: center; margin-inline: auto; }
.hx--ticker .hx__title { max-width: 16em; }
.hx--ticker .hx__lead { margin-inline: auto; }
.hx--ticker .crumbs { justify-content: center; }
.hx__urgent { text-decoration: none; transition: transform .4s var(--ease-spring), border-color .3s ease; }
.hx__urgent:hover { transform: translateY(-2px); border-color: var(--gold-300); }
.hx__urgent:active { transform: scale(.98); }
.hx--ticker .hx__media { order: 0; }
.ticker {
  margin-inline: calc(var(--gutter) * -1); padding-block: .95rem; overflow: hidden;
  border-block: 1px solid var(--line); background: rgba(11, 9, 7, .45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: tick 38s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker__track li { display: inline-flex; align-items: baseline; gap: .6rem; padding-inline: 1.6rem; color: var(--text); font-size: 1rem; white-space: nowrap; border-right: 1px solid var(--line-soft); }
.ticker__track b { font-weight: 300; font-size: 1.6rem; letter-spacing: -.03em; }
.hx--ticker .hx__actions { justify-content: center; }
@media (min-width: 1000px) {
  .hx--ticker .hx__inner { display: flex; align-items: stretch; }
  .hx--ticker .hx__actions { align-self: center; }
}

/* ---------- 4. Ступенчатые суммы (Инвестиции) ---------- */
.hx__bg--right::after { background: linear-gradient(to top, rgba(11, 9, 7, .97) 15%, rgba(11, 9, 7, .7) 60%, rgba(11, 9, 7, .82)); }
@media (min-width: 1000px) {
  .hx__bg--right { left: 45%; }
  .hx__bg--right::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(11, 9, 7, .55) 45%, rgba(11, 9, 7, .45) 100%), linear-gradient(to top, var(--ink), transparent 40%); }
}
.offers { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: .25rem var(--gutter) .5rem; }
.offers::-webkit-scrollbar { display: none; }
.offer {
  position: relative; flex: none; width: min(78%, 270px); scroll-snap-align: start; display: grid; gap: .35rem; padding: 1.15rem 1.25rem;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(23, 19, 15, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow-2);
  transition: transform .6s var(--ease-spring), border-color .3s ease;
}
.offer:hover { transform: translateY(-4px); border-color: var(--gold-300); }
.offer:active { transform: scale(.98); }
.offer__label { font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); padding-right: 2.5rem; }
.offer__fig { font-weight: 300; font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.offer__fig small { font-size: .42em; font-weight: 400; letter-spacing: 0; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }
.offer__note { color: var(--text-muted); font-size: .9rem; line-height: 1.4; }
.offer__go { position: absolute; top: .9rem; right: .9rem; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(239, 232, 218, .2); color: var(--gold-100); transition: transform .45s var(--ease-spring); }
.offer:hover .offer__go { transform: rotate(45deg); }
.hx--offers .hx__media { order: 0; }
@media (max-width: 999px) and (max-height: 700px) { .hx--offers .hx__lead { display: none; } }
@media (min-width: 1000px) {
  .offers { flex-direction: column; justify-content: flex-end; gap: 1rem; overflow: visible; margin: 0; padding: 0; }
  .offer { width: 82%; padding: 1.5rem 1.75rem; }
  .offer:nth-child(2) { margin-left: 9%; } .offer:nth-child(3) { margin-left: 18%; }
}

/* ---------- 5. Панель связи (Контакты) ---------- */
.hx__bg--soft img { opacity: .55; }
.hx__bg--soft::after { background: linear-gradient(to top, var(--ink) 15%, rgba(11, 9, 7, .78) 60%, rgba(11, 9, 7, .9)); }
.hx--contact .hx__media { order: 0; }
.qpanel { padding: .5rem 1.1rem; border-radius: var(--r-lg); border: 1px solid var(--line); border-top: 2px solid var(--gold-500); background: rgba(17, 14, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-2); }
.qpanel__head { display: flex; align-items: center; gap: .6rem; padding: .7rem 0 .55rem; color: var(--text-muted); font-size: .85rem; }
.qpanel__dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd18b; box-shadow: 0 0 10px rgba(127, 209, 139, .8); animation: pulse 2s ease-in-out infinite; }
.qrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; padding: .7rem 0; border-top: 1px solid var(--line-soft); color: var(--text); transition: color .3s ease; }
.qrow__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(201, 150, 47, .12); color: var(--gold-300); font-size: 1.15rem; transition: transform .45s var(--ease-spring); }
.qrow__text small { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-300); }
.qrow__text b { display: block; font-weight: 500; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qrow__go { color: var(--text-dim); transition: transform .45s var(--ease-spring), color .3s ease; }
.qrow:hover { color: var(--gold-100); }
.qrow:hover .qrow__ico { transform: scale(1.08); }
.qrow:hover .qrow__go { transform: translate(3px, -3px); color: var(--gold-300); }
.qrow:active { opacity: .75; }
@media (max-width: 999px) and (max-height: 720px) { .hx--contact .hx__lead { display: none; } .qpanel__head { display: none; } }
@media (min-width: 1000px) {
  .qpanel { align-self: end; padding: 1rem 1.75rem; }
  .qrow { padding: 1rem 0; }
  .qrow__ico { width: 48px; height: 48px; }
  .qrow__text b { font-size: 1.15rem; }
}

/* ---------- 6. Коллаж (О компании) ---------- */
.hx--about { background:
  radial-gradient(50% 60% at 80% 40%, rgba(201, 150, 47, .14), transparent 70%), var(--ink); }
.hx__key { position: absolute; z-index: -1; left: -6%; bottom: 6%; width: min(70vw, 760px); height: auto; fill: none; stroke: rgba(230, 189, 92, .09); stroke-width: .35; }
.collage { height: clamp(210px, 34svh, 380px); }
.collage__main { position: absolute; inset: 0 22% 0 0; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.collage__small { position: absolute; right: 0; bottom: 8%; width: 40%; aspect-ratio: 4 / 5; border-radius: var(--r-md); box-shadow: var(--shadow-2), 0 0 0 4px var(--ink); }
.collage__badge {
  position: absolute; z-index: 3; right: 3%; top: 0; display: grid; place-items: center; align-content: center; width: 112px; height: 112px; border-radius: 50%;
  background: rgba(17, 14, 11, .9); border: 1px solid rgba(230, 189, 92, .45); text-align: center; box-shadow: var(--shadow-2);
}
.collage__badge span { font-weight: 300; font-size: 2.3rem; line-height: 1; letter-spacing: -.05em; }
.collage__badge small { max-width: 6.5rem; margin-top: .2rem; color: var(--text-muted); font-size: .72rem; line-height: 1.25; }
@media (min-width: 1000px) {
  .collage { height: auto; margin-top: .5rem; }
  .collage__main { inset: 0 18% 0 0; }
  .collage__small { width: 42%; bottom: 10%; }
  .collage__badge { width: 150px; height: 150px; right: 2%; top: 6%; }
  .collage__badge span { font-size: 3.2rem; }
  .collage__badge small { font-size: .8rem; }
}

/* общие правила для коротких экранов */
@media (max-height: 520px) and (max-width: 999px) { .hx__media:not(.hx--ticker .hx__media) { display: none; } .hx__lead { display: none; } }

/* =========================================================
   О КОМПАНИИ — блоки страницы
   ========================================================= */
.bgrid--2 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .bgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bgrid__link { margin-top: .25rem; align-self: flex-start; }
.bgrid .dots li { padding: .2rem 0; color: var(--text-soft); font-size: .95rem; }

.story { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); align-items: start; }
.story__lines { display: grid; }
.story__lines li {
  display: flex; align-items: baseline; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft);
  font-family: 'Cormorant Garamond', serif; font-weight: 500; color: var(--text); font-size: clamp(1.45rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -.02em;
}
.story__lines li:first-child { border-top: 1px solid var(--line-soft); }
.story__lines span { flex: none; font-family: 'Onest', sans-serif; font-weight: 300; font-size: .95rem; color: var(--gold-300); letter-spacing: 0; }
.story__end { display: grid; gap: 1.1rem; }
.story__end p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.75; }
.story__end .intro__lead { color: var(--text); }
@media (min-width: 1000px) { .story { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--s-7); } .story__end { position: sticky; top: 7rem; } }

.principles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: pr; }
.principle { position: relative; display: grid; gap: .75rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.principle::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 3.5rem; background: var(--gold-300);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-out) .2s;
}
.principle.is-in::before { transform: none; }
.principle__n { font-weight: 300; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.05em; }
.principle h3 { color: var(--text); font-weight: 500; font-size: 1.2rem; letter-spacing: -.015em; }
.principle p { color: var(--text-muted); line-height: 1.6; }
@media (min-width: 700px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-4); } }
@media (min-width: 1100px) { .principles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.mission { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(6rem, 13vw, 10rem); text-align: center; }
.mission__bg { position: absolute; inset: 0; z-index: -1; }
.mission__bg img { width: 100%; height: 100%; object-fit: cover; }
.mission__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5, 4, 3, .82), rgba(5, 4, 3, .74) 50%, rgba(5, 4, 3, .9)); }
.mission__inner { display: grid; gap: 1.6rem; justify-items: center; max-width: 52rem; margin-inline: auto; }
.mission__quote { font-family: 'Cormorant Garamond', serif; font-weight: 500; color: var(--text); font-size: clamp(1.8rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
.mission__quote em { font-style: italic; }
.mission__inner p { color: rgba(239, 232, 218, .85); font-size: 1.0625rem; line-height: 1.75; max-width: 40rem; }
.mission__mark { font-size: 2.6rem; color: var(--gold-300); }
@media (prefers-reduced-motion: reduce) { .arch__ring, .ticker__track { animation: none !important; } .principle::before { transform: none; } }
.arch__img img { object-position: 74% 50%; }
.hx--frame .frame__img img { object-position: 50% 40%; }
.hx__key { display: none; }
@media (min-width: 1000px) { .hx__key { display: block; left: -4%; top: 9%; bottom: auto; width: min(46vw, 640px); stroke: rgba(230, 189, 92, .07); } }
.collage__badge small { font-size: .8rem; } .qrow__text small { font-size: .8rem; }
.collage__badge small { display: block; margin-top: .35rem; }
.story__end .btn { justify-self: start; }
@media (max-width: 480px) { .story__end .btn { justify-self: stretch; } }

/* Первый экран на невысоких телефонах: кнопка должна оставаться у нижнего края */
@media (max-width: 999px) and (max-height: 760px) {
  .hx .crumbs { display: none; }
  .hx__inner { padding-top: 5.5rem; gap: 1rem; }
  .frame, .collage { height: 24svh; }
  .arch { height: 26svh; width: min(100%, 230px); }
  .arch__ring, .arch__ring-ico { width: 88px; height: 88px; right: -30px; }
  .hx__title { font-size: clamp(1.6rem, 7vw, 2.1rem); }
}
@media (max-width: 999px) and (max-height: 680px) {
  .hx .hx__lead { display: none; }
  .hx .hero__contact { display: none; }
  .frame, .collage { height: 25svh; }
  .qrow { padding: .5rem 0; } .qrow__ico { width: 36px; height: 36px; }
  .offer { padding: .9rem 1rem; }
}
@media (max-width: 999px) and (max-height: 600px) {
  .frame, .collage, .arch { height: 22svh; }
  .hx--ticker .hx__urgent { display: none; }
  .hx__title { font-size: 1.55rem; }
  .qpanel__list li:nth-child(3) { display: none; }
}
@media (max-width: 999px) and (max-height: 760px) { .arch { width: auto; aspect-ratio: 3 / 4; max-width: 100%; } }
@media (max-width: 360px) { .hx--contact .hero__btn { font-size: .92rem; } }
@media (max-width: 999px) and (max-height: 760px) { .arch { align-self: flex-start; width: 20svh; height: 26svh; } }
@media (max-width: 999px) and (max-height: 600px) { .arch { width: 17svh; height: 22svh; } }
@media (max-width: 999px) and (max-height: 760px) { .arch__ring, .arch__ring-ico { right: -62px; top: 8%; } }

/* Телефоны: больше места для текста внутри карточек и списков */
@media (max-width: 480px) {
  .doclist, .pricelist { padding-inline: 1rem; }
  .doclist li { gap: .8rem; font-size: .97rem; }
  .req__card, .spot__card, .vac__card, .notice, .cform { padding: 1.25rem 1.1rem; }
  .bgrid__item { padding: 1.35rem 1.15rem; }
  .checks--lg li { font-size: .97rem; }
  .dots li, .vac__card .dots li { font-size: .97rem; }
  .pill { padding: .7rem 1.05rem; font-size: .95rem; }
  .whyl__list li { column-gap: 1rem; }
  .whyl__ico { width: 42px; height: 42px; }
  .timeline__step { padding-left: 3.5rem; }
  .story__lines li { font-size: 1.4rem; gap: .8rem; }
}
/* e-mail в панели связи: перенос по «@» вместо обрезки */
.qrow__text b { white-space: normal; text-overflow: clip; overflow: visible; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .whyl__list p { grid-column: 1 / -1; }
}
@media (min-width: 600px) and (max-width: 760px) { .bgrid__item { padding: 1.35rem 1.1rem; } }
/* Узкие экраны: сетки в одну колонку раньше, чуть компактнее текст списков */
@media (max-width: 759px) { .bgrid, .bgrid--2 { grid-template-columns: minmax(0, 1fr); } .bgrid__item { min-height: 0; } }
@media (max-width: 639px) { .figs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .doclist li, .dots li, .checks li, .checks--lg li, .req__card .checks li, .pricelist li { font-size: .94rem; }
  .doclist li::before { min-width: 1.35rem; }
  .doclist li { gap: .65rem; }
  .whyl__list h3, .vac__card h3 { font-size: 1.03rem; }
  .urgent__body h2 { font-size: 1.25rem; }
}
/* Первый экран: ограничение ширины заголовка и подзаголовка (не растягивать на весь экран) */
.hero .hero__text > .hero__title { max-width: min(100%, 13.5em); }
.hero .hero__text > .hero__lead { max-width: min(100%, 30rem); }
.hx .hx__text > .hx__title { max-width: min(100%, 14em); }
.hx .hx__text > .hx__lead { max-width: min(100%, 32rem); }
.hx--ticker .hx__text > .hx__title { max-width: min(100%, 16em); }

/* Первый экран внутренних страниц на компьютере: текст по центру свободного места, кнопка внизу */
.keyrow { display: none; }
@media (min-width: 1000px) {
  .hx__inner {
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr) auto;
    grid-template-areas: ". media" "text media" "extra media" ". media" "actions media";
    row-gap: 0;
  }
  .hx__text { grid-area: text; }
  .hx__actions { grid-area: actions; margin-top: 2rem; }
  .keyrow {
    grid-area: extra; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.25rem;
    padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 40rem;
  }
  .keyrow li { display: grid; gap: .75rem; align-content: start; }
  .keyrow__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(201, 150, 47, .12); color: var(--gold-300); font-size: 1.15rem; }
  .keyrow b { display: block; color: var(--text); font-weight: 500; line-height: 1.3; }
  .keyrow small { display: block; margin-top: .2rem; color: var(--text-muted); font-size: .875rem; line-height: 1.4; }
  /* факты теперь под заголовком — убираем дубли с фото */
  .frame__facts, .arch__chips { display: none !important; }
}
@media (min-width: 1000px) and (max-height: 760px) { .keyrow { display: none; } }
@media (min-width: 1000px) {
  .hx .hx__actions { flex-direction: row; flex-wrap: nowrap; align-items: center; }
  .hx .hx__actions .hero__btn { width: auto; }
  .hx--contact .qpanel { align-self: center; }
}
.hero__contact-text small { white-space: nowrap; }
.hx__word { -webkit-text-stroke-color: rgba(230, 189, 92, .06); }
@media (min-width: 1000px) { .hx__word { left: auto; right: 34%; bottom: -.18em; font-size: clamp(10rem, 16vw, 18rem); } }

/* =========================================================
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА (EN · RU · LV)
   ========================================================= */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid rgba(239, 232, 218, .14); background: rgba(11, 9, 7, .45); }
.lang__item {
  display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 .55rem; border-radius: var(--r-pill);
  color: var(--text-muted); font-size: .8rem; font-weight: 500; letter-spacing: .06em; line-height: 1;
  transition: color .25s ease, background-color .25s ease;
}
a.lang__item:hover { color: var(--gold-100); background: rgba(201, 150, 47, .1); }
a.lang__item:active { opacity: .7; }
.lang__item.is-on { color: #1a1206; background: var(--metal); }
.lang--header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.lang--menu { align-self: flex-start; }
.lang--menu .lang__item { min-width: 48px; height: 40px; font-size: .9rem; }
.lang--footer { justify-self: start; }
.lang--footer .lang__item { min-width: 44px; height: 40px; }
@media (max-width: 479px) { .lang--header { display: none; } }

/* Латышская версия: у Cormorant некрасиво нарисованы š/ž — заголовки набираются EB Garamond (очень близкий по стилю) */
html[lang="lv"] .h-display, html[lang="lv"] .h-section, html[lang="lv"] .mission__quote, html[lang="lv"] .story__lines li {
  font-family: 'EB Garamond', 'Cormorant Garamond', serif; font-weight: 400; font-size-adjust: .4; letter-spacing: -.02em;
}

/* ---------- Базовый сброс стилей (замена Tailwind CDN — страница грузится быстрее).
   Стоит в конце файла, как раньше подключался Tailwind: порядок влияет на итоговый вид. ---------- */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}
html{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:Onest,sans-serif;-webkit-tap-highlight-color:transparent}
body{margin:0;line-height:inherit}
hr{height:0;color:inherit;border-top-width:1px}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}
a{color:inherit;text-decoration:inherit}
b,strong{font-weight:bolder}
small{font-size:80%}
table{text-indent:0;border-color:inherit;border-collapse:collapse}
button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}
button,select{text-transform:none}
button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}
::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}
summary{display:list-item}
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}
fieldset{margin:0;padding:0}
legend{padding:0}
ol,ul,menu{list-style:none;margin:0;padding:0}
textarea{resize:vertical}
input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}
button,[role=button]{cursor:pointer}
:disabled{cursor:default}
img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
[hidden]:where(:not([hidden=until-found])){display:none}

/* ---------- Вспомогательные классы, использовавшиеся из Tailwind ---------- */
.absolute{position:absolute}.flex{display:flex}.grid{display:grid}.items-center{align-items:center}
.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.content-start{align-content:flex-start}.self-start{align-self:flex-start}
.text-sm{font-size:.875rem;line-height:1.25rem}

/* ---------- «Другие услуги» — перелинковка на страницах услуг ---------- */
.rel-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.rel-card {
  position: relative; display: flex; align-items: center; gap: 1rem; padding: .6rem 3.25rem .6rem .6rem; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line-soft); box-shadow: var(--shadow-1);
  transition: border-color .3s ease, transform .5s var(--ease-spring);
}
.rel-card:hover { border-color: rgba(230, 189, 92, .45); transform: translateY(-3px); }
.rel-card:active { transform: scale(.99); }
.rel-card__img { display: block; flex: none; width: 76px; height: 76px; border-radius: calc(var(--r-md) - .3rem); }
.rel-card:hover .rel-card__img img { transform: scale(1.06); }
.rel-card__title { color: var(--text); font-weight: 500; font-size: 1.02rem; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
.rel-card__go { position: absolute; right: 1rem; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 1px solid rgba(239, 232, 218, .18); color: var(--gold-100); transition: transform .45s var(--ease-spring), border-color .3s ease; }
.rel-card:hover .rel-card__go { transform: rotate(45deg); border-color: var(--gold-300); }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; } }

/* ---------- Форма заявки: отправка, ошибка, «спасибо» ---------- */
.cform__fields { display: grid; gap: 1.1rem; }
.cform__fields[hidden] { display: none; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-sending { opacity: .7; cursor: progress; }
.cform__error {
  display: grid; gap: .65rem; padding: 1rem 1.15rem; border-radius: var(--r-md);
  border: 1px solid rgba(229, 128, 107, .45); background: rgba(229, 128, 107, .08); color: #f0c2b6; font-size: .95rem; line-height: 1.5;
}
.cform__error[hidden] { display: none; }
.cform__error-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.cform__error-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .95rem; border-radius: var(--r-pill);
  border: 1px solid rgba(230, 189, 92, .4); color: var(--gold-100); font-weight: 500; transition: background-color .3s ease;
}
.cform__error-links a:hover { background: rgba(201, 150, 47, .15); }
.cform__error-links a:active { opacity: .75; }
.cform__done { display: grid; justify-items: start; gap: 1rem; padding: clamp(.5rem, 2vw, 1.25rem) 0; outline: none; }
.cform__done[hidden] { display: none; }
.cform__done-ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--metal); color: #1a1206; font-size: 1.7rem; box-shadow: var(--shadow-gold); }
.cform__done h3 { color: var(--text); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.25; letter-spacing: -.02em; }
.cform__done p { color: var(--text-soft); font-size: 1.0625rem; line-height: 1.7; max-width: 32rem; }
.cform__done .link-underline { background: none; border: 0; cursor: pointer; font: inherit; }
.cform { position: relative; }
