/* Vera Clinic — single stylesheet. Design system per specification §1. */

:root {
  --bg: #F5F7F8;
  --surface: #FBFCFC;
  --tint: #E4ECEE;
  --ink: #10232B;
  --ink-2: #5C6B71;
  --accent: #1E6E75;
  --accent-h: #175A60;
  --line: #D9E0E3;
  --on-accent: #F5F7F8;
  --ok: #2F6B4F;
  --err: #A33A2E;

  --font-display: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Inter", "Helvetica Neue", Arial, sans-serif;

  --header-h: 56px;
  --subnav-h: 44px;
  --container: 1200px;
  --pad: 20px;
  --gap: 16px;
  --section-pad: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 1024px) {
  :root { --header-h: 72px; --pad: 40px; --gap: 24px; --section-pad: 104px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 1023px) { body:not(.no-bar) { padding-bottom: 68px; } }
@media (min-width: 1024px) { body { font-size: 17px; } }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
table { border-collapse: collapse; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

.js .nojs-only { display: none !important; }
html:not(.js) .js-only { display: none !important; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.section { padding: var(--section-pad) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.page--services .section { scroll-margin-top: calc(var(--header-h) + var(--subnav-h) + 16px); }
.section--tint { background: var(--tint); }
.page-header { padding-top: 40px; }
@media (min-width: 1024px) { .page-header { padding-top: 64px; } }

.lc { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.lc__label { grid-column: 1 / -1; }
.lc__content { grid-column: 1 / -1; margin-top: 28px; }
@media (min-width: 1024px) {
  .lc { grid-template-columns: repeat(12, 1fr); }
  .lc__label { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
  .lc__content { grid-column: 5 / 13; margin-top: 0; }
}
.narrow { max-width: 560px; margin: 0 auto; }

/* ---------- Typography ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 500 13px/1.4 var(--font-text); color: var(--accent);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; flex: 0 0 24px; width: 24px; height: 2px; background: var(--accent); }
.h1 { font: 500 38px/1.06 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.h2 { font: 500 30px/1.1 var(--font-display); color: var(--ink); }
.h3 { font: 500 22px/1.2 var(--font-display); color: var(--ink); }
.h3--cat { font-size: 26px; }
.lead { font: 400 18px/1.55 var(--font-text); color: var(--ink); margin-top: 16px; }
.body { font: 400 16px/1.6 var(--font-text); color: var(--ink); }
.body-secondary { font: 400 14px/1.6 var(--font-text); color: var(--ink-2); }
.small { font: 400 13px/1.5 var(--font-text); color: var(--ink-2); }
.licence { font: 500 15px/1.5 var(--font-text); color: var(--ink); margin-top: 20px; }
@media (min-width: 1024px) {
  .h1 { font-size: 60px; }
  .h2 { font-size: 42px; }
  .h3 { font-size: 26px; }
  .h3--cat { font-size: 30px; }
  .lead { font-size: 20px; }
  .body { font-size: 17px; }
  .body-secondary { font-size: 15px; }
}
.lc__content > .body + .facts, .lc__content > .body + .body, .lc__content > .lead + .facts, .lc__content > .lead + .body, .lc__content > .body + .licence { margin-top: 20px; }
.lc__content > .lead { margin-top: 0; }
.section__note { margin-top: 20px; }
.section__more { margin-top: 24px; }
.warning { color: var(--ink-2); margin-bottom: 8px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 6px;
  font: 600 14px/1 var(--font-text); letter-spacing: 0; white-space: nowrap;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}
@media (min-width: 1024px) { .btn { height: 54px; } }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary:active { background: var(--accent-h); }
.btn--primary:disabled { background: var(--accent-h); cursor: default; }
.btn--secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--secondary:hover, .btn--secondary:active { background: var(--ink); color: var(--on-accent); }
.btn--text { color: var(--accent); padding: 0 8px; height: 44px; }
.btn--text:hover { color: var(--accent-h); }
.btn--block { width: 100%; }
.btn .mark { flex: 0 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.text-link {
  display: inline-block; font: 500 15px/1.4 var(--font-text); color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color 120ms ease;
}
.text-link:hover { color: var(--accent-h); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.header__row1 { height: var(--header-h); border-bottom: 1px solid var(--line); background: var(--bg); transition: border-color 200ms ease; }
.js .header__row1 { border-bottom-color: transparent; }
.js .header.is-scrolled .header__row1 { border-bottom-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__right { display: flex; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); }
.wordmark__name { font: 500 24px/1 var(--font-display); color: var(--ink); }
.wordmark__suffix { font: 500 12px/1 var(--font-text); color: var(--ink-2); }
.nav__item { display: inline-flex; align-items: center; height: 44px; font: 500 14px/1 var(--font-text); color: var(--ink); position: relative; white-space: nowrap; transition: color 120ms ease; }
.nav__item:hover { color: var(--accent); }
.nav__item[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); }
.nav--desktop { display: none; }
.nav--mobile { height: var(--subnav-h); border-bottom: 1px solid var(--line); background: var(--bg); }
.nav__scroll { display: flex; height: 100%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-left: 4px; padding-right: 4px; }
.nav__scroll::-webkit-scrollbar { display: none; }
.nav--mobile .nav__item { padding: 0 16px; scroll-snap-align: start; flex: 0 0 auto; }
.nav--mobile .nav__item[aria-current="page"]::after { left: 16px; right: 16px; bottom: 0; }
.btn--header { display: none; }
.btn--header-m { display: inline-flex; }
@media (min-width: 1024px) {
  .nav--desktop { display: flex; gap: 32px; }
  .nav--desktop .nav__item[aria-current="page"]::after { bottom: 6px; }
  .nav--mobile { display: none; }
  .btn--header { display: inline-flex; height: 44px; }
  .btn--header-m { display: none; }
  .header__right { gap: 24px; }
}
/* Mobile: row 1 sticky, row 2 not sticky */
@media (max-width: 1023px) {
  .header { position: static; }
  .header__row1 { position: sticky; top: 0; z-index: 50; }
}

/* Language switcher */
.lang { display: inline-flex; align-items: center; font: 500 13px/1 var(--font-text); text-transform: uppercase; }
.lang__cur { color: var(--ink); }
.lang__link { color: var(--accent); transition: color 120ms ease; }
.lang__link:hover { color: var(--accent-h); }
.lang__sep { color: var(--ink-2); white-space: pre; }
.lang--header .lang__link, .lang--header .lang__cur { display: inline-flex; align-items: center; height: 44px; padding: 0 2px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: repeat(4, 1fr); gap: var(--gap); } }
.footer__col > * + * { margin-top: 12px; }
.footer__addr { margin-top: 16px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav > * + * { margin-top: 0; }
.footer__navlink { font: 500 14px/1.4 var(--font-text); color: var(--ink); transition: color 120ms ease; }
.footer__navlink:hover, .footer__navlink[aria-current="page"] { color: var(--accent); }
.hours { font: 400 14px/1.6 var(--font-text); }
.hours th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 0 16px 4px 0; }
.hours td { color: var(--ink); padding: 0 0 4px; font-variant-numeric: tabular-nums; }
.footer__emergency a { color: var(--ink); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer__contacts > * + * { margin-top: 0; }
.footer__social { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--font-text); color: var(--ink); min-height: 32px; transition: color 120ms ease; }
.footer__social:hover { color: var(--accent); }
.footer__mail { font: 400 14px/1.4 var(--font-text); color: var(--accent); }
.lang--footer { margin-top: 8px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 24px; font: 400 12px/1.5 var(--font-text); color: var(--ink-2); opacity: 0.7; }
.footer__pricenote { margin-top: 8px; font: 400 12px/1.5 var(--font-text); color: var(--ink-2); }

/* ---------- Booking block ---------- */
.booking { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }
@media (min-width: 1024px) { .booking { padding: 80px 0; } }
.booking__note { margin-top: 20px; }

/* ---------- Sticky bar ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16, 35, 43, 0.08);
  transition: transform 200ms var(--ease);
}
.js .sticky { transform: translateY(100%); }
.js .sticky.is-visible { transform: translateY(0); }
.sticky__book { flex: 1; height: 44px; }
.sticky__wa { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; }
@media (min-width: 1024px) { .sticky { display: none; } }
@media (prefers-reduced-motion: reduce) { .sticky { transition: none; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; }
.photo { filter: saturate(0.9) contrast(0.98); object-fit: cover; width: 100%; height: auto; border-radius: 6px; }
.card__img { aspect-ratio: 4 / 5; height: auto; border-radius: 6px 6px 0 0; display: block; }
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__role { font: 500 14px/1.4 var(--font-text); color: var(--accent); margin-top: 6px; }
.card__since { font: 400 14px/1.4 var(--font-text); color: var(--ink-2); margin-top: 4px; }
.card__langs { margin-top: 8px; }
.card .text-link { margin-top: 16px; align-self: flex-start; }
/* Compact cards: name + role occupy fixed slots so "since" lines up across the row;
   the trailing link is pushed to a common baseline. */
.doctor--compact .text-link { margin-top: auto; padding-top: 16px; }
@media (min-width: 1280px) {
  .doctor--compact .card__name { min-height: calc(2 * 1.2em); }
  .doctor--compact .card__role { min-height: calc(2 * 1.4em); }
}
.def { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.def__label { font: 500 13px/1.4 var(--font-text); color: var(--ink-2); }
.def__value { font: 400 15px/1.5 var(--font-text); color: var(--ink); margin-top: 2px; }
.def__list li + li { margin-top: 2px; }
.card__approach { font: 400 16px/1.6 var(--font-text); color: var(--ink); margin-top: 20px; }
@media (min-width: 1024px) { .card__approach { font-size: 17px; } }

/* Services overview cards */
.scard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 1024px) { .scard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scard { position: relative; padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: background-color 120ms ease; }
.scard .h3 a { color: var(--ink); }
.scard__link::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.scard:hover { background: var(--tint); }
.scard__from { font: 500 14px/1.4 var(--font-text); color: var(--ink); }
.scard .text-link { margin-top: 6px; }
.scard:has(.scard__link:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.scard .scard__link:focus-visible { outline: none; }

/* Doctors */
.doc-scroll { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.doc-scroll::-webkit-scrollbar { display: none; }
.doc-scroll .doctor { flex: 0 0 78vw; scroll-snap-align: start; }
@media (min-width: 1024px) {
  .doc-scroll { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .doc-scroll .doctor { flex: none; }
}
@media (min-width: 1280px) {
  .doc-scroll { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card__name { overflow-wrap: anywhere; }
.card__body { min-width: 0; }
.doctors-list { padding-top: 0; }
.doc-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 1024px) { .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.doctor--full { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; }
.trust__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font: 500 14px/1.45 var(--font-text); color: var(--ink); }
@media (min-width: 1024px) { .trust__list { grid-template-columns: repeat(4, 1fr); gap: var(--gap); } }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 var(--section-pad); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.hero__lead { max-width: 52ch; margin-top: 24px; }
.hero__actions { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 32px; }
.hero__actions .btn { width: 100%; }
.hero__img { aspect-ratio: 4 / 3; border-radius: 6px; }
.js .hero__media { opacity: 0; transition: opacity 300ms ease; }
.js .hero__text { opacity: 0; transform: translateY(10px); transition: opacity 400ms var(--ease) 80ms, transform 400ms var(--ease) 80ms; }
.js .hero.is-loaded .hero__media { opacity: 1; }
.js .hero.is-loaded .hero__text { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .hero { padding: 24px 0 var(--section-pad); }
  .hero__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gap); min-height: min(72vh, 720px); align-items: stretch; }
  .hero__text { grid-column: 1 / 7; align-self: center; padding: 64px 0; }
  .hero__actions { flex-direction: row; gap: 24px; }
  .hero__actions .btn { width: auto; }
  .hero__media { grid-column: 7 / 13; margin-right: calc(-1 * (max(100vw - var(--container), 0px) / 2 + var(--pad))); position: relative; }
  .hero { overflow-x: clip; }
  .hero__media picture, .hero__img { height: 100%; }
  .hero__img { aspect-ratio: auto; border-radius: 6px 0 0 6px; object-position: 50% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__media, .js .hero__text { opacity: 1; transform: none; transition: none; }
}

/* ---------- Lists ---------- */
.facts li { border-top: 1px solid var(--line); padding: 12px 0; font: 400 15px/1.55 var(--font-text); color: var(--ink); }
.step { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; }
.step + .step { border-top: 1px solid var(--line); }
.step__num { font: 500 13px/1.6 var(--font-text); color: var(--accent); padding-top: 2px; }
.step__title { font: 500 16px/1.5 var(--font-text); color: var(--ink); }
.step__body .body-secondary { margin-top: 4px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: 1fr; }
.review { padding: 24px 0; border-top: 1px solid var(--line); }
.review:first-child { border-top: 0; padding-top: 0; }
.quote { font: 400 17px/1.5 var(--font-text); color: var(--ink); }
.review__meta { margin-top: 16px; font: 500 14px/1.4 var(--font-text); color: var(--ink); }
.review__src { font-weight: 400; color: var(--ink-2); }
@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .review { border-top: 0; padding: 0 28px; }
  .review:first-child { padding-left: 0; }
  .review:last-child { padding-right: 0; }
  .review + .review { border-left: 1px solid var(--line); }
  .quote { font-size: 19px; }
}

/* ---------- Price rows ---------- */
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink);
  transition: background-color 120ms ease;
}
.row:hover { background: var(--surface); }
.row__main { display: flex; flex-direction: column; gap: 2px; }
.row__name { font: 500 16px/1.4 var(--font-text); color: var(--ink); }
.row__meta { font: 400 13px/1.4 var(--font-text); color: var(--ink-2); }
.row__pricebox { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.row__price { font: 500 16px/1.4 var(--font-text); color: var(--ink); font-variant-numeric: tabular-nums; }
.row__eur { font: 400 13px/1.4 var(--font-text); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row__note { font: 500 14px/1.4 var(--font-text); color: var(--ink-2); }
.category .lc__label .body-secondary { margin-top: 12px; }

/* ---------- Sub-nav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 30; height: var(--subnav-h); background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav__scroll { display: flex; gap: 8px; height: 100%; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.subnav__scroll::-webkit-scrollbar { display: none; }
.subnav__item { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; font: 500 14px/1 var(--font-text); color: var(--ink); white-space: nowrap; position: relative; flex: 0 0 auto; scroll-snap-align: start; transition: color 120ms ease; }
.subnav__item:first-child { padding-left: 0; }
.subnav__item:hover { color: var(--accent); }
.subnav__item.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); }
.subnav__item:first-child.is-active::after { left: 0; }
@media (max-width: 1023px) { .subnav { top: var(--header-h); } }

/* ---------- About ---------- */
.subblocks { display: flex; flex-direction: column; gap: 32px; }
.subblock .body { margin-top: 12px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery__img { aspect-ratio: 3 / 2; }
@media (min-width: 1024px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .contact__info { grid-column: 1 / 6; }
  .contact__form { grid-column: 7 / 13; }
}
.contact__address { font-style: normal; margin-top: 28px; }
.contact__address > * + * { margin-top: 6px; }
.contact__addr1 { font: 500 16px/1.5 var(--font-text); color: var(--ink); }
.hours--contact { margin-top: 24px; }
.emergency { margin-top: 24px; padding: 12px 16px; border-left: 1px solid var(--accent); font: 400 15px/1.55 var(--font-text); color: var(--ink); }
.emergency a { color: var(--ink); font-weight: 500; white-space: nowrap; }
.contact__intro { margin-top: 24px; }
.contact__messengers { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; max-width: 360px; }
.contact__mail { margin-top: 16px; font: 400 15px/1.5 var(--font-text); }
.contact__map { padding-top: 0; }
.mapbox { position: relative; aspect-ratio: 4 / 3; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
@media (min-width: 1024px) { .mapbox { aspect-ratio: 21 / 9; } }
.mapbox__inner { padding: 24px; max-width: 42ch; }
.mapbox__addr { font: 500 18px/1.3 var(--font-display); color: var(--ink); }
@media (min-width: 1024px) { .mapbox__addr { font-size: 22px; } }
.mapbox__addr2 { margin-top: 6px; }
.mapbox__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 20px; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Form ---------- */
.form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
@media (min-width: 1024px) { .form-panel { padding: 40px; } }
.form__title { margin-bottom: 20px; }
.form__prefilled { font: 400 14px/1.5 var(--font-text); color: var(--accent); margin-bottom: 16px; }
.field { margin-top: 20px; }
.field__label { display: block; font: 500 13px/1.4 var(--font-text); color: var(--ink-2); margin-bottom: 8px; }
.control {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px/1.4 var(--font-text); color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 120ms ease;
  -webkit-appearance: none; appearance: none;
}
select.control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6B71' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.control::placeholder { color: var(--ink-2); opacity: 0.8; }
.control:focus { border-color: var(--ink); outline: none; }
.control--area { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field.is-invalid .control { border-color: var(--err); }
.field__error { font: 400 13px/1.4 var(--font-text); color: var(--err); margin-top: 6px; }
.field__hint { margin-top: 6px; }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) and (max-width: 1023.98px) { .segmented { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .segmented { grid-template-columns: repeat(4, 1fr); } }
.seg { position: relative; display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg__label {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 8px;
  font: 500 14px/1.2 var(--font-text); color: var(--ink); text-align: center; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.seg input:checked + .seg__label { border: 2px solid var(--accent); background: var(--tint); }
.seg input:focus-visible + .seg__label { outline: 2px solid var(--ink); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; font: 400 15px/1.5 var(--font-text); color: var(--ink); cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#submit-btn { margin-top: 28px; }
.form__status { margin-top: 12px; font: 400 14px/1.5 var(--font-text); color: var(--err); }
.form__status a { color: var(--err); text-decoration: underline; text-underline-offset: 3px; }
.form__consent { margin-top: 16px; }
.form__after { margin-top: 8px; }

/* ---------- Thanks / 404 ---------- */
.thanks .narrow, .nf .narrow { padding: 80px 0; }
.thanks .narrow > .body { margin-top: 24px; }
.thanks .body + .body { margin-top: 12px; }
.nf__block + .nf__divider { margin: 40px 0; }
.nf__block .body { margin-top: 20px; }
.nf__block .text-link { margin-top: 20px; }

/* ---------- Reveal (home only) ---------- */
.js .page--home .reveal { opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.js .page--home .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .page--home .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Marks ---------- */
.mark { width: 18px; height: 18px; color: currentColor; }
