/* ОГЭ на 100 — бренд: крем #FFE8BE, оранжевый лис, синяя шапка */

:root {
  --bg: #fff8ec;
  --bg-card: #ffffff;
  --bg-cream: #ffe8be;
  --bg-cream-deep: #f5d9a8;
  --orange: #e8842c;
  --orange-hover: #d4721f;
  --orange-soft: #fff0e0;
  --blue: #2e6db5;
  --blue-hover: #255a96;
  --blue-soft: #e8f1fb;
  --brown: #3d2817;
  --text: #2c1810;
  --text-muted: #6b5344;
  --border: #e8d4bc;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(61, 40, 23, 0.08);
  --shadow-lg: 0 12px 40px rgba(61, 40, 23, 0.12);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-name span { color: var(--orange); }

.nav-links {
  display: none;
  gap: 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover { color: var(--orange); text-decoration: none; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 132, 44, 0.35);
}

.btn-primary:hover {
  background: var(--orange-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-soft);
  color: var(--blue-hover);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}

.btn-ghost:hover { color: var(--orange); background: var(--orange-soft); }

/* ── Hero ── */
.hero {
  padding: 48px 0 56px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.hero-badge {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.hero-stats {
  font-size: 0.88rem;
  color: var(--blue);
  font-weight: 700;
  margin-top: 10px;
}

.hero-stats[hidden] { display: none; }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 420px;
}

.phone-stack {
  position: relative;
  width: min(340px, 92vw);
  height: 400px;
}

.phone {
  position: absolute;
  width: 200px;
  background: #17212b;
  border-radius: 22px;
  padding: 10px 10px 14px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #2b3945;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fff;
}

.phone-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 3;
}

.phone-notch {
  width: 56px;
  height: 5px;
  background: #2b3945;
  border-radius: 999px;
  margin: 0 auto 8px;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2b3945;
}

.phone-header img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.phone-header span {
  font-weight: 700;
  font-size: 0.75rem;
}

.tg-msg {
  background: #182533;
  border-radius: 10px 10px 10px 4px;
  padding: 8px 10px;
  margin-bottom: 6px;
  color: #e8edf2;
}

.tg-msg strong { color: #6ab3f3; }

.tg-msg.user {
  background: #2b5278;
  border-radius: 10px 10px 4px 10px;
  margin-left: 24px;
  text-align: right;
}

.tg-msg.bad { border-left: 3px solid #e85c5c; }

.tg-msg.good { border-left: 3px solid #5eead4; }

.tg-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 8px;
}

.tg-key {
  background: #2b3945;
  border-radius: 6px;
  padding: 5px;
  text-align: center;
  font-size: 0.65rem;
  color: #8ba3b8;
}

.tg-key.sel {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
}

.phone-1 {
  left: 0;
  top: 24px;
  transform: rotate(-6deg);
  z-index: 1;
}

.phone-2 {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 3;
  width: 220px;
}

.phone-3 {
  right: 0;
  top: 28px;
  transform: rotate(6deg);
  z-index: 2;
}

.stat-pill {
  display: inline-block;
  background: rgba(94, 234, 212, 0.15);
  color: #5eead4;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.68rem;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .phone-stack {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 260px;
  }

  .phone {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100%;
  }
}

/* legacy mascot - removed */
.hero-mascot-wrap {
  position: relative;
  width: min(320px, 90vw);
}

.hero-mascot-wrap::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: var(--bg-cream);
  border-radius: 50%;
  z-index: 0;
}

.hero-mascot {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 24px;
}

.hero-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 2;
  white-space: nowrap;
}

.hero-float-1 { top: 8%; right: -4%; }
.hero-float-2 { bottom: 12%; left: -6%; }

/* ── Demo screens section ── */
.demo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.demo-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.demo-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.demo-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-cream);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.outcomes-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.outcome {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.outcome-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}

.outcome h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.outcome p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Trust strip ── */
.trust-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-items li::before {
  content: "✓ ";
  color: var(--orange);
}

/* ── Demo blitz ── */
#demo {
  padding-top: 56px;
  padding-bottom: 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--orange-soft) 100%);
}

.demo-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
}

.demo-intro {
  text-align: center;
}

.demo-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.demo-intro h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.demo-intro p {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.demo-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.demo-progress strong {
  color: var(--orange);
}

.demo-bar {
  height: 6px;
  background: var(--bg-cream);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.demo-bar-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.demo-topic {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  margin: 0 0 8px;
}

.demo-q {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.35;
}

.demo-opts {
  display: grid;
  gap: 10px;
}

.demo-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.demo-opt span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.demo-opt:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.demo-fb {
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.demo-fb.ok {
  background: #e8f8ef;
  border: 1px solid #b8e6c8;
}

.demo-fb.bad {
  background: #fdeeee;
  border: 1px solid #f5c6c6;
}

.demo-fb p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.demo-result h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.demo-result p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.demo-result-note {
  font-size: 0.92rem !important;
}

.demo-result .btn {
  width: 100%;
  margin-top: 8px;
}

.demo-result .btn-ghost {
  width: 100%;
  margin-top: 8px;
}

/* ── Sections ── */
section { padding: 64px 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 0 32px;
}

/* ── Pain / solution ── */
.pain-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.pain-card.bad { border-left: 4px solid #d4a574; }
.pain-card.good { border-left: 4px solid var(--orange); background: var(--orange-soft); }

.pain-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.pain-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── Steps ── */
.steps {
  display: grid;
  gap: 20px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-cream);
  color: var(--orange);
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 14px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ── Features ── */
.features-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Compare ── */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare th {
  background: var(--bg-cream);
  font-weight: 800;
}

.compare tr:last-child td { border-bottom: 0; }

.compare .us {
  background: var(--orange-soft);
  font-weight: 700;
  color: var(--brown);
}

.compare .check { color: var(--orange); font-weight: 700; }
.compare .cross { color: #b8956a; }

/* ── Parents ── */
.parents-block {
  background: linear-gradient(135deg, var(--blue-soft) 0%, var(--bg-cream) 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
}

.parents-block h2 { margin-top: 0; }

.parents-list {
  margin: 20px 0 28px;
  padding-left: 0;
  list-style: none;
}

.parents-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.98rem;
}

.parents-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 4px;
}

.price-amount small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-old {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-daily {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--orange);
  margin: 2px 0 6px;
}

.price-note {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-foot {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Author ── */
.author-block {
  display: grid;
  gap: 24px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

@media (min-width: 640px) {
  .author-block { grid-template-columns: auto 1fr; }
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-cream);
  box-shadow: var(--shadow);
}

.author-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Channel ── */
.channel-block {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

@media (min-width: 640px) {
  .channel-block { grid-template-columns: auto 1fr; }
}

.channel-mascot {
  width: 100px;
  border-radius: 50%;
  background: var(--bg-cream);
}

/* ── FAQ ── */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--orange);
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  padding: 72px 0;
  background: var(--bg-cream);
  border-top: 1px solid var(--border);
}

.final-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 12px;
}

.final-cta p {
  color: var(--text-muted);
  margin: 0 0 28px;
  font-size: 1.05rem;
}

/* ── Footer ── */
.site-footer {
  background: var(--brown);
  color: #d4c4b8;
  padding: 40px 0 32px;
  font-size: 0.88rem;
}

.site-footer a { color: #f5e6d3; }

.footer-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer-brand span {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin: 6px 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  color: #a8907a;
}

/* ── Sticky mobile CTA ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255, 248, 236, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  z-index: 99;
}

.sticky-cta .btn { width: 100%; }

@media (max-width: 767px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
  .header-cta { display: none; }
}
