/* RazborAI — образовательный лендинг, пастель */
:root {
  --bg: #f8fcff;
  --bg-soft: #eef6ff;
  --white: #ffffff;
  --text: #1e293b;
  --text-dim: #475569;
  --muted: #64748b;
  --sky: #7dd3fc;
  --sky-soft: #e0f2fe;
  --green: #22c55e;
  --green-d: #16a34a;
  --green-soft: #dcfce7;
  --border: #cfe8f5;
  --shadow: 0 8px 32px rgba(14, 116, 144, 0.08);
  --radius: 16px;
  --font: "Inter", "Roboto", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: 1rem; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 8px;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.header-blog {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.header-blog:hover { color: #0ea5e9; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-d));
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(34, 197, 94, 0.45); }
.btn-outline {
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--sky); color: #0369a1; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px;
  flex-direction: column;
  gap: 8px;
  z-index: 199;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer a, .mobile-drawer .btn { width: 100%; text-align: center; justify-content: center; }

@media (max-width: 900px) {
  .header-actions .btn-primary { display: none; }
  .menu-toggle { display: flex; }
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, var(--sky-soft) 0%, var(--bg) 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-d);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 span { color: #0284c7; }
.hero .lead {
  font-size: 1.08rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero-note { font-size: 0.88rem; color: var(--muted); }

.hero-visual {
  position: relative;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  min-height: 280px;
}
.phone-mock {
  max-width: 280px;
  margin: 0 auto;
  border-radius: 28px;
  border: 8px solid #e2e8f0;
  background: linear-gradient(180deg, #f1f5f9, #fff);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.phone-bar {
  height: 28px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--muted);
}
.phone-body {
  padding: 16px;
  font-size: 0.88rem;
}
.phone-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  background: #f8fafc;
}
.phone-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.phone-words span {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--sky-soft);
  font-weight: 700;
  font-size: 0.8rem;
  animation: pop 2.5s ease-in-out infinite;
}
.phone-words span:nth-child(2) { animation-delay: 0.3s; background: var(--green-soft); color: var(--green-d); }
@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Sections */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-head .sub { color: var(--text-dim); font-size: 1.05rem; }

/* Compare table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--sky-soft);
  font-size: 0.85rem;
  font-weight: 800;
}
.compare-table tr:last-child td { border-bottom: none; }
.bad { color: #dc2626; font-weight: 700; }
.good { color: var(--green-d); font-weight: 700; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  text-align: center;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, var(--green));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; color: var(--text-dim); }

.gif-placeholder {
  margin-top: 32px;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  background: var(--bg-soft);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Demo */
.demo-block {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}
.demo-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.demo-presets button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
}
.demo-presets button:hover, .demo-presets button.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-d);
}
.demo-textarea {
  width: 100%;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  resize: vertical;
  margin-bottom: 16px;
}
.demo-textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.demo-words-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.demo-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.word-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.word-chip:hover { border-color: #38bdf8; }
.word-chip.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
}
.word-chip .n {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #0284c7;
}
.demo-card {
  display: none;
  padding: 20px;
  border-radius: 14px;
  background: var(--sky-soft);
  border: 1px solid #bae6fd;
}
.demo-card.is-open { display: block; }
.demo-card h4 { font-size: 1.1rem; margin-bottom: 10px; }
.demo-card .pos { color: #0369a1; font-weight: 700; margin-bottom: 8px; }
.demo-card .detail { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 12px; }
.btn-why {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
}
.btn-why:hover { border-color: var(--green); color: var(--green-d); }
.why-extra {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #bae6fd;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.why-extra.is-open { display: block; }
.demo-hint {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

/* Features grid */
.grid-f {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .grid-f { grid-template-columns: 1fr; } }
.f-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.f-card .ic {
  margin-bottom: 10px;
}
.f-card .ic-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0369a1;
  background: var(--sky-soft);
  border: 1px solid var(--border);
}
.f-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.f-card p { font-size: 0.9rem; color: var(--text-dim); }

/* Audience */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .cards-3 { grid-template-columns: 1fr; } }
.aud-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--white), var(--sky-soft));
  border: 1px solid var(--border);
}
.aud-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: #0369a1; }
.aud-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Pricing */
.pricing-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 640px) { .pricing-row { grid-template-columns: 1fr; } }
.price-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
}
.price-card.featured {
  border-color: var(--green);
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.15);
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-d);
  margin: 12px 0;
}
.price-card ul { list-style: none; margin: 16px 0; }
.price-card li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-dim);
}
.price-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--green-d);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
}

/* Reviews */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.review .quote { font-style: italic; color: var(--text-dim); margin-bottom: 14px; font-size: 0.95rem; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}
.review .name { font-weight: 700; font-size: 0.9rem; }
.review .role { font-size: 0.8rem; color: var(--muted); }

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}
.logo-fake {
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

/* FAQ */
.acc {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-btn {
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  color: var(--text);
}
.acc-btn::after { content: "+"; color: #0284c7; font-size: 1.3rem; font-weight: 400; }
.acc-item.open .acc-btn::after { content: "−"; }
.acc-panel {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.acc-item.open .acc-panel { display: block; }

/* Capture form */
.capture {
  background: linear-gradient(135deg, var(--sky-soft), var(--green-soft));
  border-radius: 24px;
  padding: 40px 28px;
  border: 1px solid var(--border);
  text-align: center;
}
.capture h2 { font-size: 1.65rem; margin-bottom: 10px; }
.capture .sub { color: var(--text-dim); margin-bottom: 24px; }
.capture-form {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.capture-form input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
}
.capture-form input:focus {
  outline: none;
  border-color: var(--green);
}

/* Footer */
.site-footer {
  padding: 48px 0 28px;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
}
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: #0284c7; }
.footer-bottom {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 400;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transition: transform 0.35s, opacity 0.35s;
}
.toast.is-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
