/* Просвет — landing page. Design source: docs/landing-ui-design/Просвет - лендинг.dc.html */

:root {
  --ink: #1A2332;
  --slate: #33586E;
  --line: #E8EDF2;
  --line-soft: #F0F3F7;
  --line-faq: #E1E7ED;
  --bg-soft: #F5F7FA;
  --dark: #101826;
  --dark-muted: #9FB2C2;
  --gold: #F2A93B;
  --gold-lite: #F7C56E;
  --beam: linear-gradient(to bottom, rgba(242,169,59,0), #F2A93B 30%, #F7C56E 50%, #F2A93B 70%, rgba(242,169,59,0));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--slate); text-decoration: none; }
a:hover { color: var(--ink); }

details summary::-webkit-details-marker { display: none; }

@keyframes beamPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }

/* Layout helpers */
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--slate); text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  margin: 0 0 48px; font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800; letter-spacing: -.015em;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* Beam divider */
.beam-row { display: flex; justify-content: center; padding: 32px 0; }
.beam {
  width: 3px; height: 110px; border-radius: 2px;
  background: var(--beam); animation: beamPulse 3.5s ease-in-out infinite;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 26px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; border-radius: 8px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--ink); color: #FFFFFF; }
.btn-primary:hover { background: var(--slate); color: #FFFFFF; }
.btn-sm { font-size: 14px; padding: 11px 20px; }
.btn-sm .dot { width: 6px; height: 6px; }
.btn-lg { font-size: 16px; padding: 16px 28px; border-radius: 10px; gap: 10px; }
.btn-white { background: #FFFFFF; color: var(--ink); padding: 16px 30px; border-radius: 10px; font-size: 16px; gap: 10px; }
.btn-white:hover { background: var(--bg-soft); color: var(--ink); }

/* Hero */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%); }
.hero .wrap {
  padding: 88px 32px 96px; display: flex; flex-wrap: wrap;
  gap: 64px; align-items: center;
}
.hero-copy { flex: 1 1 460px; min-width: 320px; }
.hero-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .22em;
  color: var(--slate); text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  margin: 0 0 24px; font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.05; font-weight: 800; letter-spacing: -.02em;
}
.hero-sub { margin: 0 0 36px; font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 520px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.link-plain { font-size: 16px; font-weight: 600; padding: 16px 8px; }
.hero-trust { margin-top: 40px; font-size: 13.5px; color: var(--slate); display: flex; gap: 24px; flex-wrap: wrap; }

/* Hero chat card */
.hero-visual { flex: 1 1 420px; min-width: 320px; max-width: 520px; }
.chat-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -20px rgba(26,35,50,.18); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-soft);
}
.chat-head img { height: 22px; display: block; }
.chat-head .name { font-weight: 700; font-size: 14px; }
.chat-head .base { margin-left: auto; font-size: 12px; color: var(--slate); }
.chat-body { padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 16px; min-height: 250px; }

.msg-q {
  align-self: flex-end; max-width: 78%; background: var(--line-soft);
  border-radius: 14px 14px 4px 14px; padding: 12px 16px; font-size: 15px;
  animation: fadeUp .4s ease both;
}
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--slate); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

.answer {
  align-self: flex-start; max-width: 94%; border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px; padding: 16px 18px; animation: fadeUp .4s ease both;
}
.answer-label { font-size: 14.5px; color: var(--slate); margin-bottom: 6px; }
.answer-amount { font-size: 30px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.answer-amount small { font-size: 15px; font-weight: 600; color: var(--slate); }
.answer-net { font-size: 14px; color: var(--slate); margin-top: 4px; }
.answer-source {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.answer-source .bar { flex: none; width: 2px; height: 28px; margin-top: 1px; background: var(--beam); border-radius: 2px; }
.answer-source .txt { font-size: 12.5px; line-height: 1.5; color: var(--slate); }
.answer-timing { font-size: 12px; color: var(--slate); padding-left: 4px; animation: fadeUp .4s ease both; }

/* Reveal state driven by app.js (falls back to fully visible without JS) */
.chat-body[data-step="0"] .msg-q,
.chat-body[data-step="0"] .typing,
.chat-body[data-step="0"] .answer,
.chat-body[data-step="0"] .answer-timing,
.chat-body[data-step="1"] .typing,
.chat-body[data-step="1"] .answer,
.chat-body[data-step="1"] .answer-timing,
.chat-body[data-step="2"] .answer,
.chat-body[data-step="2"] .answer-timing,
.chat-body[data-step="3"] .typing { display: none; }

/* Problem section */
.problem .wrap { padding: 96px 32px 40px; }
.problem h2 { max-width: 640px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.cols h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.cols p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }

/* How it works */
.how .wrap { padding: 40px 32px 104px; }
.how .section-title { margin-bottom: 56px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.step-num { font-size: 44px; font-weight: 800; color: var(--line); line-height: 1; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }

/* Trust (dark) */
.trust { background: var(--dark); color: var(--bg-soft); }
.trust .wrap { padding: 104px 32px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.trust-copy { flex: 1 1 440px; min-width: 320px; }
.trust .eyebrow { color: var(--gold); }
.trust h2 { color: #FFFFFF; margin-bottom: 32px; }
.trust-list { display: flex; flex-direction: column; gap: 28px; }
.trust-item { display: flex; gap: 16px; }
.trust-item .bar { flex: none; width: 2px; background: var(--beam); border-radius: 2px; }
.trust-item h3 { font-weight: 800; font-size: 16px; margin: 0 0 6px; color: #FFFFFF; }
.trust-item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dark-muted); text-wrap: pretty; }
.trust-visual { flex: 1 1 420px; min-width: 320px; max-width: 540px; }
.result-card { background: #FFFFFF; color: var(--ink); border-radius: 16px; padding: 28px 26px; box-shadow: 0 32px 80px -24px rgba(0,0,0,.5); }
.result-card .label { font-size: 14.5px; color: var(--slate); margin-bottom: 8px; }
.result-card .amount { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.result-card .net { font-size: 15px; color: var(--slate); margin-top: 6px; }
.result-card .source { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; background: var(--bg-soft); border-radius: 10px; padding: 14px 16px; }
.result-card .source .bar { flex: none; width: 3px; height: 40px; background: var(--beam); border-radius: 2px; }
.result-card .source .txt { font-size: 13.5px; line-height: 1.55; color: var(--slate); }
.result-card .source .txt strong { font-weight: 700; color: var(--ink); }

/* Security */
.security { background: var(--bg-soft); }
.security .wrap { padding: 104px 32px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.info-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.info-card h3 { font-size: 19px; font-weight: 800; margin: 0 0 12px; }
.info-card p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.checklist li { display: flex; gap: 10px; }
.checklist li::before { content: "·"; color: var(--gold); font-weight: 800; }

/* Pricing */
.pricing { background: #FFFFFF; }
.pricing .wrap { padding: 104px 32px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  display: flex; flex-direction: column; position: relative; background: #FFFFFF;
}
.plan.featured { border-color: var(--ink); box-shadow: 0 20px 50px -20px rgba(26,35,50,.25); }
.plan.featured::before {
  content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(to right, rgba(242,169,59,0), #F2A93B 30%, #F7C56E 50%, #F2A93B 70%, rgba(242,169,59,0));
}
.plan h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.plan .tagline { font-size: 14px; color: var(--slate); margin-bottom: 20px; }
.plan .price { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.plan .period { font-size: 13.5px; color: var(--slate); margin-bottom: 24px; }
.plan .checklist { margin-bottom: 28px; gap: 9px; flex: 1; }
.plan-cta {
  text-align: center; font-size: 14.5px; font-weight: 700; padding: 13px 20px;
  border-radius: 9px; background: #FFFFFF; color: var(--ink); border: 1px solid #CBD6DF;
}
.plan-cta:hover { opacity: .85; }
.plan.featured .plan-cta { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq .wrap { max-width: 840px; padding: 104px 32px; }
.faq h2 { margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; }
.faq-list details { border-top: 1px solid var(--line-faq); padding: 20px 4px; }
.faq-list details:last-child { border-bottom: 1px solid var(--line-faq); }
.faq-list summary { cursor: pointer; font-size: 16.5px; font-weight: 700; list-style: none; }
.faq-list p { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--slate); text-wrap: pretty; }

/* Final CTA */
.cta { background: var(--dark); color: var(--bg-soft); }
.cta .wrap { padding: 112px 32px; text-align: center; }
.cta .beam-row { margin-bottom: 32px; padding: 0; }
.cta .beam { height: 90px; }
.cta h2 { margin: 0 0 20px; font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -.015em; color: #FFFFFF; }
.cta p { margin: 0 auto 40px; font-size: 17px; line-height: 1.6; color: var(--dark-muted); max-width: 480px; text-wrap: pretty; }

/* Footer */
.site-footer { background: #FFFFFF; border-top: 1px solid var(--line); }
.site-footer .wrap { padding: 36px 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { height: 26px; display: block; }
.footer-brand span { font-size: 13px; color: var(--slate); }
.footer-legal { font-size: 12px; color: var(--slate); max-width: 520px; line-height: 1.5; }

@media (max-width: 720px) {
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .beam, .msg-q, .answer, .answer-timing, .typing span { animation: none; }
}
