/* Inner page content styles (ported from the pre-round-4 site.css; header, nav, footer and homepage rules removed).
   Loads after r4-base.css. Colours and fonts come from the dr.laminaadid.ee design system;
   layouts are the main site's own (calm, image-led), not the ad landing page's. */

/* ===== TOKENS ===== */
:root {
  --navy: #032b6d;
  --navy-dark: #021e4e;
  --navy-deep: #010f28;
  --navy-ink: #131c33;
  --gold: #c9a96e;
  --gold-light: #dfc795;
  --gold-ink: #86652f;
  --cream: #faf8f4;
  --cream-deep: #f3eee4;
  --white: #ffffff;
  --text: #1a2136;
  --text-light: #444c66;
  --text-muted: #5a6079;
  --line: rgba(3, 43, 109, 0.10);
  --line-strong: rgba(3, 43, 109, 0.18);
  --line-gold: rgba(201, 169, 110, 0.55);
  --font-head: 'Libre Franklin', 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --max-w: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
  --z-grain: 50;
  --z-nav: 100;
  --z-topline: 110;
  --z-skip: 200;
}


/* base adjustments for content (r4-base.css resets the rest) */
body { background: var(--cream); color: var(--text); font-size: 1.0625rem; line-height: 1.7; }
main a { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main:focus { outline: none; }
main h1, main h2, main h3, main p, main ul, main ol, main dl, main dd, main figure, main blockquote { margin: 0; padding: 0; }
main ul, main ol { list-style: none; }


/* ===== TYPOGRAPHY ===== */
main h1, main h2, main h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy-ink);
  text-wrap: balance;
}
main h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); letter-spacing: -0.025em; line-height: 1.05; }
main h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.02em; }
main h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }
main h1 em, main h2 em, .em { font-style: italic; font-weight: 500; color: var(--gold-ink); }
p { text-wrap: pretty; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.pad { padding: clamp(80px, 11vw, 150px) 0; }
.pad-s { padding: clamp(64px, 8vw, 110px) 0; }
.bg-deep { background: var(--cream-deep); }
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 500;
  font-size: 1.04rem;
  color: var(--gold-ink);
  margin-bottom: 18px;
}

/* ===== BUTTONS AND LINKS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 16px 36px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease-out);
}
.btn-primary {
  background: linear-gradient(165deg, #ddbe86 0%, #c9a96e 46%, #ae874a 100%);
  color: var(--navy-dark);
  box-shadow: 0 12px 28px rgba(158, 122, 62, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(158, 122, 62, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}
.btn-primary:active { transform: translateY(0) scale(0.985); }
.btn-lg { padding: 19px 44px; font-size: 1.04rem; }
.btn-sm { padding: 11px 22px; font-size: 0.88rem; box-shadow: 0 6px 16px rgba(158, 122, 62, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), gap 0.3s var(--ease-out);
}
.text-link:hover { border-bottom-color: var(--gold-ink); gap: 12px; }


/* ===== STATEMENT ===== */

/* ===== RESULTS ===== */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.ba-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--navy-dark);
}
.ba-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: opacity 0.5s var(--ease); }
.ba-after-img { opacity: 0; }
.ba-card.show-after .ba-after-img { opacity: 1; }
.ba-toggle {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 3px;
  background: rgba(2, 30, 78, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 3px;
  pointer-events: none;
}
.ba-toggle span { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: rgba(250, 248, 244, 0.8); transition: background 0.3s, color 0.3s; }
.ba-toggle span.on { background: var(--cream); color: var(--navy-dark); }
.ba-note { font-size: 0.85rem; color: var(--text-muted); margin: -16px 0 28px; }

/* ===== EXPLORE: two unequal doors into the site ===== */
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(380px, 38vw, 520px);
  border-radius: var(--radius);
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 44px);
  isolation: isolate;
}
.door-price {
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(201, 169, 110, 0.2), transparent 65%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  justify-content: space-between;
}

/* ===== DOCTOR ===== */
.doc-role { font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--gold-ink); margin-bottom: 30px; }
.doc-quote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; color: var(--navy); margin-bottom: 34px; max-width: 30ch; }
.doc-facts { list-style: none; border-top: 1px solid var(--line); margin-bottom: 34px; }
.doc-facts li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-light); font-size: 0.98rem; }
.doc-facts strong { font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* ===== REVIEWS (real Google reviews, reviewer's own profile photo) ===== */
.review-card blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.12rem, 1.6vw, 1.32rem); line-height: 1.42; letter-spacing: -0.005em; color: var(--navy-ink); margin-bottom: 26px; }
.review-card blockquote::before { content: '\201E'; display: block; font-size: 2.8rem; line-height: 0.4; color: var(--gold); margin-bottom: 26px; }
.review-card.is-large blockquote { font-size: clamp(1.45rem, 2.7vw, 2.25rem); line-height: 1.28; letter-spacing: -0.012em; }
.reviewer { display: flex; align-items: center; gap: 14px; }
.avatar {
  position: relative; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-deep); border: 1px solid var(--line-gold);
  font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--gold-ink);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reviewer-name { display: block; font-weight: 600; color: var(--text); line-height: 1.3; }
.reviewer-meta { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.reviewer-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.stars { color: var(--gold-ink); letter-spacing: 1px; font-size: 0.82rem; }

/* ===== VISIT ===== */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.visit-text h2 { margin-bottom: 20px; }
.visit-text > p { color: var(--text-light); max-width: 46ch; margin-bottom: 30px; }
.visit-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); margin-bottom: 40px; }
.visit-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.visit-facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.visit-facts dd { color: var(--text); font-size: 0.98rem; }
.visit-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.visit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }

/* ===== INNER PAGE HEADER ===== */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); max-width: 720px; margin-bottom: 18px; }
.page-head p { max-width: 600px; font-size: 1.06rem; color: var(--text-light); }

/* ===== PRICE TABLES ===== */
.price-block + .price-block { margin-top: 64px; }
.price-block h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 10px; }
.price-block > p { color: var(--text-light); max-width: 640px; margin-bottom: 26px; }
.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line-strong); }
.price-table th, .price-table td { text-align: left; vertical-align: top; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); padding: 12px 0; }
.price-table tbody th { font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; color: var(--navy-ink); padding-right: 24px; width: 38%; }
.price-table td.desc { color: var(--text-light); font-size: 0.95rem; padding-right: 24px; }
.price-table .price, .price-table thead th.price { text-align: right; white-space: nowrap; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.04rem; }
.price-table thead th.price { font-family: var(--font-body); font-size: 0.72rem; color: var(--text-muted); }
.price-table .tag { display: inline-block; margin-left: 8px; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); border: 1px solid var(--line-gold); border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.price-table .sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--text-muted); }
.price-table.simple tbody th { font-family: var(--font-body); font-weight: 400; font-size: 0.98rem; color: var(--text); width: auto; }
.price-table.simple .price { font-size: 0.98rem; }
.price-note { margin-top: 16px; font-size: 0.92rem; color: var(--text-muted); max-width: 720px; }
.groups { border-top: 1px solid var(--line-strong); }
.groups details { border-bottom: 1px solid var(--line); }
.groups summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px 20px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--navy-ink);
}
.groups summary::-webkit-details-marker { display: none; }
.groups summary .count { font-family: var(--font-body); font-weight: 400; font-size: 0.86rem; color: var(--text-muted); margin-left: auto; }
.groups summary::after { content: '+'; font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; color: var(--gold-ink); line-height: 1; transition: transform 0.3s var(--ease); }
.groups details[open] summary::after { transform: rotate(45deg); }
.groups .price-table { border-top: none; margin-bottom: 18px; }
.groups .price-table th, .groups .price-table td { padding: 11px 0; }
.help-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.help-box div { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 20px 22px; }
.help-box strong { display: block; font-family: var(--font-head); color: var(--navy); margin-bottom: 4px; }
.help-box a { color: var(--navy); font-weight: 600; }
.help-box span { font-size: 0.92rem; color: var(--text-light); }

.price-cta {
  margin-top: 56px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
  padding: 32px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.45);
}
.price-cta h3 { margin-bottom: 4px; }
.price-cta p { color: var(--text-light); font-size: 0.96rem; }

/* ===== CLOSING (one booking action, shared by inner pages) ===== */
/* Closing band: same navy band as the homepage booking section */
.closing { text-align: center; background: linear-gradient(135deg, #032b6d 0%, #021e4e 55%, #011634 100%); color: #f7f3ee; }
.closing h2 { margin-bottom: 18px; color: #f7f3ee; font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.closing h2 em { color: var(--gold); }
.closing p { color: rgba(247, 243, 238, 0.84); font-size: 1.08rem; max-width: 46ch; margin: 0 auto 36px; }
.closing :focus-visible { outline-color: var(--gold); }

/* Dr Anneli page: all certificates in one row under the training lists */
.cert-row { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.cert-row h3 { margin-bottom: 4px; }
.cert-row > p { color: var(--text-light); font-size: 0.95rem; }
.cert-row .certs { grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 24px 0 0; }
@media (max-width: 1020px) { .cert-row .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cert-row .certs { grid-template-columns: none; } }


/* ===== INNER PAGE HERO (text + photo) ===== */
.page-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 8vw, 110px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.page-hero h1 { margin-bottom: 22px; }
.page-hero .lede { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--text-light); max-width: 46ch; margin-bottom: 36px; }
.page-hero .lede + .lede { margin-top: -18px; }
.page-hero-photo { position: relative; }
.page-hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.page-hero-photo::after {
  content: ''; position: absolute; inset: 18px 18px -18px -18px; z-index: -1;
  border: 1px solid var(--line-gold); border-radius: var(--radius); pointer-events: none;
}
.page-hero-photo figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }

/* Section heading with an optional short intro under it (stacked, never split) */
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 + p { margin-top: 16px; color: var(--text-light); max-width: 60ch; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== LAMINAADID: when veneers help ===== */
.needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); }
.need-item { padding: 28px 0 30px; border-top: 1px solid var(--line-strong); }
.need-item h3 { margin-bottom: 8px; color: var(--navy); }
.need-item p { color: var(--text-light); max-width: 42ch; }
.aside-note { margin-top: 28px; color: var(--text-muted); font-size: 0.95rem; max-width: 70ch; }

/* ===== LAMINAADID: material families (asymmetric, one tinted) ===== */
.families { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); grid-template-rows: auto auto; gap: 18px; }
.family { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(26px, 3vw, 40px); background: rgba(255, 255, 255, 0.45); }
.family h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 6px; }
.family .from { font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--gold-ink); margin-bottom: 18px; display: block; }
.family > p { color: var(--text-light); margin-bottom: 22px; max-width: 54ch; }
.options { list-style: none; border-top: 1px solid var(--line); }
.options li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.options li span { color: var(--text); }
.options li small { display: block; font-size: 0.84rem; color: var(--text-muted); }
.options li b { font-family: var(--font-head); font-weight: 600; color: var(--navy); white-space: nowrap; }
.family-keraamika {
  grid-column: 2; grid-row: 1 / 3;
  color: var(--white);
  border-color: rgba(201, 169, 110, 0.5);
  background:
    radial-gradient(520px 300px at 100% 0%, rgba(201, 169, 110, 0.22), transparent 65%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.family-keraamika h3 { color: var(--white); }
.family-keraamika .from { color: var(--gold-light); }
.family-keraamika > p { color: rgba(255, 255, 255, 0.82); }
.family-keraamika .options { border-top-color: rgba(255, 255, 255, 0.14); }
.family-keraamika .options li { border-bottom-color: rgba(255, 255, 255, 0.1); }
.family-keraamika .options li span { color: rgba(255, 255, 255, 0.92); }
.family-keraamika .options li small { color: rgba(255, 255, 255, 0.62); }
.family-keraamika .options li b { color: var(--white); }
.family-photo { margin-top: 26px; border-radius: 12px; overflow: hidden; }
.family-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.compare { margin-top: clamp(48px, 6vw, 72px); }
.compare h3 { margin-bottom: 18px; }

/* ===== FEATURE: text + photo (Taco) ===== */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.feature-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.feature-text h2 { margin-bottom: 20px; }
.feature-text > p { color: var(--text-light); max-width: 52ch; margin-bottom: 18px; }

/* ===== STEPS: a real sequence, so numbers carry meaning ===== */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); position: relative; }
.steps::before { content: ''; position: absolute; top: 22px; left: 22px; right: 22px; height: 1px; background: linear-gradient(90deg, var(--line-gold), rgba(201, 169, 110, 0.12)); }
.steps li { position: relative; }
.step-no {
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 22px; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); background: var(--cream);
  font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--gold-ink);
}
.bg-deep .step-no { background: var(--cream-deep); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--text-light); font-size: 0.98rem; }

/* ===== CARE ===== */
.care { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.care-list { list-style: none; }
.care-list li { padding: 20px 0; border-top: 1px solid var(--line-strong); color: var(--text-light); }
.care-list li:first-child { border-top: none; padding-top: 0; }
.care-list strong { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy-ink); margin-bottom: 4px; }

/* ===== FAQ (details/summary) ===== */
.faq { max-width: 820px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 56px 24px 0;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.04rem, 1.4vw, 1.14rem); line-height: 1.4; color: var(--navy-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 1.5rem; font-weight: 300; color: var(--gold-ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 48px 26px 0; color: var(--text-light); max-width: 66ch; }
.faq .answer p + p { margin-top: 10px; }

/* ===== GALLERY (results) ===== */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.gallery figure { grid-column: span 2; }
.gallery figure:nth-child(-n+2) { grid-column: span 3; }
.gallery .ba-card { aspect-ratio: 1 / 1; }
.gallery figcaption { margin-top: 12px; font-size: 0.92rem; color: var(--text-light); }
.gallery figcaption strong { color: var(--navy-ink); font-weight: 600; }

/* ===== STORY (a patient's own review) ===== */
.story { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.story-text h2 { margin-bottom: 20px; }
.story-text p { color: var(--text-light); max-width: 56ch; }
.story-text p + p { margin-top: 14px; }

/* ===== DOCTOR PAGE ===== */
.quote-band { max-width: 980px; margin: 0 auto; text-align: center; }
.quote-band blockquote { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 3rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--navy-ink); }
.quote-band figcaption { margin-top: 22px; font-family: var(--font-head); font-style: italic; font-weight: 500; color: var(--gold-ink); }
.milestones { list-style: none; max-width: 860px; position: relative; }
.milestones::before { content: ''; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--line-gold), rgba(201, 169, 110, 0.12)); }
.milestones li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 8px 28px; padding: 0 0 40px 40px; }
.milestones li:last-child { padding-bottom: 0; }
.milestones li::before { content: ''; position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--cream-deep); border: 1px solid var(--gold); }
.milestones .year { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--navy); line-height: 1.3; }
.milestones h3 { margin-bottom: 6px; }
.milestones p { color: var(--text-light); max-width: 58ch; }
.trainings { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; }
.training-group { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); background: rgba(255, 255, 255, 0.45); }
.training-group.span-rows { grid-row: span 2; }
.training-group h3 { margin-bottom: 14px; }
.training-group ul { list-style: none; }
.training-group li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-light); font-size: 0.97rem; }
.training-group li:first-child { border-top: none; }
.training-group .y { font-family: var(--font-head); font-weight: 600; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.press-row { --press-gap: clamp(32px, 5vw, 72px); overflow: hidden; }
.press-track { display: flex; width: max-content; }
.press-unit { display: flex; align-items: center; justify-content: space-around; min-width: min(var(--max-w), 100vw); gap: var(--press-gap); padding-right: var(--press-gap); }
.press-row.is-looping .press-track { animation: press-loop 32s linear infinite; }
.press-row:hover .press-track, .press-row.is-paused .press-track { animation-play-state: paused; }
.press-toggle { margin-top: 12px; padding: 5px 0; border: 0; background: none; text-decoration: underline; cursor: pointer; font-size: 0.85rem; }
@keyframes press-loop { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .press-row { overflow: visible; }
  .press-track, .press-unit { width: auto; min-width: 0; }
  .press-unit { flex-wrap: wrap; justify-content: flex-start; padding-right: 0; }
  .press-row.is-looping .press-track { animation: none; }
  .press-unit[aria-hidden], .press-toggle { display: none; }
}
.press-row img { height: 28px; width: auto; opacity: 0.55; filter: grayscale(1); transition: opacity 0.3s; }
.press-row img.sm { height: 22px; }
.press-row img:hover { opacity: 0.85; }

/* ===== CONTACT PAGE ===== */
.contact-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line); margin-bottom: 36px; }
.contact-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.contact-facts dd { color: var(--text); }
.directions { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 4 / 3.4; background: var(--cream-deep); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link { margin-top: 14px; }
.dir-list { list-style: none; }
.dir-list li { padding: 22px 0; border-top: 1px solid var(--line-strong); }
.dir-list li:first-child { border-top: none; padding-top: 0; }
.dir-list h3 { margin-bottom: 6px; }
.dir-list p { color: var(--text-light); }
.channels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.channel { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px); background: rgba(255, 255, 255, 0.45); }
.channel h3 { margin-bottom: 6px; }
.channel p { color: var(--text-light); margin-bottom: 14px; }
.channel a.big { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--navy); }
.channel ul { list-style: none; }
.channel li + li { margin-top: 10px; }
.company { margin-top: 36px; color: var(--text-muted); font-size: 0.92rem; }
.label-s { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

/* ===== BOOKING PAGE ===== */
.booking { max-width: 980px; margin: 0 auto; }
.booking-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin: 30px 0 34px; }
.booking-facts div { padding: 18px 22px 18px 0; }
.booking-facts div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.booking-facts dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.booking-facts dd { color: var(--text); font-size: 0.98rem; }
.cal-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(2, 30, 78, 0.04), 0 18px 48px rgba(2, 30, 78, 0.07); padding: clamp(6px, 1.5vw, 14px); min-height: 680px; }
.cal-card iframe { width: 100%; min-height: 660px; border: 0; display: block; }
.cal-link { margin-top: 14px; }
.prep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); }
.prep h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 14px; }
.prep ul { list-style: none; }
.prep li { padding: 10px 0 10px 26px; position: relative; color: var(--text-light); }
.prep li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 12px; height: 1px; background: var(--gold); }
.prep p { color: var(--text-light); }

/* ===== LEGAL TEXT ===== */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 52px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--text-light); margin-bottom: 14px; }
.legal ul, .legal ol { color: var(--text-light); margin: 0 0 18px 1.25em; }
.legal li { margin-bottom: 8px; padding-left: 4px; }
.legal a { color: var(--navy); border-bottom: 1px solid var(--line-gold); }

/* ===== NOT FOUND / THANK YOU ===== */
.center-page { text-align: center; padding: clamp(72px, 12vw, 150px) 0; }
.center-page h1 { margin-bottom: 20px; }
.center-page p { color: var(--text-light); max-width: 52ch; margin: 0 auto 30px; }
.center-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-bottom: 40px; }


/* ===== SCROLL REVEAL =====
   Progressive enhancement: content is always visible. Browsers with scroll-driven
   animations get a gentle rise as each block enters the viewport. */
@supports (animation-timeline: view()) {
  @keyframes reveal-up { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
  @keyframes reveal-img { from { clip-path: inset(10% 0 0 0 round var(--radius)); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round var(--radius)); transform: none; } }
  .rv { animation: reveal-up linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .rv-img { animation: reveal-img linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-img { animation: none !important; }
  .steps-big::after { animation: none !important; }
  .btn, .text-link { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1020px) {

  .visit-grid { grid-template-columns: 1fr; }
  .visit-photo { order: -1; max-width: 520px; }
  .page-hero-grid, .feature, .care, .story, .directions { grid-template-columns: 1fr; }
  .page-hero-photo { max-width: 560px; }
  .families { grid-template-columns: 1fr; }
  .family-keraamika { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .steps-big::after { display: none; }
  .trainings { grid-template-columns: 1fr; }
  .training-group.span-rows { grid-row: auto; }
  .gallery figure, .gallery figure:nth-child(-n+2) { grid-column: span 3; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 1rem; }
  .btn-lg { padding: 18px 28px; }
  .ba-pair { gap: 10px; }
  .ba-toggle span { padding: 4px 9px; font-size: 0.6rem; }
  .visit-facts { grid-template-columns: 1fr; }
  .visit-actions .btn { width: 100%; }
  .page-head p { font-size: 1rem; }
  .legal-head h1 { font-size: clamp(1.75rem, 9vw, 2.3rem); overflow-wrap: anywhere; }
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .price-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .price-table th, .price-table td { border-bottom: none; padding: 0; }
  .price-table tbody th { width: auto; padding-right: 0; overflow-wrap: anywhere; }
  .price-table td.desc { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; padding-right: 0; }
  .price-table .price { grid-column: 2; grid-row: 1; }
  .price-table.simple .price { max-width: 13ch; white-space: normal; }
  .groups .price-table tbody tr { padding: 10px 0; }
  .groups .price-table th, .groups .price-table td { padding: 0; }
  .help-box { grid-template-columns: 1fr; }
  .price-cta { padding: 26px 22px; }
  .price-cta .btn { width: 100%; }
  .page-hero .btn { width: 100%; }
  .page-hero-photo::after { inset: 12px 12px -12px -12px; }
  .clinic-photo img { object-position: center bottom; }
  .needs-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .milestones li { grid-template-columns: 1fr; padding-left: 34px; }
  .training-group li { grid-template-columns: 1fr; gap: 2px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure, .gallery figure:nth-child(-n+2) { grid-column: span 1; }
  .gallery figure:first-child { grid-column: span 2; }
  .contact-facts, .channels, .prep { grid-template-columns: 1fr; }
  .booking-facts { grid-template-columns: 1fr; }
  .booking-facts div + div { padding-left: 0; border-left: none; border-top: 1px solid var(--line); }
  .press-row img { height: 22px; }
  .press-row img.sm { height: 18px; }
  .faq .answer { padding-right: 8px; }
}


/* Thank-you page signature (photo + sign-off) */
.signature { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.signature img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(201, 169, 110, 0.6); }
main .signature p { margin: 0; text-align: left; font-size: 0.95rem; line-height: 1.45; color: var(--text-light); }
.signature strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.signature span { display: block; }
