/* Premedo — minimal, fast, no external requests */
:root {
  --bg: #fbfbf9;
  --surface: #ffffff;
  --ink: #111513;
  --muted: #5d6662;
  --line: #e6e8e4;
  --accent: #0e7a6d;
  --accent-ink: #ffffff;
  --accent-soft: #e7f3f0;
  --radius: 18px;
  --max: 1080px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 650; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
section { padding: 96px 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 19px; max-width: 46ch; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.lang:hover { color: var(--ink); border-color: #cfd3ce; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 24px -10px rgba(17,21,19,.5); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #c9cec8; background: var(--surface); }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 9px 16px; font-size: 15px; }

/* Hero */
.hero { padding: 104px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 720px; height: 720px; right: -220px; top: -260px;
  background: radial-gradient(closest-side, rgba(14,122,109,.13), transparent 70%);
  pointer-events: none;
}
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 28px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #1fa37f; box-shadow: 0 0 0 4px rgba(31,163,127,.15); }
.hero h1 { font-size: clamp(40px, 6.4vw, 74px); max-width: 15ch; margin-bottom: 24px; }
.hero .lead { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.hero-meta span::before { content: "✓"; color: var(--accent); margin-right: 7px; font-weight: 700; }

/* Stats */
.stats { padding: 0 0 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -0.03em; font-weight: 650; }
.stat span { color: var(--muted); font-size: 15px; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(17,21,19,.25); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 21px; height: 21px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 44px; counter-reset: s; }
.step { border-top: 1px solid var(--ink); padding-top: 20px; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* Reviews */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 15px; text-decoration: none; }
.rating b { font-size: 28px; color: var(--ink); letter-spacing: -0.02em; }
.stars { color: #e9a400; letter-spacing: 2px; font-size: 16px; }
.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; margin: 0; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.5; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; margin-top: auto; }
.review figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* FAQ */
.faq { max-width: 760px; margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 36px 22px 0; font-weight: 600; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 64ch; }

/* Contact */
.contact { background: var(--ink); color: #f2f4f1; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; }
.contact h2 { color: #fff; }
.contact .lead { color: #aab3ae; }
.contact-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; }
.contact-list svg { width: 20px; height: 20px; color: #6fd1bf; flex: none; margin-top: 3px; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.contact-list a:hover { border-color: #fff; }
.contact-list small { display: block; color: #8d9792; font-size: 14px; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; color: #b9c2bd; }
input, textarea {
  font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .2s, background .2s;
}
input:focus, textarea:focus { outline: none; border-color: #6fd1bf; background: rgba(255,255,255,.09); }
textarea { min-height: 110px; resize: vertical; }
.check { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #aab3ae; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #6fd1bf; flex: none; }
.check a { color: #fff; }
form .btn { grid-column: 1 / -1; justify-self: start; background: #fff; color: var(--ink); }
.form-status { grid-column: 1 / -1; font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: #6fd1bf; }
.form-status.err { color: #ff9d8a; }
.hp { position: absolute; left: -9999px; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal page */
.legal { max-width: 760px; padding: 72px 0 40px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #333a37; margin-bottom: 10px; }

/* Fade-in (discreet) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav .wrap { gap: 12px; }
  .nav .lang { margin-left: auto; }
  .grid-3, .steps, .reviews { grid-template-columns: 1fr; }
  .steps { gap: 28px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 0 22px 18px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; padding: 36px 22px; gap: 36px; border-radius: 22px; }
  form { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  body { padding-bottom: 76px; }
  .callbar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  }
  .callbar .btn { flex: 1; justify-content: center; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
  .callbar .btn-ghost { background: var(--surface); }
}
@media (max-width: 420px) {
  .nav .btn { display: none; }
}

/* Tests chips + first aid banner */
.chips { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px 12px 14px; font-weight: 600; font-size: 16px; }
.chip svg { width: 20px; height: 20px; color: var(--accent); }
.aid { margin-top: 20px; display: flex; align-items: center; gap: 20px; background: var(--accent-soft); border-radius: var(--radius); padding: 24px 28px; }
.aid .icon { background: #fff; margin: 0; flex: none; }
.aid h3 { font-size: 19px; margin-bottom: 4px; }
.aid p { color: var(--muted); font-size: 16px; }
.aid .btn { margin-left: auto; flex: none; background: #fff; }
@media (max-width: 900px) {
  .aid { flex-direction: column; align-items: flex-start; }
  .aid .btn { margin-left: 0; }
}

section[id] { scroll-margin-top: 40px; }

/* ---- v2 additions ---- */
section.tight { padding-top: 24px; }
.badge-icons { display: inline-flex; gap: 4px; color: var(--accent); }
.badge-icons svg { width: 17px; height: 17px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; align-items: start; }
.pillars { display: grid; gap: 16px; }
.pillar { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.pillar h3 { font-size: 19px; margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 16px; }
.icon-lg { width: 52px; height: 52px; border-radius: 14px; flex: none; margin: 0; }
.icon-lg svg { width: 27px; height: 27px; }
.about-quote { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; color: var(--ink); border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; margin-top: 16px; max-width: 62ch; }

/* Why */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; margin-top: 44px; }
.feature { display: flex; gap: 18px; }
.feature .icon { flex: none; margin: 0; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 16px; }

/* Team */
.team { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 44px; }
.doctor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.doctor-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.doctor h3 { font-size: 22px; }
.doctor .role { color: var(--accent); font-weight: 600; font-size: 15px; }
.doctor > p { color: #333a37; }
.avatar-lg { width: 60px; height: 60px; font-size: 20px; }
.tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; background: var(--accent-soft); color: #0b5e54; border-radius: 999px; padding: 6px 12px; }
.staff { display: flex; flex-direction: column; justify-content: center; }

/* Closing line */
.closing { padding: 72px 0 48px; text-align: center; }
.closing-line { font-size: clamp(30px, 4.6vw, 54px); font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; max-width: 20ch; margin: 0 auto; }

/* Turnstile */
.cf-turnstile { min-height: 65px; }

@media (max-width: 900px) {
  .about, .features, .team { grid-template-columns: 1fr; }
  .features { gap: 28px; }
  .doctor { padding: 24px; }
}

/* ---- v3: slogan hero, 3 stats with counters, merged About ---- */
.slogan { font-size: clamp(44px, 6.6vw, 80px); font-weight: 680; line-height: 1.04; letter-spacing: -0.03em; max-width: 14ch; margin-bottom: 22px; }
.hero h1 { font-size: clamp(24px, 2.7vw, 34px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; max-width: 32ch; margin-bottom: 18px; }
.stats-grid { grid-template-columns: repeat(3, 1fr); }
.stat b { font-variant-numeric: tabular-nums; }
.about { grid-template-columns: 1fr; }
.about .lead { max-width: 62ch; }
.pillars { grid-template-columns: 1fr 1fr; margin-top: 12px; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(odd) { padding: 18px 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat b { display: inline; margin-right: 10px; }
}

/* ---- v4: cookie banner ---- */
.cookie-banner { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 760px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(17,21,19,.35);
  padding: 18px 20px; display: flex; gap: 18px; align-items: center; animation: ck-in .5s cubic-bezier(.2,.7,.2,1); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cookie-banner a { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; flex: none; }
.cookie-actions .btn { padding: 10px 18px; font-size: 15px; }
@keyframes ck-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.linklike:hover { color: var(--ink); }
@media (max-width: 900px) {
  .cookie-banner { flex-direction: column; align-items: stretch; bottom: 84px; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.legal .back:hover { color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 600; background: var(--surface); }
@media (max-width: 600px) { .legal table { display: block; overflow-x: auto; } }
/* hero meta with icons (clock / location) */
.hero-meta { gap: 8px 24px; }
.hero-meta .meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .meta-item::before { content: none; }
.hero-meta .meta-item svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
