:root {
  color-scheme: light dark;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-inset: #f0f2f5;
  --text: #0e1116;
  --text-muted: #5b6573;
  --line: #e4e7ec;
  --line-strong: #d2d7df;
  --accent: #eba000;
  --accent-strong: #cf8c00;
  --accent-soft: rgba(235, 160, 0, 0.1);
  --on-accent: #181203;

  --max: 1120px;
  --radius: 6px;
  --radius-sm: 4px;
  --gap: clamp(16px, 4vw, 28px);
  --section-y: clamp(48px, 8vw, 96px);
  --font-main: "Inter", "Segoe UI", Roboto, Tahoma, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f12;
    --bg-soft: #14171c;
    --bg-inset: #181c22;
    --text: #eef1f5;
    --text-muted: #9aa4b2;
    --line: #232830;
    --line-strong: #2f353f;
    --accent: #ffc04d;
    --accent-strong: #ffce70;
    --accent-soft: rgba(255, 192, 77, 0.14);
    --on-accent: #181203;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 14px;
  top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  z-index: 1000;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 32px);
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.brand-text {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.desktop-nav a:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 13px 22px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--bg-inset);
}

.menu-button {
  display: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px clamp(16px, 5vw, 32px) 18px;
}

.mobile-nav a {
  display: block;
  padding: 13px 2px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a.btn {
  margin-top: 14px;
  color: var(--on-accent);
  border-bottom: none;
  justify-content: center;
}

.mobile-nav.is-open {
  display: block;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 8vw, 88px) 0 clamp(36px, 6vw, 64px);
}

.hero-bg { display: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--bg-soft);
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  margin-top: 20px;
  letter-spacing: -0.03em;
}

h1 span {
  color: var(--accent);
}

.subtitle {
  color: var(--text-muted);
  margin-top: 18px;
  max-width: 54ch;
  font-size: clamp(1rem, 2.2vw, 1.12rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-points {
  display: flex;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Media frame (универсальный фикс картинок) ---------- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-inset);
  border: 1px solid var(--line);
}

.media > img,
.media > picture,
.media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* aspect ratios per usage */
.media-hero { aspect-ratio: 13 / 12; max-width: 520px; margin-inline: auto; }
.media-feature { aspect-ratio: 4 / 3; }
.media-wide { aspect-ratio: 16 / 10; }
.media-square { aspect-ratio: 1 / 1; }

.hero-visual { width: 100%; }

/* ---------- Sections ---------- */
.section {
  padding: var(--section-y) 0;
}

.section-muted {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.section-head p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.mt-4 { margin-top: 18px; }

/* ---------- Features ---------- */
.feature-layout {
  display: grid;
  gap: clamp(40px, 7vw, 80px);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.feature-item.reverse .feature-text {
  order: -1;
}

/* пара картинок -> аккуратная сетка, без разнобоя */
.feature-images.stacked-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-images.single-img-wrap { display: block; }

.feature-text h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-bottom: 14px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.feature-text ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.feature-text li {
  margin-bottom: 11px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.feature-text li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23eba000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- Stats ---------- */
.stats-grid-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.stats-text h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 14px;
}

.stats-text p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Pricing (без карточек-картинок) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan-card {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  text-align: center;
  border-right: 1px solid var(--line);
  background: var(--bg);
}

.plan-card:last-child { border-right: none; }

.plan-card-3days {
  background: var(--bg-soft);
}

.plan-content h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0;
}

.plan-content p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan-price {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.plan-price span {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: super;
}

.pricing-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Text block (SEO) ---------- */
.text-block {
  max-width: 760px;
}

.text-block h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.text-block h3 { font-size: 1.2rem; margin-top: 28px; }

.text-block p {
  color: var(--text-muted);
  margin-top: 14px;
}

.text-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Inner pages ---------- */
.page-main { min-height: 60vh; }
.narrow { max-width: 820px; }
.page-hero { padding-bottom: clamp(8px, 2vw, 20px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  background: var(--bg-soft);
}

.content-grid { display: grid; gap: clamp(28px, 5vw, 44px); }

.content-block h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

.content-block p { margin: 0; color: var(--text-muted); }
.content-block p + p { margin-top: 12px; }

.meta-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.meta-list li { margin: 9px 0; }
.meta-list a { color: var(--accent); }

.author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.author-photo,
.author-card picture {
  width: 120px;
  height: 120px;
  flex: none;
}

.author-photo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.author-card picture > img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.author-role {
  margin: 4px 0 12px;
  color: var(--accent);
  font-weight: 600;
}

.founder-quote {
  margin: 18px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  color: var(--text);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 18px 36px 18px 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6573' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6573' stroke-width='2.5' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
}

.contact-list li { margin: 12px 0; }
.contact-list strong { color: var(--text); }
.contact-list a { color: var(--accent); }

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 320px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 28px 0;
}

.footer-wrap {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  gap: 18px;
}

.footer nav a:hover { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal-up {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 0.55s ease forwards;
}

.reveal-up.delay-1 { animation-delay: 0.12s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .desktop-nav,
  .desktop-cta { display: none; }

  .menu-button { display: inline-flex; }

  .hero-grid,
  .feature-item,
  .feature-item.reverse,
  .stats-grid-layout,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .feature-item.reverse .feature-text { order: 0; }

  /* картинки выше текста в фичах на мобиле */
  .feature-item .feature-images { order: -1; }

  .media-hero { max-width: 440px; }

  .author-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

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

  .plan-card {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .plan-card:last-child { border-bottom: none; }

  .feature-images.stacked-images {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
