/* ========== DESIGN TOKENS ========== */
:root, [data-theme="light"] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --color-bg: #faf9f6;
  --color-surface: #f5f3ee;
  --color-surface-2: #eeece6;
  --color-surface-offset: #e8e5de;
  --color-divider: #dbd8d0;
  --color-border: #d0cdc5;

  --color-text: #1e1c17;
  --color-text-muted: #6b6860;
  --color-text-faint: #757268;
  --color-text-inverse: #faf9f6;

  --color-primary: #e85d04;
  --color-primary-hover: #c94d00;
  --color-primary-active: #a33e00;
  --color-primary-highlight: #fde8d8;

  --color-accent-dark: #1e1c17;

  --color-error: #dc2626;
  --color-warning: #b45309;
  --color-success: #15803d;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: var(--transition);
  --shadow-sm: 0 1px 2px oklch(0.15 0.02 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.15 0.02 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.15 0.02 60 / 0.12);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  --font-display: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  --header-h: 76px;
}

[data-theme="dark"] {
  --color-bg: #141310;
  --color-surface: #1a1916;
  --color-surface-2: #1f1e1b;
  --color-surface-offset: #252320;
  --color-divider: #2e2c28;
  --color-border: #383530;
  --color-text: #e8e5de;
  --color-text-muted: #8a8780;
  --color-text-faint: #827f77;
  --color-text-inverse: #141310;
  --color-primary: #ff7a2e;
  --color-primary-hover: #ff8f4a;
  --color-primary-active: #ffa466;
  --color-primary-highlight: #3d1e08;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #141310; --color-surface: #1a1916; --color-surface-2: #1f1e1b;
    --color-surface-offset: #252320; --color-divider: #2e2c28; --color-border: #383530;
    --color-text: #e8e5de; --color-text-muted: #8a8780; --color-text-faint: #827f77;
    --color-text-inverse: #141310; --color-primary: #ff7a2e;
    --color-primary-hover: #ff8f4a; --color-primary-active: #ffa466;
    --color-primary-highlight: #3d1e08;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
}

/* ========== BASE RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  hanging-punctuation: first last;
}
body {
  min-height: 100dvh; font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg); line-height: 1.65;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.15; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }
a, button, [role="button"], input, textarea, select {
  transition: color var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              opacity var(--transition);
}
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
::selection { background: oklch(from var(--color-primary) l c h / 0.2); color: var(--color-text); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* ========== LAYOUT ========== */
.container { max-width: var(--content-wide); margin-inline: auto; padding-inline: var(--space-6); }
.container--narrow { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }
section { padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }

/* ========== HEADER ========== */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  padding-top: var(--space-3);
  background: oklch(from var(--color-bg) l c h / 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
}
.logo { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--color-text); flex-shrink: 0; min-width: 0; }
.logo__icon { flex-shrink: 0; object-fit: contain; }
.logo__wordmark { font-family: var(--font-display); font-weight: 900; font-size: var(--text-lg); letter-spacing: -0.02em; line-height: 1; }
.logo__wordmark span { color: var(--color-primary); }

.nav { display: flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.nav__link {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; padding: var(--space-2) var(--space-4); border-radius: var(--radius-md);
  white-space: nowrap; line-height: 1; min-height: 36px; display: flex; align-items: center;
}
.nav__link:hover, .nav__link.active { color: var(--color-text); background: oklch(from var(--color-text) l c h / 0.06); }

.header__actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.header__phone {
  display: flex; align-items: center; gap: var(--space-2);
  color: var(--color-text); text-decoration: none;
  font-weight: 600; font-size: var(--text-sm); white-space: nowrap;
}
.header__phone:hover { color: var(--color-primary); }
@media (max-width: 900px) { .header__phone span { display: none; } }
@media (max-width: 640px) { .header__phone { display: none; } }
.btn-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--color-text-muted);
}
.btn-icon:hover { color: var(--color-text); background: oklch(from var(--color-text) l c h / 0.06); }

.btn-cta-sm {
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text-inverse);
  background: var(--color-primary); padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full); text-decoration: none; white-space: nowrap;
  min-height: 44px; display: flex; align-items: center;
}
.btn-cta-sm:hover { background: var(--color-primary-hover); }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--color-text); }
.burger:hover { background: oklch(from var(--color-text) l c h / 0.06); }

.mobile-nav {
  display: none; flex-direction: column; gap: var(--space-1);
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--color-surface); border-bottom: 1px solid var(--color-divider);
  padding: var(--space-4) var(--space-6); z-index: 99;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: var(--text-base); font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; padding: var(--space-3) var(--space-2); border-radius: var(--radius-md);
}
.mobile-nav a:hover { color: var(--color-text); background: oklch(from var(--color-text) l c h / 0.05); }

@media (max-width: 768px) {
  .nav, .btn-cta-sm { display: none; }
  .burger { display: flex; }
}

/* ========== HERO ========== */
.hero {
  padding-block: clamp(var(--space-8), 5vw, var(--space-12)) clamp(var(--space-6), 4vw, var(--space-10));
  background: var(--color-bg);
  position: relative; overflow: hidden;
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(from var(--color-primary) l c h / 0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-primary-active); background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3); border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.hero__badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; }
.hero__title {
  font-family: var(--font-display); font-weight: 900; font-size: var(--text-3xl);
  letter-spacing: -0.03em; color: var(--color-text); margin-bottom: var(--space-4);
  max-width: 14ch;
}
.hero__title em { font-style: normal; color: var(--color-primary); }
.hero__title-break { display: none; }
@media (min-width: 769px) {
  .hero__title { max-width: none; }
  .hero__title-break { display: block; }
}
.hero__sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 52ch; margin-bottom: var(--space-6); line-height: 1.6; }
.hero__actions { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-base); font-weight: 600; color: var(--color-text-inverse);
  background: var(--color-primary); padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full); text-decoration: none; min-height: 52px;
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-base); font-weight: 500; color: var(--color-text-muted);
  text-decoration: none; padding: var(--space-4) var(--space-6); min-height: 52px; border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
}
.btn-ghost:hover { color: var(--color-text); border-color: oklch(from var(--color-text) l c h / 0.3); background: oklch(from var(--color-text) l c h / 0.04); }

.hero__stats { display: flex; gap: var(--space-10); margin-top: var(--space-10); flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); color: var(--color-text); line-height: 1; }
.stat__num span { color: var(--color-primary); }
.stat__label { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); max-width: 18ch; }
@media (max-width: 640px) {
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6) var(--space-4); }
}

/* ========== SECTION HEADERS ========== */
.section-label {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary-active); margin-bottom: var(--space-4);
}
.section-title { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); letter-spacing: -0.02em; color: var(--color-text); margin-bottom: var(--space-5); }
.section-sub { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; line-height: 1.6; }
.section-note { font-size: var(--text-base); color: var(--color-text-muted); max-width: 55ch; line-height: 1.7; margin-top: var(--space-5); }

/* ========== SERVICES ========== */
.services { background: var(--color-surface); }
.services__header { margin-bottom: var(--space-12); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-4);
}
.service-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--color-bg); border-radius: var(--radius-2xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8);
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card, .service-card:hover, .service-card * { text-decoration: none; }
.service-icon {
  width: 48px; height: 48px; background: var(--color-surface);
  border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: center;
  color: var(--color-primary); margin-bottom: var(--space-6); flex-shrink: 0;
}
.service-card__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); color: var(--color-text); margin-bottom: var(--space-3); }
.service-card__text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }
.service-card__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); }
.service-card__list li { font-size: var(--text-sm); display: flex; align-items: flex-start; gap: var(--space-2); }
.service-card__list li::before { content: '—'; opacity: 0.5; flex-shrink: 0; margin-top: 0.1em; }
@media (max-width: 768px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ========== SLA STRIP ========== */
.sla { background: var(--color-accent-dark); }
[data-theme="dark"] .sla { background: var(--color-surface-2); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.sla__inner { display: flex; gap: var(--space-12); justify-content: center; flex-wrap: wrap; padding-block: var(--space-12); }
.sla__item { text-align: center; }
.sla__num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-2xl); color: var(--color-primary); line-height: 1; }
.sla__label { font-size: var(--text-sm); color: #b0ae9a; margin-top: var(--space-1); max-width: 16ch; }
[data-theme="dark"] .sla__label { color: var(--color-text-muted); }

/* ========== ABOUT ========== */
.about { background: var(--color-bg); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.about__perks { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-10); }
.perk { display: flex; gap: var(--space-4); align-items: flex-start; }
.perk__icon { width: 40px; height: 40px; flex-shrink: 0; background: var(--color-primary-highlight); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.perk__title { font-weight: 600; font-size: var(--text-base); margin-bottom: var(--space-1); }
.perk__text { font-size: var(--text-sm); color: var(--color-text-muted); }
.about__visual {
  background: var(--color-surface); border-radius: var(--radius-2xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-8); position: sticky; top: calc(var(--header-h) + var(--space-8));
}
.about__num-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-bottom: var(--space-6); }
.about__num-card { background: var(--color-bg); border-radius: var(--radius-xl); padding: var(--space-6); }
.about__num-card .num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); color: var(--color-primary); }
.about__num-card .num-label { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); }
.about__guarantee { background: var(--color-primary); border-radius: var(--radius-xl); padding: var(--space-6); color: var(--color-text-inverse); }
.about__guarantee h4 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); margin-bottom: var(--space-2); }
.about__guarantee p { font-size: var(--text-sm); opacity: 0.85; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { position: static; }
}

/* ========== HOW IT WORKS ========== */
.how { background: var(--color-surface); }
.how__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-top: var(--space-12); position: relative; }
.how__steps::before {
  content: ''; position: absolute; top: 28px; left: calc(12.5% + var(--space-4)); right: calc(12.5% + var(--space-4));
  height: 1px; background: oklch(from var(--color-text) l c h / 0.12);
}
.how__step { text-align: left; padding: var(--space-6); background: var(--color-bg); border-radius: var(--radius-xl); border: 1px solid oklch(from var(--color-text) l c h / 0.08); }
.how__step-num { font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); color: var(--color-primary); margin-bottom: var(--space-4); }
.how__step-title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-base); margin-bottom: var(--space-2); }
.how__step-text { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }
@media (max-width: 768px) {
  .how__steps { grid-template-columns: 1fr 1fr; }
  .how__steps::before { display: none; }
}
@media (max-width: 480px) {
  .how__steps { grid-template-columns: 1fr; }
}

/* ========== CONTACT ========== */
.contact { background: var(--color-bg); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: var(--space-6); margin-top: var(--space-8); }
.contact__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact__item-icon { width: 44px; height: 44px; flex-shrink: 0; background: var(--color-primary-highlight); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--color-primary); }
.contact__item-label { font-size: var(--text-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-1); }
.contact__item-value { font-size: var(--text-base); font-weight: 500; color: var(--color-text); }
.contact__item a { color: var(--color-text); text-decoration: none; }
.contact__item a:hover { color: var(--color-primary); }
.contact__form { background: var(--color-surface); border-radius: var(--radius-2xl); padding: var(--space-8); border: 1px solid oklch(from var(--color-text) l c h / 0.08); }
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-sm); font-weight: 500; color: var(--color-text); margin-bottom: var(--space-2); }
.form-input {
  width: 100%; background: var(--color-bg); border: 1px solid oklch(from var(--color-text) l c h / 0.15);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); font-size: var(--text-base);
  color: var(--color-text); outline: none; min-height: 44px;
}
.form-input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15); }
textarea.form-input { min-height: 120px; resize: vertical; }
.form-input::placeholder { color: var(--color-text-faint); }
.form-submit { width: 100%; justify-content: center; }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-3); text-align: center; }
.form-success { display: none; text-align: center; padding: var(--space-8); color: var(--color-primary); font-weight: 600; font-size: var(--text-lg); }
.form-success svg { margin: 0 auto var(--space-4); }
@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ========== FOOTER ========== */
.footer {
  background: var(--color-accent-dark); color: #b0ae9a;
  padding-block: var(--space-12) var(--space-8);
}
[data-theme="dark"] .footer { background: var(--color-surface); color: var(--color-text-muted); border-top: 1px solid var(--color-divider); }
.footer__inner { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-10); flex-wrap: wrap; margin-bottom: var(--space-10); }
.footer__brand .logo { color: white; margin-bottom: var(--space-4); }
[data-theme="dark"] .footer__brand .logo { color: var(--color-text); }
.footer__tagline { font-size: var(--text-sm); max-width: 30ch; line-height: 1.6; }
.footer__nav-title { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin-bottom: var(--space-4); }
[data-theme="dark"] .footer__nav-title { color: var(--color-text); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { font-size: var(--text-sm); color: #b0ae9a; text-decoration: none; }
[data-theme="dark"] .footer__links a { color: var(--color-text-muted); }
.footer__links a:hover { color: var(--color-primary); }
.footer__bottom { border-top: 1px solid oklch(from white l c h / 0.1); padding-top: var(--space-6); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); font-size: var(--text-xs); }
[data-theme="dark"] .footer__bottom { border-color: var(--color-divider); }

/* ============================================================
   DROPDOWN NAVIGATION
   ============================================================ */
.nav__dropdown { position: relative; }

.nav__dropdown-trigger {
  display: flex; align-items: center; gap: var(--space-1);
  cursor: pointer; border: none; background: none;
  font-family: var(--font-body); font-size: var(--text-sm);
}
.nav__chevron {
  transition: transform 180ms cubic-bezier(0.16,1,0.3,1);
  flex-shrink: 0;
}
.nav__dropdown.open .nav__chevron { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding-inline: var(--space-2);
  padding-block: calc(var(--space-2) + var(--space-1)) var(--space-2);
  z-index: 200;
  animation: dropdownIn 160ms cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav__dropdown.open .nav__dropdown-menu { display: block; }

.nav__dropdown-item {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition-interactive);
}
.nav__dropdown-item:hover,
.nav__dropdown-item.active {
  background: oklch(from var(--color-primary) l c h / 0.08);
}
.nav__dropdown-item.active .nav__dropdown-label { color: var(--color-primary); }

.nav__dropdown-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-md);
  color: var(--color-primary);
  margin-top: 1px;
}
.nav__dropdown-label {
  display: block; font-size: var(--text-sm);
  font-weight: 600; line-height: 1.3;
  color: var(--color-text);
}
.nav__dropdown-desc {
  display: block; font-size: var(--text-xs);
  color: var(--color-text-muted); margin-top: 2px; line-height: 1.4;
}

.nav__dropdown-footer {
  border-top: 1px solid var(--color-divider);
  margin-top: var(--space-1); padding-block: var(--space-2);
}
.nav__dropdown-all {
  display: flex; align-items: center; gap: var(--space-1);
  justify-content: flex-end;
  font-size: var(--text-xs); font-weight: 600;
  color: var(--color-primary); padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-interactive);
}
.nav__dropdown-all:hover { background: oklch(from var(--color-primary) l c h / 0.06); }

/* ============================================================
   MOBILE NAV ADDITIONS
   ============================================================ */
.mobile-nav__section-title {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--color-text-muted);
  padding: var(--space-2) var(--space-4) var(--space-1);
}
.mobile-nav__service-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  text-decoration: none; color: var(--color-text);
  font-size: var(--text-sm); font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive);
}
.mobile-nav__service-link:hover,
.mobile-nav__service-link.active {
  background: oklch(from var(--color-primary) l c h / 0.08);
  color: var(--color-primary);
}
.mobile-nav__service-icon {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}
.mobile-nav__divider {
  height: 1px; background: var(--color-divider);
  margin: var(--space-2) var(--space-4);
}

/* ============================================================
   PAGE HERO (внутренние страницы услуг)
   ============================================================ */
.page-hero {
  padding: var(--space-12) 0 var(--space-10);
  background: linear-gradient(160deg, var(--color-surface) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-divider);
}
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { opacity: 0.4; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-2xl); line-height: 1.1;
  margin-bottom: var(--space-5); max-width: 14ch;
}
.page-hero__title em { font-style: normal; color: var(--color-primary); }
.page-hero__sub {
  font-size: var(--text-base); color: var(--color-text-muted);
  max-width: 56ch; line-height: 1.7; margin-bottom: var(--space-8);
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-detail { padding: var(--space-16) 0; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px,100%), 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.detail-grid--2col {
  grid-template-columns: repeat(auto-fill, minmax(min(380px,100%), 1fr));
}

.detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.detail-card:hover { box-shadow: var(--shadow-md); border-color: oklch(from var(--color-primary) l c h / 0.3); }
.detail-card--featured {
  background: var(--color-surface-2);
  border-color: oklch(from var(--color-primary) l c h / 0.2);
}
.detail-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.detail-card h3 {
  font-size: var(--text-lg); font-weight: 700;
  margin-bottom: var(--space-3); line-height: 1.25;
}
.detail-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-4); }
.detail-card ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.detail-card ul li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.4; }
.detail-card ul li i { color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   MONITORING ALERTS SECTION
   ============================================================ */
.monitoring-alerts { padding: var(--space-16) 0; background: var(--color-surface); }
.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px,100%), 1fr));
  gap: var(--space-6); margin-top: var(--space-10);
}
.alert-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: var(--space-6);
}
.alert-card--telegram { border-color: oklch(from var(--color-primary) l c h / 0.3); }
.alert-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-lg); color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.alert-card h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-3); }
.alert-card p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; margin-bottom: var(--space-4); }
.alert-demo {
  background: var(--color-surface-offset); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-xs); font-family: monospace;
}
.alert-demo__line { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-1); }
.alert-demo__meta { color: var(--color-text-muted); }
.badge-red   { background: var(--color-error);   color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); white-space: nowrap; }
.badge-yellow{ background: var(--color-warning); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); white-space: nowrap; }
.badge-green { background: var(--color-success); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: var(--radius-full); white-space: nowrap; }

/* ============================================================
   WHY ZABBIX
   ============================================================ */
.why-zabbix { padding: var(--space-16) 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px,100%), 1fr));
  gap: var(--space-5); margin-top: var(--space-10);
}
.why-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
.why-card__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-md); color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.why-card h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-2); }
.why-card p  { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.6; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  padding: var(--space-12) 0;
  background: var(--color-primary);
}
.cta-strip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-8); flex-wrap: wrap;
}
.cta-strip__title {
  font-family: var(--font-display); font-weight: 900;
  font-size: var(--text-xl); color: white; line-height: 1.2;
  margin-bottom: var(--space-2);
}
.cta-strip__sub { font-size: var(--text-sm); color: oklch(1 0 0 / 0.75); max-width: 48ch; }
.cta-strip__actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; flex-shrink: 0; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid oklch(1 0 0 / 0.35); border-radius: var(--radius-full);
  color: white; text-decoration: none; font-size: var(--text-sm); font-weight: 600;
  transition: background var(--transition-interactive), border-color var(--transition-interactive);
}
.btn-ghost-light:hover { background: oklch(1 0 0 / 0.1); border-color: oklch(1 0 0 / 0.6); }
.cta-strip .btn-primary {
  background: white; color: var(--color-primary-active);
}
.cta-strip .btn-primary:hover { background: oklch(1 0 0 / 0.9); }

@media (max-width: 640px) {
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 32px oklch(0.2 0.01 80 / 0.12);
  transform: translateY(0);
  transition: transform 380ms cubic-bezier(0.16,1,0.3,1),
              opacity   380ms cubic-bezier(0.16,1,0.3,1);
}
.cookie-banner.hidden {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cookie-banner__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: oklch(from var(--color-primary) l c h / 0.1);
  border-radius: var(--radius-lg);
  margin-top: 2px;
}
.cookie-banner__text {
  flex: 1; min-width: 240px;
}
.cookie-banner__text strong {
  display: block; font-size: var(--text-base);
  font-weight: 700; margin-bottom: var(--space-1);
}
.cookie-banner__text p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.6; margin: 0; max-width: 72ch;
}
.cookie-banner__link {
  color: var(--color-primary); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.cookie-banner__link:hover { text-decoration: none; }
.cookie-banner__actions {
  display: flex; gap: var(--space-2);
  align-items: center; flex-shrink: 0; flex-wrap: wrap;
}
.cookie-banner__btn {
  display: inline-flex; align-items: center;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 600;
  cursor: pointer; border: none; white-space: nowrap;
  transition: background var(--transition-interactive),
              color     var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.cookie-banner__btn--accept {
  background: var(--color-primary); color: #fff;
}
.cookie-banner__btn--accept:hover { background: var(--color-primary-hover); }
.cookie-banner__btn--decline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1.5px solid var(--color-border);
}
.cookie-banner__btn--decline:hover {
  background: oklch(from var(--color-text) l c h / 0.06);
  color: var(--color-text);
}

@media (max-width: 600px) {
  .cookie-banner__inner { gap: var(--space-3); }
  .cookie-banner__actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   PRIVACY MODAL
   ============================================================ */
.privacy-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
}
.privacy-modal[hidden] { display: none; }

.privacy-modal__overlay {
  position: absolute; inset: 0;
  background: oklch(0.1 0 0 / 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.privacy-modal__box {
  position: relative; z-index: 1;
  width: 100%; max-width: 680px;
  max-height: 85dvh;
  background: var(--color-surface-2);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: modalSlideUp 300ms cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (min-width: 720px) {
  .privacy-modal { align-items: center; padding: var(--space-6); }
  .privacy-modal__box { border-radius: var(--radius-xl); max-height: 80dvh; }
}
.privacy-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}
.privacy-modal__header h2 {
  font-size: var(--text-lg); font-weight: 700; margin: 0;
}
.privacy-modal__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive), color var(--transition-interactive);
  flex-shrink: 0;
}
.privacy-modal__close:hover { background: oklch(from var(--color-text) l c h / 0.06); color: var(--color-text); }

.privacy-modal__body {
  flex: 1; overflow-y: auto; padding: var(--space-5) var(--space-6);
  -webkit-overflow-scrolling: touch;
}
.privacy-modal__body h3 {
  font-size: var(--text-base); font-weight: 700;
  margin: var(--space-5) 0 var(--space-2); color: var(--color-text);
}
.privacy-modal__body h3:first-child { margin-top: 0; }
.privacy-modal__body p {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.7; margin-bottom: var(--space-3);
}
.privacy-modal__body ul {
  margin: 0 0 var(--space-3) var(--space-5);
}
.privacy-modal__body ul li {
  font-size: var(--text-sm); color: var(--color-text-muted);
  line-height: 1.6; margin-bottom: var(--space-1);
}
.privacy-modal__body a { color: var(--color-primary); }
.privacy-modal__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
  flex-shrink: 0;
}

/* ============================================================
   FORM CHECKBOX (согласие на обработку данных)
   ============================================================ */
.form-group--consent { margin-bottom: var(--space-4); }
.form-checkbox {
  display: flex; align-items: flex-start; gap: var(--space-3);
  cursor: pointer; user-select: none;
}
.form-checkbox input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.form-checkbox__box {
  flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px;
  border: 2px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface);
  transition: border-color var(--transition-interactive),
              background   var(--transition-interactive);
  display: flex; align-items: center; justify-content: center;
}
.form-checkbox input:checked ~ .form-checkbox__box {
  background: var(--color-primary); border-color: var(--color-primary);
}
.form-checkbox input:checked ~ .form-checkbox__box::after {
  content: '';
  display: block; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}
.form-checkbox input:focus-visible ~ .form-checkbox__box {
  outline: 2px solid var(--color-primary); outline-offset: 2px;
}
.form-checkbox__label {
  font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.5;
}
.form-checkbox__label .link {
  color: var(--color-primary); text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer;
}
.form-checkbox__label .link:hover { text-decoration: none; }

/* ============================================================
   ERROR PAGE (404)
   ============================================================ */
.error-page {
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: center; background: var(--color-bg);
}
.error-page__inner { max-width: 480px; margin: 0 auto; text-align: center; padding: var(--space-16) 0; }
.error-page__code {
  font-family: var(--font-display); font-weight: 900; font-size: var(--text-3xl);
  color: var(--color-primary); line-height: 1; margin-bottom: var(--space-6);
}
.error-page__title { font-family: var(--font-display); font-weight: 900; font-size: var(--text-xl); margin-bottom: var(--space-4); }
.error-page__text { color: var(--color-text-muted); font-size: var(--text-base); margin-bottom: var(--space-8); max-width: 38ch; margin-inline: auto; }
