/* Просвет — 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; }
/* The eyebrow sits inside the h1 so the heading carries the search phrase;
   display and line-height undo what it would otherwise inherit from the h1. */
.hero-eyebrow {
  display: block; line-height: normal;
  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(250px, 1fr)); gap: 24px; align-items: stretch; }
.plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 32px;
  display: flex; flex-direction: column; height: 100%; 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-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: var(--gold); padding: 4px 10px; border-radius: 100px;
}
.plan h3 { font-size: 18px; font-weight: 800; margin: 0 0 18px; }
.plan-limits { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; line-height: 1.5; color: var(--slate); }
.plan-limits li { display: flex; gap: 10px; }
.plan-limits li::before { content: "·"; color: var(--gold); font-weight: 800; }
.plan-pricing { min-height: 92px; margin-bottom: 18px; }
.plan-price-row { display: flex; align-items: baseline; gap: 6px; }
.plan-price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.plan-price.request { font-size: 22px; letter-spacing: -.01em; }
.plan-price-custom { font-size: 18px; font-weight: 800; }
.plan-period { font-size: 14px; font-weight: 600; color: var(--slate); }
.plan-annual { margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--slate); }
.plan-save { font-weight: 700; color: #F2A93B; white-space: nowrap; }
.plan-pay { margin-top: 4px; font-size: 13px; color: var(--slate); }
.plan-cta {
  display: block; 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; margin-top: auto;
}
.plan-cta:hover { opacity: .85; }
.plan.featured .plan-cta { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.plan.featured .plan-cta .dot { width: 7px; height: 7px; }
.plans-note { max-width: 760px; margin: 28px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.plans-note a { color: var(--ink); font-weight: 700; white-space: nowrap; }

/* Attention highlight when arriving at the in-house plan via the Security
   "Подробнее" link: an amber border + ring that pulses a couple of times and
   then holds, until app.js removes the class. */
@keyframes planHighlight {
  0%, 100% { box-shadow: 0 0 0 2px var(--gold), 0 12px 40px -12px rgba(242,169,59,.45); }
  50% { box-shadow: 0 0 0 4px var(--gold), 0 18px 48px -12px rgba(242,169,59,.6); }
}
.plan.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 12px 40px -12px rgba(242,169,59,.45);
  animation: planHighlight 1s ease-in-out 2;
}

/* FAQ */
.faq { background: #FFFFFF; }
.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; }
.faq-list p a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* 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; display: flex; flex-direction: column; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--slate); text-decoration: underline; }
.footer-links a:hover { color: var(--ink); }

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

@media (prefers-reduced-motion: reduce) {
  .beam, .msg-q, .answer, .answer-timing, .typing span { animation: none; }
  .modal-field input.shake, .modal-consent.shake { animation: none; }
  .plan.highlight { animation: none; }
}

/* Modal (enquiry for the on-prem / in-house plan) */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(16, 24, 38, .55);
}
.modal-overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; max-width: 460px; padding: 32px;
  background: #FFFFFF; border-radius: 16px;
  box-shadow: 0 32px 80px -24px rgba(0, 0, 0, .5);
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px;
  background: none; color: var(--slate); font-size: 24px; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: var(--bg-soft); color: var(--ink); }
.modal-title { margin: 0 0 20px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.modal-field { display: block; margin-bottom: 16px; }
.modal-label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--slate); }
.modal-field input, .modal-field textarea {
  width: 100%; box-sizing: border-box; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 11px 14px; border: 1px solid #CBD6DF; border-radius: 9px; background: #FFFFFF; resize: vertical;
}
.modal-field input:focus, .modal-field textarea:focus { outline: none; border-color: var(--ink); }
.modal-field input.invalid, .modal-field textarea.invalid { border-color: #D64545; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.modal-field input.shake, .modal-consent.shake { animation: shake .4s cubic-bezier(.36, .07, .19, .97) both; }
.modal-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 16px; font-size: 12.5px; line-height: 1.45; color: var(--slate); }
.modal-consent input { margin-top: 2px; flex: none; }
.modal-consent a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.modal-consent a:hover { opacity: .85; }
.modal-consent.invalid { color: #D64545; }
.modal-submit { width: 100%; justify-content: center; margin-top: 4px; font-family: inherit; }
.modal-done-text { margin: 4px 0 20px; font-size: 15px; line-height: 1.55; color: var(--slate); }
button.plan-cta { width: 100%; font-family: inherit; cursor: pointer; -webkit-appearance: none; appearance: none; }
