/* ── Тема ──────────────────────────────────────────────────────────────────
   Светлая палитра — на голом :root.
   Тёмная — под @media (системная, если тумблер не трогали) и под
   [data-theme="dark"] (ручной выбор). [data-theme="light"] всегда светлая. */
:root {
  --bg: #ffffff;
  --bg-alt: #fff7f0;
  --text: #1f1a15;
  --text-muted: #6b6258;
  --primary: #ff6a1a;
  --primary-dark: #e85c0e;
  --accent: #ffb37a;
  --border: #f0e5db;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(255, 106, 26, 0.14);
  --radius: 16px;
  --max: 1140px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14110d;
    --bg-alt: #201a14;
    --text: #f5efe8;
    --text-muted: #b1a596;
    --primary: #ff8a4c;
    --primary-dark: #ff6a1a;
    --accent: #ffb37a;
    --border: #362d24;
    --card: #231c15;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #14110d;
  --bg-alt: #201a14;
  --text: #f5efe8;
  --text-muted: #b1a596;
  --primary: #ff8a4c;
  --primary-dark: #ff6a1a;
  --accent: #ffb37a;
  --border: #362d24;
  --card: #231c15;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.18; margin: 0 0 .4em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 26px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .93rem;
}
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--primary); }

/* Переключатель темы */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero — фото на фоне, тёмный оверлей, светлый текст */
.hero {
  position: relative;
  padding: 96px 0 88px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(100deg, rgba(20, 10, 4, .78) 0%, rgba(20, 10, 4, .5) 45%, rgba(20, 10, 4, .25) 100%),
    url("images/slide-1.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: .9em;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw + 1rem, 3.4rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .35);
}
.lead {
  font-size: 1.16rem;
  color: rgba(255, 255, 255, .9);
  max-width: 48ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 28px; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-pills li {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(4px);
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
}

.hero-card {
  background: rgba(15, 8, 3, .55);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.hero-card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-price { display: flex; align-items: baseline; gap: 8px; }
.hero-price-num { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.hero-price-cur { font-size: 1.05rem; color: rgba(255, 255, 255, .8); font-weight: 600; }
.hero-card-note { color: rgba(255, 255, 255, .8); font-size: .9rem; margin: 2px 0 18px; }
.hero-card-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hero-card-list li { padding-left: 26px; position: relative; font-size: .93rem; }
.hero-card-list li::before { content: "🏂"; position: absolute; left: 0; font-size: .95em; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.4rem); text-align: center; }
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(3, 1fr); }
.catalog { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}
.card h3 { font-size: 1.12rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* Quote band — фото прыжка на фоне */
.quote-band {
  position: relative;
  padding: 110px 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.quote-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(10, 20, 35, .45), rgba(10, 20, 35, .55)),
    url("images/flex-slide3.jpg");
  background-size: cover;
  background-position: center 40%;
}
.quote-main {
  font-size: clamp(1.8rem, 3.5vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 .3em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}
.quote-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .9);
  margin: 0;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .4);
}

/* Catalog */
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.section-alt .cat-card { background: var(--card); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-media {
  background: #fff;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.cat-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.cat-card h3 { font-size: 1.1rem; margin: 4px 0 0; padding: 0 8px; }
.cat-card p { margin: 0; color: var(--text-muted); font-size: .93rem; flex: 1; padding: 0 8px; }
.cat-price {
  align-self: flex-start;
  margin: 8px 0 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 700;
}

/* Pricing */
.pricing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.price-table {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.price-table h3 { font-size: 1.05rem; margin-bottom: 16px; }
.price-table ul { list-style: none; padding: 0; margin: 0; }
.price-table li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: .96rem;
}
.price-table li:last-child { border-bottom: none; }
.price-table li span { color: var(--text-muted); }
.price-table li b { white-space: nowrap; }
.price-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .92rem;
  max-width: 56ch;
  margin: 26px auto 0;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--text-muted); font-size: .95rem; }

/* Contact / booking */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-text .section-title,
.contact-text .section-subtitle { text-align: left; margin-left: 0; }
.contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 4px; }
.contact-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 700;
}
.contact-list > li > a { font-weight: 700; text-decoration: none; }
.contact-list > li > a:hover { color: var(--primary); }
.contact-social { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}
.contact-social a:hover { color: var(--primary); }
.contact-social img { width: 22px; height: 22px; }

.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: grid;
  gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .9rem; }
.field .opt { color: var(--text-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-alt);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.field input.invalid,
.field textarea.invalid { border-color: #e5484d; }
.error { color: #e5484d; font-size: .82rem; min-height: 1em; }
.form-success { margin: 0; color: #2f9e44; font-weight: 700; }
.form-fail { margin: 0; color: #e5484d; font-weight: 700; }

/* Honeypot — прячем от людей, боты заполняют */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Чекбокс согласия */
.consent-field { display: grid; gap: 4px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.consent input.invalid { outline: 2px solid #e5484d; outline-offset: 2px; }
.consent a { color: var(--primary); text-decoration: underline; }

.btn:disabled { opacity: .6; cursor: default; }

/* Страница «Политика конфиденциальности» */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 20px 80px; }
.legal .back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 700;
  text-decoration: none;
  color: var(--primary);
}
.legal h1 { font-size: clamp(1.6rem, 3vw + 1rem, 2.2rem); }
.legal h2 { font-size: 1.15rem; margin-top: 1.9em; }
.legal p, .legal li { color: var(--text-muted); font-size: .96rem; }
.legal ul { padding-left: 20px; }
.legal .note {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .9rem;
}
.legal .updated { font-size: .85rem; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  align-items: start;
  color: var(--text-muted);
  font-size: .9rem;
}
.footer-tagline { margin: 12px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; color: var(--text-muted); font-weight: 600; }
.footer-nav a:hover { color: var(--text); }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features, .catalog, .steps { grid-template-columns: 1fr 1fr; }
  .pricing-wrap { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-actions { display: none; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .theme-toggle { margin-left: auto; }
  .nav-toggle { display: flex; margin-left: 8px; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gallery { grid-template-columns: 1fr; }
  .gallery img { height: 240px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .features, .catalog, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .quote-band { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
