/* SchoolAssist — core styles */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --accent: #0ea5e9;
  --ok: #10b981;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: .9rem; font-weight: 800;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: #334155; font-weight: 500; padding: 8px 12px; border-radius: 10px; font-size: .95rem;
}
.nav-links a:hover { background: var(--soft); text-decoration: none; }
.nav-links a.active { color: var(--brand); background: #eef2ff; }
.nav-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.32); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(37,99,235,.42); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cbd5e1; background: var(--soft); }

/* Sections */
section { padding: 72px 0; }
.section-soft { background: var(--soft); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; }

/* Hero */
.hero { padding: 84px 0 72px; background: radial-gradient(1000px 500px at 80% -10%, #e0e7ff 0%, transparent 60%), radial-gradient(700px 400px at 0% 10%, #e0f2fe 0%, transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 span { background: linear-gradient(135deg, var(--brand-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.badges b { color: var(--ink); }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dbe3ef; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe); font-size: 1.3rem;
}
.card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Panel / mock */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.panel-body { padding: 20px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.row:last-child { border-bottom: 0; }
.pill { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.info { background: #e0e7ff; color: #3730a3; }
.bar { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }

/* Pricing */
.price { display: flex; flex-direction: column; }
.price .amount { font-size: 2rem; font-weight: 800; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.price li { padding: 7px 0 7px 26px; position: relative; color: #334155; font-size: .95rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price.featured { border-color: #c7d2fe; box-shadow: 0 24px 60px rgba(79,70,229,.16); position: relative; }
.price.featured::after { content: "Популярный"; position: absolute; top: -12px; right: 20px; background: linear-gradient(135deg,var(--brand-2),var(--brand)); color:#fff; font-size:.72rem; font-weight:700; padding:4px 10px; border-radius:999px; }

/* Blog */
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { height: 150px; border-radius: 12px; margin-bottom: 16px; background: linear-gradient(135deg,#eef2ff,#e0f2fe); display:grid; place-items:center; font-size:2rem; }
.post-meta { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 1.6em; }
.article p, .article li { color: #334155; }
blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 0 12px 12px 0; color: #334155; }

/* CTA */
.cta-band {
  background: linear-gradient(135deg, #1e1b4b, #1d4ed8 60%, #0ea5e9);
  color: #fff; border-radius: 24px; padding: 52px; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #c7d2fe; max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.2); }
.cta-band .btn-primary { background: #fff; color: #1d4ed8; box-shadow: none; }

/* Forms */
form { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .9rem; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Footer */
.site-footer { background: #0b1120; color: #cbd5e1; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: #94a3b8; display: block; padding: 5px 0; font-size: .92rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #64748b; }
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { box-shadow: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px; gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; }
  .burger { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .cta-band { padding: 34px 22px; }
}