/*
Theme Name: ВЕТАПТЕКА.ПРО
Description: Компаундинговая ветеринарная аптека
Version: 1.0.1
Text Domain: vetapteka
*/

/* ============================================================
   ВЕТАПТЕКА.ПРО — Quiet Luxury
   Green is a whisper, not a shout. Warm whites dominate.
   Space and serif typography carry the elegance.
   ============================================================ */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  /* The ONE green — accent only, used with discipline */
  --green:          #3d7a52;
  --green-hover:    #2e6642;
  --green-pale:     rgba(61, 122, 82, 0.07);
  --green-border:   rgba(61, 122, 82, 0.16);

  /* Hero anchor — forest green, brand-matched to logo */
  --hero-bg:        #152319;
  --header-dark:    rgba(18, 32, 22, 0.97);

  /* Dark sections — charcoal, NOT green (avoids green overload) */
  --charcoal:       #1a1e1c;
  --charcoal-mid:   #232827;
  --charcoal-card:  rgba(255, 255, 255, 0.04);
  --charcoal-border:rgba(255, 255, 255, 0.07);

  /* Light surfaces — sage-tinted to echo the logo's green */
  --warm-white:     #eff6f1;
  --warm-linen:     #e4f0e9;
  --warm-card:      #f7fcf9;

  /* Gold — from logo's dog motif, very selective use */
  --gold:           #b8881a;
  --gold-pale:      rgba(184, 136, 26, 0.1);
  --gold-border:    rgba(184, 136, 26, 0.25);

  /* Typography */
  --text:           #1e2421;
  --text-body:      #3d4840;
  --text-muted:     #7a8478;
  --text-dim:       #adb5a9;
  --text-light:     #ede9e2;
  --text-light-muted: rgba(237, 233, 226, 0.58);

  /* UI */
  --header-h:       96px;
  --header-logo-size: 84px;
  --admin-bar-offset: 0px;
  --radius:         4px;
  --radius-md:      8px;
  --radius-lg:      14px;
  --trans:          0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow:     0.5s  cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows — barely-there on light, deeper on dark */
  --shadow-xs:      0 1px  8px rgba(20, 28, 24, 0.06);
  --shadow-sm:      0 4px 20px rgba(20, 28, 24, 0.08);
  --shadow-md:      0 8px 40px rgba(20, 28, 24, 0.11);
  --shadow-hero:    0 32px 80px rgba(0,  0,  0,  0.65);
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--admin-bar-offset));
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;        /* ← критично: без этого body-overflow не работает */
}

body {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background: var(--warm-white);
  line-height: 1.72;
  overflow-x: hidden;
  overflow-wrap: break-word; /* ← длинные слова/номера не ломают раскладку */
  word-break: break-word;
}

img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
address { font-style: normal; }

/* flex/grid дети могут переполнять родителя если нет min-width:0 */
.header-inner > *,
.about-inner > *,
.certificate-inner > *,
.contacts-inner > *,
.footer-top-inner > *,
.footer-bottom-inner > *,
.stats-inner > *,
.contact-row > * { min-width: 0; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5.5vw, 72px);
}

/* ── LABELS ─────────────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
/* Tiny decorative dash before label */
.label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--green);
  opacity: 0.7;
  flex-shrink: 0;
}
.label-center {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* On light-green sections */
.section-dark .label { color: var(--green); }
.section-dark .label::before { background: var(--green); }

/* ── SECTION TITLES ─────────────────────────────────────────── */
.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  color: var(--text);
  margin-bottom: 20px;
}
.section-title-center { text-align: center; }
.section-dark .section-title { color: var(--text); }

.section-header { margin-bottom: clamp(44px, 6vw, 76px); }

.section-subtitle {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.78;
  margin-top: 14px;
}
.section-dark .section-subtitle { color: var(--text-muted); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: var(--trans);
  cursor: pointer;
  white-space: nowrap;
}

/* Primary — green, used for all main CTAs */
.btn-gold {
  background: var(--green);
  color: #ffffff;
}
.btn-gold:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(61,122,82,0.28);
}
.btn-gold:active { transform: none; }

/* Outline — for header */
.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
}

.btn-sm { padding: 10px 20px; font-size: 12.5px; }

/* ── LIGHT GREEN SECTION (бывший dark) ─────────────────────── */
.section-dark {
  background-color: #edf7f1;
  background-image: linear-gradient(160deg, #f4fbf7 0%, #e8f5ed 55%, #dff0e6 100%);
}

/* ── FADE-UP (JS) ───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.62s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.62s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }


/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  inset-block-start: var(--admin-bar-offset);
  inset-inline: 0;
  z-index: 200;   /* хедер ниже оверлея — оверлей закрывает страницу вместе с хедером */
  transition: background var(--trans), box-shadow var(--trans);
}

.site-header.scrolled {
  background: var(--header-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(61,122,82,0.15), 0 4px 32px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.logo-img {
  width: var(--header-logo-size);
  height: var(--header-logo-size);
  object-fit: contain;
  border-radius: 50%;
  margin: 0;
}
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1;
}
.logo-pro { color: var(--gold); }

/* Desktop nav */
.main-nav { margin-inline-start: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(237,233,226,0.9);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--trans);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 100%;
  height: 1px;
  background: var(--green);
  transition: right var(--trans);
}
.nav-link:hover { color: var(--text-light); }
.nav-link:hover::after { right: 0; }

/* Header CTA */
.header-cta { margin-inline-start: 24px; flex-shrink: 0; }

/* ── Burger ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  margin-inline-start: auto;
  flex-shrink: 0;
  /* z-index не нужен — бургер внутри хедера (z-index 200),
     хедер перекрывается оверлеем (z-index 300) когда меню открыто,
     но бургер всё равно кликабелен т.к. overlay pointer-events убираются после анимации */
}
.burger-bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
  transform-origin: center;
}
.site-header.menu-open .burger-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-header.menu-open .burger-bar:nth-child(2) { opacity: 0; }
.site-header.menu-open .burger-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Overlay — затемняет страницу за панелью ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;  /* выше хедера (200), ниже панели (400) */
  background: rgba(10, 16, 12, 0.52);
  /* backdrop-filter убран — он блюрил хедер и элементы под ним */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}
/* Бургер кликабелен поверх оверлея, но ниже самой панели */
body.menu-open .site-header {
  z-index: 350; /* выше оверлея (300), ниже панели (400) */
}

/* ── Правая панель — вне хедера, поэтому z-index в корневом контексте ── */
.mobile-menu {
  position: fixed;
  top: var(--admin-bar-offset);
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  z-index: 400;  /* выше оверлея (300) */
  background: #f4fbf7;
  background-image: radial-gradient(circle, rgba(61,122,82,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  border-left: 1px solid rgba(61,122,82,0.15);
  box-shadow: -20px 0 60px rgba(0,0,0,0.18);
  transform: translateX(110%); /* 110% — тень тоже уходит за край */
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
body.menu-open .mobile-menu {
  transform: translateX(0);
}

/* ── Шапка панели ── */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(61,122,82,0.1);
  background: #fff;
  flex-shrink: 0;
}
.mobile-menu-brand {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.mobile-menu-brand em {
  font-style: normal;
  color: var(--gold);
}
.mobile-menu-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  color: var(--text);
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
  flex-shrink: 0;
}
.mobile-menu-close:hover {
  background: rgba(61,122,82,0.16);
  transform: rotate(90deg);
}

/* ── Список ссылок ── */
.mobile-nav-list {
  padding: 10px 22px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-body);
  border-bottom: 1px solid rgba(61,122,82,0.08);
  transition: color var(--trans), padding-left var(--trans);
}
.mobile-nav-link:hover { color: var(--green); padding-left: 8px; }
.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  padding: 13px 22px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  width: 100%;
  transition: background var(--trans), box-shadow var(--trans);
}
.mobile-nav-cta:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 20px rgba(61,122,82,0.28);
}

/* ── Блокировка прокрутки (overflow и padding управляются через JS-инлайн,
      чтобы восстанавливаться ПОСЛЕ анимации, а не мгновенно) ── */

/* Только для lightbox — у него нет анимации закрытия, поэтому через CSS */
body.lightbox-open {
  overflow: hidden;
  padding-right: var(--scrollbar-w, 0px);
}
body.lightbox-open .site-header {
  padding-right: var(--scrollbar-w, 0px);
}


/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: none;
  background-size: 114% auto;
  background-position: 60% 10%;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14,24,18,0.95) 0%, rgba(14,24,18,0.82) 0%, rgba(14,24,18,0.15) 80%),
    linear-gradient(to bottom, rgba(53, 196, 110, 0.15) 0%, rgba(14,24,18,0.6) 100%);
}


.hero-content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--header-h) + 80px) 160px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,160,80,0.85);
  margin-bottom: 24px;
  opacity: 0;
  animation: revealUp 0.7s 0.2s ease both;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 6rem);
  color: var(--text-light);
  line-height: 1.02;
  margin-bottom: 22px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  opacity: 0;
  animation: revealUp 0.7s 0.38s ease both;
}
.hero-title em {
  font-style: italic;
  color: rgba(201,160,80,0.9);
}

.hero-subtitle {
  font-size: clamp(0.975rem, 1.5vw, 1.1rem);
  color: rgba(237,233,226,0.62);
  max-width: 420px;
  line-height: 1.75;
  margin-bottom: 40px;
  opacity: 0;
  animation: revealUp 0.7s 0.54s ease both;
}

.hero-btn {
  opacity: 0;
  animation: revealUp 0.7s 0.68s ease both;
  background: var(--gold) !important;
  color: #ffffff !important;
  font-size: 13.5px;
  padding: 14px 30px;
}
.hero-btn:hover {
  background: #c99820 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(184,136,26,0.35);
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.desktop-br { display: inline; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 108px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(184,136,26,0.7), transparent);
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.3; transform: scaleY(0.9); }
  55%       { opacity: 1;   transform: scaleY(1); }
}


/* ══════════════════════════════════════════════════════════════
   О НАС
══════════════════════════════════════════════════════════════ */
.about {
  background: var(--warm-white);
  padding-block: clamp(80px, 11vw, 132px);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-img {
  width: 100%;
  height: clamp(360px, 48vw, 560px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  transition: box-shadow var(--trans-slow);
}
.about-image-wrap:hover .about-img {
  box-shadow: var(--shadow-md), 0 0 0 2px var(--green-border);
}

/* Floating badge */
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(61,122,82,0.3);
  border: 4px solid var(--warm-white);
}
.about-badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.about-badge-text {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  text-align: center;
}

.about-text-wrap { padding-inline-start: 4px; }

.about-text-wrap .section-header {
  margin-bottom: 24px;
}

.about-p {
  color: var(--text-body);
  line-height: 1.82;
  font-size: 0.975rem;
  margin-bottom: 14px;
}
.about-p:last-of-type { margin-bottom: 0; }

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-body);
  font-weight: 500;
}
.feature-dot {
  color: var(--green);
  font-size: 8px;
  flex-shrink: 0;
  margin-top: 5px;
}


/* ══════════════════════════════════════════════════════════════
   SHARED SECTION PADDING + CARDS
══════════════════════════════════════════════════════════════ */
.services,
.approach { padding-block: clamp(72px,10vw,120px); }

.solutions {
  padding-block: clamp(72px,10vw,120px);
  background: var(--warm-linen);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* ── Cards on light-green sections ── */
.card {
  background: #ffffff;
  border: 1px solid rgba(61,122,82,0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card {
  border-top: 2px solid transparent;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--green-border);
  border-top-color: var(--green);
  box-shadow: 0 20px 56px rgba(20,60,35,0.13);
}
.card .card-title { color: var(--text); }
.card .card-desc  { color: var(--text-muted); }

/* Green CTA on light cards */
.card .btn-gold {
  background: var(--green);
  color: #ffffff;
}
.card .btn-gold:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 18px rgba(61,122,82,0.3);
}

/* ── Cards on light sections (Solutions) ── */
.card-light {
  background: var(--warm-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card-light:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-border);
}
.card-light .card-title { color: var(--text); }
.card-light .card-desc  { color: var(--text-muted); }

/* Shared image */
.card-img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-img,
.card-light:hover .card-img { transform: scale(1.06); }

/* Shared body */
.card-body {
  padding: clamp(18px, 2.5vw, 24px);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}
.card-desc { font-size: 13.5px; line-height: 1.68; flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 12px; }


/* ══════════════════════════════════════════════════════════════
   CERTIFICATE
══════════════════════════════════════════════════════════════ */
.certificate {
  background: var(--warm-white);
  padding-block: clamp(72px, 10vw, 120px);
}

.certificate-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
}

.cert-btn {
  position: relative;
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(0,0,0,0.08);
  transition: border-color var(--trans), box-shadow var(--trans-slow);
  background: var(--warm-card);
}
.cert-btn:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-md);
}
.cert-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.55s ease;
}
.cert-btn:hover .cert-img { transform: scale(1.03); }

.cert-zoom-hint {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(14, 24, 18, 0.58);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--trans);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.cert-btn:hover .cert-zoom-hint { opacity: 1; }

.cert-p {
  color: var(--text-body);
  line-height: 1.82;
  font-size: 0.975rem;
  margin-bottom: 24px;
}

.cert-details {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm-card);
  margin-bottom: 30px;
}
.cert-row {
  display: flex;
  padding: 11px 16px;
  gap: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13.5px;
}
.cert-row:last-child { border-bottom: none; }
.cert-row dt { color: var(--text-muted); flex-shrink: 0; width: 160px; font-weight: 400; }
.cert-row dd { color: var(--text); font-weight: 500; }
.cert-status { color: var(--green); font-weight: 600; }
.cert-status::before { content: '● '; font-size: 9px; vertical-align: middle; }


/* ══════════════════════════════════════════════════════════════
   CONTACTS
══════════════════════════════════════════════════════════════ */
.contacts { padding-block: clamp(72px,10vw,120px); }

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 88px);
  align-items: start;
}

.certificate-text-col .section-header,
.contacts-text-col .section-header {
  margin-bottom: 28px;
}

.contacts-addr {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.contact-row { display: flex; align-items: flex-start; gap: 16px; }

.contact-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green-pale);
  border: 1px solid var(--green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-top: 2px;
}
/* Light-green section overrides */
.section-dark .contact-icon {
  background: var(--green-pale);
  border-color: var(--green-border);
  color: var(--green);
}

.contact-row strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.section-dark .contact-row strong { color: var(--green); }

.contact-row p { font-size: 14px; color: var(--text-muted); line-height: 1.55; }
.section-dark .contact-row p { color: var(--text-muted); }

.contact-phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--trans);
}
.section-dark .contact-phone { color: var(--text); }
.contact-phone:hover { color: var(--green); }
.section-dark .contact-phone:hover { color: var(--green); }

.contacts-map-col { border-radius: var(--radius-md); overflow: hidden; }
.contacts-map {
  display: block;
  border-radius: var(--radius-md);
  filter: grayscale(0.3) brightness(0.9);
  transition: filter var(--trans);
}
.contacts-map:hover { filter: grayscale(0) brightness(1); }


/* ══════════════════════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════════════════════ */
.cta-banner {
  background: var(--green);
  padding-block: clamp(60px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}
/* Very subtle texture circles — barely visible */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
}
.cta-banner::before { width: 480px; height: 480px; top: -200px; right: -100px; }
.cta-banner::after  { width: 320px; height: 320px; bottom: -160px; left: 5%; }

.cta-inner { position: relative; z-index: 1; text-align: center; }

.cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  color: #fff;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 18px;
  letter-spacing: 0;
}
.cta-text { font-size: 1rem; color: rgba(255,255,255,0.72); }
.cta-link {
  display: inline-block;
  white-space: nowrap;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.38);
  transition: border-color var(--trans);
}
.cta-link:hover { border-color: #fff; }


/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.faq { padding-block: clamp(72px,10vw,120px); }

.faq-list {
  max-width: 760px;
  margin-inline: auto;
  margin-top: 52px;
}
.faq-item { border-bottom: 1px solid var(--green-border); }
.faq-item:first-child { border-top: 1px solid var(--green-border); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  text-align: left;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  cursor: pointer;
  transition: color var(--trans);
}
.faq-q:hover { color: var(--green); }

/* +/× icon */
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid rgba(184,136,26,0.35);
  border-radius: 50%;
  position: relative;
  transition: border-color var(--trans), background var(--trans), transform var(--trans);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--gold);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.faq-icon::before { width: 9px; height: 1px; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1px; height: 9px; transform: translate(-50%,-50%); }

.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: rotate(45deg);
}

/* Answer panel */
.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.44s cubic-bezier(0.4, 0, 0.2, 1),
    opacity    0.32s ease;
}
.faq-a.faq-open {
  max-height: 400px;
  opacity: 1;
}

.faq-a-inner { padding-bottom: 22px; padding-right: 48px; }
.faq-a-inner p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.faq-a-inner a {
  color: var(--gold);
  border-bottom: 1px solid rgba(184,136,26,0.28);
  transition: border-color var(--trans);
}
.faq-a-inner a:hover { border-color: var(--gold); }


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(160deg, #0f1712 0%, #16211a 58%, #1c2a21 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  padding-block: 56px;
}

.footer-brand  { display: flex; flex-direction: column; gap: 14px; }
.logo-footer .logo-img  { width: 38px; height: 38px; }
.logo-footer .logo-text { font-size: 15px; }
.footer-tagline {
  font-size: 12.5px;
  color: rgba(237,233,226,0.62);
  max-width: 200px;
  line-height: 1.6;
}

.footer-nav { display: flex; justify-content: center; }
.footer-nav-list { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.footer-nav-list a {
  font-size: 13px;
  color: #ffffff;
  transition: color var(--trans);
}


.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.footer-phone {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--trans);
}
.footer-phone:hover { color: var(--gold); }
.footer-addr { font-size: 12.5px; color: rgba(237,233,226,0.62); text-align: right; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-block: 20px; }
.footer-bottom p { font-size: 11.5px; color: rgba(237,233,226,0.50); text-align: center; }


/* ══════════════════════════════════════════════════════════════
   LIGHTBOX
══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: zoom-out;
  animation: bFadeIn 0.22s ease;
}
@keyframes bFadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 2;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  transition: background var(--trans), transform var(--trans);
}
.lightbox-close:hover { background: rgba(255,255,255,0.13); transform: rotate(90deg); }

.lightbox-figure {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1000px);
  animation: lbIn 0.26s ease;
}
@keyframes lbIn {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.75);
}

.lightbox-caption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(237,233,226,0.42);
  letter-spacing: 0.04em;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 1024px
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --header-h: 84px;
    --header-logo-size: 72px;
  }

  .hero-bg {
    background-size: cover;
    background-position: 40% 30%;
  }

  .main-nav   { display: none; }
  .header-cta { display: none; }
  .burger     { display: flex; }

  .about-inner      { grid-template-columns: 1fr; gap: 56px; }
  .about-image-wrap { order: -1; }
  .about-badge      { right: 12px; bottom: -14px; }

  .cards-grid       { grid-template-columns: 1fr 1fr; }

  .certificate-inner { grid-template-columns: 1fr; }
  .certificate-img-col { max-width: 560px; margin-inline: auto; }

  .contacts-inner   { grid-template-columns: 1fr; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
  }
  .footer-contact { grid-column: 2; grid-row: 1; }
  .footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }
  .footer-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
    text-align: left;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 768px
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --header-h: 72px;
    --header-logo-size: 58px;
  }

  .hero-bg      { background-position: 45% 28%; }
  .hero-title   { font-size: clamp(2.6rem,10vw,3.6rem); }
  .desktop-br   { display: none; }
  .hero-overlay::after { display: none; }
  .hero-scroll  { bottom: 48px; }
  .hero-content { padding-bottom: 100px; }

  .cards-grid   { grid-template-columns: 1fr; }

  .about-badge  { width: 86px; height: 86px; right: 8px; bottom: -12px; }
  .about-badge-num { font-size: 21px; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 28px;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-tagline { max-width: 100%; text-align: center; }
  .footer-contact { align-items: center; grid-column: 1; grid-row: 2; }
  .footer-addr { text-align: center; }
  .footer-nav { grid-column: 1; grid-row: 3; justify-content: center; }
  .footer-nav-list { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 480px
══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title   { font-size: 2.4rem; }
  .faq-a-inner  { padding-right: 0; }
  .cert-row     { flex-direction: column; gap: 2px; }
  .cert-row dt  { width: auto; }
  .contact-icon { width: 38px; height: 38px; }

  /* кнопки не выходят за контейнер на малых экранах */
  .btn { white-space: normal; }

  /* iframe карты не переполняет */
  .contacts-map { max-width: 100%; }
  iframe        { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 320px
══════════════════════════════════════════════════════════════ */
@media (max-width: 320px) {
  /* padding НЕ уменьшаем — оставляем 20px для симметрии */
  .hero-title    { font-size: 2rem; }
  .btn           { padding: 10px 14px; font-size: 12px; }
  .section-title { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════════════════
   DECORATIVE BACKGROUND ELEMENTS
   Pseudo-elements only — zero extra HTML
══════════════════════════════════════════════════════════════ */

/* ── Shared: sections that host decorations need position ── */
.about,
.services,
.solutions,
.approach,
.faq {
  position: relative;
  overflow: hidden;
}

/* ── DOT GRID — applied to all light sections ─────────────── */
.about,
.solutions,
.certificate {
  background-image:
    radial-gradient(circle, rgba(61,122,82,0.11) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── HERO: large decorative ring + floating leaf arc ──────── */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -180px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
  z-index: 1;
}

/* ── ABOUT: floating rings top-right, small ring bottom-left  */
.about::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 1.5px solid rgba(61,122,82,0.09);
  pointer-events: none;
  z-index: 0;
}
.about::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(61,122,82,0.06);
  pointer-events: none;
  z-index: 0;
}
/* All direct children need z-index > 0 to stay above ::before/after */
.about .container { position: relative; z-index: 1; }

/* ── SERVICES (dark): subtle + cross grid pattern ─────────── */
.services {
  background-image:
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='19' y='12' width='2' height='16' rx='1' fill='white' fill-opacity='0.025'/%3E%3Crect x='12' y='19' width='16' height='2' rx='1' fill='white' fill-opacity='0.025'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
/* Large decorative circle watermark */
.services::before {
  content: '';
  position: absolute;
  bottom: -160px;
  right: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.services::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
}
.services .container { position: relative; z-index: 1; }

/* ── SOLUTIONS: organic blob left + decorative ring ───────── */
.solutions::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -140px;
  width: 480px;
  height: 420px;
  /* Organic blob via border-radius */
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  background: rgba(61,122,82,0.055);
  pointer-events: none;
  animation: blobDrift 18s ease-in-out infinite alternate;
}
.solutions::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1.5px solid rgba(61,122,82,0.08);
  pointer-events: none;
}
.solutions .container { position: relative; z-index: 1; }

@keyframes blobDrift {
  from { border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%; transform: translate(0, 0) rotate(0deg); }
  to   { border-radius: 37% 63% 46% 54% / 48% 55% 45% 52%; transform: translate(20px, 15px) rotate(4deg); }
}

/* ── APPROACH (dark): diagonal lines ─────────────────────── */
.approach {
  background-image:
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,0.018) 28px,
      rgba(255,255,255,0.018) 29px
    );
}
.approach::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.approach .container { position: relative; z-index: 1; }

/* ── CERTIFICATE: large medical ✚ watermark ───────────────── */
.certificate { position: relative; overflow: hidden; }
.certificate::after {
  content: '+';
  position: absolute;
  bottom: -60px;
  right: -20px;
  font-size: 320px;
  font-weight: 900;
  line-height: 1;
  color: rgba(61,122,82,0.045);
  pointer-events: none;
  font-family: 'Playfair Display', serif;
  user-select: none;
}
.certificate .container { position: relative; z-index: 1; }

/* ── CTA BANNER: concentric circles + leaf arc ────────────── */
/* Existing ::before/::after kept — add inner glow */
.cta-banner {
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(30,90,55,0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(20,65,40,0.3)  0%, transparent 50%);
}

/* ── FAQ (dark): horizontal rule texture ──────────────────── */
.faq {
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
}
.faq::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
}
.faq .container { position: relative; z-index: 1; }




/* ── CARD hover: subtle green left border reveal ──────────── */
.card-light {
  border-left: 2px solid transparent;
  transition: transform var(--trans), box-shadow var(--trans),
              border-color var(--trans), border-left-color var(--trans);
}
.card-light:hover { border-left-color: var(--green); }

/* ── ABOUT image: decorative corner bracket ───────────────── */
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 48px;
  height: 48px;
  border-top: 2px solid var(--green);
  border-left: 2px solid var(--green);
  border-radius: 2px 0 0 0;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}
.about-image-wrap::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: -12px; /* shifted right to not collide with badge */
  width: 48px;
  height: 48px;
  border-bottom: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 0 0 2px 0;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}

/* ── SECTION TITLE: thin green left accent bar ────────────── */
.about .section-title,
.certificate .section-title,
.contacts .section-title {
  padding-left: 16px;
  border-left: 2px solid var(--green);
}
.section-dark .section-title {
  border-left-color: var(--green);
}

/* ── FAQ item: left accent on open ───────────────────────────*/
.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin-left: -18px;
}

@media (max-width: 540px) {
  .faq-item:has(.faq-q[aria-expanded="true"]) {
    margin-left: 0;
    padding-left: 14px;
  }
}

/* ══════════════════════════════════════════════════════════════
   MARQUEE BAND
══════════════════════════════════════════════════════════════ */
.marquee-band {
  background: linear-gradient(90deg, #dff0e6 0%, #e8f5ec 50%, #dff0e6 100%);
  border-top: 1px solid rgba(61,122,82,0.14);
  border-bottom: 1px solid rgba(61,122,82,0.14);
  overflow: hidden;
  padding-block: 13px;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  animation: marqueeScroll 30s linear infinite;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-track span { flex-shrink: 0; }
.mq-sep { color: var(--green); opacity: 0.55; font-size: 9px; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ══════════════════════════════════════════════════════════════
   STATS STRIP
══════════════════════════════════════════════════════════════ */
.stats-strip {
  background: var(--warm-linen);
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-block: clamp(40px, 6vw, 64px);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-num sup {
  font-size: 52%;
  vertical-align: super;
  margin-left: 2px;
}

.stat-label {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-sep {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.12) 50%, transparent);
  flex-shrink: 0;
  margin-inline: 4px;
}


/* ══════════════════════════════════════════════════════════════
   SECTION NUMBER WATERMARKS
══════════════════════════════════════════════════════════════ */
.section-header[data-num] { position: relative; overflow: visible; }

.section-header[data-num]::before {
  content: attr(data-num);
  position: absolute;
  top: -0.25em;
  right: 0;
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Unified pale-green numeral across sections */
.services .section-header[data-num]::before,
.approach .section-header[data-num]::before,
.contacts .section-header[data-num]::before,
.faq .section-header[data-num]::before,
.about .section-header[data-num]::before,
.solutions .section-header[data-num]::before,
.certificate .section-header[data-num]::before,
.vitrina .section-header[data-num]::before {
  color: rgba(61,122,82,0.075);
}

/* Keep all section-header children above the watermark */
.section-header[data-num] > * { position: relative; z-index: 1; }


/* ══════════════════════════════════════════════════════════════
   NEW FOOTER
══════════════════════════════════════════════════════════════ */

/* ── Top: brand bar + three columns ── */
.footer-top {
  padding-block: clamp(72px, 8vw, 110px);
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

/* Logo column */
.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  transition: opacity var(--trans);
}
.footer-logo-link:hover { opacity: 0.78; }

.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.footer-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brandname {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.01em;
  line-height: 1.15;
  display: block;
}

.footer-brandname em {
  font-style: normal;
  color: var(--gold);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.92);
  line-height: 1.72;
  max-width: 280px;
}

.footer-license-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255,255,255,0.92);
  background: rgba(61,122,82,0.18);
  border: 1px solid rgba(61,122,82,0.32);
  border-radius: 100px;
  padding: 8px 16px;
  line-height: 1.4;
  width: fit-content;
}

/* Nav column — with left border divider */
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.footer-col-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 4px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav-list a {
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  transition: color var(--trans), padding-left var(--trans);
  display: inline-block;
}
.footer-nav-list a:hover {
  color: #ffffff;
  padding-left: 10px;
}

/* Contact column — with left border divider */
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: clamp(28px, 4vw, 56px);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.footer-phone-big {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  transition: color var(--trans);
  margin-top: 4px;
}
.footer-phone-big:hover { color: var(--gold); }

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-address p {
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  line-height: 1.75;
}

.footer-delivery-note {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: rgba(151,212,170,0.95) !important;
  font-weight: 600;
}

/* ── CTA strip ── */
.footer-cta-strip {
  background: linear-gradient(105deg, var(--green-hover) 0%, var(--green) 100%);
  padding-block: 28px;
  position: relative;
  overflow: hidden;
}

.footer-cta-strip::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  pointer-events: none;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.footer-cta-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  font-style: italic;
  font-weight: 400;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}
.footer-cta-btn:hover {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

/* ── Bottom bar ── */
.footer-bottom {
  padding-block: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.12);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-bottom-inner p {
  font-size: 13px;
  color: rgba(237,233,226,0.58);
}

.footer-privacy-link {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.28);
  text-underline-offset: 3px;
  transition: color var(--trans);
}
.footer-privacy-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255,255,255,0.54);
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY POLICY PAGE
══════════════════════════════════════════════════════════════ */
.page .site-header {
  background: var(--header-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(61,122,82,0.15), 0 4px 32px rgba(0,0,0,0.3);
}

.legal-page {
  background:
    radial-gradient(circle at top left, rgba(61,122,82,0.10), transparent 28%),
    linear-gradient(180deg, #f6fbf8 0%, #eef6f1 100%);
}

.legal-hero {
  padding: calc(var(--header-h) + 72px) 0 56px;
}

.legal-hero__header {
  max-width: 880px;
  margin-inline: auto;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-meta__card,
.legal-contact-card,
.legal-card,
.legal-toc {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(61,122,82,0.12);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.legal-meta__card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.legal-meta__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.legal-meta__value {
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.legal-meta__value--small {
  font-size: 1.05rem;
  word-break: break-all;
}

.legal-body {
  padding: 0 0 96px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--admin-bar-offset) + 28px);
  display: grid;
  gap: 18px;
}

.legal-toc,
.legal-contact-card {
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
}

.legal-toc__title,
.legal-contact-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-toc__list {
  display: grid;
  gap: 10px;
}

.legal-toc__link {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color var(--trans), transform var(--trans);
}

.legal-toc__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 999px;
  background: rgba(61,122,82,0.10);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}

.legal-toc__link:hover {
  color: var(--green);
  transform: translateX(3px);
}

.legal-contact-card p,
.legal-contact-card a {
  color: var(--text-body);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-contact-card p + p {
  margin-top: 10px;
}

.legal-article {
  display: grid;
  gap: 20px;
}

.legal-card {
  border-radius: 22px;
  padding: 28px 30px 32px;
}

.legal-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.legal-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(61,122,82,0.10);
  border: 1px solid rgba(61,122,82,0.14);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  flex-shrink: 0;
}

.legal-card__title {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  margin: 0;
}

.legal-content {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.82;
}

.legal-content p + p,
.legal-content ul + p,
.legal-content p + ul {
  margin-top: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 8px;
}

.legal-content li::marker {
  color: var(--green);
}

@media (max-width: 980px) {
  .legal-meta {
    grid-template-columns: 1fr;
  }

  .legal-shell {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: calc(var(--header-h) + 54px) 0 40px;
  }

  .legal-card {
    padding: 22px 20px 24px;
    border-radius: 18px;
  }

  .legal-card__top {
    gap: 12px;
    align-items: center;
  }

  .legal-toc,
  .legal-contact-card,
  .legal-meta__card {
    padding: 18px;
  }

  .legal-toc__link {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .legal-card__num {
    min-width: 40px;
    height: 40px;
    font-size: 11px;
  }
}

/* ── New footer responsive ≤ 1024px ── */
@media (max-width: 1024px) {
  .footer-top-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
  }
  .footer-logo-col { grid-column: 1 / -1; }
  .footer-nav-col  { grid-column: 1; }
  .footer-contact-col { grid-column: 2; }
}

/* ── New footer responsive ≤ 768px ── */
@media (max-width: 768px) {
  .footer-top-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-logo-col,
  .footer-nav-col,
  .footer-contact-col {
    grid-column: 1;
    align-items: center;
    text-align: center;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
  }
  .footer-logo-col { border-top: none; padding-top: 0; }
  .footer-logo-link { justify-content: center; margin-inline: auto; }
  .footer-tagline { max-width: 100%; }
  .footer-phone-big { font-size: clamp(1.4rem, 6vw, 1.7rem); }
  .footer-address { align-items: center; }
  .footer-delivery-note { justify-content: center; }

  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ── Stats strip ≤ 768px ── */
@media (max-width: 768px) {
  .stats-inner { flex-wrap: wrap; gap: 0; }
  .stat-item { flex: 0 0 50%; padding-block: 24px; }
  .stat-sep:nth-child(4) { display: none; }
  .stat-sep:nth-child(2) { height: 100%; }
}

/* ── Stats strip ≤ 480px ── */
@media (max-width: 480px) {
  .stat-item { flex: 0 0 100%; }
  .stat-sep  { display: none; }
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 360px  (Samsung Galaxy S, большинство Android)
══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  /* контейнер: 20px строго с обеих сторон, не меняем */
  .container { padding-inline: 20px; }

  /* кнопки — полная ширина чтобы не выбивались за контейнер */
  .btn { width: 100%; justify-content: center; }
  /* исключение: маленькие кнопки внутри карточек — тоже полная ширина */
  .btn-sm { width: 100%; justify-content: center; }

  /* заголовки */
  .hero-title    { font-size: 2rem; }
  .section-title { font-size: 1.65rem; }
  .cta-title     { font-size: 1.35rem; }

  /* герой-кнопка */
  .hero-btn { padding: 13px 20px; }

  /* нижняя полоса футера: в столбец */
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 4px; }

  /* телефон в контактах не выходит за строку */
  .contact-phone { font-size: 16px; }

  /* бейдж "10+ лет опыта" не вылезает за изображение */
  .about-badge { width: 74px; height: 74px; right: 4px; bottom: -8px; }
  .about-badge-num { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE ≤ 400px  (extra-small phones: 365–400px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  :root { --header-h: 68px; --header-logo-size: 50px; }

  /* Ensure header logo does not overflow */
  .logo-text    { font-size: 15px; }

  /* Hero text fits cleanly */
  .hero-title   { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-btn     { width: 100%; justify-content: center; }

  /* CTA banner — phone on own line, centered */
  .cta-title    { font-size: 1.4rem; }
  .cta-text     { font-size: 0.9rem; }

  /* Buttons — full width for easy tap */
  .card-body .btn { width: 100%; justify-content: center; }

  /* Section titles */
  .section-title { font-size: 1.75rem; }

  /* About badge stays fully inside image */
  .about-badge  { right: 6px; bottom: -10px; width: 78px; height: 78px; }
  .about-badge-num { font-size: 19px; }

  /* Contacts map height */
  .contacts-map { height: 240px !important; }

  /* Footer bottom: stack neatly */
  .footer-bottom-inner { gap: 4px; }
  .footer-phone-big { font-size: 1.28rem; }

  /* Stats strip */
  .stat-num { font-size: 2rem; }
}

@media (max-width: 370px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 360px) {
  :root { --header-h: 64px; --header-logo-size: 44px; }

  .logo-text { font-size: 14px; }
}

@media (max-width: 320px) {
  :root { --header-h: 60px; --header-logo-size: 40px; }

  .logo-text { font-size: 13px; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-bg { animation: none; transform: scale(1); }
  .solutions::before { animation: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}


/* ══════════════════════════════════════════════════════════════
   ВИТРИНА
══════════════════════════════════════════════════════════════ */
.vitrina { padding-block: clamp(72px, 10vw, 120px); }

/* Placeholder */
.vitrina-placeholder {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; text-align: center; padding-block: clamp(48px, 7vw, 80px);
}
.vitrina-placeholder__img-wrap {
  width: 100%; max-width: 640px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vitrina-placeholder__img { width: 100%; height: clamp(280px, 40vw, 480px); object-fit: cover; display: block; }
.vitrina-placeholder__text { max-width: 480px; color: var(--text-muted); font-size: 0.975rem; line-height: 1.75; }
.vitrina-placeholder__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.vitrina-placeholder__actions .btn { justify-content: center; }
.vitrina-placeholder__actions .vitrina-placeholder__download.btn-outline {
  color: var(--green);
  border: 1px solid rgba(61,122,82,0.35);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}
.vitrina-placeholder__actions .vitrina-placeholder__download.btn-outline:hover {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 6px 22px rgba(61,122,82,0.18);
}
.vitrina-placeholder__actions .vitrina-placeholder__download.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Grid */
.vitrina-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

/* Card */
.showcase-card {
  background: #fff;
  border: 1px solid rgba(61,122,82,0.14);
  border-top: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans), box-shadow var(--trans), border-top-color var(--trans);
  position: relative;
}
.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 56px rgba(20,60,35,0.13);
  border-top-color: var(--green);
}
.showcase-card__img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.showcase-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.showcase-card:hover .showcase-card__img { transform: scale(1.06); }

.showcase-card__body { padding: clamp(16px, 2vw, 22px); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.showcase-card__name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.showcase-card__desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.showcase-card__price { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 4px; }
.showcase-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.showcase-card__badge--unavailable { background: var(--text-muted); }
.showcase-card__btn { align-self: flex-start; margin-top: 10px; }

/* Load more */
.vitrina-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.vitrina-more__btn {
  gap: 10px;
  min-width: 220px;
  justify-content: center;
  color: var(--text);
  border-color: rgba(16,24,21,0.16);
  background: rgba(255,255,255,0.42);
}
.vitrina-more__btn:hover {
  color: var(--text);
  border-color: var(--green);
  background: rgba(61,122,82,0.08);
}
.vitrina-more__btn.is-loading { opacity: 0.65; cursor: not-allowed; pointer-events: none; }
.vitrina-more__count { font-size: 12px; opacity: 1; font-weight: 400; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) { .vitrina-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .vitrina-grid { grid-template-columns: 1fr; } }
