/* =========================================================
   English Dental Practice — stylesheet
   Direction A "Clinical Calm": clean, cool, serious.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #FBFCFD;
  --surface: #F1F5F8;
  --surface-2: #EEF4F7;
  --ink: #1B2830;
  --muted: #5A6A74;
  --line: #E1E8EC;
  --line-strong: #D7E0E5;
  --accent: #2F6E8F;
  --accent-dark: #21536C;
  --accent-tint: #E9F1F5;
  --white: #FFFFFF;

  --radius-sm: 9px;
  --radius: 13px;
  --radius-lg: 18px;

  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 96px);

  --shadow-card: 0 16px 30px -18px rgba(47, 110, 143, .5);
  --shadow-float: 0 20px 40px -22px rgba(27, 40, 48, .35);

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-2: clamp(1.9rem, 1.3rem + 2.6vw, 3.375rem);   /* h1 */
  --step-1: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);   /* h2 */
  --step-0: clamp(1.06rem, 1rem + .3vw, 1.15rem);      /* body-lg */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
fieldset { border: 0; padding: 0; min-width: 0; }
button { font-family: inherit; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-2); }
h2 { font-size: var(--step-1); }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(48px, 8vw, 84px); }
.section--tint { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent);
}
.lead { font-size: var(--step-0); color: var(--muted); max-width: 58ch; }
.legal-doc h2 { margin-top: 2.75rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.legal-doc h2[id], .legal-doc h3[id] { scroll-margin-top: 88px; }
.legal-doc__nav {
  margin-top: 1.75rem; padding: 1.25rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.legal-doc__nav-title {
  font-size: .8125rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .85rem;
}
.legal-doc__nav-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .legal-doc__nav-grid { grid-template-columns: repeat(3, 1fr); } }
.legal-doc__nav-group > a {
  display: block; font-weight: 700; font-size: .9375rem; margin-bottom: .5rem; text-decoration: none;
}
.legal-doc__nav-group > a:hover { color: var(--accent-dark); text-decoration: underline; }
.legal-doc__nav-sub { list-style: none; padding: 0; margin: 0; font-size: .875rem; }
.legal-doc__nav-sub li + li { margin-top: .35rem; }
.legal-doc__nav-sub a { color: var(--muted); text-decoration: none; }
.legal-doc__nav-sub a:hover { color: var(--accent-dark); text-decoration: underline; }
.legal-doc h2:first-of-type { margin-top: 2rem; border-top: 0; padding-top: 0; }
.legal-doc h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.legal-doc p, .legal-doc li { line-height: 1.65; color: var(--ink); }
.legal-doc ul { margin: .75rem 0 0; padding-left: 1.25rem; }
.legal-doc li + li { margin-top: .5rem; }
.legal-doc p + p { margin-top: .85rem; }
.legal-doc p a, .legal-doc li a { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc__nav a { text-decoration: none; }
.legal-doc__nav a:hover { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc code { font-size: .875em; background: var(--surface); padding: 2px 6px; border-radius: 4px; }
.legal-doc__meta { margin-top: 2rem; font-size: .85rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-size: .95rem; font-weight: 600;
  padding: 14px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s, color .18s;
  min-height: 44px;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(33, 83, 108, .6); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); background: var(--surface-2); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; min-height: 40px; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 253, .88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; height: 42px; width: auto; }
.btn-label-short { display: none; }
.brand__mark {
  width: 34px; height: 34px; flex-shrink: 0;
  border: 1.5px solid var(--accent); border-radius: 9px;
  display: grid; place-items: center; color: var(--accent); font-weight: 800; font-size: .95rem;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #45555F; font-size: .95rem; transition: color .18s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 18px; }
.site-header__phone { font-size: .95rem; color: #45555F; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 88px); }
.hero__blob {
  position: absolute; border-radius: 50%; pointer-events: none; filter: blur(18px);
  background: radial-gradient(circle at 32% 32%, rgba(47, 110, 143, .16), rgba(47, 110, 143, 0) 70%);
}
.hero__blob--a { width: 560px; height: 560px; right: -140px; top: -160px; animation: drift 22s ease-in-out infinite alternate; }
.hero__blob--b { width: 420px; height: 420px; left: -180px; bottom: -220px; animation: drift 28s ease-in-out infinite alternate-reverse; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u svg { position: absolute; left: 0; bottom: -.28em; width: 105%; height: .5em; overflow: visible; }
.hero h1 .u path { stroke: var(--accent); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s ease .75s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero__photo {
  aspect-ratio: 4 / 3.4; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #EAF1F5, #D9E7EE);
  overflow: hidden; display: grid; place-items: center; color: #92A5AF; font-size: .875rem;
}
.hero__photo img, .split__media img, .member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.member__photo img { object-position: center 15%; }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.trust__item { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: #3B4A54; line-height: 1.45; }
.trust__item svg { flex-shrink: 0; stroke: var(--accent); }
.trust__item b { color: var(--ink); }

/* ---------- Treatments grid ---------- */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.tgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tcard {
  border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 20px 18px; min-height: 116px;
  display: flex; align-items: flex-start;
  font-weight: 700; font-size: .97rem; color: var(--ink);
  transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s, box-shadow .2s;
}
.tcard:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-card); color: var(--ink); }

/* ---------- Split (dentist / media + text) ---------- */
.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(28px, 5vw, 52px); align-items: center; }
.split--flip { grid-template-columns: 1.18fr .82fr; }
.split__media {
  aspect-ratio: 4 / 3.2; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #EAF1F5, #D9E7EE);
  overflow: hidden; display: grid; place-items: center; color: #92A5AF; font-size: .875rem;
}

/* ---------- Team page banner ---------- */
.team-intro__head {
  margin-inline: auto;
  text-align: center;
}
.team-intro__head h1 { text-wrap: nowrap; }
@media (max-width: 520px) {
  .team-intro__head h1 { text-wrap: balance; white-space: normal; }
}
.team-intro .team-banner { margin-top: clamp(28px, 4vw, 40px); }
.team-intro__lead {
  margin-top: clamp(20px, 3vw, 28px);
  margin-inline: auto;
  text-align: center;
}
.team-banner {
  max-width: min(720px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.team-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

/* ---------- Steps / cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.infocard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.infocard__num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 800; font-size: .875rem; display: grid; place-items: center; }
.infocard h3 { font-size: 1.125rem; margin: 16px 0 8px; }
.infocard p { font-size: .9rem; color: var(--muted); }

/* ---------- Reviews ---------- */
.quote-lead { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.7rem); line-height: 1.5; color: #23323B; max-width: 40ch; margin-block: 18px 36px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.review p { font-size: .9rem; color: #3B4A54; line-height: 1.65; }
.review cite { display: block; font-size: .8125rem; color: #7A8A94; margin-top: 12px; font-style: normal; }

.reviews-carousel {
  --review-w: min(320px, 78vw);
  margin-top: 28px;
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews-carousel__rail {
  display: flex;
  width: max-content;
}
.reviews-carousel.is-ready {
  overflow: hidden;
}
.reviews-carousel.is-ready .reviews-carousel__rail {
  animation: reviews-marquee 42s linear infinite;
}
.reviews-carousel.is-static {
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.reviews-carousel.is-static .review { scroll-snap-align: start; }
.reviews-carousel.is-ready:hover .reviews-carousel__rail,
.reviews-carousel.is-ready:focus-within .reviews-carousel__rail {
  animation-play-state: paused;
}
.reviews-carousel__group {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}
.reviews-carousel .review {
  flex: 0 0 var(--review-w);
  display: flex;
  flex-direction: column;
  margin: 0;
}
.reviews-carousel .review cite { margin-top: auto; padding-top: 12px; font-weight: 600; }
.reviews-carousel__more { margin-top: 28px; }
.reviews-carousel__more a { font-weight: 700; }

@keyframes reviews-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Contact band ---------- */
.contact-band { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 48px); align-items: start; }
.infobox { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; background: #fff; font-size: .95rem; color: #3B4A54; }
.infobox > * + * { margin-top: 16px; }
.infobox b { color: var(--ink); }

/* ---------- Appointment form (modal + contact page) ---------- */
.appt-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow-card);
}
.appt-panel__head { margin-bottom: 4px; }
.appt-panel__head h2 { font-size: 1.4rem; margin-top: 4px; }
.appt-panel .steps-ind { margin-top: 14px; }
.appt-panel fieldset.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.appt-panel fieldset.step legend.appt-section__label {
  display: block; width: 100%;
  font-weight: 700; margin-bottom: 6px; font-size: .95rem; padding: 0;
}
.appt-section__hint { font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.appt-panel__nav {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 22px;
}
.appt-panel__fallback {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .8125rem; color: var(--muted);
}

/* ---------- Treatments detail page ---------- */
.toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.toc a { padding: 7px 10px; border-radius: 8px; color: #45555F; }
.toc a:hover { background: var(--surface); color: var(--ink); }
.layout-aside { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
.treatment { scroll-margin-top: 90px; padding-block: 34px; border-top: 1px solid var(--line); }
.treatment:first-of-type { border-top: 0; padding-top: 0; }
.treatment h2 { margin-bottom: 6px; }
.treatment .price { display: inline-block; margin-top: 10px; font-size: .875rem; font-weight: 700; color: var(--accent); background: var(--accent-tint); padding: 5px 12px; border-radius: 999px; }
.treatment .body { margin-top: 14px; }
.treatment .body > * + * { margin-top: .8rem; }
.treatment ul { padding-left: 1.2rem; }

/* ---------- Team ---------- */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.member {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}
.member--lead {
  max-width: none;
  margin-inline: 0;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: start;
}
.member--lead .member__photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 3;
}
.member--lead .member__photo img { object-position: center 20%; }
.member:first-child { padding-top: 0; }
.member:last-child { border-bottom: 0; padding-bottom: 0; }
.member__photo {
  width: 128px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, #EAF1F5, #D9E7EE);
  border: 1px solid var(--line);
}
.member h3 { font-size: 1.05rem; }
.member .role { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 3px 0 8px; }
.member p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ---------- Embeds (maps, tours) ---------- */
.embed {
  position: relative; aspect-ratio: 16 / 10;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface);
}
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.embed--tour {
  max-width: min(960px, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 10;
  min-height: 420px;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px; font-size: .85rem; color: #7A8A94; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 22px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { color: #7A8A94; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ----------
   Content is visible by default; the hidden start-state only applies
   when JS is running (html.js), so a JS failure never hides content. */
.js .reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* directional slide-in (split sections, set by JS) */
.js .reveal--left  { transform: translateX(-46px); }
.js .reveal--right { transform: translateX(46px); }
.js .reveal--left.is-visible, .js .reveal--right.is-visible { transform: none; }
/* explicit ordering hooks still honoured */
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }

/* image "wipe" reveal — the picture uncovers from the left */
.js .reveal-img { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.16,.8,.3,1); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }

/* Hero cascade on load */
.js .hero .reveal { transform: translateY(30px); }
.js .hero.loaded .reveal { opacity: 1; transform: none; }
.js .hero__photo img { transform: scale(1.07); transition: transform 1.2s cubic-bezier(.16,.8,.3,1); }
.js .hero.loaded .hero__photo img { transform: none; }

/* ---------- Header condense on scroll ---------- */
.site-header { transition: box-shadow .28s ease, background .28s ease; }
.site-header__inner { transition: min-height .28s ease; }
.brand img { transition: height .28s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 28px -20px rgba(27, 40, 48, .55); background: rgba(251, 252, 253, .95); }
.site-header.is-scrolled .site-header__inner { min-height: 56px; }
.site-header.is-scrolled .brand img { height: 34px; }

/* ---------- Scroll progress bar (injected) ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  z-index: 60; transition: width .12s linear; pointer-events: none;
}

/* ---------- Nav underline (desktop) ---------- */
@media (min-width: 761px) {
  .nav a { position: relative; }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px;
    background: var(--accent); border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .24s cubic-bezier(.16,.8,.3,1);
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- Keyframes ---------- */
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-46px, 34px) scale(1.14); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   Booking modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal[open], .modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(20, 32, 40, .55); backdrop-filter: blur(2px); }
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--bg); border-radius: var(--radius-lg); padding: 28px clamp(20px, 4vw, 34px);
  box-shadow: 0 40px 80px -20px rgba(20, 32, 40, .5);
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.modal__close { background: none; border: 0; padding: 6px; cursor: pointer; color: var(--muted); }
.modal__close:hover { color: var(--ink); }
.steps-ind { display: flex; gap: 8px; margin: 14px 0 20px; }
.steps-ind span { height: 4px; flex: 1; border-radius: 2px; background: var(--line-strong); }
.steps-ind span.on { background: var(--accent); }
.step { display: none; }
.step.active { display: block; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 9px 14px; font: inherit; font-size: .875rem; font-weight: 500; cursor: pointer; background: #fff; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.daygrid-wrap { margin-top: 8px; }
.daygrid-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.daygrid-nav__label { flex: 1; text-align: center; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.daygrid-nav__btn {
  border: none; background: none; font: inherit; font-size: .8125rem; font-weight: 600;
  color: var(--accent-dark); cursor: pointer; padding: 10px 6px; min-height: 44px; min-width: 44px;
}
.daygrid-nav__btn:disabled { opacity: .35; cursor: not-allowed; }
.daygrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 400px) { .daygrid { grid-template-columns: repeat(4, 1fr); } }
.daygrid button {
  border: 1.5px solid var(--line-strong); background: #fff; border-radius: 8px; padding: 10px 8px;
  font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); white-space: nowrap;
}
.daygrid button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); font-weight: 700; }
.field { display: block; margin-top: 12px; }
.field span { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: max(16px, .9rem); padding: 11px 12px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background-color: #fff; color: var(--ink);
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6A74' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
.field textarea { min-height: 70px; resize: vertical; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  font-size: .875rem; line-height: 1.55; color: var(--muted);
}
.consent input[type="checkbox"] {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px;
  accent-color: var(--accent); cursor: pointer;
}
.consent__text { flex: 1; min-width: 0; }
.consent a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent-dark); }
.modal__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.modal__fallback { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.form-status { margin-top: 14px; font-size: .9rem; }
.form-status.ok { color: #1f7a4d; }
.form-status.err { color: #b4432f; }

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie {
  position: fixed; right: 16px; bottom: 16px; left: auto; z-index: 90;
  width: min(380px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-float); font-size: .85rem; color: var(--muted);
  display: none;
}
.cookie.is-open { display: block; }
.cookie__actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200; }
.skip-link:focus { left: 0; color: #fff; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; margin-inline: auto; width: 100%; }
  .hero__photo { aspect-ratio: 1024 / 934; }
  .hero__photo img { object-position: center; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .tgrid { grid-template-columns: repeat(3, 1fr); }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split__media { order: -1; max-width: 480px; }
  .cards-3 { grid-template-columns: 1fr; }
  .contact-band { grid-template-columns: 1fr; }
  .layout-aside { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 760px) {
  .nav, .site-header__phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { gap: 10px; min-height: 60px; }
  .brand img { height: 32px; }
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn { padding: 9px 13px; font-size: .8rem; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px var(--pad-x) 20px;
  }
  .nav.is-open a { padding: 10px 4px; font-size: 1rem; }
  .site-header__inner { position: relative; }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  .section__head { flex-direction: column; align-items: flex-start; }
  .member { grid-template-columns: 96px 1fr; gap: 16px; }
  .member--lead { grid-template-columns: 1fr; align-items: start; }
  .member__photo { width: 96px; }
  .member--lead .member__photo { width: 100%; max-width: 200px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal--left, .reveal--right { opacity: 1 !important; transform: none !important; }
  .reveal-img { clip-path: none !important; }
  .hero__photo img { transform: none !important; }
  .hero h1 .u path { stroke-dashoffset: 0; }
  .scroll-progress { display: none; }
  .reviews-carousel.is-ready .reviews-carousel__rail { animation: none !important; }
  .reviews-carousel.is-ready { overflow-x: auto; }
}
