:root {
  --accent: #ff6b2c;
  --accent-hover: #ff834f;
  --accent-glow: rgba(255, 107, 44, 0.4);
  --btn-text-on-accent: #1a0f08;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 56px;
  --sticky-h: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --max-w: 720px;
  --transition-theme: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

[data-theme="light"] {
  --bg: #f4f6f9;
  --bg-alt: #e8edf3;
  --surface: #ffffff;
  --surface-2: #dce4ee;
  --text: #1a2332;
  --text-muted: #5c6b7f;
  --success: #0a9f5c;
  --border: rgba(26, 35, 50, 0.1);
  --border-strong: rgba(26, 35, 50, 0.14);
  --header-bg: rgba(244, 246, 249, 0.92);
  --sticky-from: rgba(244, 246, 249, 0.98);
  --sticky-to: rgba(244, 246, 249, 0.88);
  --hero-glow-opacity: 0.25;
  --switch-track: #c5d0de;
  --switch-thumb-shadow: 0 2px 6px rgba(26, 35, 50, 0.15);
}

[data-theme="dark"] {
  --bg: #0f1419;
  --bg-alt: #161d26;
  --surface: #1c2633;
  --surface-2: #243041;
  --text: #eef2f7;
  --text-muted: #9aa8b8;
  --success: #3dd68c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(15, 20, 25, 0.88);
  --sticky-from: rgba(15, 20, 25, 0.98);
  --sticky-to: rgba(15, 20, 25, 0.85);
  --hero-glow-opacity: 0.35;
  --switch-track: #2a3544;
  --switch-thumb-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-bottom: calc(var(--sticky-h) + var(--safe-bottom) + 8px);
  transition: var(--transition-theme);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #111;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

a {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-theme);
}

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.125rem;
}

.logo__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.theme-switch__icons {
  display: none;
}

.theme-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.theme-switch__track {
  position: relative;
  display: block;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--switch-track);
  border: 1px solid var(--border);
  transition: background 0.25s ease;
}

.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--switch-thumb-shadow);
  transition: transform 0.25s ease, background 0.25s ease;
}

.theme-switch__input:checked + .theme-switch__track .theme-switch__thumb {
  transform: translateX(24px);
  background: var(--accent-hover);
}

.theme-switch__input:focus-visible + .theme-switch__track {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .theme-switch__icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
  }

  .theme-switch__sun {
    color: var(--accent);
  }

  [data-theme="dark"] .theme-switch__moon {
    color: var(--accent-hover);
  }

  [data-theme="light"] .theme-switch__sun {
    color: var(--accent);
  }
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
}

/* Hero — first screen on mobile */
.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.75rem 1rem 1.25rem;
  min-height: calc(100dvh - var(--header-h) - var(--sticky-h) - var(--safe-bottom));
  min-height: calc(100svh - var(--header-h) - var(--sticky-h) - var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.hero__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% 0 auto;
  height: 55%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: var(--hero-glow-opacity);
  z-index: -1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.35rem 0.75rem;
  width: fit-content;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero__badge strong {
  color: var(--success);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}

.hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.phone-display {
  display: block;
  margin-top: 0.25rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  transition: var(--transition-theme);
}

.phone-display__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.phone-display__number {
  display: block;
  font-size: clamp(1.65rem, 7.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.btn-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 56px;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-call:active {
  transform: scale(0.98);
}

.btn-call--primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: var(--btn-text-on-accent);
  box-shadow: 0 8px 28px var(--accent-glow), 0 2px 0 rgba(0, 0, 0, 0.12) inset;
}

.btn-call--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.hero__facts {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__facts li {
  padding-left: 1.1rem;
  position: relative;
}

.hero__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Quick nav */
.quick-nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem 0.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.quick-nav::-webkit-scrollbar {
  display: none;
}

.quick-nav a {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
}

/* Sections */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.75rem 1rem;
}

.section--alt {
  background: var(--bg-alt);
  max-width: none;
  transition: var(--transition-theme);
}

.section--alt > .section__title,
.section--alt > .section__note,
.section--alt > .price-grid,
.section--alt > .features,
.section--alt > .reviews,
.section--alt > .btn-call {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.section__note {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.price-grid {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition-theme);
}

.price-card__type {
  grid-column: 1 / -1;
  font-weight: 600;
}

.price-card__from {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.price-card__sum {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-hover);
}

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.features li {
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition-theme);
}

.features strong {
  display: block;
  margin-bottom: 0.25rem;
}

.features span {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.steps {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.steps li {
  margin-bottom: 0.5rem;
}

.steps a {
  font-weight: 700;
  white-space: nowrap;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.callback-form__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  min-height: 1.25em;
}

.reviews {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.review {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition-theme);
}

.review blockquote {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
}

.review footer {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

/* Sticky bottom call bar */
.sticky-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 0.5rem 0.75rem calc(0.5rem + var(--safe-bottom));
  background: linear-gradient(to top, var(--sticky-from), var(--sticky-to));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transition: var(--transition-theme);
}

.sticky-call__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: var(--sticky-h);
  padding: 0 1rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: var(--btn-text-on-accent);
  font-weight: 800;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
  text-decoration: none;
  box-shadow: 0 -4px 24px var(--accent-glow);
}

/* Desktop: hide duplicate sticky when hero CTA is enough, soften layout */
@media (min-width: 900px) {
  body {
    padding-bottom: 2rem;
  }

  .sticky-call {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .phone-display,
  .btn-call--primary {
    max-width: 420px;
  }

  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse {
    animation: none;
  }

  .btn-call {
    transition: none;
  }
}
