/* ============ TOKENS ============ */
:root {
  --c-emerald: #0B3D2E;
  --c-emerald-deep: #072420;
  --c-gold: #C9A961;
  --c-gold-bright: #E0BE73;
  --c-sand: #F5EFE6;
  --c-graphite: #1A1A1A;
  --c-white: #FFFFFF;
  --c-line: rgba(201,169,97,0.30);
  --c-line-dark: rgba(245,239,230,0.14);
  --f-serif: "Playfair Display", Georgia, serif;
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --radius: 4px;
  --radius-lg: 14px;
  --header-h: 64px;
  --tabbar-h: 60px;
  --section-pad: clamp(56px, 6vw, 92px);
  --t-fast: 180ms ease;
  --t-med: 340ms ease;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
/* =========================================================
   POLITICS PAGE — политика конфиденциальности
   ========================================================= */
.politics,
section#stats.politics {
  background: var(--c-sand);
  padding: clamp(60px, 7vw, 100px) 0;
}

.politics .container {
  max-width: 820px;
}

/* Заголовок h1 */
.politics .section-head {
  text-align: center;
  margin-bottom: 44px;
}

.politics h1.section__title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-emerald);
  letter-spacing: -0.015em;
  margin: 0;
  position: relative;
  padding-bottom: 20px;
}

.politics h1.section__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--c-gold);
}

/* Подзаголовки h2 (разделы 1-9) */
.politics h2 {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--c-emerald);
  line-height: 1.3;
  margin: 40px 0 14px;
  padding-left: 18px;
  border-left: 3px solid var(--c-gold);
}

.politics h2:first-of-type {
  margin-top: 8px;
}

/* Параграфы */
.politics p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.78);
  margin: 0 0 12px;
}

/* Списки (ul) */
.politics ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.politics ul li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.78);
  background: rgba(201, 169, 97, 0.05);
  border-radius: 4px;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.politics ul li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
}

.politics ul li:hover {
  background: rgba(201, 169, 97, 0.12);
  padding-left: 30px;
}

/* Ссылки */
.politics a {
  color: var(--c-gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
  word-break: break-word;
}

.politics a:hover {
  color: var(--c-emerald);
}

/* Email-адреса в тексте — выделить */
.politics p:has(a[href^="mailto"]) {
  padding: 12px 16px;
  background: rgba(201, 169, 97, 0.10);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-gold);
}

/* Адаптив */
@media (max-width: 768px) {
  .politics {
    padding: 40px 0 60px;
  }

  .politics .section-head {
    margin-bottom: 32px;
  }

  .politics h2 {
    margin: 32px 0 12px;
    padding-left: 14px;
  }

  .politics p,
  .politics ul li {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .politics h1.section__title {
    font-size: 24px;
  }

  .politics h2 {
    font-size: 17px;
  }

  .politics p,
  .politics ul li {
    font-size: 13.5px;
    line-height: 1.65;
  }
}
.thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 20px 10px 6px;
  font-family: 'PT Sans', Arial, sans-serif;
  color: #1f2a26;
  animation: thankyou-fade .4s ease;
}
@keyframes thankyou-fade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e6b5f, #147a6c);
  color: #ffcf5e;
  margin-bottom: 16px;
  box-shadow: 0 14px 30px rgba(14, 107, 95, .32),
              inset 0 -3px 0 rgba(0, 0, 0, .12);
  position: relative;
}
.check-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(127, 216, 198, .5);
  animation: thankyou-pulse 2.4s ease-out infinite;
}
@keyframes thankyou-pulse {
  0%   { transform: scale(.9);  opacity: .9; }
  70%  { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(1.3); opacity: 0; }
}
.check-icon svg {
  width: 30px;
  height: 30px;
  stroke: #ffcf5e;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.check-icon svg polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: thankyou-check .5s .25s ease forwards;
}
@keyframes thankyou-check {
  to { stroke-dashoffset: 0; }
}
.thankyou-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #147a6c;
  margin-top: 2px;
}
.thankyou-message {
  font-size: 13.5px;
  line-height: 1.5;
  color: #5c6b66;
  max-width: 340px;
  margin-top: 8px;
}
.fb-check__box {
  pointer-events: none;
}

.fb-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

.fb-check__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;  
}

.fb-check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid rgba(11, 61, 46, 0.35);
  border-radius: 4px;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.fb-check__box svg {
  width: 14px;
  height: 14px;
  color: var(--c-gold);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .18s ease, transform .18s ease;
}

/* hover */
.fb-check:hover .fb-check__box {
  border-color: var(--c-gold, #C9A961);
}

/* checked */
.fb-check__input:checked + .fb-check__box {
  background: var(--c-gold, #C9A961);
  border-color: var(--c-gold, #C9A961);
}
.fb-check__input:checked + .fb-check__box svg {
  opacity: 1;
  transform: scale(1);
}

/* focus (доступность) */
.fb-check__input:focus-visible + .fb-check__box {
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.35);
}

/* ошибка на чекбоксе */
.fb-check__input.error + .fb-check__box,
.fb-check.error .fb-check__box {
  border-color: #e74c3c;
  background: rgba(231, 76, 60, 0.08);
}

/* ---------- Текст согласия ---------- */
.fb-check__text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.72);
}
.fb-check__text a {
  color: var(--c-gold, #C9A961);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.fb-check__text a:hover {
  color: var(--c-emerald, #0B3D2E);
}

/* ---------- Ошибки полей ---------- */
.contact-form__input.error,
.contact-form__textarea.error,
.fb-input.error {
  border-color: #e74c3c !important;
  background: rgba(231, 76, 60, 0.05) !important;
}
.contact-form__input.error::placeholder,
.contact-form__textarea.error::placeholder,
.fb-input.error::placeholder {
  color: #e74c3c;
  font-style: italic;
}

/* Общая плашка ошибки */
.form-error {
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #8a2828;
  background: rgba(231, 76, 60, 0.10);
  border-left: 3px solid #e74c3c;
  border-radius: var(--radius, 4px);
}

/* ---------- Состояние success (когда форма заменяется на благодарность) ---------- */
.my-form.success,
.contact-form.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  background: var(--c-sand, #F5EFE6);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: var(--radius-lg, 14px);
  min-height: 220px;
  animation: formSuccessIn .45s ease both;
}

.my-form.success::before,
.contact-form.success::before {
  content: "";
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--c-gold, #C9A961)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23072420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center/28px 28px no-repeat;
  box-shadow: 0 8px 24px -8px rgba(201, 169, 97, 0.6);
  animation: formSuccessPop .5s ease both;
}

.my-form.success::after,
.contact-form.success::after {
  content: "Спасибо! Заявка отправлена — мы свяжемся с вами в ближайшее время.";
  display: block;
  max-width: 420px;
  font-family: var(--f-serif, "Playfair Display", serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-emerald, #0B3D2E);
}

/* Если successTpl отдаёт свой HTML — стилизуем и его */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 24px;
  background: var(--c-sand, #F5EFE6);
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: var(--radius-lg, 14px);
  animation: formSuccessIn .45s ease both;
}
.form-success h3,
.form-success .form-success__title {
  font-family: var(--f-serif, "Playfair Display", serif);
  font-size: 20px;
  color: var(--c-emerald, #0B3D2E);
  margin: 12px 0 6px;
}
.form-success p,
.form-success .form-success__text {
  font-size: 14px;
  color: rgba(26, 26, 26, 0.72);
  max-width: 420px;
  line-height: 1.55;
}

/* ---------- Анимации ---------- */
@keyframes formSuccessIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes formSuccessPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
/* ============ FOUNDERS ============ */
.founders { background: var(--c-white); }
.founders .text--gold { color: var(--c-gold); }

.founders__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 44px;
}

.founder-card {
  background: var(--c-white);
  border: 1px solid rgba(11,61,46,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px -18px rgba(7,36,32,0.18);
  transition: transform var(--t-med), border-color var(--t-med);
  display: flex;
  flex-direction: column;
}
.founder-card:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.45); }

.founder-card__portrait {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--c-emerald-deep);
}
.founder-card__portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 900ms ease;
}
.founder-card:hover .founder-card__portrait img { transform: scale(1.04); }
.founder-card__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,36,32,0) 40%, rgba(7,36,32,0.78) 100%);
}

.founder-card__origin {
  position: absolute;
  left: 16px; bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gold);
  background: rgba(7,36,32,0.65);
  border: 1px solid rgba(201,169,97,0.45);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.founder-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.founder-card__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 8px;
}
.founder-card__name {
  font-family: var(--f-serif);
  font-size: 22px;
  color: var(--c-emerald);
  margin-bottom: 6px;
  line-height: 1.2;
}
.founder-card__tagline {
  font-size: 13.5px;
  color: rgba(26,26,26,0.68);
  font-style: italic;
  margin-bottom: 18px;
}

.founder-card__positions {
  margin-bottom: 20px;
  flex: 1;
}
.founder-card__positions li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(26,26,26,0.78);
}
.founder-card__positions li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-gold);
}

.founder-card__quote {
  margin: 0;
  padding: 16px 18px;
  border-left: 3px solid var(--c-gold);
  background: var(--c-sand);
  border-radius: var(--radius);
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--c-emerald);
}

.founders__cta {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--c-emerald);
  color: var(--c-sand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.founders__cta p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,239,230,0.85);
  max-width: 640px;
}

/* ============ GALLERY ============ */
.gallery { background: var(--c-sand); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
  margin-top: 44px;
}

.gallery__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-emerald-deep);
  border: 1px solid rgba(11,61,46,0.08);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms ease, filter 400ms ease;
}
.gallery__item:hover img { transform: scale(1.06); filter: brightness(0.85); }

.gallery__caption {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-med), transform var(--t-med);
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: translateY(0); }

.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,36,32,0) 55%, rgba(7,36,32,0.55) 100%);
  opacity: 0;
  transition: opacity var(--t-med);
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

/* Крупные ячейки для «избранных» кадров */
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

/* Адаптив */
@media (max-width: 1100px) {
  .founders__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 2; }
  .founder-card__name { font-size: 19px; }
  .founders__cta { flex-direction: column; align-items: flex-start; }
  .founders__cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery__item--wide { grid-column: auto; }
}

/* Fancybox-стилизация под палитру сайта */
.fancybox__container { --fancybox-bg: rgba(7,36,32,0.96); --fancybox-color: #F5EFE6; }
.fancybox__caption { font-family: var(--f-sans); font-size: 13px; color: #F5EFE6; }
/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-graphite);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: 0; cursor: pointer; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 700; line-height: 1.18; margin: 0; }
p { margin: 0; }

/* ============ UTILS ============ */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 900px; }
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--c-emerald); color: var(--c-sand); }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--c-gold); }
.section__title { font-size: clamp(26px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -0.015em; }
.section__subtitle { font-size: clamp(14px, 1vw, 16px); color: rgba(26,26,26,0.7); margin-top: 14px; max-width: 660px; }
.section-head { margin-bottom: 44px; }
.section-head--center { text-align: center; }
.section-head--center .section__subtitle { margin-left: auto; margin-right: auto; }
.section-head--center .eyebrow { justify-content: center; }

/* ============ BTN ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: var(--radius);
  transition: all var(--t-med);
  white-space: nowrap;
  cursor: pointer;
}
.btn--gold { background: var(--c-gold); color: var(--c-emerald-deep); }
.btn--gold:hover { background: var(--c-gold-bright); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-white); border: 1px solid rgba(245,239,230,0.45); }
.btn--ghost:hover { background: rgba(245,239,230,0.08); border-color: var(--c-gold); color: var(--c-gold); }
.btn--dark-ghost { background: transparent; color: var(--c-emerald); border: 1px solid rgba(11,61,46,0.25); }
.btn--dark-ghost:hover { background: var(--c-emerald); color: var(--c-sand); }
.btn--block { display: flex; width: 100%; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--t-med);
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: rgba(7,36,32,0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(201,169,97,0.18);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--c-sand); }
.logo__mark { width: 32px; height: 32px; flex-shrink: 0; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__title { font-family: var(--f-serif); font-size: 14px; font-weight: 700; color: var(--c-sand); }
.logo__sub { font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--c-gold); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 0; }
.nav__link {
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(245,239,230,0.78);
  position: relative;
  white-space: nowrap;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 11px; right: 11px;
  height: 1px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--c-sand); }
.nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid rgba(201,169,97,0.45); border-radius: var(--radius); overflow: hidden; font-size: 11px; font-weight: 700; }
.lang__btn { padding: 6px 10px; color: rgba(245,239,230,0.55); transition: all var(--t-fast); }
.lang__btn.is-active { background: var(--c-gold); color: var(--c-emerald-deep); }
.lang__btn:hover:not(.is-active) { color: var(--c-sand); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--c-sand); transition: all var(--t-fast); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ MOBILE NAV (drawer) ============ */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom));
  background: var(--c-emerald-deep);
  z-index: 9000; /* ниже tabbar (9999) */
  padding: 20px 22px;
  transform: translateX(100%);
  transition: transform var(--t-med);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__link {
  display: block;
  font-family: var(--f-serif);
  font-size: 20px;
  color: var(--c-sand);
  padding: 14px 0;
  border-bottom: 1px solid rgba(201,169,97,0.18);
}
.mobile-nav__link:hover,
.mobile-nav__link:active { color: var(--c-gold); }

/* ============ HERO ============ */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: var(--c-sand); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(7,36,32,0.92) 0%, rgba(11,61,46,0.78) 45%, rgba(201,169,97,0.22) 100%);
}
.hero__content { position: relative; z-index: 3; max-width: 760px; padding-top: var(--header-h); }
.hero__eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--c-gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--c-gold); }
.hero__title { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero__subtitle { font-size: clamp(14px, 1.1vw, 17px); line-height: 1.55; color: rgba(245,239,230,0.82); max-width: 600px; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ STATS ============ */
.stats { background: var(--c-emerald-deep); color: var(--c-sand); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.stat { text-align: center; padding: 22px 14px; border-right: 1px solid var(--c-line-dark); }
.stat:last-child { border-right: 0; }
.stat__value {
  font-family: var(--f-serif); font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1; color: var(--c-gold); font-weight: 700;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat__value .stat__prefix { font-size: 0.5em; }
.stat__value .stat__suffix { font-size: 0.5em; }
.stat__label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,239,230,0.6); margin-top: 10px; }

/* ============ DIRECTIONS ============ */
.directions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 40px; }
.direction-card {
  background: var(--c-white); border: 1px solid rgba(11,61,46,0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 12px 35px -10px rgba(7,36,32,0.12);
  transition: all var(--t-med); display: flex; flex-direction: column;
}
.direction-card:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.4); }
.direction-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.direction-card__media img { width: 100%; height: 100%; object-fit: cover; }
.direction-card__tag {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  background: var(--c-gold); color: var(--c-emerald-deep);
  padding: 5px 12px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; border-radius: 2px;
}
.direction-card__body { padding: 24px 26px 22px; flex: 1; display: flex; flex-direction: column; }
.direction-card__title { font-size: 20px; margin-bottom: 10px; color: var(--c-emerald); line-height: 1.25; }
.direction-card__text { font-size: 14px; color: rgba(26,26,26,0.72); line-height: 1.6; margin-bottom: 16px; }
.direction-card__points { margin-bottom: 20px; flex: 1; }
.direction-card__points li { padding: 5px 0 5px 22px; position: relative; font-size: 13px; line-height: 1.5; }
.direction-card__points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 1px; background: var(--c-gold); }

/* ============ GEO ============ */
.geo { background: var(--c-emerald); color: var(--c-sand); }
.geo .section__subtitle { color: rgba(245,239,230,0.72); }
.geo__layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.geo__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.45); }
.geo__map img { width: 100%; }
.geo__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.geo__chip {
  background: rgba(245,239,230,0.06);
  border: 1px solid rgba(201,169,97,0.18);
  color: var(--c-sand); padding: 10px 6px;
  font-size: 12px; font-weight: 500; text-align: center;
  border-radius: var(--radius); transition: all var(--t-fast);
}
.geo__chip:hover, .geo__chip.is-active {
  background: var(--c-gold); color: var(--c-emerald-deep); border-color: var(--c-gold);
}
.geo__info {
  margin-top: 20px; background: rgba(7,36,32,0.5);
  border: 1px solid rgba(201,169,97,0.25); border-left: 3px solid var(--c-gold);
  padding: 16px 20px; border-radius: var(--radius); min-height: 84px;
}
.geo__info-title { font-family: var(--f-serif); font-size: 18px; color: var(--c-gold); margin-bottom: 6px; }
.geo__info-text { font-size: 13.5px; color: rgba(245,239,230,0.78); line-height: 1.55; }

/* ============ SERVICES ============ */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.service-card {
  background: var(--c-white); border: 1px solid rgba(11,61,46,0.08);
  border-radius: var(--radius-lg); padding: 24px 22px;
  transition: all var(--t-med);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.4); }
.service-card__icon { width: 34px; height: 34px; color: var(--c-gold); margin-bottom: 16px; }
.service-card__icon svg { width: 100%; height: 100%; stroke-width: 1.4; }
.service-card__title { font-size: 16px; color: var(--c-emerald); margin-bottom: 8px; line-height: 1.3; }
.service-card__text { font-size: 13px; line-height: 1.55; color: rgba(26,26,26,0.68); }

/* ============ ADVANTAGES ============ */
.adv { background: var(--c-sand); }
.adv__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; border: 1px solid rgba(201,169,97,0.25); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-white); }
.adv-card { padding: 26px 24px; border-right: 1px solid rgba(11,61,46,0.07); border-bottom: 1px solid rgba(11,61,46,0.07); }
.adv-card:nth-child(3n) { border-right: 0; }
.adv-card:nth-last-child(-n+3) { border-bottom: 0; }
.adv-card__title { font-size: 16px; color: var(--c-emerald); margin-bottom: 6px; line-height: 1.3; }
.adv-card__text { font-size: 13px; color: rgba(26,26,26,0.68); line-height: 1.55; }

/* ============ PROCESS ============ */
.process__layout { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; margin-top: 40px; align-items: start; }
.process__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 20px 40px -15px rgba(7,36,32,0.3); }
.process__media img { width: 100%; }
.process-step { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(11,61,46,0.08); }
.process-step:last-child { border-bottom: 0; }
.process-step__num { font-family: var(--f-serif); font-size: 34px; color: var(--c-gold); line-height: 1; font-weight: 700; }
.process-step__title { font-size: 18px; color: var(--c-emerald); margin-bottom: 5px; }
.process-step__text { font-size: 13.5px; color: rgba(26,26,26,0.7); line-height: 1.6; }

/* ============ CASES ============ */
.cases { background: var(--c-emerald-deep); color: var(--c-sand); }
.cases .section__subtitle { color: rgba(245,239,230,0.72); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.case-card { background: rgba(245,239,230,0.04); border: 1px solid rgba(201,169,97,0.18); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--t-med); }
.case-card:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.55); }
.case-card__media { aspect-ratio: 16/9; overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 20px 22px 22px; }
.case-card__tag { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-gold); margin-bottom: 8px; }
.case-card__title { font-size: 18px; color: var(--c-sand); margin-bottom: 8px; line-height: 1.3; }
.case-card__text { font-size: 13px; line-height: 1.6; color: rgba(245,239,230,0.72); }

/* ============ INDUSTRIES ============ */
.industries { background: var(--c-sand); }
.industries__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.industry-card { background: var(--c-white); border: 1px solid rgba(11,61,46,0.07); border-radius: var(--radius-lg); padding: 22px 18px; transition: all var(--t-med); text-align: center; }
.industry-card:hover { transform: translateY(-4px); border-color: rgba(201,169,97,0.45); }
.industry-card__title { font-size: 15px; color: var(--c-emerald); margin-bottom: 5px; }
.industry-card__text { font-size: 12px; color: rgba(26,26,26,0.65); line-height: 1.5; }
.error input[placeholder]          {-o-text-overflow:ellipsis;text-overflow:ellipsis; font-style:italic; color:#ff0048 !important}
.error::-webkit-input-placeholder {text-overflow:ellipsis; font-style:italic; color:#ff0048 !important}
.error::-moz-placeholder     {text-overflow:ellipsis; font-style:italic; color:#ff0048 !important} 
.error:-moz-placeholder      {text-overflow:ellipsis; font-style:italic; color:#ff0048 !important} 
.error:-ms-input-placeholder {text-overflow:ellipsis; font-style:italic; color:#ff0048 !important}
/* ============ TESTIMONIALS ============ */
.testimonials__carousel { margin-top: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.testimonial-track { overflow: hidden; }
.testimonial-slides { display: flex; transition: transform 700ms ease; }
.testimonial-slide { flex: 0 0 100%; padding: 32px 38px; background: var(--c-sand); border-radius: var(--radius-lg); border-left: 3px solid var(--c-gold); }
.testimonial-text { font-family: var(--f-serif); font-style: italic; font-size: 17px; line-height: 1.55; color: var(--c-emerald); margin-bottom: 18px; }
.testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-weight: 600; font-size: 13.5px; }
.testimonial-role { font-size: 12px; color: rgba(26,26,26,0.6); }
.testimonial-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; }
.testimonial-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(11,61,46,0.25); display: grid; place-items: center; color: var(--c-emerald); transition: all var(--t-fast); }
.testimonial-btn:hover { background: var(--c-emerald); color: var(--c-sand); }
.testimonial-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.testimonial-dots { display: flex; gap: 6px; }
.testimonial-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(11,61,46,0.22); transition: all var(--t-fast); }
.testimonial-dot.is-active { background: var(--c-gold); width: 20px; border-radius: 4px; }

/* ============ FAQ ============ */
.faq { background: var(--c-sand); }
.faq__list { margin-top: 40px; }
.faq-item { background: var(--c-white); border: 1px solid rgba(11,61,46,0.07); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-item.is-open { border-color: rgba(201,169,97,0.45); }
.faq-item__head {
  width: 100%; text-align: left; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--f-serif); font-size: 15.5px; color: var(--c-emerald); font-weight: 600;
}
.faq-item__icon {
  width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: rgba(201,169,97,0.15); color: var(--c-gold);
  font-size: 18px; line-height: 1; transition: all var(--t-fast);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); background: var(--c-gold); color: var(--c-emerald-deep); }
.faq-item__body { max-height: 0; overflow: hidden; transition: max-height 340ms ease; }
.faq-item__body-inner { padding: 0 22px 18px; font-size: 13.5px; line-height: 1.6; color: rgba(26,26,26,0.72); }

/* ============ CTA ============ */
.cta { position: relative; color: var(--c-sand); text-align: center; padding: var(--section-pad) 0; overflow: hidden; }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,36,32,0.85), rgba(7,36,32,0.95)); }
.cta__inner { position: relative; z-index: 2; }
.cta__title { font-size: clamp(26px, 3.4vw, 42px); margin-bottom: 12px; }
.cta__subtitle { font-size: 15px; color: rgba(245,239,230,0.78); margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }

/* ============ CONTACTS ============ */
.contacts__layout { margin-top: 40px; }
.contact-form { background: var(--c-sand); border-radius: var(--radius-lg); padding: 30px; border: 1px solid rgba(201,169,97,0.2); }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-emerald); font-weight: 600; }
.contact-form__input, .contact-form__textarea {
  font-family: var(--f-sans); font-size: 14px; padding: 11px 14px;
  background: var(--c-white); border: 1px solid rgba(11,61,46,0.18);
  border-radius: var(--radius); color: var(--c-graphite); width: 100%;
  transition: border-color var(--t-fast);
}
.contact-form__input:focus, .contact-form__textarea:focus { outline: 0; border-color: var(--c-gold); }
.contact-form__textarea { resize: vertical; min-height: 90px; }
.contact-form__full { grid-column: 1 / -1; }
.contact-form__status { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); font-size: 13px; display: none; }
.contact-form__status.is-success { background: rgba(11,61,46,0.12); color: var(--c-emerald); display: block; }
.contact-form__status.is-error { background: rgba(170,40,40,0.12); color: #8a2828; display: block; }

.contact-aside__group { margin-bottom: 26px; }
.contact-aside__title { font-family: var(--f-serif); font-size: 17px; color: var(--c-emerald); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.contact-office { padding: 10px 0; border-bottom: 1px dashed rgba(11,61,46,0.15); }
.contact-office:last-child { border-bottom: 0; }
.contact-office__city { font-family: var(--f-serif); font-size: 14px; color: var(--c-emerald); font-weight: 700; }
.contact-office__addr { font-size: 12.5px; color: rgba(26,26,26,0.7); line-height: 1.5; }
.contact-office__phone { font-size: 12.5px; color: var(--c-gold); font-weight: 600; }
.contact-messengers { display: flex; gap: 8px; flex-wrap: wrap; }
.messenger-btn { padding: 9px 14px; border-radius: var(--radius); border: 1px solid rgba(11,61,46,0.18); background: var(--c-white); font-size: 12.5px; font-weight: 600; color: var(--c-emerald); transition: all var(--t-fast); }
.messenger-btn:hover { border-color: var(--c-gold); color: var(--c-gold); }

/* ============ FOOTER ============ */
.footer { background: var(--c-emerald-deep); color: rgba(245,239,230,0.72); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--c-line-dark); }
.footer__about { margin-top: 14px; font-size: 12.5px; line-height: 1.6; max-width: 320px; }
.footer__col-title { font-family: var(--f-serif); font-size: 13.5px; color: var(--c-gold); margin-bottom: 12px; }
.footer__nav-link { display: block; padding: 4px 0; font-size: 12.5px; color: rgba(245,239,230,0.65); transition: color var(--t-fast); }
.footer__nav-link:hover { color: var(--c-gold); }
.footer__bottom { padding-top: 20px; font-size: 12px; color: rgba(245,239,230,0.55); }

/* ============ TAB BAR (mobile app-like) ============ */
.tabbar {
  display: none; /* показывается только на мобиле */
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(7, 36, 32, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(201, 169, 97, 0.22);
  z-index: 9999; /* ВЫШЕ всего, включая cookie (200) и drawer (9000) */
  will-change: transform; /* фикс рендеринга fixed на iOS */
}
.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(245,239,230,0.55);
  font-size: 10px;
  font-weight: 500;
  padding: 6px 2px;
  position: relative;
  transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
}
.tabbar__item svg { width: 20px; height: 20px; stroke-width: 1.7; }
.tabbar__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar__item.is-active { color: var(--c-gold); }
.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 2px;
  background: var(--c-gold);
  border-radius: 0 0 3px 3px;
}
.tabbar__item:active { transform: scale(0.95); }

/* ============ COOKIE ============ */
.cookie {
  position: fixed;
  left: 18px; right: 18px;
  bottom: 18px;
  max-width: 620px;
  background: var(--c-emerald-deep);
  color: var(--c-sand);
  border: 1px solid rgba(201,169,97,0.35);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex; align-items: center; gap: 16px;
  z-index: 200; /* НИЖЕ tabbar, выше контента */
  transform: translateY(140%);
  transition: transform var(--t-med);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4);
}
.cookie.is-show { transform: translateY(0); }
.cookie__text { font-size: 12.5px; line-height: 1.5; flex: 1; }
.cookie__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie__btn { padding: 8px 14px; border-radius: var(--radius); font-size: 12px; font-weight: 600; }
.cookie__btn--accept { background: var(--c-gold); color: var(--c-emerald-deep); }
.cookie__btn--decline { color: var(--c-sand); border: 1px solid rgba(245,239,230,0.3); }

/* ============ TO TOP ============ */
.to-top {
  position: fixed; right: 20px; bottom: 20px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-gold); color: var(--c-emerald-deep);
  display: grid; place-items: center; z-index: 90;
  opacity: 0; pointer-events: none; transform: translateY(20px);
  transition: all var(--t-med);
}
.to-top.is-show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 16px; height: 16px; stroke-width: 2.2; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: flex; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .industries__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .geo__layout { grid-template-columns: 1fr; }
  .geo__list { grid-template-columns: repeat(4, 1fr); }
  .process__layout { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr 1fr; }
  .adv__grid { grid-template-columns: 1fr 1fr; }
  .adv-card:nth-child(3n) { border-right: 1px solid rgba(11,61,46,0.07); }
  .adv-card:nth-child(2n) { border-right: 0; }
  .adv-card:nth-last-child(-n+3) { border-bottom: 1px solid rgba(11,61,46,0.07); }
  .adv-card:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; --section-pad: 52px; }

  .container { padding: 0 18px; }

  /* header как app bar */
  .header {
    background: rgba(7, 36, 32, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.12);
  }
  .header__actions .btn { display: none; }
  .logo__mark { width: 28px; height: 28px; }
  .logo__title { font-size: 13px; }

  /* ====== TABBAR: включаем ====== */
  .tabbar { display: flex; }
  .to-top { display: none; }

  /* ====== КОНТЕНТ не под tabbar ======
     padding-bottom на main и footer, а не на body */
  main {
    display: block;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 20px);
  }
  .footer {
    padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 32px);
  }

  /* ====== COOKIE: над tabbar ====== */
  .cookie {
    bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
    left: 12px; right: 12px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 14px 16px;
    max-width: none;
  }
  .cookie__actions { justify-content: center; }

  /* hero */
  .hero { min-height: calc(100vh - var(--tabbar-h) - var(--safe-bottom)); }
  .hero__title { font-size: clamp(26px, 7.5vw, 34px); }
  .hero__subtitle { font-size: 14px; margin-bottom: 22px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }

  /* stats 2x2 */
  .stats__grid { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .stat { border-bottom: 1px solid var(--c-line-dark); padding: 18px 10px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat__value { font-size: 30px; }
  .stat__label { font-size: 10px; }

  /* 1 колонка */
  .directions__grid { grid-template-columns: 1fr; gap: 16px; }
  .services__grid, .industries__grid, .cases__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .adv__grid { grid-template-columns: 1fr; margin-top: 28px; }
  .adv-card { border-right: 0 !important; border-bottom: 1px solid rgba(11,61,46,0.07) !important; padding: 22px 20px; }
  .adv-card:last-child { border-bottom: 0 !important; }
  .geo__list { grid-template-columns: 1fr 1fr 1fr; }
  .geo__chip { font-size: 11.5px; padding: 8px 4px; }
  .process-step { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; }
  .process-step__num { font-size: 26px; }
  .process-step__title { font-size: 16px; }
  .testimonial-slide { padding: 24px 20px; }
  .testimonial-text { font-size: 15px; }
  .contacts__layout { grid-template-columns: 1fr; gap: 24px; }
  .contact-form { padding: 22px 18px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 10px; }
  .contact-form__input, .contact-form__textarea { font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; gap: 22px; }

  /* якорный скролл с учётом tabbar */
  section[id] {
    scroll-margin-top: calc(var(--header-h) + 8px);
    scroll-margin-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
  }
}

@media (max-width: 380px) {
  .geo__list { grid-template-columns: 1fr 1fr; }
  .tabbar__item span { font-size: 9px; }
  .tabbar__item svg { width: 18px; height: 18px; }
}

/* ============ PRINT ============ */
@media print {
  .header, .to-top, .cookie, .mobile-nav, .tabbar { display: none !important; }
  main { padding-bottom: 0 !important; }
}