/* ============================================================
   EXCEL ПРОЕКТЫ — MAIN STYLESHEET
   Encoding: UTF-8
   Fonts: Onest (display) + Inter (body) — self-hosted woff2
   ============================================================ */

/* === LOCAL FONTS (variable, cyrillic + latin) ============== */
/* Inter — body, weights 400–600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Onest — headings, weights 600–800 */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/onest-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/onest-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* === CSS VARIABLES ======================================== */
:root {
  /* Brand colors */
  --c-bg:           #F7F6F3;   /* page background, warm off-white */
  --c-surface:      #FFFFFF;   /* cards, panels */
  --c-border:       #E2E1DC;   /* subtle borders */
  --c-text:         #1C1C2E;   /* primary text, very dark navy */
  --c-text-muted:   #6B6A75;   /* secondary text */
  --c-text-light:   #A0A0AB;   /* captions, placeholders */

  /* Primary — Excel green */
  --c-primary:      #157A36;
  --c-primary-h:    #0F5F2A;   /* hover */
  --c-primary-lt:   #E8F5EC;   /* light tint */
  --c-primary-dk:   #0B4520;   /* dark */

  /* CTA — lime/leaf (download, action) — distinct from primary but same family */
  --c-cta:          #4F9D2E;
  --c-cta-h:        #3F7E24;
  --c-cta-lt:       #F0F8E8;

  /* Accent — amber (badges, highlights) */
  --c-accent:       #D97706;
  --c-accent-lt:    #FFFBEB;

  /* Typography */
  --f-display:  'Onest', 'Inter', system-ui, sans-serif;
  --f-body:     'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --sp-1:  0.25rem;   /*  4px */
  --sp-2:  0.5rem;    /*  8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.25rem;   /* 20px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-8:  2rem;      /* 32px */
  --sp-10: 2.5rem;    /* 40px */
  --sp-12: 3rem;      /* 48px */
  --sp-16: 4rem;      /* 64px */
  --sp-20: 5rem;      /* 80px */
  --sp-24: 6rem;      /* 96px */

  /* Layout */
  --max-w:  1160px;
  --gutter: var(--sp-6);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Shadows */
  --sh-sm: 0 1px 3px rgba(28,28,46,.08), 0 1px 2px rgba(28,28,46,.06);
  --sh-md: 0 4px 16px rgba(28,28,46,.08), 0 2px 6px rgba(28,28,46,.06);
  --sh-lg: 0 10px 32px rgba(28,28,46,.10), 0 4px 12px rgba(28,28,46,.06);

  /* Transitions */
  --tr-fast: 150ms ease;
  --tr-base: 220ms ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* === TYPOGRAPHY =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-text);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.875rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.0625rem; }

p { line-height: 1.7; color: var(--c-text-muted); }
p + p { margin-top: var(--sp-4); }

/* === LAYOUT CONTAINER ===================================== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* === SECTION SCAFFOLDING ================================== */
section { padding-block: var(--sp-20); }

.section-label {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}
.section-heading { margin-bottom: var(--sp-4); }
.section-sub {
  font-size: 1.0625rem;
  color: var(--c-text-muted);
  max-width: 54ch;
  line-height: 1.65;
}
.section-header { margin-bottom: var(--sp-12); }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin-inline: auto; }

/* === BUTTONS ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.75em 1.5em;
  border-radius: var(--r-md);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-h); box-shadow: var(--sh-md); }

.btn-cta { background: var(--c-cta); color: #fff; }
.btn-cta:hover { background: var(--c-cta-h); box-shadow: var(--sh-md); }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-lt); }

.btn-ghost { background: transparent; color: var(--c-text); }
.btn-ghost:hover { background: var(--c-border); }

.btn-white { background: #fff; color: var(--c-primary); }
.btn-white:hover { background: rgba(255,255,255,.9); box-shadow: var(--sh-md); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.75);
}

.btn-sm { font-size: 0.875rem; padding: 0.55em 1.1em; }
.btn-lg { font-size: 1.0625rem; padding: 0.875em 2em; }

/* Link-style button with arrow */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-primary);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: gap var(--tr-fast);
}
.btn-link:hover { gap: var(--sp-3); }

/* === BADGES =============================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.7em;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
}
.badge-free  { background: var(--c-cta-lt);    color: var(--c-cta-h); }
.badge-paid  { background: var(--c-accent-lt);  color: var(--c-accent); }
.badge-new   { background: var(--c-primary-lt); color: var(--c-primary); }

/* === HEADER =============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,246,243,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: var(--sp-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--c-text);
  line-height: 1.1;
}
.logo-text span { color: var(--c-primary); }

/* Main Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--tr-fast), background var(--tr-fast);
  white-space: nowrap;
}
.nav-link:hover    { color: var(--c-text); background: var(--c-border); }
.nav-link.active   { color: var(--c-primary); background: var(--c-primary-lt); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-chevron {
  width: 14px;
  height: 14px;
  color: var(--c-text-light);
  transition: transform var(--tr-fast);
  flex-shrink: 0;
}
.nav-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--tr-base), transform var(--tr-base), visibility 0s var(--tr-base);
  pointer-events: none;
}
/* Невидимый мост перекрывает зазор между кнопкой и меню,
   чтобы hover не слетал при движении курсора вниз */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
  pointer-events: auto;
}

.nav-dropdown.open .dropdown-chevron { transform: rotate(180deg); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--c-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--tr-fast);
}
.dropdown-item:hover { background: var(--c-bg); }
.dropdown-item-icon {
  width: 34px;
  height: 34px;
  background: var(--c-primary-lt);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.dropdown-item-icon svg { width: 17px; height: 17px; }
.dropdown-item-name {
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-text);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--sp-2);
  border-radius: var(--r-sm);
  transition: background var(--tr-fast);
}
.nav-toggle:hover { background: var(--c-border); }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--tr-base), opacity var(--tr-base), width var(--tr-base);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === FOOTER =============================================== */
.site-footer {
  background: var(--c-text);
  padding-top: var(--sp-16);
  padding-bottom: var(--sp-8);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--sp-8);
}
.footer-brand .site-logo { margin-bottom: var(--sp-4); }
.footer-brand .logo-icon { background: rgba(255,255,255,.15); }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: rgba(255,255,255,.6); }
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,.7);
}
.footer-col-title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  transition: color var(--tr-fast);
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
}
.footer-legal { display: flex; gap: var(--sp-6); }
.footer-legal a {
  color: rgba(255,255,255,.65);
  transition: color var(--tr-fast);
}
.footer-legal a:hover { color: rgba(255,255,255,.9); }

/* === HERO ================================================= */
.hero {
  position: relative;
  padding-block: var(--sp-24) var(--sp-20);
  overflow: hidden;
}

/*
 * SIGNATURE ELEMENT: subtle Excel-grid texture.
 * Repeating CSS gradients create faint cell lines — a quiet nod to
 * spreadsheets without illustrating Excel's UI literally.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21,122,54,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,122,54,.055) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
/* Fade grid into page background at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(transparent, var(--c-bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: var(--c-primary-lt);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero h1 { margin-bottom: var(--sp-6); }
.hero h1 em { font-style: normal; color: var(--c-primary); }
.hero-sub {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  line-height: 1.65;
  margin-bottom: var(--sp-10);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: var(--sp-10);
  margin-top: var(--sp-16);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}
.stat-value {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--c-text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--c-text-muted);
  margin-top: var(--sp-1);
}

/* === PRODUCT CARDS ======================================== */
.products-section { padding-block: var(--sp-20); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
  text-decoration: none;
  color: inherit;
}
.product-card:hover {
  border-color: rgba(21,122,54,.35);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--c-primary-lt);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.card-icon svg { width: 24px; height: 24px; }
.card-title {
  font-family: var(--f-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: var(--sp-2);
}
.card-desc {
  font-size: 0.9rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  flex: 1;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}

/* === ADVANTAGES =========================================== */
.advantages-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
}
.advantage-item { display: flex; flex-direction: column; gap: var(--sp-4); }
.advantage-icon {
  width: 52px;
  height: 52px;
  background: var(--c-primary-lt);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}
.advantage-icon svg { width: 26px; height: 26px; }
.advantage-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  color: var(--c-text);
}
.advantage-desc { font-size: 0.9rem; line-height: 1.6; }

/* === CTA BANNER =========================================== */
.cta-section {
  background: var(--c-primary);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; margin-bottom: var(--sp-4); }
.cta-section p  {
  color: rgba(255,255,255,.75);
  font-size: 1.0625rem;
  margin-bottom: var(--sp-8);
  max-width: 52ch;
  margin-inline: auto;
}
.cta-actions {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* === PAGE HERO (inner pages) ============================== */
.page-hero {
  padding-block: var(--sp-16) var(--sp-12);
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { margin-bottom: var(--sp-4); }
.page-hero p  { font-size: 1.0625rem; max-width: 54ch; }

/* === BREADCRUMBS ========================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--c-text-muted);
  padding-block: var(--sp-4);
  flex-wrap: wrap;
}
.breadcrumbs a { transition: color var(--tr-fast); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current { color: var(--c-text); }

/* === FORMS ================================================ */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--c-text); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--c-text);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--c-text-light); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(21,122,54,.12);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-hint  { font-size: 0.8125rem; color: var(--c-text-muted); }
.form-error { font-size: 0.8125rem; color: #dc2626; }

/* === ALERTS =============================================== */
.notice {
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  border-left: 4px solid;
  font-size: 0.9rem;
  line-height: 1.65;
}
.notice-info    { background: var(--c-primary-lt); border-color: var(--c-primary); color: var(--c-primary-dk); }
.notice-success { background: var(--c-cta-lt);    border-color: var(--c-cta);     color: #065f46; }
.notice-warning { background: var(--c-accent-lt);  border-color: var(--c-accent);  color: #92400e; }
.notice a, .process-step-body a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.notice a:hover, .process-step-body a:hover { opacity: .75; }
.notice svg { display: inline; width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }

/* === CONTACTS PAGE ========================================= */
.contacts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  cursor: pointer;
}
.form-consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--c-primary); }
.form-consent a { color: var(--c-primary); }

.contacts-info-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.info-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-lt);
  color: var(--c-primary);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-4);
}
.info-card-icon svg { width: 20px; height: 20px; }
.info-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-1);
}
.info-card-value {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.info-card-value-muted { color: var(--c-text-light); font-weight: 600; font-size: 0.9375rem; }
.info-card-note { font-size: 0.8125rem; color: var(--c-text-muted); line-height: 1.6; }

/* === LEGAL / LONG-FORM CONTENT ============================ */
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 1.375rem;
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}
.legal-content > h2:first-child,
.legal-content > .legal-meta + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-size: 1.0625rem;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-3);
}
.legal-content p { margin-bottom: var(--sp-4); }
.legal-content p:last-child { margin-bottom: 0; }
.legal-content ul,
.legal-content ol {
  margin: var(--sp-4) 0 var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { color: var(--c-text-muted); line-height: 1.7; padding-left: var(--sp-1); }
.legal-content li::marker { color: var(--c-primary); }
.legal-content strong { color: var(--c-text); font-weight: 600; }
.legal-content a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content code {
  display: inline-block;
  background: var(--c-primary-lt);
  color: var(--c-primary-dk);
  font-family: var(--f-mono, 'DejaVu Sans Mono', Consolas, monospace);
  font-size: 0.8125rem;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  margin-top: var(--sp-1);
  word-break: break-all;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  font-size: 0.8125rem;
  color: var(--c-text-light);
  margin-bottom: var(--sp-10);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
}

.legal-toc {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-10);
}
.legal-toc-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: var(--sp-3);
}
.legal-toc ol {
  list-style: decimal;
  margin-left: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.legal-toc li { font-size: 0.875rem; }
.legal-toc a { color: var(--c-text-muted); }
.legal-toc a:hover { color: var(--c-primary); }

/* === KNOWLEDGE BASE ========================================= */
.kb-search {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  max-width: 560px;
  margin-top: var(--sp-8);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-2);
  padding-left: var(--sp-4);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.kb-search:focus-within {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(21,122,54,.12);
}
.kb-search-icon { color: var(--c-text-light); flex-shrink: 0; }
.kb-search-icon svg { width: 18px; height: 18px; }
.kb-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.9375rem;
  background: transparent;
  color: var(--c-text);
  min-width: 0;
}
.kb-search-input::placeholder { color: var(--c-text-light); }

.kb-categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.kb-category-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  text-align: center;
  transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
}
.kb-category-card:hover {
  border-color: rgba(21,122,54,.35);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.kb-category-card-soon { cursor: default; opacity: 0.7; }
.kb-category-card-soon:hover { border-color: var(--c-border); box-shadow: none; transform: none; }
.kb-category-card .card-icon { margin-inline: auto; }
.kb-category-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-1);
}
.kb-category-count { font-size: 0.8125rem; color: var(--c-text-light); }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 760px;
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; color: var(--c-text-light); transition: transform var(--tr-fast); }
.faq-chevron svg { width: 18px; height: 18px; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding-top: var(--sp-4); }
.faq-answer p { font-size: 0.9375rem; }

.kb-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
}
.kb-cta p { color: var(--c-text); font-weight: 600; margin: 0; }

/* === ERROR PAGE (404) ====================================== */
.error-code {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: -0.03em;
}

/* === PRODUCT PAGE =========================================== */
.product-hero-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.product-hero-image {
  width: 100%;
  margin-bottom: var(--sp-6);
}
.product-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.product-hero-badges {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.badge-free, .badge-paid, .badge-format {
  display: inline-block;
  padding: 0.3em 0.85em;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.badge-free   { background: var(--c-cta-lt); color: #065f46; }
.badge-paid   { background: var(--c-accent-lt); color: var(--c-accent); }
.badge-format { background: var(--c-bg); color: var(--c-text-muted); border: 1px solid var(--c-border); }
.hero-sha256 {
  margin-top: var(--sp-5);
  font-size: 0.8125rem;
  color: var(--c-text-light);
}
.hero-sha256 code {
  background: var(--c-primary-lt);
  color: var(--c-primary-dk);
  padding: 0.2em 0.6em;
  border-radius: var(--r-sm);
  font-family: var(--f-mono, monospace);
  font-size: 0.75rem;
  word-break: break-all;
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.hero-video {
  margin-top: 0;
}
.hero-video-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--sp-3);
  color: var(--c-text);
}
.video-embed {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--c-bg);
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Below the full-width product image: text on the left, video on the right
   (scoped to .hero-body so other product pages are unaffected) */
@media (min-width: 900px) {
  .hero-body {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
    gap: var(--sp-10);
  }
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  max-width: 760px;
}
.process-step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}
.process-step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.0625rem;
}
.process-step-body h3 { font-size: 1.0625rem; margin-bottom: var(--sp-2); }
.process-step-body p { color: var(--c-text-muted); }

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.screenshot-item {
  margin: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-surface);
  box-shadow: var(--shadow-sm);
}
.screenshot-item a { display: block; }
.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.screenshot-caption {
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.feature-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.feature-item h3 { font-size: 1.0625rem; margin-top: var(--sp-4); margin-bottom: var(--sp-2); }
.feature-item p { color: var(--c-text-muted); font-size: 0.9375rem; }

.requirements-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: 640px;
}
.requirement-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}
.requirement-item h3 { font-size: 1rem; margin-bottom: var(--sp-1); }
.requirement-item p { color: var(--c-text-muted); font-size: 0.9375rem; }

/* Стили cookie-баннера — см. блок «COOKIE BANNER» ниже по файлу */

/* === EMPTY STATE ============================================ */
.empty-state {
  background: var(--c-surface);
  border: 1.5px dashed var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-12) var(--sp-8);
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.empty-state-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-lt);
  color: var(--c-primary);
  border-radius: var(--r-md);
  margin: 0 auto var(--sp-4);
}
.empty-state-icon svg { width: 24px; height: 24px; }
.empty-state-title {
  font-size: 1.0625rem;
  margin-bottom: var(--sp-2);
}
.empty-state-text {
  color: var(--c-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* === NEWS LIST ============================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  max-width: 760px;
}
.news-item {
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
}
.news-item:last-child { border-bottom: none; padding-bottom: 0; }
.news-item-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.news-badge {
  display: inline-block;
  padding: 0.25em 0.75em;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.news-badge-launch  { background: var(--c-cta-lt);     color: #065f46; }
.news-badge-update  { background: var(--c-primary-lt); color: var(--c-primary-dk); }
.news-badge-legal   { background: var(--c-accent-lt);  color: #92400e; }
.news-date {
  font-size: 0.8125rem;
  color: var(--c-text-light);
}
.news-item-title { font-size: 1.1875rem; margin-bottom: var(--sp-2); }
.news-item-text  { color: var(--c-text-muted); }

/* === UTILITIES ============================================ */
.text-center  { text-align: center; }
.text-muted   { color: var(--c-text-muted); }
.mt-auto      { margin-top: auto; }
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.flex-wrap    { flex-wrap: wrap; }

/* === RESPONSIVE =========================================== */
@media (max-width: 1024px) {
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid  { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .kb-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --gutter: var(--sp-4); }
  section { padding-block: var(--sp-12); }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .site-nav {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    /*
     * ВАЖНО: раньше здесь было "bottom: 0". Это ломалось на мобильных —
     * у .site-header задан backdrop-filter, а backdrop-filter (как и
     * filter/transform) создаёт новый containing block для потомков с
     * position:fixed. .site-header по высоте — это просто полоска шапки
     * (~64px), поэтому top:64px и bottom:0 почти совпадали и панель
     * схлопывалась в полоску высотой ~1px: меню формально открывалось
     * (display:flex), но было невидимым и некликабельным — отсюда и
     * "выпадающее меню не работает" (в том числе вложенный dropdown
     * "Инструменты" внутри него).
     * Явная высота через vh/dvh не зависит от containing block и чинит это.
     */
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: var(--c-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-4);
    gap: var(--sp-1);
    overflow-y: auto;
    border-top: 1px solid var(--c-border);
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .nav-link { font-size: 1.0625rem; padding: var(--sp-3) var(--sp-4); width: 100%; }
  .dropdown-chevron { display: none; }
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    background: var(--c-bg);
    border-radius: var(--r-md);
    padding: var(--sp-2);
    margin: var(--sp-2) 0;
    width: 100%;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .dropdown-item { padding: var(--sp-3); }

  /* Hero */
  .hero { padding-block: var(--sp-16) var(--sp-12); }
  .hero-stats { gap: var(--sp-6); }

  /* Grids */
  .products-grid   { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; }
  .contacts-grid   { grid-template-columns: 1fr; gap: var(--sp-10); }
  .kb-categories-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .process-step { gap: var(--sp-4); }
  .kb-cta { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: var(--sp-4); }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }

  /* Footer */
  .footer-bottom  { flex-direction: column; align-items: flex-start; }
  .footer-legal   { flex-wrap: wrap; gap: var(--sp-4); }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero-actions   { flex-direction: column; align-items: flex-start; }
  .cta-actions    { flex-direction: column; align-items: center; }
  .hero-stats     { gap: var(--sp-6); }
  .stat-value     { font-size: 1.5rem; }
}

/* === COOKIE BANNER (минимальная плашка + поповер настроек) === */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: #F2FAF4;
  border-top: 1px solid var(--c-primary-lt);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--tr-base), transform var(--tr-base);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.cookie-banner__text strong { color: var(--c-text); }
.cookie-banner__text a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner__actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.btn-cookie {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-xl);
  font-family: var(--f-display);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--tr-fast), color var(--tr-fast), transform var(--tr-fast), box-shadow var(--tr-fast);
}
.btn-cookie--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-sm);
}
.btn-cookie--primary:hover { background: var(--c-primary-h); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-cookie--ghost {
  background: #fff;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-cookie--ghost:hover { background: var(--c-primary-lt); border-color: var(--c-primary-lt); color: var(--c-primary-dk); }

/* Поповер настроек — небольшая карточка, «подвешенная» над баннером,
   не увеличивает высоту самой плашки */
.cookie-settings-popup {
  position: fixed;
  right: var(--gutter);
  bottom: 0; /* переопределяется в JS: banner.offsetHeight + отступ */
  z-index: 201;
  width: min(320px, calc(100vw - 2 * var(--gutter)));
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-4);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transition: opacity var(--tr-fast), transform var(--tr-fast);
}
.cookie-settings-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cookie-settings-popup[hidden] { display: none; }

.cookie-settings-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-text);
}
.cookie-settings-popup__close {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--c-text-muted);
}
.cookie-settings-popup__close:hover { background: var(--c-primary-lt); color: var(--c-primary-dk); }

.cookie-settings-popup__save {
  width: 100%;
  margin-top: var(--sp-3);
  text-align: center;
}

.cookie-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}
.cookie-setting-row + .cookie-setting-row { border-top: 1px solid var(--c-border); }
.cookie-setting-name { font-family: var(--f-display); font-weight: 600; font-size: 0.875rem; color: var(--c-text); }
.cookie-setting-desc { font-size: 0.78125rem; color: var(--c-text-muted); margin-top: 2px; line-height: 1.4; }

.cookie-toggle {
  flex: none;
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--c-border);
  transition: background var(--tr-fast);
}
.cookie-toggle__dot {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--sh-sm);
  transition: left var(--tr-fast);
}
.cookie-toggle--on,
.cookie-toggle[aria-checked="true"] { background: var(--c-primary); }
.cookie-toggle--on .cookie-toggle__dot,
.cookie-toggle[aria-checked="true"] .cookie-toggle__dot { left: 20px; }
.cookie-toggle--locked { cursor: default; opacity: 0.85; }

@media (max-width: 640px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner__actions { justify-content: center; }
  .cookie-settings-popup { left: var(--gutter); right: var(--gutter); width: auto; }
}

/* === REDUCED MOTION ======================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
