/* ============================================================
   Eurasian Food Group — фирменный стиль
   Палитра взята с исходного сайта (Tilda): #64318D, #2A163C,
   #B7D539, Roboto. Вёрстка переписана на современный
   адаптивный grid/flex без внешних библиотек.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --purple-950: #170B21;
  --purple-900: #1F0F2D;
  --purple-800: #2A163C;
  --purple-700: #3B1F53;
  --purple-600: #4E2870;
  --purple-500: #64318D;
  --purple-400: #7D46A9;
  --purple-300: #9A6BC1;
  --lilac-300: #CCBBD8;
  --lilac-200: #E3D8EC;
  --lilac-100: #F3EEF7;
  --lime: #B7D539;
  --lime-dark: #93AC22;

  --ink: #16111C;
  --ink-soft: #4A4256;
  --muted: #6F6780;
  --paper: #FFFFFF;
  --line: rgba(100, 49, 141, 0.16);

  --shadow-sm: 0 1px 2px rgba(23, 11, 33, .06), 0 2px 8px rgba(23, 11, 33, .06);
  --shadow-md: 0 8px 24px rgba(23, 11, 33, .10), 0 2px 6px rgba(23, 11, 33, .06);
  --shadow-lg: 0 24px 60px rgba(23, 11, 33, .18);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(56px, 8vw, 112px);

  --header-h: 72px;

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

html[data-theme='dark'] {
  --ink: #F7F3FA;
  --ink-soft: #D7CCDE;
  --muted: #B5A7BE;
  --paper: #160D20;
  --line: rgba(227, 216, 236, .18);
  --lilac-100: #21142D;
  --lilac-200: #30203E;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .18), 0 2px 8px rgba(0, 0, 0, .18);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .38);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple-400); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5.2vw, 60px); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

::selection { background: var(--lime); color: var(--purple-900); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Утилиты ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--lilac-100); }
.section--dark { background: var(--purple-900); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--lime); }

.section__head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 64px); text-align: center; }
.section__head p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin: 0; }
.section--dark .section__head p { color: var(--lilac-300); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--lime); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -100px;
  z-index: 1000;
  background: var(--purple-500); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--purple-500);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--purple-900); font-weight: 700; }
.btn--lime:hover { --btn-bg: #c6e44a; }
.section--dark .btn--lime,
.section--dark .btn--lime:hover { color: var(--purple-900); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .10); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--purple-500);
  border-color: var(--line);
}
.btn--outline:hover { --btn-bg: var(--lilac-100); }

.btn__icon { width: 20px; height: 20px; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(31, 15, 45, .86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: none;
}
.logo:hover { color: #fff; }
.logo__image { width: clamp(140px, 13vw, 172px); height: auto; object-fit: contain; }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
  font-size: 14.5px;
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover, .nav__link[aria-current='true'] { color: #fff; }
.nav__link:hover::after, .nav__link[aria-current='true']::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.theme-control { position: relative; }
.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.theme-toggle:hover, .theme-toggle[aria-expanded='true'] { color: var(--purple-900); background: var(--lime); border-color: var(--lime); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 500;
  width: min(230px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.theme-menu[hidden] { display: none; }
.theme-menu p { margin: 2px 8px 8px; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.theme-menu button { width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: inherit; text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.theme-menu button:hover { background: var(--lilac-100); }
.theme-menu button[aria-pressed='true'] { background: var(--purple-500); color: #fff; }

.lang {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
}
.lang:hover { color: var(--purple-900); background: var(--lime); border-color: var(--lime); }

.header .btn { padding: 10px 20px; min-height: 40px; font-size: 14.5px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 12px;
  cursor: pointer;
}
.burger__box { display: block; width: 20px; height: 14px; position: relative; }
.burger__box span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded='true'] .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .burger { display: inline-flex; }
  .header__actions { margin-left: auto; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    height: calc(100dvh - var(--header-h) - 1px);
    background: var(--purple-900);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 18px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav[data-open='true'] { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 17px 2px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 18px; }
  .nav__link::after { display: none; }
  .header__actions .btn { display: none; }
  html[data-nav-open] { overflow: hidden; }
}

@media (max-width: 520px) {
  .header__inner { gap: 8px; }
  .header__actions { gap: 7px; }
  .theme-toggle, .lang { height: 40px; }
  .theme-toggle { width: 40px; }
  .lang { padding-inline: 12px; }
  .burger { width: 42px; height: 42px; }
  .theme-menu {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }
}

/* ---------- Выбор языка ---------- */
.language-dialog {
  width: min(560px, calc(100vw - 28px));
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.language-dialog::backdrop { background: rgba(15, 7, 22, .74); backdrop-filter: blur(7px); }
.language-dialog__mark { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; background: var(--lime); color: var(--purple-900); font-size: 15px; font-weight: 700; }
.language-dialog h2 { margin-bottom: 12px; font-size: clamp(25px, 4vw, 34px); }
.language-dialog > p { color: var(--muted); margin-bottom: 24px; }
.language-dialog__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.language-dialog__choices button { min-height: 86px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.language-dialog__choices button:hover, .language-dialog__choices button[data-recommended='true'] { border-color: var(--purple-500); background: var(--lilac-100); }
.language-dialog__choices span { display: block; font-size: 18px; font-weight: 500; }
.language-dialog__choices small { display: block; margin-top: 5px; color: var(--purple-400); font-size: 11px; line-height: 1.3; }
.language-dialog__choices small[hidden] { display: none; }
html[data-language-open] { overflow: hidden; }

@media (max-width: 520px) {
  .language-dialog__choices { grid-template-columns: 1fr; }
  .language-dialog__choices button { min-height: 72px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(100, 49, 141, .55) 0%, transparent 60%),
    linear-gradient(160deg, var(--purple-900) 0%, var(--purple-800) 45%, var(--purple-700) 100%);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px);
}
.hero__ornament {
  position: absolute;
  right: -8%;
  top: -10%;
  width: min(760px, 78vw);
  opacity: .18;
  pointer-events: none;
  user-select: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.hero__title { margin-bottom: 20px; max-width: 12ch; }
.hero__tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 300;
  color: var(--lilac-300);
  font-style: italic;
  margin-bottom: 32px;
  max-width: 30ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 24px; }
.fact b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 700; color: var(--lime); line-height: 1.1; }
.fact span { font-size: 14px; color: var(--lilac-300); }
.hero__media { position: relative; }
.hero__media img { width: 100%; border-radius: var(--radius-lg); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__title { max-width: none; }
}

/* ---------- Приветствие основателя ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
.founder__aside {
  position: relative;
  background: linear-gradient(150deg, var(--purple-500), var(--purple-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 32px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.founder__aside--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(19, 7, 31, .16) 55%, rgba(19, 7, 31, .9) 100%);
}
.founder__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.founder__ornament { position: absolute; inset: auto -20% -20% auto; width: 88%; opacity: .28; }
.founder__name { position: relative; z-index: 1; font-size: 24px; font-weight: 500; margin: 0; }
.founder__role { position: relative; z-index: 1; color: var(--lilac-300); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.founder__aside--photo .founder__role { color: rgba(255, 255, 255, .82); }
.founder__text p { color: var(--ink-soft); }
.founder__text p:first-child { font-size: clamp(19px, 2vw, 23px); color: var(--ink); font-weight: 500; }
.founder__sign { font-style: italic; color: var(--purple-500); font-weight: 500; }

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

/* ---------- О платформе ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat b { display: block; font-size: clamp(24px, 3vw, 34px); color: var(--purple-500); font-weight: 700; line-height: 1.1; }
.stat span { font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__media { order: -1; } }

/* ---------- Страны ---------- */
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-btn {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.rail-btn:hover:not([disabled]) { background: var(--lime); border-color: var(--lime); color: var(--purple-900); }
.rail-btn[disabled] { opacity: .35; cursor: default; }
.rail-btn svg { width: 20px; height: 20px; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 274px;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-500) transparent;
  /* вылет за контейнер, чтобы лента шла от края экрана */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--purple-500); border-radius: 8px; }
.rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 8px; }

.country {
  position: relative;
  scroll-snap-align: start;
  height: 372px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--purple-800);
  color: #fff;
  text-decoration: none;
}
.country:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.country__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .5s ease;
}
.country::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(23, 11, 33, .30) 0%, rgba(23, 11, 33, .55) 45%, rgba(23, 11, 33, .82) 100%);
}
.country:hover .country__img { transform: scale(1.06); }
.country__body { position: relative; height: 100%; display: flex; flex-direction: column; padding: 18px 20px 20px; color: #fff; }
.country__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.country__name { font-size: 24px; font-weight: 500; margin: 0; }
.country__flag { width: 44px; height: auto; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.country__quote { margin-top: auto; font-size: 14.5px; font-weight: 300; line-height: 1.55; }
.country__quote p { margin: 0 0 8px; white-space: pre-line; }
.country__author { display: block; font-style: italic; font-size: 13.5px; color: var(--lilac-300); }

.rail-hint { font-size: 14px; color: var(--lilac-300); margin: 14px 0 0; }

/* ---------- Каналы сбыта ---------- */
.channels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .18s ease, box-shadow .18s ease;
  color: inherit;
  text-decoration: none;
}
.channel:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.channel__logo { width: 64px; height: 48px; padding: 5px; display: grid; place-items: center; flex: none; border-radius: 10px; }
.channel__logo--dark { background: var(--purple-900); }
.channel__logo img { width: 100%; height: 100%; object-fit: contain; }
.channel__copy { min-width: 0; }
.channel b { display: block; font-weight: 500; font-size: 17px; }
.channel span { font-size: 13.5px; color: var(--muted); }
.channel__logo.channel__logo--dark { color: #fff; }

/* ---------- Услуги (аккордеон на <details>) ---------- */
.services { max-width: 900px; margin-inline: auto; }
.svc {
  border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  cursor: pointer;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  list-style: none;
}
.svc__summary::-webkit-details-marker { display: none; }
.svc__summary:hover { color: var(--purple-500); }
.svc__icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%;
  background: var(--lilac-100);
  color: var(--purple-500);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease, background-color .2s ease;
}
.svc__icon svg { width: 18px; height: 18px; }
.svc[open] .svc__icon { transform: rotate(45deg); background: var(--purple-500); color: #fff; }
.svc__body { padding: 0 4px 26px; }
.svc__body ul { margin: 0; padding-left: 22px; color: var(--ink-soft); }
.svc__body li { margin-bottom: 10px; }
.svc__body li::marker { color: var(--lime); }

/* ---------- Галерея ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery__item {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--purple-800);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s ease; }
.gallery__item:hover img { transform: scale(1.06); opacity: .88; }

.gallery__more { display: flex; justify-content: center; margin-top: 28px; }

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(15, 7, 22, .88); backdrop-filter: blur(4px); }
.lightbox img { border-radius: var(--radius); max-height: 86vh; width: auto; margin-inline: auto; }
.lightbox__close {
  position: absolute;
  top: -14px; right: -14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--purple-900);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ---------- Видео (фасад, без стороннего iframe до клика) ---------- */
.video {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--purple-700), var(--purple-900));
  box-shadow: var(--shadow-lg);
}
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}
.video__play-icon {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--purple-900);
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.video__play:hover .video__play-icon { transform: scale(1.08); }
.video__play-icon svg { width: 28px; height: 28px; margin-left: 4px; }
.video__note { max-width: 620px; margin: 16px auto 0; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- Как попасть ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px; left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--purple-500);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--lilac-100);
}
.section--tint .step::before { box-shadow: 0 0 0 6px var(--lilac-100); }
.step h3 { margin-top: 8px; font-size: 19px; }
.step p { color: var(--ink-soft); font-size: 15.5px; }
.step ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15.5px; }
.step li { margin-bottom: 6px; }
.step li::marker { color: var(--purple-500); font-weight: 500; }

/* ---------- Партнёры ---------- */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 26px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.partner:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }
.partner img { height: 64px; width: auto; max-width: 150px; object-fit: contain; }
.partner span { font-size: 14px; color: var(--muted); line-height: 1.45; }
html[data-theme='dark'] .partner {
  background: #fff;
  border-color: rgba(255, 255, 255, .82);
  color: #16111C;
}
html[data-theme='dark'] .partner span { color: #5B5363; }
html[data-theme='dark'] a.partner:hover { color: #16111C; box-shadow: 0 12px 34px rgba(0, 0, 0, .34); }

/* ---------- Страна и каталог компаний ---------- */
.country-page { min-height: calc(100vh - var(--header-h)); background: var(--paper); }
.country-hero {
  padding-block: clamp(40px, 6vw, 82px);
  color: #fff;
  background: radial-gradient(80% 130% at 90% 0%, rgba(183, 213, 57, .13), transparent 60%), var(--purple-900);
}
.country-back { display: inline-flex; align-items: center; gap: 8px; color: var(--lilac-300); text-decoration: none; margin-bottom: 34px; }
.country-back:hover { color: var(--lime); }
.country-back svg { width: 20px; height: 20px; }
.country-hero__title { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 34px); }
.country-hero__flag { width: clamp(72px, 9vw, 112px); height: auto; border-radius: 7px; box-shadow: 0 0 0 1px rgba(255,255,255,.3), var(--shadow-md); }
.country-hero h1 { margin: 0 0 12px; color: #fff; font-size: clamp(38px, 6vw, 72px); }
.country-hero p { max-width: 720px; margin: 0 0 18px; color: var(--lilac-300); font-size: clamp(16px, 2vw, 19px); }
.country-hero strong { color: var(--lime); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.company-tools { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(220px, .4fr); gap: 18px; margin-bottom: 30px; }
.company-tools--search-only { grid-template-columns: minmax(260px, 1fr); }
.company-tools label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }
.company-tools input, .company-tools select { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.company-tools input:focus, .company-tools select:focus { outline: 3px solid rgba(100, 49, 141, .18); border-color: var(--purple-500); }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.company-card { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.company-card[hidden] { display: none; }
.company-card__head { display: flex; align-items: center; gap: 16px; }
.company-card__logo { width: 72px; height: 72px; padding: 6px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }
.company-card h2 { margin: 0; font-size: 22px; }
.company-card__head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.company-card__description { margin: 0; color: var(--ink-soft); }
.company-card__details { display: grid; gap: 10px; margin: 0; }
.company-card__details div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.company-card__details dt { color: var(--muted); font-size: 13px; }
.company-card__details dd { margin: 0; font-size: 14px; }
.company-card__actions { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: auto; padding-top: 6px; }
.company-card__link { font-size: 14px; font-weight: 500; }
.company-empty { max-width: 760px; margin: 34px auto; padding: clamp(28px, 5vw, 58px); text-align: center; color: var(--ink-soft); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--lilac-100); }
.company-empty p { margin: 0; }

@media (max-width: 1024px) { .company-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .logo__image { width: 118px; }
  .country-hero__title { flex-direction: column; }
  .company-tools, .company-grid { grid-template-columns: 1fr; }
  .company-card__details div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- Локация ---------- */
.location { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.location__text { max-width: 820px; margin-inline: auto; text-align: center; color: var(--ink-soft); }
.location__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.location__grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }

/* ---------- Контакты и форма ---------- */
.contacts {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--lime); margin-top: 3px; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--lime); }
.contact-list span { color: var(--lilac-300); font-size: 15.5px; line-height: 1.55; }

.form {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: var(--shadow-lg);
}
.form h3 { margin-bottom: 4px; }
.form__sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit;
  font-size: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(100, 49, 141, .16);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #C43D3D; }

/* honeypot: скрыт от людей, виден ботам */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--purple-500); flex: none; }

.form__status { grid-column: 1 / -1; margin: 0; font-size: 15px; min-height: 1.2em; }
.form__status[data-state='ok'] { color: #1F7A44; }
.form__status[data-state='err'] { color: #C43D3D; }

@media (max-width: 860px) {
  .contacts { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
}

/* ---------- Подвал ---------- */
.footer {
  background: var(--purple-950);
  color: var(--lilac-300);
  padding-block: 40px;
  font-size: 14px;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer a { color: var(--lilac-300); }
.footer a:hover { color: var(--lime); }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Печать ---------- */
@media print {
  .header, .footer, .rail-nav, .video__play, .form { display: none !important; }
  body { color: #000; background: #fff; }
}

/* ---------- Текстовые страницы (политика, оферта) ---------- */
.prose { max-width: 820px; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { font-size: clamp(20px, 2.4vw, 26px); margin-top: 1.6em; }
.prose p { color: var(--ink-soft); }
