/* ============================================
   ПАСТОРАЛЬ — Brand Type System
   Display: Unbounded (geometric, distinctive)
   Body:    Manrope   (humanist grotesque)
   ============================================ */

:root {
  /* Palette */
  --bg: #f4f1ec;
  --bg-2: #ece7df;
  --ink: #0e0e0e;
  --ink-2: #2a2a2a;
  --ink-3: #4f4f4f;
  --ink-4: #6e6e6e;
  --line: rgba(14,14,14,.08);
  --line-2: rgba(14,14,14,.16);
  --white: #ffffff;
  --green: #4f7a4a;
  --green-2: #6e9b65;
  --amber: #c98a3f;
  --milk: #fbf8f3;
  --shadow-sm: 0 2px 8px rgba(20,20,20,.06);
  --shadow-md: 0 12px 40px rgba(20,20,20,.10);
  --shadow-lg: 0 30px 80px rgba(20,20,20,.18);

  /* Fonts */
  --display: 'Unbounded', 'Manrope', system-ui, -apple-system, sans-serif;
  --body: 'Manrope', system-ui, -apple-system, sans-serif;

  /* Sizes */
  --container: 1320px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 999px;

  /* Easing */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  touch-action: pan-y;
  overscroll-behavior-y: none;
}

/* ─── Preloader (blocks site until hero video is ready) ─── */
body.is-loading { overflow: hidden; height: 100svh; }
.preloader {
  position: fixed; inset: 0;
  z-index: 9999;
  background: #0e0e0e;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: -.02em;
  color: var(--white);
  line-height: 1;
}
.preloader__rail {
  width: min(280px, 60vw);
  height: 2px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  border-radius: 2px;
}
.preloader__rail::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: var(--green-2);
  animation: preroll 1.4s var(--ease-out) infinite;
}
@keyframes preroll {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}
.preloader__note {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

/* ─── Site-wide background video ───
   iOS fix: задаём контейнеру СТАБИЛЬНЫЕ размеры через width/height: 100lvh/lvw,
   а не inset:0. Иначе на iOS Safari контейнер меняет размер при show/hide
   адресной строки → видео с object-fit:cover пересчитывает frame каждый кадр
   transition'а адресной строки → видимые лаги скролла. 100lvh = largest viewport
   (с скрытой address bar), стабильный размер. Паттерн идентичен Sillage. */
.bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100lvh;
  z-index: -10;
  overflow: hidden;
  background: var(--ink);
  pointer-events: none;
}
.bg-video__el {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity .5s var(--ease);
}
.bg-video__el--loop { opacity: 0; }
.bg-video__el--loop.is-on { opacity: 1; }
.bg-video__el--intro.is-off { opacity: 0; }
.bg-video__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.0) 25%, rgba(0,0,0,.0) 75%, rgba(0,0,0,.25) 100%);
  pointer-events: none;
}
.bg-video.is-off-screen { display: none; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img, svg, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─────────────────────────── REVEAL ─────────────────────────── */
.r-up {
  display: block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.r-up.is-in { opacity: 1; transform: translateY(0); }
[data-stagger] .r-up { transition-delay: calc(var(--i, 0) * 80ms); }

/* ─────────────────────────── HEADER ─────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: #f4f1ec;
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.header__logo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--white);
  transition: color .35s var(--ease);
}
.site-header.is-scrolled .header__logo,
.site-header.is-scrolled .nav-link { color: var(--ink); }

.header__nav { display: flex; justify-content: center; gap: 36px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color .35s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor; opacity: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); opacity: .8; }

.header__contacts { display: flex; gap: 10px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.contact-chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-chip__ico { width: 16px; height: 16px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 22px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: background .35s var(--ease), gap .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: var(--shadow-sm);
}
.header-cta svg { width: 15px; height: 15px; }
.header-cta:hover {
  background: var(--green);
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.site-header.is-scrolled .header-cta {
  background: var(--ink);
  color: var(--white);
}
.site-header.is-scrolled .header-cta:hover { background: var(--green); }

.burger { display: none; }

/* ─────────────────────────── HERO ─────────────────────────── */
.hero {
  position: relative;
  min-height: 720px;
  min-height: max(720px, 100svh);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: transparent;
  /* Flex-column во всех размерах — брэнд, копия и CTA лежат друг под другом в одном потоке.
     justify-content: flex-end — вся группа прижата к нижней части hero. */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 32px 32px;
}
/* Hero scrim — local gradient over the body-level video for hero text legibility */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%),
    linear-gradient(90deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 55%);
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__brand { pointer-events: none; }
.hero__brand-text {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, min(8.5vw, 14svh), 140px);
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 6px 60px rgba(0,0,0,.30);
}
.hero__brand-text span { display: inline-block; transform: translateY(110%); animation: brandUp 1.1s var(--ease-out) forwards; }
@keyframes brandUp { to { transform: translateY(0); } }

.hero__copy {
  max-width: 640px;
  /* фиксированный отступ от брэнда — одинаковый на любом размере экрана */
  margin-top: 28px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.8vw, 42px);
  line-height: 1.14;
  letter-spacing: -.015em;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0,0,0,.25);
}
.hero__title span { display: block; }
.hero__desc {
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.6;
  font-weight: 500;
  max-width: 480px;
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--white);
  color: var(--ink);
  border-radius: 18px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  box-shadow: var(--shadow-md);
  z-index: 3;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  min-width: 340px;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.4);
  align-self: flex-start;
  /* фиксированный отступ от копии — вся группа уже прижата к низу через justify-content */
  margin-top: 28px;
}
.hero__cta:hover { transform: translateY(-3px) scale(1.01); box-shadow: var(--shadow-lg); }
.hero__cta-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease);
}
.hero__cta-arrow svg { width: 16px; height: 16px; }
.hero__cta:hover .hero__cta-arrow { transform: translateX(4px); }

.hero__scroll {
  position: absolute;
  right: 32px; bottom: 40px;
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  opacity: .85;
  z-index: 2;
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  writing-mode: horizontal-tb;
  width: 1px; height: 60px;
  background: rgba(255,255,255,.3);
  position: relative; overflow: hidden;
}
.hero__scroll-line i {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 60%;
  background: var(--white);
  transform: translateY(-100%);
  animation: scrollHint 2.4s var(--ease-out) infinite;
  will-change: transform;
}
@keyframes scrollHint { 0% { transform: translateY(-100%); } 100% { transform: translateY(266%); } }

/* ─────────────────────────── MARQUEE ─────────────────────────── */
.marquee {
  background: rgba(14,14,14,.85);
  color: var(--white);
  padding: 24px 0;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.06);
}
.marquee__track {
  display: inline-flex;
  gap: 50px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
  animation: marquee 48s linear infinite;
}
.marquee__track span:nth-child(even) { opacity: .4; font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────────────────────── SECTION HEAD ─────────────────────────── */
.section-head { margin-bottom: 64px; max-width: 960px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.eyebrow i {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(79,122,74,.18);
}
.eyebrow--inverse { color: rgba(255,255,255,.72); }
.eyebrow--inverse i { background: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.18); }

.section-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ink);
}
.section-title--inverse { color: var(--white); }

/* ═══ Section positioning ═══
   skill 1.6 / iOS perf: УБРАН backdrop-filter поверх fixed bg-video — это был iOS-killer.
   У каждой секции уже свой непрозрачный/полупрозрачный фон → blur ничего не показывал,
   но iOS-композитор пересчитывал его на каждый кадр видео+скролла (~30-60ms/frame).
   Без него scroll плавный, видео остаётся фоном где секции реально полупрозрачные. */
.marquee,
.cats,
.stats,
.advs,
.regions,
.brands,
.quiz,
.timeline,
.career,
.partner,
.footer {
  position: relative;
}

/* skill 3.2: содержимое off-screen секций не layout/paint; ускоряет iOS scroll.
   Исключения: .regions содержит sticky-child .regions__map (rule 3.3 — нельзя),
   .marquee/.brands имеют постоянную marquee-анимацию — её нужно тормозить отдельно. */
.cats,
.stats,
.advs,
.quiz,
.timeline,
.career,
.partner,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* Тормозим бесконечные marquee/pinPulse анимации когда юзер не на их секции */
.marquee:not(.is-on-screen) .marquee__track,
.brands:not(.is-on-screen) .brands__track span,
.regions:not(.is-on-screen) .leaflet-pin-wrap::before {
  animation-play-state: paused;
}

/* ─────────────────────────── CATEGORIES ─────────────────────────── */
.cats {
  padding: 120px 0;
  background:
    linear-gradient(rgba(244, 241, 236, .55), rgba(244, 241, 236, .72)),
    url('img/bg-wheat.webp') center/cover no-repeat scroll;
}
.cats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
  padding: 0;
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.cat-card__num {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 13px;
  color: var(--white);
  background: rgba(0,0,0,.7);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: .05em;
  z-index: 2;
}
.cat-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.cat-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.cat-card:hover .cat-card__img img { transform: scale(1.06); }
.cat-card__img::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.25));
  pointer-events: none;
}
.cat-card__body { padding: 26px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.cat-card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.005em;
  margin-bottom: 12px;
  color: var(--ink);
}
.cat-card__desc {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}
.cat-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.cat-card__tags li {
  font-size: 12px; font-weight: 500;
  padding: 5px 11px;
  background: var(--bg-2);
  color: var(--ink-2);
  border-radius: var(--radius-pill);
}
.cat-card__open {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  margin-top: auto;
  transition: gap .35s var(--ease);
}
.cat-card__open svg { width: 16px; height: 16px; }
.cat-card:hover .cat-card__open { gap: 14px; }

/* ─────────────────────────── CATEGORY MODAL ─────────────────────────── */
.cat-modal {
  position: fixed; inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  /* flex-centering вместо position:absolute+translate — стабильный overflow scroll на iOS */
  display: flex; align-items: center; justify-content: center;
  padding: 4svh 4vw;
}
.cat-modal.is-open { opacity: 1; pointer-events: auto; }
.cat-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8,8,8,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cat-modal__panel {
  position: relative;
  transform: scale(.96);
  width: min(960px, 92vw);
  max-height: 88svh;
  background: var(--white);
  border-radius: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  box-shadow: 0 40px 100px rgba(0,0,0,.4);
  transition: transform .5s var(--ease-out);
}
.cat-modal.is-open .cat-modal__panel { transform: scale(1); }
.cat-modal__close {
  position: absolute; top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.cat-modal__close:hover { transform: rotate(90deg); background: var(--white); }
.cat-modal__close svg { width: 20px; height: 20px; }
.cat-modal__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.cat-modal__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: modalImgIn 1.4s var(--ease-out) forwards;
}
@keyframes modalImgIn { to { transform: scale(1); } }
.cat-modal__content {
  padding: 44px 40px 36px;
  display: flex; flex-direction: column;
}
.cat-modal__eyebrow {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.cat-modal__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  color: var(--ink);
}
.cat-modal__lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.cat-modal__list { display: grid; gap: 10px; margin-bottom: 24px; }
.cat-modal__list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.cat-modal__list li::before {
  content: ''; flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M5 12l4 4 10-10' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}
.cat-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg);
  border-radius: 14px;
}
.cat-modal__stat { display: flex; flex-direction: column; gap: 4px; }
.cat-modal__stat b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.cat-modal__stat span {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
}
.cat-modal__cta { margin-top: auto; }
.cat-modal__btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cat-modal__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-modal__btn svg { width: 18px; height: 18px; }

/* skill: при открытой модалке iOS должен НЕ перехватывать touch на body —
   иначе touch не доходит до .cat-modal__panel и внутренний scroll не работает.
   Паттерн из лендинга Премиальные часы (body.is-locked). */
body.modal-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

/* ─────────────────────────── STATS ─────────────────────────── */
/* iOS perf: убран content-visibility — на iOS Safari вызывает sync layout/paint при входе
   секции в viewport, что добавляет jank к скроллу. Плюс .regions содержит sticky-карту,
   а скилл правило 3.3 запрещает content-visibility на секциях с sticky-детьми. */
.stats { padding: 90px 0; background: rgba(14,14,14,.88); color: var(--white); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.stat { border-left: 1px solid rgba(255,255,255,.12); padding-left: 20px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 3vw, 48px);
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: 12px;
  white-space: nowrap;
}
.stat__label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  line-height: 1.45;
}

/* ─────────────────────────── ADVANTAGES ─────────────────────────── */
.advs {
  padding: 120px 0;
  background:
    linear-gradient(rgba(244, 241, 236, .55), rgba(244, 241, 236, .72)),
    url('img/bg-wheat.webp') center/cover no-repeat scroll;
}
.advs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.adv {
  position: relative;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.adv:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.adv__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg);
}
.adv__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease);
}
.adv:hover .adv__img img { transform: scale(1.06); }
.adv__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,.18) 100%);
  pointer-events: none;
}
.adv__body {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}
.adv__ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  margin: -50px 0 22px;
  box-shadow: 0 8px 24px rgba(14,14,14,.10);
  border: 1px solid var(--line);
}
.adv__ico svg { width: 26px; height: 26px; }
.adv h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -.005em;
  margin-bottom: 12px;
  color: var(--ink);
}
.adv p {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 18px;
}
.adv__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 10px 16px 10px 18px;
  border-radius: 999px;
  background: var(--bg);
  transition: background .35s var(--ease), gap .35s var(--ease), color .35s var(--ease);
}
.adv__more svg { width: 14px; height: 14px; }
.adv:hover .adv__more {
  background: var(--ink);
  color: var(--white);
  gap: 12px;
}

/* ─────────────────────────── ADVANTAGE MODAL ─────────────────────────── */
.adv-modal {
  position: fixed; inset: 0;
  z-index: 60;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
  /* flex-centering вместо position:absolute+translate — стабильный overflow scroll на iOS */
  display: flex; align-items: center; justify-content: center;
  padding: 4svh 4vw;
}
.adv-modal.is-open { opacity: 1; pointer-events: auto; }
.adv-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(14,14,14,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.adv-modal__panel {
  position: relative;
  transform: scale(.96);
  width: min(960px, 92vw);
  max-height: 88svh;
  background: var(--white);
  border-radius: var(--radius-lg, 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: transform .45s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,.30);
}
.adv-modal.is-open .adv-modal__panel { transform: scale(1); }
.adv-modal__close {
  position: absolute; top: 18px; right: 18px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.adv-modal__close:hover { transform: rotate(90deg); }
.adv-modal__close svg { width: 18px; height: 18px; color: var(--ink); }
.adv-modal__media { position: relative; overflow: hidden; background: var(--bg); }
.adv-modal__media img { width: 100%; height: 100%; object-fit: cover; }
.adv-modal__content {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
}
.adv-modal__eyebrow {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green);
  margin-bottom: 14px;
}
.adv-modal__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.adv-modal__lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.adv-modal__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  list-style: none;
  padding: 0;
}
.adv-modal__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink-2, var(--ink));
  line-height: 1.5;
}
.adv-modal__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.adv-modal__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}
.adv-modal__stats .adv-stat {
  padding: 14px 12px;
  background: var(--bg);
  border-radius: 12px;
  text-align: center;
}
.adv-modal__stats .adv-stat b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--ink);
  display: block;
  line-height: 1.1;
}
.adv-modal__stats .adv-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}
.adv-modal__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 999px;
  transition: gap .3s var(--ease), background .3s var(--ease);
}
.adv-modal__btn svg { width: 16px; height: 16px; }
.adv-modal__btn:hover { gap: 14px; background: var(--green); }

@media (max-width: 800px) {
  .adv-modal__panel { grid-template-columns: 1fr; max-height: 92svh; }
  .adv-modal__media { aspect-ratio: 16 / 9; }
  .adv-modal__content { padding: 28px 24px 26px; }
}

/* ─────────────────────────── REGIONS / MAP ─────────────────────────── */
.regions {
  padding: 120px 0;
  background:
    linear-gradient(rgba(236, 231, 223, .55), rgba(236, 231, 223, .72)),
    url('img/bg-meadow.webp') center/cover no-repeat scroll;
}
.regions__wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.regions__list { display: grid; gap: 4px; }
.region {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
  cursor: pointer;
}
.region:hover, .region.is-active {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}
.region.is-active { background: var(--ink); color: var(--white); }
.region span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  transition: background .35s var(--ease), color .35s var(--ease);
}
.region.is-active span { background: var(--white); color: var(--ink); }
.region b { font-weight: 600; font-size: 16px; }
.region i {
  font-style: normal; font-size: 13px; font-weight: 500;
  color: var(--ink-3);
}
.region.is-active i { color: rgba(255,255,255,.7); }

.regions__map {
  position: sticky; top: 100px;
  aspect-ratio: 4/4.4;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.leaflet-host { width: 100%; height: 100%; background: var(--bg); }
.regions__map-legend {
  position: absolute;
  left: 20px; bottom: 20px;
  display: flex; flex-direction: column;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,.97);
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  z-index: 400;
  box-shadow: var(--shadow-sm);
}
.regions__map-legend i {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
.dot--green { background: var(--green); }
.dot--amber { background: var(--amber); }
.dot--gray { background: #b8b8b8; }

/* Leaflet pin styling */
.leaflet-pin {
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: -.02em;
  transition: transform .35s var(--ease);
}
.leaflet-pin.is-green { background: var(--green); }
.leaflet-pin.is-amber { background: var(--amber); }
.leaflet-pin.is-gray { background: #8e8e8e; }
.leaflet-pin.is-hot { transform: scale(1.25); z-index: 1000 !important; }
.leaflet-pin-wrap {
  position: relative;
  display: inline-block;
}
.leaflet-pin-wrap::before {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  animation: pinPulse 2s ease-out infinite;
  pointer-events: none;
}
.leaflet-pin-wrap.is-hot::before { opacity: .5; }
@keyframes pinPulse {
  0% { transform: scale(.4); opacity: .55; }
  100% { transform: scale(1.6); opacity: 0; }
}

.leaflet-tile-pane { filter: grayscale(.35) contrast(.95) brightness(1.02); }
.leaflet-control-attribution { font-size: 10px !important; opacity: .65; }
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 6px 4px !important;
  box-shadow: var(--shadow-md) !important;
}
.leaflet-popup-content { font-family: var(--body) !important; font-size: 13px !important; margin: 12px 16px !important; }
.leaflet-popup-content b { font-family: var(--display); font-weight: 500; font-size: 15px; display: block; margin-bottom: 4px; }

/* ─────────────────────────── BRANDS ─────────────────────────── */
.brands {
  padding: 100px 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 241, 236, .60), rgba(244, 241, 236, .75)),
    url('img/bg-wheat.webp') center/cover no-repeat scroll;
}
.brands__strip { overflow: hidden; margin-top: 40px; }
.brands__track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -.02em;
  animation: marquee 60s linear infinite;
  color: var(--ink);
}
.brands__track span:nth-child(even) { color: var(--ink-3); }

/* ─────────────────────────── QUIZ ─────────────────────────── */
.quiz {
  padding: 90px 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(110,155,101,.16) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(201,138,63,.12) 0%, transparent 60%),
    rgba(244, 241, 236, .86);
}
.quiz__head { max-width: 820px; margin-bottom: 36px; }
.quiz__sub {
  font-size: 16px;
  color: var(--ink-3);
  margin-top: 18px;
  max-width: 600px;
}

.quiz__box {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 36px 40px;
  box-shadow: 0 24px 60px rgba(20,20,20,.06);
  overflow: hidden;
}
.quiz__bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--bg-2); }
.quiz__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-2), var(--amber));
  transition: width .6s var(--ease-out);
}
.quiz__progress {
  position: absolute;
  top: 22px; right: 32px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-3);
}

.quiz__steps { position: relative; min-height: 300px; margin-top: 16px; }
.quiz__step {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.quiz__step.is-active {
  position: relative; opacity: 1; transform: translateY(0);
  visibility: visible; pointer-events: auto;
}
.quiz__q {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.22;
  letter-spacing: -.01em;
  margin-bottom: 28px;
  color: var(--ink);
}
.quiz__hint {
  color: var(--ink-3);
  font-size: 14px;
  margin-top: -16px;
  margin-bottom: 24px;
}
.quiz__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quiz__opts--multi { grid-template-columns: repeat(3, 1fr); }
.quiz__opt {
  text-align: left;
  padding: 22px 24px;
  background: var(--bg);
  border-radius: 16px;
  border: 1.5px solid transparent;
  display: flex; flex-direction: column;
  gap: 6px;
  transition: all .35s var(--ease);
  position: relative;
}
.quiz__opt b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -.005em;
  color: var(--ink);
}
.quiz__opt i {
  font-style: normal;
  font-size: 13px;
  color: var(--ink-3);
}
.quiz__opt:hover {
  background: var(--white);
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.quiz__opt.is-selected {
  background: var(--ink);
  border-color: var(--ink);
}
.quiz__opt.is-selected b { color: var(--white); }
.quiz__opt.is-selected i { color: rgba(255,255,255,.7); }
.quiz__opt.is-selected::after {
  content: '';
  position: absolute; top: 14px; right: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white) url("data:image/svg+xml;utf8,<svg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M5 12l4 4 10-10' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}

.quiz__form { display: grid; gap: 16px; max-width: 600px; }
.quiz__field { display: flex; flex-direction: column; gap: 8px; }
.quiz__field span {
  font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.quiz__field input {
  padding: 18px 20px;
  background: var(--bg);
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 16px;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.quiz__field input:focus { outline: none; border-color: var(--ink); background: var(--white); }

.quiz__nav {
  display: flex; justify-content: space-between;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.quiz__btn {
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  transition: all .3s var(--ease);
}
.quiz__btn--ghost { color: var(--ink-3); }
.quiz__btn--ghost:hover:not(:disabled) { color: var(--ink); background: var(--bg); }
.quiz__btn--primary {
  background: var(--ink); color: var(--white);
  padding: 14px 30px;
}
.quiz__btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.quiz__btn:disabled { opacity: .3; cursor: not-allowed; }

.quiz__step--result { text-align: left; }
.quiz__result-anim { width: 80px; height: 80px; margin: 0 0 24px; color: var(--green); }
.quiz__check circle, .quiz__check path {
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: drawCheck 1.2s var(--ease-out) forwards;
}
.quiz__check path { animation-delay: .6s; stroke-dasharray: 60; stroke-dashoffset: 60; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.quiz__summary {
  margin-top: 32px;
  display: grid; gap: 1px;
  background: var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.quiz__sum-row {
  background: var(--white);
  display: flex; justify-content: space-between;
  padding: 16px 22px;
  gap: 20px;
}
.quiz__sum-row span { color: var(--ink-3); font-size: 14px; }
.quiz__sum-row b {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  text-align: right;
  color: var(--ink);
}
.quiz__sum-row--total { background: var(--ink); color: var(--white); }
.quiz__sum-row--total span { color: rgba(255,255,255,.7); }
.quiz__sum-row--total b { font-size: 22px; font-weight: 600; color: var(--white); }

/* ─────────────────────────── TIMELINE (vertical zigzag) ─────────────────────────── */
.timeline {
  padding: 90px 0 90px;
  background:
    linear-gradient(rgba(244, 241, 236, .55), rgba(244, 241, 236, .72)),
    url('img/bg-meadow.webp') center/cover no-repeat scroll;
}
.timeline__rail {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 0;
}
.timeline__line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--line-2);
  overflow: hidden;
  border-radius: 2px;
}
.timeline__line i {
  display: block;
  width: 100%; height: 0;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 50%, var(--amber) 100%);
  transition: height .8s var(--ease-out);
}

.tl-item {
  position: relative;
  width: 50%;
  padding: 0 60px 48px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.tl-item.is-in { opacity: 1; transform: translateY(0); }

.tl-item[data-side="left"] {
  text-align: right;
  margin-right: 50%;
}
.tl-item[data-side="right"] {
  margin-left: 50%;
  padding: 0 0 48px 60px;
  text-align: left;
}

.tl-item__inner {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  display: inline-block;
  max-width: 100%;
}
.tl-item:hover .tl-item__inner {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Dot on the central line */
.tl-item__dot {
  position: absolute;
  top: 40px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line-2);
  z-index: 2;
  transition: transform .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.tl-item[data-side="left"] .tl-item__dot {
  right: -9px;
}
.tl-item[data-side="right"] .tl-item__dot {
  left: -9px;
}
.tl-item.is-lit .tl-item__dot {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(79,122,74,.18);
}
.tl-item:hover .tl-item__dot {
  transform: scale(1.4);
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 8px rgba(201,138,63,.18);
}

/* Arrow connector from card to dot */
.tl-item__inner::before {
  content: '';
  position: absolute;
  top: 40px;
  width: 60px;
  height: 1px;
  background: var(--line-2);
  transition: background .4s var(--ease);
}
.tl-item[data-side="left"] .tl-item__inner::before {
  right: -60px;
}
.tl-item[data-side="right"] .tl-item__inner::before {
  left: -60px;
}
.tl-item.is-lit .tl-item__inner::before { background: var(--green); }

.tl-item__year {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
  display: block;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tl-item.is-lit .tl-item__year {
  background: linear-gradient(135deg, var(--green), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
}
.tl-item__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 22px);
  margin-bottom: 12px;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.25;
}
.tl-item__desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ─────────────────────────── CAREER (slider + flip cards) ─────────────────────────── */
.career {
  padding: 120px 0;
  background:
    linear-gradient(rgba(236, 231, 223, .55), rgba(236, 231, 223, .72)),
    url('img/bg-wheat.webp') center/cover no-repeat scroll;
}
.career__slider {
  position: relative;
  margin: 0 -32px;
  padding: 12px 32px 12px;
  overflow: hidden;
}
.career__track {
  display: flex;
  gap: 22px;
  transition: transform .7s var(--ease-out);
  will-change: transform;
  padding-bottom: 12px;
}
.job {
  position: relative;
  flex: 0 0 calc(33.333% - 16px);
  min-height: 420px;
  border-radius: var(--radius);
  perspective: 1600px;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
}
.job:hover { transform: translateY(-4px); }
.job.is-flipped { transform: rotateY(0deg) translateY(-4px); }

.job__front, .job__back {
  position: absolute; inset: 0;
  padding: 0;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .8s var(--ease-out), opacity .4s var(--ease);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.job__back {
  transform: rotateY(180deg);
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  overflow-y: auto;
  padding: 26px 28px 24px;
}
.job__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.job__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease);
}
.job:hover .job__img img { transform: scale(1.06); }
.job__body {
  flex: 1;
  padding: 26px 30px 26px;
  display: flex;
  flex-direction: column;
}
.job.is-flipped .job__front { transform: rotateY(-180deg); }
.job.is-flipped .job__back { transform: rotateY(0deg); }

.job__dept {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.job__back .job__dept { color: rgba(255,255,255,.55); }
.job__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -.01em;
  margin-bottom: 16px;
  color: var(--ink);
}
.job__back .job__title {
  color: var(--white);
  font-size: 19px;
  margin-bottom: 20px;
  padding-right: 50px;
}
.job__meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 14px;
  color: var(--ink-3);
  margin-top: auto;
}
.job__meta li::after { content: '·'; margin-left: 16px; color: var(--line-2); }
.job__meta li:last-child::after { display: none; }

.job__arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.97);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: all .4s var(--ease);
  z-index: 3;
}
.job__arrow svg { width: 18px; height: 18px; }
.job__arrow:hover {
  background: var(--ink); color: var(--white);
  border-color: var(--ink);
  transform: scale(1.08);
}
.job__arrow--back {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.32);
  color: var(--white);
}
.job__arrow--back:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.job__arrow--back:hover {
  background: var(--white); color: var(--ink);
  border-color: var(--white);
}

/* Back side content */
.job__block {
  margin-bottom: 14px;
}
.job__block h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.job__block ul {
  display: grid; gap: 6px;
}
.job__block li {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  padding-left: 14px;
  position: relative;
}
.job__block li::before {
  content: '';
  position: absolute; top: 8px; left: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green-2);
}
.job__apply {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 12px 20px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
  transition: gap .3s var(--ease), transform .3s var(--ease);
}
.job__apply svg { width: 14px; height: 14px; }
.job__apply:hover { gap: 12px; transform: translateX(2px); }

/* Slider navigation */
.career__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 0 8px;
}
.career__counter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -.01em;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.career__counter i { font-style: normal; color: var(--ink-3); opacity: .5; }
.career__counter #careerTotal { color: var(--ink-3); }
.career__btns { display: flex; gap: 8px; }
.career__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: all .35s var(--ease);
}
.career__btn:hover:not(:disabled) {
  background: var(--ink); color: var(--white);
  transform: scale(1.06);
  border-color: var(--ink);
}
.career__btn:disabled { opacity: .3; cursor: not-allowed; }
.career__btn svg { width: 18px; height: 18px; }

/* ─────────────────────────── PARTNER FORM ─────────────────────────── */
.partner { padding: 120px 0; background: rgba(14,14,14,.90); color: var(--white); }
.partner__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.partner__desc {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
  margin: 24px 0 36px;
  max-width: 460px;
}
.partner__list { display: grid; gap: 12px; }
.partner__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,.9);
}
.partner__list svg { width: 18px; height: 18px; color: var(--green-2); flex-shrink: 0; }

.partner__form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 40px;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: span 2; }
.field span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
}
.field input, .field textarea {
  padding: 16px 18px;
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  resize: vertical;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--white); background: rgba(255,255,255,.08);
}

.check {
  grid-column: span 2;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.7);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--white); }

.btn-cta {
  grid-column: span 2;
  margin-top: 8px;
  padding: 20px 28px;
  background: var(--white);
  color: var(--ink);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-cta svg { width: 18px; height: 18px; }
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(255,255,255,.18); }

/* ─────────────────────────── FOOTER ─────────────────────────── */
.footer {
  background: rgba(14,14,14,.92);
  color: rgba(255,255,255,.75);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__brand p { max-width: 320px; font-size: 14px; line-height: 1.55; }
.footer__col h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 6px;
  transition: color .3s var(--ease);
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex; justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.45);
}

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 1100px) {
  .cats__grid { grid-template-columns: repeat(2, 1fr); }
  .advs__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .regions__wrap { grid-template-columns: 1fr; }
  .regions__map { aspect-ratio: 16/10; position: relative; top: 0; }
  /* timeline stays vertical, just narrow */
  .partner__inner { grid-template-columns: 1fr; gap: 48px; }
  .cat-modal__panel { grid-template-columns: 1fr; }
  .cat-modal__media { aspect-ratio: 16/9; max-height: 40svh; }
  .job { flex: 0 0 calc(50% - 11px); }

  /* Header tablet: уменьшаем падинги и прячем email-чип, телефон оставляем только иконкой */
  .header__inner { padding: 0 20px; gap: 18px; }
  .header__logo { white-space: nowrap; }
  .header__nav { gap: 22px; }
  .nav-link { font-size: 14px; }
  .header__contacts { gap: 8px; }
  .contact-chip { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
  .contact-chip[href^="mailto:"] { display: none; }
  .contact-chip[href^="tel:"] { padding: 10px 12px; font-size: 0; gap: 0; }
  .contact-chip[href^="tel:"] .contact-chip__ico { width: 18px; height: 18px; }
  .header-cta {
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: .03em;
    gap: 8px;
  }
  .header-cta svg { width: 13px; height: 13px; }
}

/* Hero уже flex-column в base — никаких отдельных breakpoint-перекрытий для hero не нужно. */

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .header__contacts { display: none; }
  .header__nav { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; gap: 5px;
    padding: 8px; width: 40px; height: 40px;
    justify-content: center; align-items: center;
    background: var(--white); border-radius: 12px;
    margin-left: auto;
  }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
  .header__inner { grid-template-columns: auto 1fr; }

  /* Hero — мобильные ужатые значения (base уже flex-column) */
  .hero { padding: 90px 18px 32px; }
  .hero__brand-text {
    font-size: clamp(32px, 9vw, 56px);
    line-height: 1;
    letter-spacing: -.02em;
  }
  .hero__copy { margin-top: 24px; max-width: 100%; }
  .hero__title { font-size: clamp(22px, 5.5vw, 32px); margin-bottom: 16px; }
  .hero__desc { font-size: 14px; max-width: 100%; }
  .hero__cta {
    width: 100%;
    min-width: 0;
    padding: 18px 22px;
    align-self: stretch;
  }
  .hero__scroll { display: none; }

  .cats__grid { grid-template-columns: 1fr; }
  .advs__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .stat { border-left: 0; padding-left: 0; }

  .cats, .advs, .regions, .quiz, .timeline, .career, .partner, .brands { padding: 70px 0; }
  .section-head { margin-bottom: 36px; }

  .quiz__box { padding: 24px 20px; padding-top: 56px; }
  .quiz__opts { grid-template-columns: 1fr; }
  .quiz__opts--multi { grid-template-columns: 1fr; }
  .quiz__progress { right: 18px; top: 18px; }

  /* Mobile: timeline all on one side */
  .timeline__line { left: 18px; transform: none; }
  .tl-item { width: 100%; padding: 0 0 60px 50px !important; text-align: left !important; margin: 0 !important; }
  .tl-item__dot { left: 10px !important; right: auto !important; top: 30px; }
  .tl-item__inner::before { left: -38px !important; right: auto !important; top: 30px; width: 38px; }
  .job { flex: 0 0 calc(100% - 0px); min-height: 320px; }
  .career__slider { margin: 0 -18px; padding: 12px 18px; }

  .partner__form { grid-template-columns: 1fr; padding: 28px 20px; }
  .field--full, .check, .btn-cta { grid-column: span 1; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; }

  .cat-modal__content { padding: 26px 20px; }
  .cat-modal__title { font-size: clamp(22px, 5.4vw, 28px); }
  .cat-modal__lead { font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
  .cat-modal__list li { font-size: 14px; overflow-wrap: anywhere; word-break: break-word; }
  .cat-modal__stats { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 10px; }
  .cat-modal__stat { gap: 2px; min-width: 0; }
  .cat-modal__stat b { font-size: 17px; }
  .cat-modal__stat span { font-size: 10px; letter-spacing: .04em; overflow-wrap: anywhere; word-break: break-word; line-height: 1.25; }
  .cat-modal__btn { padding: 16px 20px; font-size: 14px; }
}

@media (max-width: 420px) { .footer__top { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

