/* =========================================================
   Samarich Agency — стили сайта
   Правьте цвета и размеры в блоке :root ниже
   ========================================================= */

/* ---------- Шрифт Inter (локальный, ничего не грузится извне) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Палитра и базовые размеры ---------- */
:root {
  --bg:            hsl(30 8% 95%);    /* фон страницы */
  --fg:            hsl(20 14% 8%);    /* основной текст, тёмные кнопки */
  --card:          hsl(0 0% 100%);    /* фон карточек */
  --primary:       hsl(14 76% 61%);   /* акцент (оранжевый) */
  --primary-fg:    hsl(0 0% 100%);
  --primary-soft:  hsl(14 76% 61% / .3);
  --secondary:     hsl(30 6% 94%);    /* фон тегов */
  --muted:         hsl(30 10% 92%);   /* фон шапки */
  --muted-fg:      hsl(25 5% 45%);    /* приглушённый текст */
  --border:        hsl(30 12% 88%);
  --dark:          hsl(220 20% 10%);  /* тёмные секции: Кейсы, Статьи */

  --tile:          hsl(30 8% 93%);    /* подложка под афишами клиентов */

  --wrap: 80rem;                      /* максимальная ширина контента */
  --pad-x: 1.5rem;                    /* поля по бокам */

  /* тени и плавность — одинаковые по всему сайту */
  --shadow-sm: 0 1px 2px hsl(24 20% 15% / .04), 0 2px 8px hsl(24 20% 15% / .05);
  --shadow-md: 0 2px 4px hsl(24 20% 15% / .05), 0 10px 24px hsl(24 20% 15% / .08);
  --shadow-lg: 0 4px 10px hsl(24 20% 15% / .06), 0 20px 44px hsl(24 20% 15% / .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
svg { flex-shrink: 0; }

.container { max-width: var(--wrap); margin: 0 auto; width: 100%; }
.accent { color: var(--primary); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  line-height: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color .5s, color .5s, border-color .5s;
}
.btn--sm { padding: .625rem 1.5rem; border-radius: .75rem; font-size: .875rem; line-height: 1.25rem; font-weight: 600; }
.btn--lg { padding: 1.25rem 2.5rem; border-radius: 1rem; }
.btn--xl { padding: 1.5rem 3rem; border-radius: 1.5rem; font-size: 1.125rem; line-height: 1.75rem; gap: 1rem; }

.btn--dark { background: var(--fg); color: var(--bg); }
.btn--dark:hover { background: var(--primary); color: var(--primary-fg); }
.btn--xl svg, .btn--lg svg { transition: transform .3s; }
.btn--xl:hover svg { transform: translateX(.5rem); }

.btn--ghost {
  border: 1px solid var(--border);
  background: hsl(0 0% 100% / .5);
  backdrop-filter: blur(4px);
  color: inherit;
}
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

/* светлая кнопка — для тёмных секций */
.btn--light { background: #fff; color: var(--fg); }
.btn--light:hover { background: var(--primary); color: var(--primary-fg); }
.btn--light svg { transition: transform .3s; }
.btn--light:hover svg { transform: translateX(.25rem); }

/* кнопки на тёмном первом экране */
.hero .btn--dark { background: #fff; color: var(--fg); }
.hero .btn--dark:hover { background: var(--primary); color: var(--primary-fg); }
.hero .btn--ghost {
  background: hsl(0 0% 100% / .06);
  border-color: hsl(0 0% 100% / .28);
  color: #fff;
}
.hero .btn--ghost:hover { border-color: #fff; color: #fff; background: hsl(0 0% 100% / .14); }

/* ---------- Шапка ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(30 10% 94% / .7);
  backdrop-filter: blur(12px);
  transition: background-color .5s, box-shadow .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: hsl(30 10% 94% / .9);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 2px hsl(0 0% 0% / .05);
  border-bottom-color: var(--border);
}
/* пока не прокрутили — шапка прозрачная поверх фото */
.nav:not(.is-scrolled) { background: transparent; backdrop-filter: none; }
.nav:not(.is-scrolled) .nav__title { color: #fff; }
.nav:not(.is-scrolled) .nav__link { color: hsl(0 0% 100% / .75); }
.nav:not(.is-scrolled) .nav__link:hover { color: #fff; }
.nav:not(.is-scrolled) .nav__burger { color: #fff; }
.nav:not(.is-scrolled) .nav__cta { background: #fff; color: var(--fg); }
.nav:not(.is-scrolled) .nav__cta:hover { background: var(--primary); color: var(--primary-fg); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-x);
}
.nav__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.nav__title { font-weight: 700; letter-spacing: -.025em; font-size: 1.125rem; line-height: 1.75rem; }

.nav__links { display: none; align-items: center; gap: 2rem; }
.nav__link {
  position: relative;
  padding: .25rem 0;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color .3s;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { display: none; }
.nav__burger {
  display: inline-flex;
  padding: .5rem;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

/* ---------- Мобильное меню ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  background: hsl(0 0% 100% / .95);
  backdrop-filter: blur(24px);
  animation: fade-up .6s ease-out forwards;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__close {
  position: absolute;
  top: 2rem; right: var(--pad-x);
  padding: .75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px hsl(0 0% 0% / .1);
  color: inherit;
  cursor: pointer;
}
.mobile-menu__link {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -.025em;
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}
.mobile-menu__link:hover { color: var(--primary); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Секции ---------- */
.section { padding: 6rem var(--pad-x); }
.section--tight { padding-top: 0; padding-bottom: 6rem; }
/* «О нас» и цифры читаются как один блок — не разгоняем их отступами */
#about { padding-bottom: 2.5rem; }
.section--dark {
  background: var(--dark);
  border-radius: 3rem;
  margin: 0 .5rem;
}
section[id] { scroll-margin-top: 5rem; }

.eyebrow {
  font-size: .875rem;
  line-height: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section__title {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 2rem;
}
.section__title--mb { margin-bottom: 3rem; }
.section__title--light { color: #fff; }
.section__lead {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 42rem;
  margin-bottom: 3rem;
  line-height: 1.625;
}
.section__lead:last-child { margin-bottom: 0; }

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;   /* на телефонах не прыгает из-за панелей браузера */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem var(--pad-x) 0;
  color: #fff;
}
/* нарисованная сцена концертного зала */
.hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* плёночное зерно поверх сцены — убирает ощущение «нарисованности» */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url('../assets/img/noise.png');
  background-repeat: repeat;
  opacity: .06;
  mix-blend-mode: overlay;
  pointer-events: none;
}
/* два слоя поверх сцены:
   верхний — растворение низа в фоне страницы (чтобы не было резкой границы),
   нижний — затемнение, чтобы читался белый текст */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      hsl(220 25% 5% / .74) 0%,
      hsl(220 25% 5% / .46) 42%,
      hsl(220 25% 5% / .60) 78%,
      hsl(220 25% 5% / .72) 100%);
}

/* светлая часть сайта «наезжает» на первый экран скруглённым краем —
   так переход выглядит осознанным, а не размытым пятном */
#about {
  position: relative;
  z-index: 1;
  margin-top: -3rem;
  padding-top: 5rem;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--bg);
}
.hero__inner { position: relative; z-index: 3; text-align: center; }
.hero__title {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 2rem;
}
.hero__lead {
  font-size: 1.125rem;
  color: hsl(0 0% 100% / .72);
  max-width: 36rem;
  margin: 0 auto 3rem;
  line-height: 1.625;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Цифры ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.stat {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: hsl(14 76% 61% / .35);
}
.stat__value {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--primary);
  margin-bottom: .5rem;
}
.stat__label { font-size: .875rem; line-height: 1.25rem; color: var(--muted-fg); font-weight: 500; }

/* ---------- Клиенты ---------- */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.client {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.client:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(14 76% 61% / .35);
}
/* Все афиши заранее подогнаны под один формат 4:5: постер по центру,
   фон — его же размытая копия. Поэтому здесь картинка просто заполняет
   плитку целиком, и все карточки выглядят одинаково. */
.client__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--tile);
}
.client__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .6s var(--ease);
}
.client:hover .client__media img { transform: scale(1.035); }
/* свёрнутый список: 3 ряда карточек, остальные показывает кнопка */
.clients--collapsed .client:nth-child(n+7) { display: none; }

.clients__more {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.clients__more .btn[hidden] { display: none; }

.client__name {
  padding: .875rem 1rem 1rem;
  font-size: .875rem;
  line-height: 1.35;
  font-weight: 500;
}

/* ---------- Кейсы ---------- */
.cases { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.case {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.case:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: hsl(14 76% 61% / .4);
}
.case__place {
  display: flex; align-items: center; gap: .5rem;
  font-size: .875rem; line-height: 1.25rem; color: var(--muted-fg);
  margin-bottom: 1rem;
}
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag {
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  line-height: 1rem;
  font-weight: 500;
  background: var(--secondary);
  color: var(--fg);
}
.case__title { font-size: 1.5rem; line-height: 2rem; font-weight: 900; letter-spacing: -.025em; margin-bottom: .75rem; }
.case__text { color: var(--muted-fg); font-size: .875rem; line-height: 1.625; margin-bottom: 1.5rem; }
.case__result { padding-top: 1rem; border-top: 1px solid var(--border); }
.case__number { font-size: 1.875rem; line-height: 2.25rem; font-weight: 900; color: var(--primary); }
.case__metric {
  font-size: .75rem; line-height: 1rem; color: var(--muted-fg);
  font-weight: 500; text-transform: uppercase; letter-spacing: .025em;
}

/* ---------- Карточки (Подход / Услуги) ---------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-3--mt { margin-top: 1.5rem; }
#approach .grid-3:not(.grid-3--mt) { margin-bottom: 5rem; }

.card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card:not(.card--hoverdark):hover { border-color: hsl(14 76% 61% / .4); }
.card__icon { margin-bottom: 1.5rem; color: var(--fg); transition: color .5s; }
.card__icon--accent { color: var(--primary); }
.card__icon:not(.card__icon--accent) { margin-bottom: 1rem; }
.card__title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; margin-bottom: .75rem; }
.card__title--sm { font-size: 1.125rem; line-height: 1.75rem; margin-bottom: .5rem; }
.card__text { color: var(--muted-fg); font-size: .875rem; line-height: 1.625; transition: color .5s; }
.card__text--justify { text-align: justify; }
.card__text p + p { margin-top: .5rem; }
.indent { text-indent: 1.5rem; }

.card--hoverdark:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card--hoverdark:hover .card__icon { color: var(--bg); }
.card--hoverdark:hover .card__text { color: hsl(30 6% 97% / .7); }

/* ---------- Блок основателя ---------- */
.founder {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: var(--fg);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
}
.founder__bg {
  position: absolute;
  right: -2.5rem; bottom: -2.5rem;
  color: hsl(30 6% 97% / .05);
  pointer-events: none;
}
.founder__photo { flex-shrink: 0; }
.founder__photo img {
  width: 12rem;
  height: auto;
  aspect-ratio: 1146 / 1920;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgb(255 165 50 / .5));
}
.founder__body { position: relative; z-index: 10; }
.founder__quote {
  margin: 0 0 1.5rem;
  max-width: 48rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.375;
}
.founder__text {
  max-width: 42rem;
  font-size: .875rem;
  line-height: 1.625;
  margin-bottom: 2.5rem;
  color: hsl(30 6% 97% / .6);
}
.founder__name { font-weight: 700; font-size: 1.125rem; line-height: 1.75rem; }
.founder__role { font-size: .875rem; line-height: 1.25rem; color: hsl(30 6% 97% / .5); }


/* ---------- Призыв к действию ---------- */
.cta__inner { max-width: 56rem; text-align: center; }
.cta__title {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.05em;
  margin-bottom: 3rem;
}

/* ---------- Подвал ---------- */
.footer {
  padding: 4rem var(--pad-x) 2rem;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__name {
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.0625rem;
  margin-bottom: .75rem;
}
.footer__tagline {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--muted-fg);
  max-width: 24rem;
}
.footer__col { display: flex; flex-direction: column; gap: .625rem; }
.footer__title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: .25rem;
}
.footer__col a {
  font-size: .875rem;
  color: var(--muted-fg);
  text-decoration: none;
  transition: color .3s;
}
.footer__col a:hover { color: var(--primary); }
.footer__current { font-size: .875rem; color: var(--fg); font-weight: 600; }
.footer__mark { color: var(--muted-fg); }

.footer__note {
  padding-bottom: 1.25rem;
}
.footer__note p {
  font-size: .75rem;
  line-height: 1.5;
  color: hsl(25 5% 58%);
  max-width: 44rem;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.footer__bottom p { font-size: .8125rem; line-height: 1.5; color: var(--muted-fg); }
.footer__legal { color: hsl(25 5% 58%); }


/* ---------- География / карта ---------- */
.geo__figure { position: relative; }
.geo__map {
  display: block;
  width: 100%;
  height: auto;
  /* соседние страны нарисованы с запасом — обрезаем по рамке карты */
  overflow: hidden;
}
.geo__context path { fill: hsl(0 0% 100% / .05); }
.geo__countries path {
  fill: hsl(14 76% 61% / .18);
  stroke: hsl(14 76% 61% / .55);
  stroke-width: 1;
  stroke-linejoin: round;
}
/* точки городов — кликабельные */
.geo__pin { cursor: pointer; outline: none; }
.geo__hit {
  fill: transparent;
  pointer-events: all;                   /* ловим курсор всей зоной, а не только точкой */
}
.geo__dot { fill: #fff; transition: r .2s, fill .2s; }
.geo__halo { fill: hsl(14 76% 61% / .28); transition: r .2s, fill .2s; }

.geo__pin:hover .geo__halo,
.geo__pin:focus-visible .geo__halo,
.geo__pin.is-active .geo__halo { fill: hsl(14 76% 61% / .55); r: 13; }

.geo__pin:hover .geo__dot,
.geo__pin:focus-visible .geo__dot,
.geo__pin.is-active .geo__dot { fill: var(--primary); r: 5; }

/* подсказка с названием города */
.geo__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: .375rem .75rem;
  border-radius: .625rem;
  background: #fff;
  color: var(--fg);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 20px hsl(0 0% 0% / .35);
}
.geo__tip[hidden] { display: none; }

.geo__subtitle {
  margin: 3rem 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.015em;
  color: hsl(0 0% 100% / .82);
}

.geo__cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.geo__city {
  padding: .375rem .875rem;
  border-radius: 9999px;
  font: inherit;
  font-size: .8125rem;
  line-height: 1.25rem;
  color: hsl(0 0% 100% / .6);
  background: hsl(0 0% 100% / .05);
  border: 1px solid hsl(0 0% 100% / .08);
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.geo__city.is-abroad { color: var(--primary); border-color: hsl(14 76% 61% / .3); }
.geo__cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}
.geo__cta .btn { text-align: center; }

.geo__city:hover,
.geo__city.is-active {
  color: var(--fg);
  background: #fff;
  border-color: #fff;
}


/* ---------- Появление блоков при прокрутке ---------- */
/* класс .reveal вешает скрипт — если он не отработал, всё видно как обычно */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Видимый фокус для клавиатуры ---------- */
a:focus-visible,
button:focus-visible,
.geo__pin:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: .375rem;
}


/* ---------- Текстовые страницы (политика, оферта) ---------- */
.legal { padding: 9rem var(--pad-x) 4rem; }
.legal__inner { max-width: 44rem; }
.legal__title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.04em;
  margin-bottom: .5rem;
}
.legal__updated { font-size: .875rem; color: var(--muted-fg); margin-bottom: 2rem; }
.legal__note {
  padding: 1rem 1.25rem;
  margin-bottom: 2.5rem;
  border-radius: 1rem;
  background: hsl(14 76% 61% / .1);
  border: 1px solid hsl(14 76% 61% / .3);
  font-size: .875rem;
  line-height: 1.6;
}
.legal h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 .75rem;
}
.legal p { font-size: .9375rem; line-height: 1.75; color: var(--muted-fg); margin-bottom: .75rem; }
.legal p b { color: var(--fg); }
.legal__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.legal__list li {
  font-size: .9375rem;
  line-height: 1.75;
  color: var(--muted-fg);
}
.legal a { color: var(--primary); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

.legal__back { margin-top: 2.5rem; }
.legal__back a { color: var(--primary); font-weight: 600; text-decoration: none; }
.legal__back a:hover { text-decoration: underline; }
.nav__cta--always { display: inline-flex; }

@media (min-width: 640px) {
  .legal__title { font-size: 2.75rem; }
}

/* ---------- Плашка согласия на cookie ---------- */
.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;                 /* выше шапки, но под мобильным меню */
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 18px 50px hsl(20 14% 8% / .35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__text {
  font-size: .875rem;
  line-height: 1.55;
  color: hsl(30 6% 97% / .82);
}
.cookie__text a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie__actions { display: flex; gap: .625rem; }
/* «Принять» и «Отклонить» одного размера — отказаться должно быть так же просто, как согласиться */
.cookie__btn {
  flex: 1;
  padding: .75rem 1.25rem;
  border-radius: .75rem;
  font: inherit;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
.cookie__btn--ghost { background: transparent; color: #fff; border: 1px solid hsl(0 0% 100% / .3); }
.cookie__btn--ghost:hover { border-color: #fff; }
.cookie__btn--primary { background: #fff; color: var(--fg); border: 1px solid #fff; }
.cookie__btn--primary:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-fg); }

@media (min-width: 640px) {
  .cookie { flex-direction: row; align-items: center; gap: 1.5rem; }
  .cookie__actions { flex-shrink: 0; }
  .cookie__btn { flex: 0 0 auto; }
}

/* «Настройки cookie» в подвале выглядит как обычная ссылка */
.footer__link-btn {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .875rem;
  text-align: left;
  color: var(--muted-fg);
  cursor: pointer;
  transition: color .3s;
}
.footer__link-btn:hover { color: var(--primary); }

/* ---------- Внутренние страницы услуг ---------- */
/* компактная тёмная обложка вместо экрана во всю высоту */
.hero--inner {
  min-height: auto;
  padding: 8rem var(--pad-x) 5.5rem;   /* снизу больше 3rem — на столько наезжает светлый блок */
}
.hero--inner .hero__inner { text-align: left; }
.hero--inner .hero__title {
  font-size: 2.5rem;
  line-height: 1.05;
  max-width: 50rem;
  margin-bottom: 1.5rem;
}
.hero--inner .hero__lead { margin: 0 0 2.25rem; max-width: 48rem; font-size: 1.125rem; }
.hero--inner .hero__actions { justify-content: flex-start; }

/* «хлебные крошки» над заголовком */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: hsl(0 0% 100% / .55);
}
.crumbs a { color: hsl(0 0% 100% / .8); text-decoration: none; transition: color .3s; }
.crumbs a:hover { color: #fff; }

/* светлый блок наезжает на обложку — как «О нас» на главной */
.panel {
  position: relative;
  z-index: 1;
  margin-top: -3rem;
  padding-top: 5rem;
  border-radius: 2.5rem 2.5rem 0 0;
  background: var(--bg);
}

/* текстовые блоки */
.prose { max-width: 46rem; }
.prose p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose a,
.card__text a,
.faq__answer a,
.section__lead a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 3px;
  transition: color .3s;
}
.prose a:hover,
.card__text a:hover,
.faq__answer a:hover,
.section__lead a:hover { color: var(--primary); }
#about .section__lead:not(:last-child) { margin-bottom: 1.25rem; }

/* этапы работы */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.25rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.5rem;
  top: 1.375rem;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--primary);
}
.steps h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: .375rem; }
.steps p { font-size: .9375rem; line-height: 1.6; color: var(--muted-fg); }

/* частые вопросы */
.faq { max-width: 52rem; display: flex; flex-direction: column; gap: .75rem; }
.faq__item {
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s;
}
.faq__item[open] { border-color: hsl(14 76% 61% / .4); }
.faq__item summary {
  position: relative;
  padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  list-style: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { padding: 0 1.5rem 1.375rem; }
.faq__answer p { font-size: .9375rem; line-height: 1.7; color: var(--muted-fg); }

/* карточки-ссылки на направления */
.subhead {
  margin: 3.5rem 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.links { display: grid; gap: 1rem; }
.link-card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: hsl(14 76% 61% / .4);
}
.link-card__title {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: 1.125rem;
  font-weight: 700;
}
.link-card__title::after { content: '→'; color: var(--primary); transition: transform .3s; }
.link-card:hover .link-card__title::after { transform: translateX(4px); }
.link-card__text { font-size: .875rem; line-height: 1.6; color: var(--muted-fg); }

/* =========================================================
   Адаптив
   ========================================================= */

/* --- планшет и выше (640px) --- */
@media (min-width: 640px) {
  .section--dark { margin: 0 1rem; }

  .hero__title { font-size: 4.5rem; }
  .hero--inner .hero__title { font-size: 3rem; }
  .hero__lead { font-size: 1.25rem; }

  .section__title { font-size: 3.75rem; line-height: 1; }
  .cta__title { font-size: 4.5rem; }

  .stat__value { font-size: 3rem; line-height: 1; }
  .clients { gap: 2rem; }

  .founder { flex-direction: row; }
  .founder__photo img { width: 16rem; }
  .founder__quote { font-size: 1.875rem; line-height: 1.375; }

  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* --- планшет (768px) --- */
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .links { grid-template-columns: repeat(3, 1fr); }
}

/* --- широкий десктоп (1024px) --- */
@media (min-width: 1024px) {
  /* полное меню помещается в строку только начиная с этой ширины,
     до неё показываем «бургер» */
  .nav__links { display: flex; gap: 1.5rem; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
  .mobile-menu { display: none !important; }

  .hero__title { font-size: 6rem; }
  .hero--inner .hero__title { font-size: 3.5rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .clients--collapsed .client:nth-child(n+7) { display: flex; }
  .clients--collapsed .client:nth-child(n+13) { display: none; }
  .footer__grid { grid-template-columns: 1.6fr 1.3fr 1fr 1.2fr 1.3fr; gap: 2.5rem; }
  .cases { grid-template-columns: repeat(2, 1fr); }
}

/* --- ноутбуки 1024-1279: ужимаем меню, чтобы всё влезло в строку --- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__title { font-size: 1rem; line-height: 1.5rem; }
  .nav__link { font-size: .9375rem; }
  .nav__links { gap: 1.25rem; }
}

/* --- очень широкий экран: меню посвободнее --- */
@media (min-width: 1280px) {
  .nav__links { gap: 2rem; }
}

/* --- мелкие телефоны --- */
@media (max-width: 700px) {
  /* карта мельче — увеличиваем точки и зону нажатия, иначе не попасть пальцем */
  .geo__hit { r: 24; }
  .geo__dot { r: 6; }
  .geo__halo { r: 13; }
  .geo__pin:hover .geo__halo,
  .geo__pin:focus-visible .geo__halo,
  .geo__pin.is-active .geo__halo { r: 22; }
  .geo__pin:hover .geo__dot,
  .geo__pin:focus-visible .geo__dot,
  .geo__pin.is-active .geo__dot { r: 9; }
}

@media (max-width: 480px) {
  .section { padding: 4rem 1.25rem; }
  #about { margin-top: -2rem; border-radius: 1.75rem 1.75rem 0 0; padding-top: 3.5rem; }
  .geo__cities li { font-size: .75rem; padding: .3125rem .75rem; }
  .geo__cta .btn { font-size: .9375rem; padding: 1rem 1.5rem; }
  .nav__title { font-size: .95rem; }
  .hero__title { font-size: 2.5rem; }
  .hero--inner { padding: 6.5rem 1.25rem 4.5rem; }
  .hero--inner .hero__lead { font-size: 1rem; margin-bottom: 1.75rem; }
  .hero--inner .hero__actions { gap: .625rem; }
  .hero--inner .btn--lg { padding: 1rem 1.375rem; }
  .hero--inner .hero__title { font-size: 2.125rem; }
  .panel { margin-top: -2rem; border-radius: 1.75rem 1.75rem 0 0; padding-top: 3.5rem; }
  .card, .case, .post, .stat { padding: 1.5rem; }
  .founder { padding: 1.75rem; }
  .btn--xl { padding: 1.25rem 2rem; font-size: 1rem; }
}

/* --- уважение к настройкам анимации --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
