/* =========================================================
   Doctor Mirzaev — Design System
   ========================================================= */

:root {
  /* Colors */
  --bg: #f7f5f1;            /* warm paper */
  --bg-elevated: #ffffff;
  --ink: #14201f;           /* deep ink, slight teal */
  --ink-soft: #3a4a48;
  --muted: #6b7977;
  --line: #e3ddd2;
  --line-soft: #ece6db;

  --teal: #1f4a47;          /* primary accent — deep teal */
  --teal-deep: #0f2c2a;
  --teal-soft: #2d6a66;
  --sand: #d9c9a8;          /* warm gold sand */
  --sand-soft: #e8dcc1;
  --rose: #b87a6a;          /* small warm accent */

  /* Type */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --maxw: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 44, 42, 0.04), 0 2px 8px rgba(15, 44, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 44, 42, 0.06), 0 2px 6px rgba(15, 44, 42, 0.04);
  --shadow-lg: 0 24px 60px rgba(15, 44, 42, 0.10), 0 4px 12px rgba(15, 44, 42, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* ---------- Type ---------- */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.eyebrow-dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--s-5); }
}

section { padding: var(--s-9) 0; }
@media (max-width: 720px) {
  section { padding: var(--s-7) 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
}
.brand__name { display: flex; flex-direction: column; line-height: 1; }
.brand__name small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav a {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}
@media (max-width: 1140px) {
  .nav { display: none; }
}

/* Mobile burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 12px;
  align-items: center; justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1140px) { .burger { display: inline-flex; } }
@media (max-width: 1140px) { .header-cta { display: none; } }
@media (max-width: 720px) {
  .site-header__inner { height: 64px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand__mark { width: 32px; height: 32px; font-size: 16px; }
  .brand__name small { font-size: 9px; letter-spacing: 0.14em; }
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
  visibility: hidden;
}
.mobile-nav.is-open { transform: none; visibility: visible; }
.mobile-nav__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--s-5); border-bottom: 1px solid var(--line-soft);
  height: 64px;
}
.mobile-nav__close {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 12px;
  display: grid; place-items: center;
  cursor: pointer;
}
.mobile-nav__list {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: var(--s-5);
}
.mobile-nav__list a {
  font-family: var(--font-serif);
  font-size: 32px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-nav__list a.is-active { color: var(--teal); }
.mobile-nav__list a::after { content: "→"; font-family: var(--font-sans); font-size: 18px; color: var(--muted); }
.mobile-nav__cta { padding: var(--s-5); border-top: 1px solid var(--line-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--teal);
  color: #f5f1e8;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--bg-elevated); border-color: var(--ink-soft); }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--block { width: 100%; justify-content: center; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.header-cta { flex-shrink: 0; }
@media (max-width: 1280px) {
  .header-cta .full { display: none; }
}
@media (max-width: 560px) {
  .header-cta { padding: 10px 16px; font-size: 13px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: #c8d6d4;
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-9);
}
.site-footer a { color: #e5ede9; }
.site-footer .brand { color: #f0ece2; }
.site-footer .brand__mark { background: var(--sand); color: var(--teal-deep); }
.site-footer .brand__name small { color: #8aa19d; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h5 {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8aa19d;
  margin-bottom: var(--s-4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-5);
  font-size: 12px;
  color: #8aa19d;
  font-family: var(--font-mono);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--line-soft); }

/* ---------- Floating contact widget ---------- */
.floater {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.floater__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--bg);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
  border: none;
}
.floater__btn:hover { transform: scale(1.06); }
.floater__btn.tg { background: #2aabee; }
.floater__btn.wa { background: #25d366; }
@media (max-width: 720px) {
  .floater { right: 12px; bottom: 12px; }
  .floater__btn { width: 48px; height: 48px; }
}

/* ---------- Hero shapes ---------- */
.hero {
  position: relative;
  padding-top: var(--s-9);
  padding-bottom: var(--s-9);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; }
@media (max-width: 720px) {
  .hero { padding-top: var(--s-6); padding-bottom: var(--s-7); }
}

/* ---------- Page intro band (used on inner pages) ---------- */
.page-intro {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(800px 320px at 85% 0%, rgba(31,74,71,0.06), transparent 60%),
    var(--bg);
}
.page-intro__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  margin-top: var(--s-5);
}
.page-intro__sub {
  margin-top: var(--s-5);
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
}
@media (max-width: 720px) {
  .page-intro { padding: var(--s-7) 0 var(--s-6); }
  .page-intro__sub { font-size: 16px; }
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31,74,71,0.10);
}
.field textarea { min-height: 110px; resize: vertical; }

/* ---------- Slot picker ---------- */
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 600px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--font-mono);
}
.slot:hover { border-color: var(--teal); }
.slot.is-selected { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.slot.is-disabled { color: var(--muted); background: transparent; cursor: not-allowed; opacity: 0.5; }

/* ---------- Tag / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.chip--teal { background: rgba(31,74,71,0.08); border-color: rgba(31,74,71,0.15); color: var(--teal); }
.chip--sand { background: var(--sand-soft); border-color: rgba(217,201,168,0.6); color: #6b5b3a; }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line-soft); border: 0; margin: var(--s-6) 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  margin-top: 14px;
}
.cta-band p { color: var(--ink-soft); margin-top: 14px; max-width: 480px; }
@media (max-width: 800px) {
  .cta-band { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; border-radius: 20px; }
}
@media (max-width: 720px) {
  .cta-band .btn { width: 100%; justify-content: center; }
}

/* ---------- Photo placeholder ---------- */
.photo-ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(31,74,71,0.04) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--sand-soft), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow: hidden;
}
.photo-ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 14px; left: 14px;
  background: var(--bg-elevated);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}


/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner__inner {
  background: var(--ink);
  color: #f7f5f1;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 640px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
  pointer-events: auto;
}
.cookie-banner__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  color: rgba(247,245,241,0.86);
}
.cookie-banner__btn {
  flex-shrink: 0;
  background: var(--sand);
  color: var(--ink);
  border: 0;
  white-space: nowrap;
}
.cookie-banner__btn:hover { background: #e6d4ae; }
@media (max-width: 560px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 84px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 16px; }
  .cookie-banner__text { text-align: left; font-size: 13px; }
  .cookie-banner__btn { width: 100%; justify-content: center; }
}

/* =========================================================
   Mobile / Tablet professional polish
   - safe-area-inset for iPhone notch & home indicator
   - dvh viewport units (handle iOS dynamic toolbar)
   - touch-action / no tap highlight / hover-only effects
   - tablet/mobile breakpoints, form input zoom prevention
   - sticky bottom CTA bar for thumb-reach on phones
   ========================================================= */

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --mobile-cta-h: 0px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;             /* never let any rogue child push horizontal scroll on phones */
  overscroll-behavior-y: contain;
}

/* No double-tap zoom on actionable controls */
a, button, .btn, .slot, .chip, .floater__btn,
.burger, .nav a, .mobile-nav__list a, .cookie-banner__btn {
  touch-action: manipulation;
}

/* Long Russian medical terms ("уретропластика") shouldn't blow the layout on 320px */
p, li, h1, h2, h3, h4, .review__text, .article-hero__lede,
.hero__lede, .page-intro__sub, .field label {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Safe-area on floater (above iPhone home indicator) */
.floater {
  right: max(16px, var(--safe-right));
  bottom: max(16px, var(--safe-bottom));
}

/* Cookie banner respects safe-area + sticky CTA height */
.cookie-banner {
  bottom: calc(max(16px, var(--safe-bottom)) + var(--mobile-cta-h));
}

/* Sticky header — keep it readable inside iOS notch landscape */
.site-header {
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

/* Mobile drawer — full dynamic viewport, safe insets, slide from right */
.mobile-nav {
  inset: 0;
  /* iOS toolbar safe: prefer dvh when supported */
  height: 100dvh;
  height: 100vh;
  height: 100dvh;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
.mobile-nav.is-open { transform: none; }

/* Hover effects only on devices that actually hover (avoid sticky :hover on touch) */
@media (hover: none) {
  .btn:hover { transform: none; box-shadow: none; background: var(--teal); }
  .btn--ghost:hover { background: transparent; border-color: var(--line); }
  .btn:hover .arr { transform: none; }
  .floater__btn:hover { transform: none; }
  .nav a:hover { color: var(--ink-soft); }
  .card:hover { box-shadow: none; border-color: var(--line); }
  .service-card:hover, .thematic-card:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .service-card:hover .arrow,
  .thematic-card:hover .arrow { background: transparent; border-color: var(--line); color: inherit; }
}

/* Tablet (≤1024px): keep nav visible — let CTA drop to compact form */
@media (max-width: 1140px) and (min-width: 901px) {
  .nav { display: flex; gap: 18px; }
  .nav a { font-size: 13px; }
  .header-cta { display: inline-flex; padding: 10px 16px; font-size: 13px; }
  .burger { display: none; }
}

/* Burger appears below 900px (was 1140) — tablets keep nav */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-cta { display: none; }
}

/* Tap targets ≥44px on touch devices (iOS HIG / WCAG AAA) */
@media (hover: none) and (pointer: coarse) {
  .nav a,
  .footer-col a,
  .mobile-nav__list a,
  .channel,
  .btn,
  .slot,
  .field input,
  .field textarea,
  .field select { min-height: 44px; }
  .burger, .mobile-nav__close, .floater__btn,
  .cookie-banner__btn { min-width: 44px; min-height: 44px; }
}

/* Forms: input font-size ≥ 16px on phones to prevent iOS auto-zoom */
@media (max-width: 720px) {
  .field input, .field textarea, .field select { font-size: 16px; }
  .field input, .field textarea { padding: 12px 14px; border-radius: 10px; }
  .slot { padding: 12px 6px; font-size: 14px; }
}

/* Image guard — never overflow a phone screen */
img, picture, video, iframe { max-width: 100%; height: auto; }

/* Fluid type scale tweaks for very small phones (≤360px iPhone SE / older Android) */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand__name span { font-size: 15px; }
  .btn { padding: 11px 18px; font-size: 13px; }
  .btn--lg { padding: 14px 22px; font-size: 14px; }
  .review { padding: 20px; border-radius: 14px; }
  .review__text { font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Reduce motion: disable scroll-smooth, animations, parallax-y stuff */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Sticky bottom CTA on mobile — thumb-reach action bar */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 56;
  display: none;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line-soft);
  padding: 10px max(14px, var(--safe-right)) calc(10px + var(--safe-bottom)) max(14px, var(--safe-left));
  display: none;
  transform: translateY(110%);
  transition: transform .28s cubic-bezier(.2,.7,.3,1);
}
.mobile-cta.is-shown { transform: none; }
.mobile-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}
.mobile-cta__txt {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-soft);
}
.mobile-cta__txt strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.mobile-cta .btn {
  padding: 12px 18px;
  font-size: 14px;
  min-height: 44px;
}
@media (max-width: 720px) {
  .mobile-cta { display: block; }
  /* Lift floater + cookie above the CTA bar */
  body.has-mobile-cta .floater { display: none; }
  body.has-mobile-cta { --mobile-cta-h: 72px; }
}

/* ---- Mobile typography taming ---- */
/* Many page-local <style> blocks set hero/h2 with clamp(lower-bound, vw, max).
   On very narrow phones the lower bound itself overflows. These selective
   overrides cap real-rendered size on narrow viewports without changing
   the desktop look. */

@media (max-width: 720px) {
  .hero h1 { font-size: clamp(34px, 9vw, 56px) !important; }
  .section-head h2 { font-size: clamp(26px, 7.5vw, 40px) !important; }
  .process h2 { font-size: clamp(28px, 7.5vw, 44px) !important; }
  .spotlight__copy h2 { font-size: clamp(28px, 7.5vw, 44px) !important; }
  .cta-band h2,
  .cta-band--home h2 { font-size: clamp(24px, 7vw, 38px) !important; }
  .page-intro__title { font-size: clamp(34px, 10vw, 64px) !important; }
  .price-card .price { font-size: clamp(48px, 14vw, 72px) !important; line-height: 1; }
  .quote-block { font-size: clamp(22px, 6vw, 34px) !important; padding-left: 36px !important; }
  .quote-block::before { font-size: 64px !important; top: -4px !important; }
  .article-hero h1 { font-size: clamp(28px, 8vw, 44px) !important; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: clamp(28px, 9vw, 42px) !important; }
  .page-intro__title { font-size: clamp(28px, 10vw, 48px) !important; }
}

/* ---- Tablet (601-1024) layout balance ---- */
/* Keep hero and other 1.x:1 grids as a single column on portrait tablets,
   but with more breathing room than phones. */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero-grid { gap: 56px; grid-template-columns: 1fr; }
  .hero__portrait { max-width: 460px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .review-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
