/* zdav.online — монохромна тема */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --soft: #f4f4f5;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #52525b;
  --subtle: #71717a;
  --dark: #18181b;
  --on-dark: #fafafa;
  --on-dark-muted: #a1a1aa;
  --on-dark-line: rgba(255, 255, 255, 0.12);
  --error: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 32px rgba(24, 24, 27, 0.07);
  --container: 1120px;
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* База */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.section-dark :focus-visible { outline-color: var(--on-dark); }
.icon { display: inline-block; flex: none; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn-block { width: 100%; }

/* Шапка */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, .9);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.brand-mark { display: block; flex: none; color: var(--ink); }
.brand-tld { color: var(--subtle); font-weight: 600; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  color: var(--muted); font-size: .9375rem; font-weight: 600; text-decoration: none;
  transition: color .2s ease, background-color .2s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--soft); }
@media (max-width: 899px) {
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 379px) {
  .brand-tld { display: none; }
}

/* Перший екран */
.hero { padding-block: 56px 72px; }
@media (min-width: 960px) { .hero { padding-block: 88px 104px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.hero h1 { margin-top: 18px; font-size: clamp(2.25rem, 5.2vw, 3.75rem); letter-spacing: -0.03em; }
.hero .lead { margin-top: 22px; max-width: 34em; color: var(--ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: .9375rem; }

.plan-card {
  padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-card-title { font-size: 1.125rem; font-weight: 800; }
.plan-card-tag {
  padding: 4px 10px; border-radius: 999px; background: var(--soft);
  color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.plan-list { display: grid; margin-top: 18px; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.plan-list li:last-child { border-bottom: 0; }
.plan-state { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 999px; }
.is-done .plan-state { background: var(--ink); color: #fff; }
.is-now .plan-state { border: 2px solid var(--ink); }
.plan-dot { width: 10px; height: 10px; border-radius: 999px; background: var(--ink); }
.is-next { color: var(--muted); }
.is-next .plan-state { border: 2px dashed var(--line-strong); }
.plan-progress { margin-top: 18px; }
.plan-progress-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .875rem; font-weight: 600; }
.plan-bar { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--soft); }
.plan-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: var(--ink); }
.plan-caption { margin-top: 16px; color: var(--subtle); font-size: .8125rem; }

/* Секції */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .section { padding-block: 104px; } }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { margin-top: 14px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.section-head p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.0625rem; }

/* Картки */
.cards { display: grid; gap: 16px; }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }
.card > p:not(.card-index) { color: var(--muted); }
.card-index { color: var(--subtle); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; }
.card-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px;
  border-radius: 12px; background: var(--soft); color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 8px 0 0; list-style: none; }
.chips li {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
  color: var(--ink-2); font-size: .8125rem; font-weight: 600;
}

/* Кроки */
.steps { display: grid; gap: 16px; padding: 0; list-style: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.step h3 { margin-top: 20px; font-size: 1.125rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

/* Темна секція з принципами */
.section-dark { background: var(--dark); color: var(--on-dark); border-top: 0; }
.section-dark + .section { border-top: 0; }
.section-dark .eyebrow { color: var(--on-dark-muted); }
.principles { display: grid; border-top: 1px solid var(--on-dark-line); }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principle {
  display: grid; grid-template-columns: 44px 1fr; gap: 18px;
  padding: 28px 0; border-bottom: 1px solid var(--on-dark-line);
}
@media (min-width: 820px) {
  .principle:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--on-dark-line); }
  .principle:nth-child(even) { padding-left: 40px; }
}
.principle-icon {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--on-dark);
}
.principle h3 { font-size: 1.125rem; }
.principle p { margin-top: 8px; color: var(--on-dark-muted); }

.format-note { margin-top: 24px; color: var(--muted); font-size: .9375rem; }

/* Питання */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 44px; padding: 20px 0;
  font-size: 1.0625rem; font-weight: 700; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding-bottom: 22px; color: var(--ink-2); }

/* Форма */
.section-form { background: var(--soft); }
.form-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) { .form-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.form-intro h2 { margin-top: 14px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
.form-intro .lead { margin-top: 14px; color: var(--ink-2); font-size: 1.0625rem; }
.next-steps { display: grid; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.next-steps span {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: .875rem; font-weight: 700; color: var(--ink);
}
.form-contacts { margin-top: 28px; }
.form-contacts-title { font-weight: 700; }

.form-card {
  padding: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .form-card { padding: 36px; } }
.lead-form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label { font-size: .9375rem; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
.hint { margin-top: -4px; color: var(--muted); font-size: .875rem; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input[type="text"]:hover, .field select:hover, .field textarea:hover { border-color: var(--subtle); }
.field input[type="text"]:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(24, 24, 27, .18);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field [aria-invalid="true"]:focus-visible { border-color: var(--error); box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
.select-wrap { position: relative; }
.select-wrap select { padding-right: 44px; -webkit-appearance: none; appearance: none; cursor: pointer; }
.select-wrap::after {
  content: ""; position: absolute; top: 50%; right: 18px; width: 8px; height: 8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field-error { display: flex; align-items: flex-start; gap: 8px; color: var(--error); font-size: .875rem; font-weight: 600; }
.field-error .icon { margin-top: 2px; }
.field-check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field-check > label { color: var(--ink-2); font-weight: 500; cursor: pointer; }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--muted); font-size: .8125rem; text-align: center; }
.form-alert {
  display: flex; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--error); border-left-width: 4px; border-radius: var(--radius-sm); background: var(--surface);
}
.form-alert > .icon { margin-top: 2px; color: var(--error); }
.form-alert ul { margin-top: 6px; padding-left: 18px; }
.form-alert a { color: var(--error); font-weight: 600; }
.form-success { display: grid; justify-items: center; gap: 12px; padding: 24px 8px; text-align: center; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { max-width: 26em; color: var(--muted); }
.form-success .btn { margin-top: 8px; }

/* Підвал */
.site-footer { padding-top: 56px; background: var(--bg); border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-note { max-width: 22em; margin-top: 12px; color: var(--muted); }
.footer-title { color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-list { display: grid; gap: 2px; margin-top: 12px; padding: 0; list-style: none; }
.footer-list a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px;
  color: var(--ink-2); text-decoration: none;
}
.footer-list a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 40px; padding-block: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .875rem;
}

/* Сторінка політики */
.legal { padding-block: 48px 88px; }
.legal-inner { max-width: 760px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 20px;
  color: var(--muted); font-weight: 600; text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal .updated { margin-top: 12px; color: var(--muted); }
.legal h2 { margin-top: 40px; font-size: 1.375rem; }
.legal p, .legal li { margin-top: 12px; color: var(--ink-2); }
.legal ul { padding-left: 22px; }

/* Менше руху для тих, хто цього просить */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
