:root {
  /* палітра в стилі референсу */
  --lav: #e7dcff;
  --lav-deep: #7b5cf0;
  --lav-soft: #f4f0ff;
  --mint: #c9f6c4;
  --mint-soft: #e6fbe3;
  --sky: #c2ebf8;
  --sky-soft: #e4f6fc;
  --green: #43d15a;
  --green-dark: #2fb947;
  --green-ink: #0d3317;
  --navy: #13253d;
  --navy-card: #1b3150;
  --ink: #141c2b;
  --muted: #58627a;
  --gray: #f4f5f8;
  --line: #e3e6ee;
  --white: #ffffff;

  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 8px;
  --shadow: 0 18px 40px -18px rgba(19, 37, 61, .35);

  --f: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.18; font-weight: 600; letter-spacing: -.015em; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--lav-deep); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--f);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
/* головна кнопка — зелена */
.btn-red { background: var(--green); color: var(--green-ink); }
.btn-red:hover { background: var(--green-dark); }
/* другорядна — контурна */
.btn-light { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-light:hover { background: rgba(19,37,61,.06); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: rgba(19,37,61,.06); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.site-header .btn-light { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.site-header .btn-light:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--lav);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo img { width: 128px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--lav-deep); }

/* ---------- hero ---------- */
.hero {
  background: var(--lav);
  color: var(--ink);
  padding: 56px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* тонка дуга як у референсі */
  content: "";
  position: absolute;
  width: 760px; height: 760px;
  right: -260px; top: -200px;
  border: 1.5px solid rgba(123, 92, 240, .35);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 1;
}
.hero-tag {
  display: inline-block;
  font-weight: 600; font-size: 14px;
  background: var(--lav-deep); color: var(--white);
  padding: 7px 14px; border-radius: var(--r-sm);
  margin-bottom: 22px;
}
.hero h1 {
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 50px);
  letter-spacing: -.02em;
  line-height: 1.12;
}
.hero-lead { margin-top: 22px; font-size: 19px; max-width: 34em; color: #3b4459; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font-size: 15px; font-weight: 500; color: #3b4459;
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}

.hero-visual { position: relative; padding-bottom: 60px; }
.photo-frame {
  aspect-ratio: 4 / 5;
  max-width: 400px;
  margin-left: auto;
  border-radius: var(--r-md);
  background: var(--sky-soft) radial-gradient(circle at 60% 35%, var(--sky), transparent 70%);
  border: 10px solid var(--lav-deep);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.report-card {
  position: absolute;
  left: 0; bottom: 0;
  width: min(360px, 92%);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0 18px 14px;
}
.report-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 14px;
  background: var(--navy); color: var(--white);
  margin: 0 -18px; padding: 12px 18px;
}
.report-sample {
  font-weight: 500; font-size: 12px; color: var(--white);
  background: rgba(255,255,255,.14); padding: 3px 9px; border-radius: 999px;
}
.report-list { list-style: none; margin: 0; padding: 6px 0; }
.report-list li {
  display: grid; grid-template-columns: 36px 1fr auto;
  align-items: center; gap: 10px;
  padding: 9px 0;
}
.report-list li + li { border-top: 1px solid var(--line); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.a1 { background: var(--sky); color: #145c78; }
.a2 { background: var(--lav); color: var(--lav-deep); }
.a3 { background: var(--mint); color: var(--green-ink); }
.r-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.r-name small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.chip { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.chip-blue { background: var(--sky); color: #145c78; }
.chip-green { background: var(--mint); color: var(--green-ink); }
.progress { width: 64px; height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lav-deep); border-radius: 99px; }
.report-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.report-foot strong { font-size: 20px; color: var(--ink); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2, .who h2, .about h2, .faq h2, .form-section h2 {
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.02em;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- rates ---------- */
.rates { padding-top: 88px; }
.rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.05fr;
  gap: 20px;
  align-items: stretch;
}
.rate-card {
  background: var(--sky-soft);
  border-radius: var(--r-lg);
  padding: 30px 28px;
}
.rate-card-up { background: var(--mint); }
.rate-card h3 { font-size: 20px; }
.rate-note { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 2.6em; }
.rate-rows { margin: 22px 0 0; }
.rate-rows > div { padding: 16px 0; border-top: 1px solid rgba(19,37,61,.1); }
.rate-rows dt { font-weight: 500; font-size: 15px; color: var(--muted); }
.rate-rows dd { margin: 4px 0 0; }
.rate-rows b {
  display: block;
  font-weight: 600;
  font-size: clamp(30px, 3vw, 38px);
  letter-spacing: -.03em; line-height: 1.1;
}
.rate-rows b small { font-size: .5em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.rate-rows dd span { font-size: 14px; color: var(--muted); font-weight: 500; }
.rate-card-up .rate-rows b { color: var(--green-ink); }

.calc {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  display: flex; flex-direction: column;
}
.calc h3 { font-size: 20px; margin-bottom: 18px; }
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
  font-weight: 500;
}
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  border: 0; background: rgba(255,255,255,.12); color: var(--white);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.stepper button:hover { background: rgba(255,255,255,.22); }
.stepper output { min-width: 40px; text-align: center; font-size: 20px; font-weight: 600; }
.calc-label { margin-top: auto; padding-top: 22px; font-size: 14px; color: rgba(255,255,255,.7); font-weight: 500; }
.calc-result { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; margin-top: 8px; }
.calc-result span { display: block; font-size: 13px; color: rgba(255,255,255,.6); font-weight: 500; }
.calc-result strong {
  display: block;
  font-weight: 600;
  font-size: clamp(24px, 2.3vw, 30px);
  letter-spacing: -.03em; line-height: 1.15;
  color: var(--white);
  white-space: nowrap;
}
.calc-result div + div strong { color: var(--green); }
.calc-hint { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 10px; }

.rates-foot { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 60em; }

/* ---------- steps ---------- */
.how { background: var(--gray); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 26px 24px 28px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--lav); color: var(--lav-deep);
  font-weight: 700; font-size: 16px;
  margin-bottom: 18px;
}
.steps li:last-child::before { background: var(--mint); color: var(--green-ink); }
.steps h3 { font-size: 18px; }
.steps .step-first { grid-column: span 2; background: var(--lav); }
.steps .step-first::before { background: var(--lav-deep); color: var(--white); }
.steps .step-first p { color: #3b4459; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.steps .step-accent::before { background: var(--sky); color: #145c78; }
.steps p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- who + conditions ---------- */
.who-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }
.who-card, .cond-card { border-radius: var(--r-lg); padding: 40px 36px; }
.who-card { background: var(--sky); }
.who-card h2, .cond-card h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 18px; }
.who-card p { color: var(--ink); }
.doc-list { list-style: none; padding: 0; margin: 14px 0 20px; display: grid; gap: 8px; }
.doc-list li {
  background: var(--white); border-radius: var(--r-sm);
  padding: 12px 16px; font-weight: 600;
  box-shadow: 0 6px 16px -12px rgba(19,37,61,.4);
}
.cond-card { border: 1px solid var(--line); background: var(--white); }
.cond-list { list-style: none; margin: 0; padding: 0; }
.cond-list li {
  display: grid; grid-template-columns: 220px 1fr; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.cond-list li:first-child { border-top: 0; padding-top: 0; }
.cond-list b { font-weight: 600; }
.cond-list span { color: var(--muted); }

/* ---------- factories ---------- */
.factories { padding-top: 0; }
.factory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.factory-card { border-radius: var(--r-lg); padding: 30px 28px 34px; }
.factory-card h3 { font-size: 20px; }
.factory-card p { margin-top: 10px; color: #3b4459; }
.tint-lav { background: var(--lav); }
.tint-sky { background: var(--sky); }
.tint-mint { background: var(--mint); }

/* ---------- about ---------- */
.about { background: var(--navy); color: var(--white); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-photo {
  aspect-ratio: 4 / 5;
  max-width: 440px;
  border-radius: var(--r-lg);
  background: var(--navy-card) radial-gradient(circle at 30% 30%, rgba(194,235,248,.18), transparent 60%);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-text p { margin-top: 18px; color: rgba(255,255,255,.78); max-width: 36em; }
.about-facts {
  list-style: none; padding: 0; margin: 36px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.about-facts li { border-top: 2px solid var(--green); padding-top: 14px; }
.about-facts strong { display: block; font-weight: 600; font-size: 28px; color: var(--green); }
.about-facts span { font-size: 14px; color: rgba(255,255,255,.65); font-weight: 500; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-weight: 600; font-size: 18px;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--gray);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 500;
}
.faq-list details[open] summary::after { content: "−"; background: var(--mint); }
.faq-list details p { padding: 0 48px 22px 0; color: var(--muted); max-width: 42em; }

/* ---------- form ---------- */
.form-section { background: var(--sky-soft); }
.form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.form-intro p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.form-intro .form-alt { margin-top: 36px; margin-bottom: 12px; font-weight: 600; color: var(--ink); font-size: 16px; }

.lead-form {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px;
  display: grid; gap: 18px;
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label, .field legend { font-weight: 600; font-size: 15px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; }
.field input[type="text"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--f);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d3d8e3;
  border-radius: var(--r-sm);
  padding: 13px 14px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lav-deep); box-shadow: 0 0 0 3px rgba(123,92,240,.15); }
.field .invalid { border-color: #d6453a; }
.radios { display: grid; gap: 8px; margin-top: 4px; }
.radios label {
  display: flex; align-items: center; gap: 10px;
  font-weight: 400; font-size: 15px;
  border: 1px solid #d3d8e3; border-radius: var(--r-sm);
  padding: 11px 14px; cursor: pointer;
}
.radios label:has(input:checked) { border-color: var(--lav-deep); background: var(--lav-soft); }
.radios input, .consent input { accent-color: var(--lav-deep); width: 18px; height: 18px; flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #1d8a33; }
.form-status.err { color: #d6453a; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.78);
  padding: 56px 0 calc(48px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.site-footer img { width: 128px; height: auto; margin-bottom: 14px; }
.site-footer h3 { font-size: 15px; color: var(--white); margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid > div:last-child { padding-top: 31px; }
.footer-tg { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--white); font-weight: 600; }
.footer-tg .tg-icon { width: 28px; height: 28px; flex: none; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .rates-grid { grid-template-columns: 1fr 1fr; }
  .calc { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: 1fr 1fr; }
  .cond-list li { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 36px 0 64px; }
  .hero-grid, .who-grid, .about-grid, .faq-wrap, .form-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 460px; }
  .photo-frame { max-width: 320px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid > div:last-child { padding-top: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 32px); }
  .header-inner { height: 64px; }
  .logo img { width: 108px; }
  .btn-small { padding: 8px 12px; font-size: 13px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .rates-grid, .steps, .field-row, .factory-grid { grid-template-columns: 1fr; }
  .steps .step-first { grid-column: auto; }
  .step-actions .btn { flex: 1 1 100%; }
  .rate-note { min-height: 0; }
  .who-card, .cond-card { padding: 28px 22px; }
  .lead-form { padding: 24px 18px; }
  .about-facts strong { font-size: 22px; }
  .report-card { width: 94%; }
}
