/* ============================================================
   gradeai24 — Продающий лендинг (promo.gradeai24.ru)
   Brand: navy #054274 · green #46B76B · white
   Type:  Unbounded (display) · Golos Text (body)
   ============================================================ */

:root {
  --navy:      #054274;
  --navy-700:  #0a4f88;
  --navy-900:  #042d4f;
  --green:     #46B76B;
  --green-600: #36a35b;
  --green-100: #e4f4ea;
  --ink:       #16242f;
  --muted:     #5d7180;
  --line:      #dfe3e0;
  --paper:     #f5f4ef;
  --card:      #ffffff;

  --r:    18px;
  --r-sm: 12px;
  --shadow:    0 1px 2px rgba(5,66,116,.06), 0 12px 28px -12px rgba(5,66,116,.18);
  --shadow-lg: 0 30px 70px -30px rgba(5,66,116,.45);

  --font-disp: "Unbounded", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(circle at 1px 1px, rgba(5,66,116,.05) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-disp);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
p  { margin: 0; }
::selection { background: var(--green); color: #04261a; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
.accent { color: var(--green); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm  { padding: 9px 16px; font-size: 14px; }
.btn-lg  { padding: 15px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--green); color: #06351f; }
.btn-primary:hover { background: var(--green-600); color:#fff; box-shadow: 0 12px 26px -12px rgba(70,183,107,.8); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(5,66,116,.25); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(5,66,116,.04); }
.btn-ghost-light { color:#fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { border-color:#fff; background: rgba(255,255,255,.1); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,244,239,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.topbar .spacer { flex: 1; }
.brand img { height: 46px; width: auto; display: block; }
.navlink { font-size: 15px; color: var(--muted); font-weight: 500; }
.navlink:hover { color: var(--navy); }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero .lead { font-size: 18px; color: #36505f; margin: 20px 0 28px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-center { justify-content: center; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 26px 0 0; }
.trust-row li { font-size: 14px; font-weight: 600; color: var(--navy); }

/* hero visual mock */
.hero-visual { position: relative; }
.mock {
  background: var(--navy); border-radius: var(--r); box-shadow: var(--shadow-lg);
  overflow: hidden; transform: rotate(-1.2deg);
}
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; background: var(--navy-900); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock-body { display: grid; grid-template-columns: 56px 1fr; min-height: 290px; }
.mock-side { background: var(--navy-900); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ms-logo { font-family: var(--font-disp); font-weight: 800; color: var(--green); font-size: 16px; }
.ms-item { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.12); }
.ms-item.active { background: var(--green); }
.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble { border-radius: 12px; padding: 12px 14px; font-size: 13px; max-width: 90%; }
.bubble.user { align-self: flex-end; background: var(--green); color: #06351f; font-weight: 600; }
.bubble.ai { background: rgba(255,255,255,.1); color: #fff; display: flex; flex-direction: column; gap: 7px; }
.ai-tag { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.ln { height: 7px; border-radius: 4px; background: rgba(255,255,255,.28); }
.ln.w90 { width: 90%; } .ln.w80 { width: 80%; } .ln.w70 { width: 70%; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chips span { font-size: 11px; color: #cfe0ee; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 3px 9px; }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: var(--navy); box-shadow: var(--shadow);
}
.fc-1 { top: 8%; left: -22px; }
.fc-2 { bottom: 10%; right: -18px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.tag {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green-600);
  background: var(--green-100); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px;
}
.tag-light { background: rgba(255,255,255,.18); color: #d7f0e0; }
.section-head h2 { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- pains ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ps-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.section-alt .ps-card { background: var(--paper); }
.ps-bad { font-weight: 600; color: var(--navy); font-size: 15.5px; }
.ps-arrow { color: var(--green); font-weight: 800; font-size: 20px; margin: 8px 0; }
.ps-good { color: #36505f; font-size: 14.5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding-top: 12px; }
.step-n {
  width: 46px; height: 46px; border-radius: 14px; background: var(--navy); color: #fff;
  font-family: var(--font-disp); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .2s ease; }
.adv:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.adv-i { font-size: 28px; }
.adv h3 { font-size: 17px; color: var(--navy); margin: 12px 0 7px; }
.adv p { color: var(--muted); font-size: 14.5px; }

/* ---------- models ---------- */
.models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.model { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.section-alt .model { background: var(--paper); }
.model b { color: var(--navy); font-size: 15.5px; }
.model span { color: var(--muted); font-size: 13.5px; }
.models-note { text-align: center; color: var(--muted); margin-top: 22px; font-size: 15px; }

/* ---------- agents ---------- */
.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.agent-i { font-size: 30px; }
.agent h3 { font-size: 19px; color: var(--navy); margin: 14px 0 8px; }
.agent p { color: var(--muted); font-size: 15px; }

/* ---------- offer + form ---------- */
.offer { background: linear-gradient(135deg, var(--navy), var(--navy-900)); color: #fff; border: none; }
.offer-grid { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.offer-copy h2 { color: #fff; margin-bottom: 14px; }
.offer-copy p { color: #cfe0ee; font-size: 17px; }
.offer-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.offer-list li { font-weight: 600; font-size: 15px; }

.form-card { background: #fff; color: var(--ink); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-lg); }
.form-title { font-size: 21px; color: var(--navy); margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.field input.invalid, .field textarea.invalid { border-color: #d94848; box-shadow: 0 0 0 3px #fbe3e3; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.form-note a { color: var(--green-600); }
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; text-align: center; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--green-600); }
.form-msg.err { color: #d94848; }
#register-form .btn-primary { background: var(--navy); color:#fff; }
#register-form .btn-primary:hover { background: var(--navy-700); }

/* ---------- tariffs ---------- */
.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tariff { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.tariff h3 { font-size: 18px; color: var(--navy); }
.tariff .price { font-family: var(--font-disp); font-weight: 700; font-size: 24px; color: var(--navy); margin: 12px 0; }
.tariff .price span { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 500; }
.tariff p { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 16px; }
.tariff-accent { background: #fff; border: 2px solid var(--green); box-shadow: var(--shadow); position: relative; }
.tariff-accent .price { color: var(--green-600); }
.tariff-badge {
  display: inline-block; align-self: flex-start;
  font-size: 11.5px; font-weight: 700; color: #06351f;
  background: var(--green); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px;
}

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.trust-item b { display: block; font-family: var(--font-disp); font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.trust-item span { color: var(--muted); font-size: 14px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 20px; }
.section-alt .faq details { background: var(--paper); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy); padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--green); transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: #36505f; font-size: 15px; padding: 0 0 16px; }

/* ---------- final cta ---------- */
.final-cta { background: var(--navy); color: #fff; text-align: center; border: none; }
.final-cta h2 { color: #fff; margin-bottom: 12px; }
.final-cta p { color: #cfe0ee; font-size: 18px; margin-bottom: 26px; }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #cfe0ee; padding: 52px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand img { height: 40px; margin-bottom: 12px; }
.foot-brand p { color: #9bb6cc; font-size: 14px; max-width: 240px; }
.foot-col h4 { font-family: var(--font-disp); font-size: 14px; color: #fff; margin-bottom: 14px; }
.foot-col a { display: block; color: #b9cee0; font-size: 14.5px; margin-bottom: 10px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #8ba6bd; }

/* ---------- sticky mobile cta ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(245,244,239,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); display: none;
}

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,45,79,.55); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; border-radius: var(--r); padding: 30px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--navy); }
.modal-card h3 { font-size: 22px; color: var(--navy); margin-bottom: 8px; padding-right: 24px; }
.modal-sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .offer-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-4, .steps, .adv-grid, .models-grid, .tariffs, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .agents { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid { gap: 28px; }
}
@media (max-width: 620px) {
  .topbar .navlink { display: none; }
  .section { padding: 48px 0; }
  .hero { padding: 40px 0 32px; }
  .cards-4, .steps, .adv-grid, .models-grid, .tariffs, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
  .topbar .wrap { gap: 12px; }
}
