/* =========================================================
   Медистар — Скринінг здоров'я 40+
   Сучасний односторінковий Landing Page
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #e2231a;
  --color-primary-rgb: 226, 35, 26;
  --color-primary-dark: #b81810;
  --color-primary-light: #ff6a5e;
  --color-bg: #faf8f6;
  --color-surface: #ffffff;
  --color-text: #16181d;
  --color-text-muted: #63666b;
  --color-border: #e7e3e0;
  --color-ua-blue: #005bbb;
  --color-ua-yellow: #ffd500;

  --shadow-sm: 0 2px 8px rgba(20, 16, 15, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 16, 15, 0.10);
  --shadow-lg: 0 20px 48px rgba(20, 16, 15, 0.16);

  --radius-sm: 5px;
  --radius-md: 5px;
  --radius-lg: 5px;

  --container: 1180px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.08);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.section-head {
  /* max-width: 640px; */
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p { color: var(--color-text-muted); font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color .18s ease;
  white-space: nowrap;
}

.btn-primary {
  /* background: var(--color-primary); */
	background: #08664B;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(#08664B, 0.35);
}
.btn-primary:hover {box-shadow: 0 14px 30px rgba(#08664B, 0.85); background: #065e45; }

.btn-outline {
  background: transparent;
  color: var(--color-surface);
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text);}

.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand img { width: 42px; height: 42px; }

.brand-text {
  font-weight: 800;
  font-size: 15px;
  line-height: 1.25;
  /* color: var(--color-primary-dark); */
}
.brand-text span { display: block; font-weight: 600; font-size: 12.5px; color: #16181d; }

.header-center {
  flex: 1;
  /* text-align: center; */
  font-weight: 700;
  font-size: 15px;
  color: #16181d;
  display: none;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-phone a {
  font-weight: 700;
  font-size: 15.5px;
  color: #16181d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-phone .icon-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .header-center { display: block; }
}

/* ---------------- Hero ---------------- */
.hero {
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-container {
    grid-template-columns: minmax(300px, 340px) 1fr;
    align-items: stretch;
  }
}

.hero-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: var(--color-surface); */
  /* border: 1px solid var(--color-border); */
  /* border-radius: var(--radius-lg); */
  /* padding: 14px; */
  /* box-shadow: var(--shadow-md); */
  /* max-width: 220px; */
  margin: 0 auto;
}

@media (min-width: 860px) {
  .hero-banner { max-width: none; margin: 0; }
}

.hero-banner img {
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 6px);
}

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary-dark);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.ua .dot { background: linear-gradient(180deg, var(--color-ua-blue) 50%, var(--color-ua-yellow) 50%); }
.badge.nszu .dot { background: var(--color-primary); }

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-bottom: 50px;
	text-align: center;
}
.hero h1 em { color: var(--color-primary); font-style: normal; }

.hero-lead {
  font-size: 18px;
  color: var(--color-text-muted);
  /* max-width: 560px; */
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--color-text-muted);
}
.hero-addresses li { display: flex; gap: 10px; align-items: flex-start; }
.hero-addresses svg { flex: 0 0 auto; margin-top: 2px; color: var(--color-primary); }
.hero-addresses strong { color: var(--color-text); }

/* ---------------- Benefits ---------------- */
.benefits { background: var(--color-surface); }

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  /* border-radius: var(--radius-md); */
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.benefit-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

.benefit-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 10px; }
.benefit-card p { color: var(--color-text-muted); font-size: 15px; }

/* ---------------- Addresses ---------------- */
.address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) { .address-grid { grid-template-columns: repeat(2, 1fr); } }

.address-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 28px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.address-card .pin {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: 12px;
  background: var(--color-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.address-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.address-card p { color: var(--color-text-muted); font-size: 14.5px; margin-bottom: 10px; }
.address-card a.map-link { font-size: 13.5px; font-weight: 700; color: var(--color-primary); }

/* ---------------- How it works ---------------- */
.steps { background: var(--color-surface); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}
@media (min-width: 780px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card { position: relative; padding: 30px 24px 24px; background: var(--color-bg); border-radius: var(--radius-md); border: 1px solid var(--color-border); }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--color-text-muted); }

/* ---------------- Details / accordion & tooltip ---------------- */
/* .details-section .container { max-width: 880px; } */

.details-section ol {
	margin-left: 25px;
}
.details-section p {
	margin-top: 10px;
}

/* ---------------- CTA band ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 56px 40px;
  text-align: center;
}
.cta-band-inner { max-width: 640px; margin: 0 auto; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin-bottom: 14px; }
.cta-band p { opacity: 0.85; margin-bottom: 28px; font-size: 16px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */
.site-footer { padding: 60px 0 30px; background-color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { width: 38px; height: 38px; }
.footer-brand b { font-size: 15px; }
.site-footer .footer-col h5 { font-size: 14px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .04em; }
.site-footer .footer-col p, .site-footer .footer-col a { display: block; font-size: 14.5px; margin-bottom: 10px; }
.site-footer .footer-col a:hover { color: var(--color-primary); }

.footer-legal {
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(18, 30, 27, 0.55);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 30px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98);} to { opacity:1; transform: translateY(0) scale(1);} }

.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-bg);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
}
.modal-close:hover { background: var(--color-border); color: var(--color-text); }

.modal h3 { font-size: 23px; font-weight: 800; margin-bottom: 6px; padding-right: 30px; color: var(--color-primary-dark); }
.modal-sub { font-size: 14px; color: var(--color-text-muted); margin-bottom: 22px; }

.call-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 22px;
}
.call-option .icon-circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.call-option div span { display: block; font-size: 12.5px; color: var(--color-text-muted); }
.call-option div a { font-weight: 700; font-size: 16px; color: var(--color-primary-dark); }

.divider-or { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--color-text-muted); font-size: 13px; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--color-text); }
.form-field input[type="text"], .form-field input[type="tel"] {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  font-size: 15px;
  font-family: inherit;
  background: var(--color-bg);
  transition: border-color .15s ease;
}
.form-field input:focus { outline: none; border-color: var(--color-primary); background: #fff; }
.field-error { color: #c0433a; font-size: 12.5px; margin-top: 6px; display: none; }
.form-field.invalid input { border-color: #c0433a; }
.form-field.invalid .field-error { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}
.consent-row input { margin-top: 3px; }

.recaptcha-wrap { margin-bottom: 18px; }

.form-status {
  display: none;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.form-status.error { display: block; background: #fdecea; color: #a4342b; }
.form-status.success { display: block; background: #e9f5e9; color: #1e6b2e; }

.success-state { text-align: center; padding: 10px 0; }
.success-state .icon-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(var(--color-primary-rgb), 0.1); color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.success-state h4 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.success-state p { color: var(--color-text-muted); font-size: 14.5px; }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .cta-band { margin: 0 16px; padding: 44px 24px; }
}
