/* ==========================================================================
   TOO Sodruzhestvo — export.sodruzhestvo brand stylesheet
   Palette / type / spacing tokens sourced from Altai Mai brand kit.
   ========================================================================== */

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/ubuntu-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --color-primary: #ceb275;
  --color-primary-dark: #a98f57;
  --color-text: #111111;
  --color-background: #ffffff;
  --color-surface: #1a1a1a;
  --color-border: #eeeeee;
  --color-muted: #f0f2f5;
  --color-cta: #000000;
  --color-text-on-surface: #ffffff;
  --color-text-secondary: #55575c;

  --font-heading: "Ubuntu", "Segoe UI", sans-serif;
  --font-body: "Roboto", "Segoe UI", sans-serif;

  --spacing-xs: 4px;
  --spacing-sm: 12px;
  --spacing-md: 24px;
  --spacing-lg: 48px;
  --spacing-xl: 96px;

  --radius-standard: 2px;
  --shadow-subtle: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 12px 32px rgba(17, 17, 17, 0.08);

  --container-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--spacing-md);
  color: var(--color-text);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 500; }

p { margin: 0 0 var(--spacing-md); color: var(--color-text-secondary); }

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

ul { padding-left: 1.2em; color: var(--color-text-secondary); }
li { margin-bottom: 8px; }

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.section-alt { background: var(--color-muted); }

.section-dark {
  background: var(--color-surface);
  color: #ffffff;
  border-bottom: none;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #ffffff; }
.section-dark p { color: #c7c7c7; }
.section-dark .eyebrow { color: var(--color-primary); }

.section-head {
  max-width: 680px;
  margin: 0 0 var(--spacing-lg);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-standard);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--color-cta);
  color: #ffffff;
}
.btn-primary:hover { background: #262626; }

.btn-gold {
  background: var(--color-primary);
  color: var(--color-text);
}
.btn-gold:hover { background: var(--color-primary-dark); color: #ffffff; }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline-dark:hover { background: var(--color-text); color: #fff; }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.header-actions { display: flex; align-items: center; gap: var(--spacing-md); }
.header-phone { font-family: var(--font-heading); font-weight: 500; font-size: 0.92rem; white-space: nowrap; display: flex; flex-direction: column; gap: 4px; }
.header-phone span { display: block; font-size: 0.7rem; color: var(--color-text-secondary); font-weight: 400; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 7px; color: inherit; transition: color 0.2s ease; }
.whatsapp-link:hover { color: #1da851; }
.whatsapp-icon { flex: none; display: block; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; flex: none; }
.lang-switch > summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: border-color 0.2s ease;
}
.lang-switch > summary::-webkit-details-marker { display: none; }
.lang-switch > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.lang-switch[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-switch > summary:hover,
.lang-switch[open] > summary { border-color: var(--color-primary); }
.lang-switch > summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  box-shadow: var(--shadow-card);
}
.lang-menu a {
  padding: 9px 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-standard);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-menu a:hover { background: var(--color-muted); color: var(--color-text); }
.lang-menu a.is-current {
  background: var(--color-muted);
  color: var(--color-text);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  background: none;
  border-radius: var(--radius-standard);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero (full-bleed media, Altai Mai style) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, 82vh);
  padding: 72px 0 96px;
  background: var(--color-surface);
  color: #ffffff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  display: block;
  transform: scale(1.04);
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }

/* Затемняющий слой поверх фона (как на altaimai.com — чёрный 50%) */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.35) 100%),
    rgba(0, 0, 0, 0.42);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin-right: auto;
  animation: hero-fade-up 1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow { color: var(--color-primary); }
.hero h1 {
  color: #ffffff;
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.3vw, 2.8rem);
  margin-bottom: var(--spacing-md);
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero-lede {
  color: #e2e2e2;
  font-size: 1.05rem;
  max-width: 62ch;
  margin-bottom: var(--spacing-sm);
}
.hero-lede-2 { color: #c2c2c2; }
.hero-region {
  margin: var(--spacing-md) 0 0;
  padding: 12px 18px;
  border: 1px solid rgba(206, 178, 117, 0.55);
  border-radius: var(--radius-standard);
  background: rgba(17, 17, 17, 0.35);
  backdrop-filter: blur(2px);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: #e9e2d0;
}
.hero-region strong { color: var(--color-primary); font-family: var(--font-heading); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--spacing-sm); margin-top: var(--spacing-lg); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
  background: transparent;
}
.btn-ghost:hover { background: #ffffff; color: var(--color-text); border-color: #ffffff; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-primary);
  animation: hero-scroll-dot 1.8s ease-in-out infinite;
}
@keyframes hero-scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(12px); opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img, .hero-content, .hero-scroll span { animation: none; }
  .hero-media img { transform: none; }
}

/* ---------- Stats ---------- */
.stats-strip {
  background: var(--color-text);
  color: #fff;
  padding: var(--spacing-lg) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
}
.stat-item { text-align: center; padding: 0 var(--spacing-sm); }
.stat-icon { color: var(--color-primary); margin: 0 auto 14px; width: 34px; height: 34px; }
.stat-item p { color: #c7c7c7; font-size: 0.88rem; margin: 0; }

/* ---------- Cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-lg); align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  padding: var(--spacing-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-standard);
  background: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary-dark);
}
.icon-badge svg { width: 26px; height: 26px; }

.product-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-visual {
  aspect-ratio: 16/10;
  background: linear-gradient(145deg, var(--color-muted), #e4e7ec);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
}
.product-visual svg { width: 60%; }
.product-visual img { width: 100%; height: 100%; object-fit: cover; margin: calc(-1 * var(--spacing-md)); }
.product-visual img[src$=".svg"] { object-fit: contain; margin: 0; }
.product-body { padding: var(--spacing-md); flex: 1; display: flex; flex-direction: column; }
.product-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: var(--color-muted);
  padding: 4px 10px;
  border-radius: var(--radius-standard);
  margin-bottom: var(--spacing-sm);
  align-self: flex-start;
}
.spec-table { margin-top: auto; border-top: 1px solid var(--color-border); padding-top: var(--spacing-sm); }
.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  padding: 6px 0;
  border-bottom: 1px dashed var(--color-border);
}
.spec-row:last-child { border-bottom: none; }
.spec-row span:first-child { color: var(--color-text-secondary); }
.spec-row span:last-child { font-weight: 500; text-align: right; }

/* ---------- Timeline (delivery steps) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--spacing-md); counter-reset: step; }
.timeline-item { position: relative; padding-top: var(--spacing-lg); }
.timeline-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--spacing-sm);
}
.timeline-item::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  z-index: -1;
}

/* ---------- Map ---------- */
.map-wrap {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  overflow: hidden;
  background: #f7f8fa;
}
.europe-map { width: 100%; height: auto; display: block; }
.map-hint {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-md);
  z-index: 2;
  margin: 0;
  font-size: 0.78rem;
  color: #8a8c91;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.map-wrap.is-touched .map-hint { opacity: 0; }

.map-sea { fill: #f7f8fa; }
.map-backdrop path {
  fill: #e6e9ee;
  stroke: #f7f8fa;
  stroke-width: 0.8;
  stroke-linejoin: round;
}

/* --- маршруты --- */
.map-routes { color: var(--color-primary); }
.map-routes .route {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 1.6;
  stroke-dasharray: 6 6;
  opacity: 0.4;
  marker-end: url(#route-arrow);
  transition: opacity 0.2s ease, stroke-width 0.2s ease;
}
.map-routes .route-trunk {
  stroke-width: 2.6;
  stroke-dasharray: none;
  opacity: 0.55;
}
.map-routes .route.is-active {
  opacity: 1;
  stroke-width: 3;
  stroke-dasharray: none;
}
/* когда что-то выбрано — остальные маршруты гасим */
.europe-map.has-active .route:not(.is-active) { opacity: 0.14; }

/* --- страны-зоны --- */
.map-zone { cursor: pointer; outline: none; }
.map-zone .zone-shape {
  stroke: #ffffff;
  stroke-width: 0.9;
  stroke-linejoin: round;
  transition: fill 0.2s ease;
}
.map-zone-market .zone-shape { fill: #d9c194; }
.map-zone-market.is-active .zone-shape { fill: var(--color-primary-dark); }
.map-zone-transit .zone-shape { fill: #b9bec8; }
.map-zone-transit.is-active .zone-shape { fill: #8f96a3; }
.map-zone-hub .zone-shape { fill: #3a3a3a; }
.map-zone-hub.is-active .zone-shape { fill: var(--color-text); }
.europe-map.has-active .map-zone:not(.is-active) .zone-shape { opacity: 0.55; }
.map-zone:focus-visible .zone-shape { stroke: var(--color-text); stroke-width: 2.4; }

/* --- пины и подписи --- */
.map-marks { pointer-events: none; }
.mark-dot { fill: var(--color-primary-dark); stroke: #fff; stroke-width: 1.5; transition: r 0.2s ease; }
.mark-halo { fill: none; stroke: var(--color-text); stroke-opacity: 0.14; stroke-width: 7; }
.mark-hub .mark-dot, .mark-transit .mark-dot { fill: var(--color-text); }
.mark.is-active .mark-dot { fill: var(--color-text); r: 7; }
/* на тёмной заливке хабов точка должна оставаться заметной */
.mark-hub.is-active .mark-dot, .mark-transit.is-active .mark-dot { fill: var(--color-primary); }
.mark-hub.is-active .mark-halo { stroke: var(--color-primary); stroke-opacity: 0.35; }
.map-pin-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  fill: var(--color-text);
  paint-order: stroke;
  stroke: #f7f8fa;
  stroke-width: 3.5;
  stroke-linejoin: round;
  dominant-baseline: middle;
}
.map-pin-label.on-dark {
  fill: #ffffff;
  stroke: none;
}
.map-pin-sub.on-dark {
  fill: #cfcfcf;
  stroke: none;
}
.map-pin-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  fill: #6b6d72;
  paint-order: stroke;
  stroke: #f7f8fa;
  stroke-width: 3;
  stroke-linejoin: round;
  dominant-baseline: middle;
}

/* --- тултип --- */
.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  background: var(--color-surface);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-standard);
  font-size: 0.82rem;
  line-height: 1.45;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  max-width: 240px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.22);
}
.map-tooltip.show { opacity: 1; transform: translateY(0); }
.map-tooltip strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  margin-bottom: 2px;
}
.map-tooltip span { color: var(--color-primary); }
.map-tooltip small { display: block; color: #b9b9b9; margin-top: 4px; font-size: 0.75rem; }

/* --- список направлений --- */
.map-routes-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--spacing-md);
}
.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.83rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.route-chip em {
  font-style: normal;
  color: #9a9ca1;
  font-size: 0.78rem;
}
.route-chip .chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex: none;
}
.route-chip-hub .chip-dot, .route-chip-transit .chip-dot { background: var(--color-text); }
.route-chip:hover, .route-chip.is-active {
  border-color: var(--color-primary);
  color: var(--color-text);
  background: #fdfbf6;
}
.route-chip.is-active { border-color: var(--color-primary-dark); }
.route-chip:focus-visible { outline: 2px solid var(--color-primary-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .map-routes .route, .map-zone .zone-shape, .map-tooltip, .mark-dot { transition: none; }
}

@media (max-width: 720px) {
  .map-hint { display: none; }
  /* на узком экране подписи внутри SVG нечитаемы — направления выбираются списком ниже */
  .map-pin-label, .map-pin-sub { display: none; }
  .mark-dot { r: 8; }
  .mark.is-active .mark-dot { r: 11; }
  .mark-halo { stroke-width: 10; }
  .map-routes .route { stroke-width: 2.6; }
  .map-routes .route.is-active { stroke-width: 4.5; }
  /* на узкой карте всплывающая подсказка закрывала бы её целиком — выносим под карту */
  .map-tooltip {
    position: static;
    display: none;
    max-width: none;
    transform: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 0.8rem;
  }
  .map-tooltip.show { display: block; opacity: 1; }
  .route-chip { font-size: 0.8rem; padding: 7px 12px; }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-md) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}
.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-text);
  transition: transform 0.2s ease;
}
.faq-icon::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-icon::after { width: 2px; height: 100%; top: 0; left: 9px; }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding-bottom: var(--spacing-md); max-width: 760px; }

/* ---------- Certificates ---------- */
.cert-strip { display: flex; flex-wrap: wrap; gap: var(--spacing-md); justify-content: center; }
.cert-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
}
.cert-chip svg { width: 20px; height: 20px; color: var(--color-primary-dark); }

/* ---------- Values / Steps generic list ---------- */
.value-item { display: flex; gap: var(--spacing-md); align-items: flex-start; }
.value-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-primary);
  width: 48px;
  flex-shrink: 0;
}

/* ---------- Geography cards ---------- */
.geo-card {
  background: var(--color-surface);
  color: #fff;
  border-radius: var(--radius-standard);
  padding: var(--spacing-md);
}
.geo-card h4 { color: var(--color-primary); margin-bottom: 6px; }
.geo-card p { color: #c7c7c7; margin: 0; font-size: 0.9rem; }

.market-list { display: flex; flex-wrap: wrap; gap: 10px; }
.market-chip {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  padding: 8px 16px;
  font-size: 0.88rem;
  font-family: var(--font-heading);
  font-weight: 500;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--spacing-xl);
}
.contact-info-list { margin-top: var(--spacing-lg); display: flex; flex-direction: column; gap: var(--spacing-md); }
.contact-info-item { display: flex; gap: var(--spacing-sm); }
.contact-info-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { margin-bottom: 2px; }
.contact-info-item p { margin: 0; }

.form-card {
  background: var(--color-muted);
  border-radius: var(--radius-standard);
  padding: var(--spacing-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
.form-group { margin-bottom: var(--spacing-md); }
.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-standard);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-status {
  display: none;
  margin-bottom: var(--spacing-md);
  padding: 12px 16px;
  border-radius: var(--radius-standard);
  font-size: 0.9rem;
}
.form-status.show { display: block; }
.form-status.success { background: #eaf6ee; color: #206b3e; }
.form-status.error { background: #fdecec; color: #9b2226; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.78rem; color: #8a8c91; margin: var(--spacing-sm) 0 0; }
.form-note a { color: var(--color-primary-dark); }
#inquiry-form button[disabled] { opacity: 0.6; cursor: default; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-text);
  padding: var(--spacing-lg) 0;
}
.cta-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}
.cta-banner h2 { margin: 0; font-size: 1.6rem; }
.cta-banner p { color: #4a3f27; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-surface);
  color: #c7c7c7;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { max-width: 320px; margin-top: var(--spacing-sm); }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--spacing-sm); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c7c7c7; font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-primary); }

/* Значок WhatsApp рядом с телефоном в футере */
.wa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  vertical-align: -3px;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.wa-badge:hover { opacity: 1; transform: translateY(-1px); }
.wa-badge-icon { display: block; flex: none; }
.footer-bottom {
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #7a7a7a;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--color-surface);
  color: #fff;
  padding: 64px 0;
}
.page-hero h1 { color: #fff; margin-bottom: var(--spacing-sm); }
.breadcrumb { font-size: 0.85rem; color: #9c9c9c; margin-bottom: var(--spacing-md); }
.breadcrumb a { color: var(--color-primary); }
.page-hero-lede { color: #c7c7c7; max-width: 640px; margin: 0; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero { min-height: 0; padding: 64px 0 88px; }
  .hero h1 { max-width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: var(--spacing-lg); }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: var(--spacing-lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
}

@media (max-width: 720px) {
  .hero { min-height: 480px; padding: 56px 0 72px; }
  .hero-lede { font-size: 0.97rem; }
  .hero-lede-2 { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-scroll { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-row { height: 68px; }
  .header-actions { gap: var(--spacing-sm); }
  .lang-switch > summary { height: 34px; padding: 0 9px; font-size: 0.78rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; }
  .timeline-item::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--spacing-lg) 0; }
  .cta-banner-row { flex-direction: column; align-items: flex-start; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
  }
}

/* ==========================================================================
   Success Notification Modal & Thank You Page Styles
   ========================================================================== */

/* ---------- Modal Notification ---------- */
.success-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.success-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}
.success-modal-card {
  background: #ffffff;
  border-radius: 6px;
  max-width: 520px;
  width: 100%;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 4px solid var(--color-primary);
}
.success-modal-overlay.is-active .success-modal-card {
  transform: translateY(0) scale(1);
}
.success-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}
.success-modal-close:hover {
  color: #111;
  background-color: var(--color-muted);
}
.success-modal-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f4fbf6;
  border: 2px solid #b7ebc7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-modal-icon {
  width: 38px;
  height: 38px;
  stroke: #1e8e3e;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: checkmarkPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes checkmarkPop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.success-modal-title {
  font-size: 1.5rem;
  margin: 0 0 10px;
  color: var(--color-text);
}
.success-modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}
.success-modal-timer {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.success-modal-progress {
  height: 3px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.success-modal-progress-bar {
  height: 100%;
  background: var(--color-primary);
  width: 100%;
  animation: modalProgress 3s linear forwards;
}
@keyframes modalProgress {
  0% { width: 100%; }
  100% { width: 0%; }
}
.success-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.success-modal-actions .btn {
  flex: 1;
  min-width: 160px;
}

/* ---------- Thank You Page Layout ---------- */
.thanks-section {
  padding: 60px 0 90px;
  background: #fafbfc;
}
.thanks-container {
  max-width: 920px;
  margin: 0 auto;
}
.thanks-card-main {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: 48px 40px;
  margin-bottom: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.thanks-card-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}
.thanks-badge-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #f0faf3;
  border: 3px solid #c3e6cb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-badge-icon svg {
  width: 44px;
  height: 44px;
  stroke: #28a745;
}
.thanks-card-main h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 14px;
  color: var(--color-text);
}
.thanks-lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto 28px;
}
.thanks-meta-box {
  background: #f7f8fa;
  border-radius: 4px;
  border-left: 3px solid var(--color-primary);
  padding: 16px 20px;
  text-align: left;
  max-width: 680px;
  margin: 0 auto 32px;
  font-size: 0.92rem;
  color: #444;
}
.thanks-meta-box strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

/* Timeline Steps */
.thanks-steps-wrap {
  margin: 40px 0 20px;
  text-align: left;
}
.thanks-steps-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  color: var(--color-text);
}
.thanks-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.thanks-step-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 22px 18px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.thanks-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.thanks-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--color-surface);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 50%;
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.thanks-step-card h4 {
  font-size: 1rem;
  margin: 0 0 8px;
  color: var(--color-text);
}
.thanks-step-card p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Urgent Contact Box */
.thanks-urgent-box {
  background: var(--color-surface);
  color: #fff;
  border-radius: 6px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.thanks-urgent-box h3 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.thanks-urgent-box p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}
.thanks-urgent-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.thanks-urgent-actions .btn-wa {
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-standard);
  font-weight: 500;
  font-size: 0.9rem;
}
.thanks-urgent-actions .btn-wa:hover {
  background: #20b858;
}
.thanks-urgent-actions .btn-phone {
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-standard);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.thanks-urgent-actions .btn-phone:hover {
  background: rgba(255,255,255,0.2);
}

.thanks-bottom-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (max-width: 820px) {
  .thanks-steps-grid {
    grid-template-columns: 1fr;
  }
  .thanks-card-main {
    padding: 32px 20px;
  }
  .thanks-urgent-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .thanks-urgent-actions {
    width: 100%;
  }
  .thanks-urgent-actions .btn-wa,
  .thanks-urgent-actions .btn-phone {
    width: 100%;
    justify-content: center;
  }
}
