:root {
  --ink: #17302f;
  --muted: #62716f;
  --line: #dce8e6;
  --brand: #0f6d66;
  --brand-deep: #0a504b;
  --brand-light: #dff2ef;
  --soft: #f4f8f7;
  --white: #ffffff;
  --dark: #143533;
  --radius: 24px;
  --shadow: 0 18px 48px rgba(16, 70, 65, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; }
button, input, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 999; background: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(220,232,230,.9);
}
.header-inner { height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 215px; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); flex: 0 0 auto; }
.brand-mark svg { width: 28px; height: 28px; }
.brand strong { display: block; font-size: 19px; line-height: 1.1; letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.desktop-nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.desktop-nav a { text-decoration: none; font-size: 14px; color: #39504e; transition: color .2s; }
.desktop-nav a:hover { color: var(--brand); }
.header-phone { text-decoration: none; font-weight: 750; white-space: nowrap; color: var(--brand-deep); }
.menu-button { display: none; border: 0; background: none; width: 44px; height: 44px; padding: 9px; margin-left: auto; cursor: pointer; }
.menu-button span { display: block; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: .2s; }
.mobile-nav { display: none; }

.hero { background: linear-gradient(135deg, #f7fbfa 0%, #eaf5f2 100%); overflow: hidden; }
.hero-grid { min-height: 660px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; padding: 72px 0; }
.eyebrow, .section-kicker { margin: 0 0 16px; text-transform: uppercase; letter-spacing: .12em; color: var(--brand); font-weight: 800; font-size: 12px; }
h1 { max-width: 770px; margin: 0; font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.045em; font-weight: 760; }
.hero-text { max-width: 690px; margin: 28px 0 0; font-size: 20px; color: #4f6462; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px; text-decoration: none; font-weight: 750; font-size: 15px; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brand); color: white; box-shadow: 0 10px 28px rgba(15,109,102,.2); }
.button-primary:hover { background: var(--brand-deep); }
.button-secondary { background: rgba(255,255,255,.72); border: 1px solid #cfe0dd; color: var(--brand-deep); }
.full { width: 100%; }
.hero-facts { display: flex; gap: 44px; margin-top: 44px; padding-top: 26px; border-top: 1px solid #cfe0dd; max-width: 680px; }
.hero-facts span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 5px; }
.hero-facts strong { font-size: 15px; }
.hero-visual { position: relative; min-height: 500px; display: grid; place-items: center; }
.visual-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(15,109,102,.15); }
.orbit-one { width: 460px; height: 460px; }
.orbit-two { width: 340px; height: 340px; }
.tooth-card { position: relative; z-index: 2; width: 290px; aspect-ratio: 1; border-radius: 50%; background: var(--brand); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 36px 80px rgba(15,109,102,.22); transform: rotate(-3deg); }
.tooth-card::before, .tooth-card::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.11); }
.tooth-card::before { width: 52px; height: 52px; top: 30px; right: 35px; }
.tooth-card::after { width: 28px; height: 28px; bottom: 54px; left: 38px; }
.tooth-card svg { width: 130px; height: 130px; margin-bottom: 10px; }
.tooth-card p { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.tooth-card span { margin-top: 4px; opacity: .75; font-size: 14px; }

.section { padding: 104px 0; }
.section-white { background: var(--white); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--dark); color: white; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: start; }
h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -.035em; }
.lead-copy { font-size: 20px; color: #536966; max-width: 690px; }
.lead-copy p:first-child { margin-top: 4px; }
.lead-copy p:last-child { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 44px; }
.section-heading > p { max-width: 430px; margin: 0 0 4px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { min-height: 270px; background: var(--white); border: 1px solid #e1ebe9; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: 0 8px 28px rgba(23,48,47,.03); }
.service-card span { color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.service-card h3 { margin: auto 0 12px; font-size: 23px; line-height: 1.12; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.doctor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.doctor-card { min-height: 210px; display: flex; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; transition: transform .2s, box-shadow .2s; }
.doctor-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.doctor-avatar { width: 92px; height: 92px; border-radius: 24px; flex: 0 0 auto; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); font-size: 22px; font-weight: 850; }
.doctor-card h3 { margin: 0 0 7px; font-size: 23px; line-height: 1.15; letter-spacing: -.02em; }
.doctor-card p { margin: 0 0 14px; color: var(--muted); }
.doctor-card a { color: var(--brand); font-weight: 800; text-decoration: none; }

.documents-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 74px; align-items: start; }
.section-kicker-light { color: #95d1ca; }
.documents-intro { max-width: 480px; margin-top: 24px; color: #c2d5d2; font-size: 18px; }
.document-list { border-top: 1px solid rgba(255,255,255,.18); }
.document-item { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; min-height: 78px; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.document-item p { margin: 0; font-size: 18px; }
.document-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 18px 20px; border-radius: 14px; color: #fff; background: rgba(255,255,255,.08); text-decoration: none; font-weight: 700; }
.document-link:hover { background: rgba(255,255,255,.12); }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: stretch; }
.contact-card { border-radius: var(--radius); background: var(--soft); padding: 34px; }
.contact-row { padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.contact-row span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.contact-row strong, .contact-row a { font-size: 21px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.text-link { display: inline-block; margin-top: 17px; color: var(--brand); font-weight: 750; text-decoration: none; }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 520px; background: #e7efed; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 520px; border: 0; filter: saturate(.75) contrast(.95); }

.site-footer { background: #0c2927; color: #cfe0dd; padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.brand-footer { color: white; }
.brand-footer .brand-mark { background: rgba(255,255,255,.1); color: white; }
.brand-footer small { color: #a8bfbc; }
.footer-inner > p { margin: 0; text-align: right; font-size: 13px; color: #91aaa7; }

@media (max-width: 980px) {
  .desktop-nav, .header-phone { display: none; }
  .menu-button { display: block; }
  .mobile-nav { position: fixed; inset: 82px 0 0; background: #fff; padding: 22px 20px 40px; flex-direction: column; gap: 8px; }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 16px 10px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { min-height: 410px; }
  .split, .documents-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .section-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { height: 72px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .mobile-nav { inset: 72px 0 0; }
  .hero-grid { padding: 54px 0 60px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-text { font-size: 18px; }
  .hero-facts { flex-direction: column; gap: 18px; }
  .hero-visual { min-height: 330px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 250px; height: 250px; }
  .tooth-card { width: 220px; }
  .tooth-card svg { width: 105px; height: 105px; }
  .tooth-card p { font-size: 23px; }
  .section { padding: 76px 0; }
  .service-grid, .doctor-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 235px; }
  .doctor-card { align-items: flex-start; }
  .doctor-avatar { width: 72px; height: 72px; border-radius: 20px; }
  .doctor-card h3 { font-size: 20px; }
  .contact-card { padding: 26px; }
  .map-wrap, .map-wrap iframe { min-height: 380px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner > p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


/* Price list */
.price-heading { margin-bottom: 32px; }
.price-panels { display: grid; gap: 14px; }
.price-panel { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 8px 26px rgba(23,48,47,.035); }
.price-panel[open] { box-shadow: var(--shadow); }
.price-panel > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 26px; cursor: pointer; user-select: none; background: #fff; }
.price-panel > summary::-webkit-details-marker { display: none; }
.price-panel > summary:hover { background: #fbfdfc; }
.price-panel > summary strong { display: block; font-size: 23px; line-height: 1.12; letter-spacing: -.02em; }
.price-panel > summary small { display: block; margin-top: 7px; color: var(--muted); font-size: 14px; font-weight: 500; }
.price-panel-icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-light); color: var(--brand); font-size: 24px; line-height: 1; transition: transform .2s; }
.price-panel[open] .price-panel-icon { transform: rotate(45deg); }
.price-panel-body { padding: 0 26px 28px; border-top: 1px solid var(--line); }
.price-subhead { margin: 30px 0 12px; font-size: 19px; letter-spacing: -.01em; }
.price-subhead:first-child { margin-top: 22px; }
.price-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 15px; }
.price-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.price-table th { padding: 13px 12px; background: var(--soft); color: #4c6360; text-align: left; font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .055em; border-bottom: 1px solid var(--line); }
.price-table td { padding: 14px 12px; vertical-align: top; border-bottom: 1px solid #e8efee; color: #3b504e; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table th:nth-child(1), .price-table td:nth-child(1) { width: 82%; }
.price-table th:nth-child(2), .price-table td:nth-child(2) { width: 18%; }
.price-table .service-name { color: var(--ink); }
.price-table .price-value { color: var(--brand-deep); font-weight: 850; white-space: nowrap; }
.price-row[hidden] { display: none !important; }
.price-footnote, .price-source-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.price-source-note { margin-top: 18px; padding: 17px 19px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.price-source-note strong { color: var(--ink); }
.important-note { margin-top: 22px; padding: 18px 19px; border-left: 4px solid var(--brand); border-radius: 12px; background: #eef7f5; color: #425b58; font-size: 14px; line-height: 1.6; }
.important-note strong { color: var(--brand-deep); }
.price-panel.no-results { display: none; }

@media (max-width: 760px) {
  .price-panel > summary { padding: 20px; }
  .price-panel > summary strong { font-size: 20px; }
  .price-panel-body { padding: 0 16px 20px; }
  .price-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .price-table, .price-table tbody { display: block; }
  .price-table thead { display: none; }
  .price-table tr.price-row { display: block; margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .price-table tr.price-row[hidden] { display: none; }
  .price-table td { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 10px; width: 100% !important; padding: 7px 0; border: 0; }
  .price-table td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
  .price-table .service-name { padding-top: 12px; margin-top: 5px; border-top: 1px solid var(--line); }
  .price-table .price-value { padding-top: 12px; font-size: 17px; }
}

/* Documents and license */
.license-card { margin-top: 30px; padding: 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(255,255,255,.06); }
.license-label { display: block; margin-bottom: 8px; color: #95d1ca; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.license-card strong { display: block; font-size: 23px; }
.license-card p { margin: 6px 0 16px; color: #c2d5d2; }
.license-card a { color: #fff; text-decoration: none; font-weight: 750; }
.license-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.license-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.license-thumb { display: block; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 15px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; transition: transform .2s, background .2s; }
.license-thumb:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.license-thumb img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top center; background: #edf2ef; }
.license-thumb span { display: block; padding: 11px 12px 12px; font-size: 12px; font-weight: 750; color: #d8e7e5; }
.document-download { grid-template-columns: 54px 1fr 24px; color: #fff; text-decoration: none; transition: background .2s; padding: 0 8px; margin: 0 -8px; }
.document-download:hover { background: rgba(255,255,255,.05); }
.document-download b { font-size: 18px; font-weight: 500; color: #95d1ca; }

@media (max-width: 680px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 220px; }
}

@media (max-width: 680px) {
  .license-gallery { grid-template-columns: repeat(3, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .license-thumb { min-width: 120px; }
}


/* Yandex map */
.yandex-map { position: relative; overflow: hidden; }
.yandex-map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Informational cookie notice with dismiss button */
.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(calc(100% - 32px), 720px);
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.cookie-notice-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid rgba(15,109,102,.16);
  border-radius: 16px;
  background: rgba(255,255,255,.985);
  box-shadow: 0 16px 50px rgba(25,53,50,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cookie-notice p { margin: 0; color: #425b58; font-size: 13px; line-height: 1.45; flex: 1 1 auto; }
.cookie-notice-button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.cookie-notice-button:hover { background: var(--brand-deep); }
.cookie-notice-button:active { transform: translateY(1px); }
.cookie-notice-button:focus-visible { outline: 3px solid rgba(15,109,102,.22); outline-offset: 2px; }
.cookie-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(15,109,102,.10);
}
.cookie-notice.cookie-notice--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
}

@media (max-width: 680px) {
  .cookie-notice { width: calc(100% - 24px); bottom: max(12px, env(safe-area-inset-bottom)); }
  .cookie-notice-inner { padding: 13px 15px; border-radius: 14px; }
  .cookie-notice-inner { align-items: flex-start; flex-wrap: wrap; }
  .cookie-notice p { font-size: 12px; min-width: 220px; }
  .cookie-notice-button { margin-left: auto; }
}

/* ============================================================
   Mobile layout hardening — v8
   Prevent horizontal overflow on narrow phones (320–430 px)
   ============================================================ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* Grid/flex children may otherwise keep their intrinsic width and push the page. */
.hero-grid > *,
.split > *,
.section-heading > *,
.service-grid > *,
.doctor-grid > *,
.documents-grid > *,
.contact-grid > *,
.price-panel,
.price-panel > summary > span:first-child,
.price-panel-body,
.document-list,
.contact-card,
.map-wrap {
  min-width: 0;
  max-width: 100%;
}

/* Long medical terms/codes and document names must stay inside their cards. */
h1, h2, h3,
p, strong, small,
.service-name,
.price-table td,
.document-item p,
.document-link,
.contact-row strong,
.contact-row a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (max-width: 680px) {
  /* Stable mobile gutters: no calc/min quirks and no accidental overflow. */
  .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .header-inner {
    gap: 12px;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
  .brand-mark svg {
    width: 25px;
    height: 25px;
  }
  .brand strong {
    font-size: 18px;
  }
  .menu-button {
    flex: 0 0 44px;
  }

  .mobile-nav {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .mobile-nav a {
    overflow-wrap: anywhere;
  }

  .hero-grid {
    gap: 24px;
    padding: 44px 0 48px;
  }
  h1 {
    max-width: 100%;
    font-size: clamp(32px, 10vw, 46px);
    line-height: 1.02;
    letter-spacing: -.035em;
    hyphens: auto;
  }
  h2 {
    max-width: 100%;
    font-size: clamp(30px, 9vw, 42px);
    line-height: 1.06;
    letter-spacing: -.028em;
    hyphens: auto;
  }
  h3 {
    hyphens: auto;
  }
  .hero-text,
  .lead-copy {
    max-width: 100%;
    font-size: 17px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }
  .hero-facts {
    width: 100%;
    max-width: 100%;
  }
  .hero-visual {
    width: 100%;
    min-height: 300px;
    overflow: hidden;
  }
  .orbit-one {
    width: min(290px, 92vw);
    height: min(290px, 92vw);
  }
  .orbit-two {
    width: min(225px, 72vw);
    height: min(225px, 72vw);
  }
  .tooth-card {
    width: min(195px, 62vw);
  }
  .tooth-card svg {
    width: 92px;
    height: 92px;
  }
  .tooth-card p {
    font-size: 21px;
  }

  .section {
    padding: 68px 0;
  }
  .section-heading {
    gap: 16px;
    margin-bottom: 32px;
  }
  .section-heading > p {
    max-width: 100%;
  }
  .split,
  .documents-grid,
  .contact-grid {
    gap: 30px;
  }

  .service-card {
    min-height: 0;
    padding: 24px 22px;
  }
  .service-card h3 {
    margin-top: 52px;
  }

  .doctor-card {
    min-height: 0;
    gap: 18px;
    padding: 22px;
  }
  .doctor-card > div:last-child {
    min-width: 0;
  }
  .doctor-card a {
    overflow-wrap: anywhere;
  }

  /* Price list: on phones, each service and price becomes a compact vertical card. */
  .price-panel {
    width: 100%;
  }
  .price-panel > summary {
    width: 100%;
    gap: 12px;
    padding: 18px 16px;
  }
  .price-panel > summary > span:first-child {
    flex: 1 1 auto;
  }
  .price-panel > summary strong {
    font-size: 19px;
    hyphens: auto;
  }
  .price-panel > summary small {
    font-size: 13px;
    line-height: 1.35;
    hyphens: auto;
  }
  .price-panel-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 21px;
  }
  .price-panel-body {
    width: 100%;
    padding: 0 12px 18px;
  }
  .price-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }
  .price-table,
  .price-table tbody,
  .price-table tr.price-row {
    width: 100%;
    max-width: 100%;
  }
  .price-table tr.price-row {
    margin-bottom: 10px;
    padding: 14px 13px;
  }
  .price-table td {
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding: 5px 0;
    overflow-wrap: anywhere;
    word-break: normal;
    min-width: 0;
  }
  .price-table td::before {
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
    line-height: 1.25;
  }
  .price-table .service-name {
    padding-top: 10px;
    margin-top: 5px;
  }
  .price-table .price-value {
    padding-top: 10px;
    white-space: normal;
  }
  .price-footnote,
  .price-source-note,
  .important-note {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .price-source-note,
  .important-note {
    padding: 15px;
  }

  /* License pages: no horizontal carousel on mobile. */
  .license-card {
    padding: 18px 16px;
  }
  .license-card strong {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  .license-actions {
    gap: 10px 16px;
  }
  .license-actions a {
    overflow-wrap: anywhere;
  }
  .license-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    overflow: visible;
    gap: 10px;
  }
  .license-thumb {
    min-width: 0;
    max-width: 100%;
  }
  .license-thumb img {
    width: 100%;
    max-width: 100%;
  }
  .license-thumb span {
    overflow-wrap: anywhere;
  }

  /* Download list: avoid negative margins and give the filename all remaining width. */
  .document-item,
  .document-download {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) 18px;
    gap: 10px;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  .document-item p {
    min-width: 0;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .document-download b {
    font-size: 17px;
  }
  .document-link {
    width: 100%;
    max-width: 100%;
    padding: 16px;
    gap: 10px;
    overflow-wrap: anywhere;
  }

  .contact-card {
    width: 100%;
    padding: 22px 18px;
  }
  .contact-row strong,
  .contact-row a {
    font-size: 19px;
    overflow-wrap: anywhere;
  }
  .text-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .map-wrap,
  .map-wrap iframe,
  .yandex-map,
  .yandex-map iframe {
    width: 100%;
    max-width: 100%;
  }
  .map-wrap,
  .map-wrap iframe {
    min-height: 340px;
  }

  .footer-inner {
    gap: 22px;
  }
  .footer-inner > p {
    width: 100%;
    overflow-wrap: anywhere;
  }

  /* Cookie notice respects the physical phone edges and safe areas. */
  .cookie-notice {
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    transform: none;
  }
  .cookie-notice-inner {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
  }
  .cookie-notice p {
    min-width: 0;
    font-size: 12px;
    overflow-wrap: anywhere;
  }
  .cookie-notice-button {
    margin-left: 0;
    padding: 8px 11px;
  }
  .cookie-notice.cookie-notice--hidden {
    transform: translateY(12px);
  }
}

@media (max-width: 360px) {
  .container {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  h1 {
    font-size: 31px;
  }
  h2 {
    font-size: 29px;
  }
  .doctor-card {
    flex-direction: column;
  }
  .license-gallery {
    grid-template-columns: 1fr;
  }
  .cookie-notice-inner {
    grid-template-columns: 10px minmax(0, 1fr);
  }
  .cookie-notice-button {
    grid-column: 2;
    justify-self: end;
  }
}


/* Mobile navigation — stable drawer below the sticky header */
@media (max-width: 980px) {
  .site-header {
    isolation: isolate;
  }

  .menu-button {
    position: relative;
    z-index: 80;
    flex: 0 0 44px;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-button:focus-visible {
    outline: 3px solid rgba(15, 109, 102, .22);
    outline-offset: 2px;
  }

  .menu-button span {
    width: 24px;
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.4);
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-nav {
    display: none;
    position: fixed;
    z-index: 70;
    top: 82px;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100dvh - 82px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px max(20px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .985);
    border-top: 1px solid rgba(220, 232, 230, .9);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(16, 70, 65, .14);
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
  }

  .mobile-nav a:last-child {
    margin-top: 6px;
    border-bottom: 0;
    background: var(--brand-light);
    color: var(--brand-deep);
  }

  .mobile-nav a:active,
  .mobile-nav a:focus-visible {
    background: var(--soft);
  }
}

@media (max-width: 680px) {
  .mobile-nav {
    top: 72px;
    max-height: calc(100dvh - 72px);
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .mobile-nav a {
    padding: 13px 10px;
    font-size: 15px;
  }
}

/* ============================================================
   Typography and responsive spacing — v10
   Full-word wrapping only; no syllable hyphenation.
   ============================================================ */

/* Normal prose should wrap only at natural spaces on every device. */
h1, h2, h3,
p, strong, small,
.hero-text, .lead-copy,
.service-card h3, .service-card p,
.doctor-card h3, .doctor-card p,
.document-item p, .document-link,
.contact-row strong, .contact-row a,
.price-panel > summary strong,
.price-panel > summary small,
.price-table .service-name,
.price-footnote, .price-source-note, .important-note,
.cookie-notice p {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Headings and paragraphs get cleaner responsive line breaks without splitting words. */
h1, h2, h3 { text-wrap: balance; }
p, .hero-text, .lead-copy { text-wrap: pretty; }

/* Technical codes may break if absolutely necessary; ordinary words never do. */
.price-table td:not(.service-name),
.license-actions a,
.text-link {
  word-break: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 680px) {
  /* Preserve real side gutters in the hero. Earlier vertical padding shorthand reset them. */
  .hero-grid {
    padding-top: 44px;
    padding-bottom: 48px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  /* Header uses the same visual gutter as the hero. */
  .header-inner {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  /* The generic container already has gutters; do not add any syllable hyphenation. */
  h1, h2, h3,
  .price-panel > summary strong,
  .price-panel > summary small {
    hyphens: none !important;
    -webkit-hyphens: none !important;
  }

  .mobile-nav a,
  .doctor-card a,
  .license-card strong,
  .license-actions a,
  .license-thumb span,
  .document-item p,
  .document-link,
  .contact-row strong,
  .contact-row a,
  .text-link,
  .footer-inner > p,
  .cookie-notice p {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }

  /* Keep long machine-readable codes contained without forcing word splits in service names. */
  .price-table td:not(.service-name) {
    overflow-wrap: anywhere !important;
  }

  /* Slightly more comfortable mobile page gutters below the hero too. */
  .section > .container,
  .site-footer > .container {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
}

@media (max-width: 360px) {
  .hero-grid,
  .header-inner,
  .section > .container,
  .site-footer > .container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}


/* ============================================================
   Simplified price tables — v14
   Only service name and price are displayed.
   ============================================================ */
.price-table .service-name { padding-right: 24px; }
@media (max-width: 680px) {
  .price-table tr.price-row { padding: 15px 14px; }
  .price-table .service-name {
    margin-top: 0;
    padding: 0 0 11px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.45;
  }
  .price-table .service-name::before { display: none; }
  .price-table .price-value {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0 0;
    font-size: 18px;
    white-space: nowrap;
  }
  .price-table .price-value::before {
    display: inline;
    margin: 0;
    flex: 0 0 auto;
  }
}

/* ============================================================
   Price heading on phones — v17
   Keep the long heading inside the viewport without changing desktop typography.
   ============================================================ */
@media (max-width: 680px) {
  .price-heading h2 {
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.1;
    letter-spacing: -.02em;
    max-width: 100%;
    text-wrap: balance;
  }
}

@media (max-width: 360px) {
  .price-heading h2 {
    font-size: 25px;
  }
}

/* ============================================================
   Documents layout fix — v22
   Prevent document titles from being squeezed on laptop widths.
   ============================================================ */
.document-item,
.document-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.document-item p,
.document-download p {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  line-height: 1.4;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

.document-item b,
.document-download b {
  flex: 0 0 auto;
  width: 24px;
  text-align: right;
}

/* Give the document list more horizontal room on ordinary laptops. */
@media (min-width: 1181px) {
  .documents-grid {
    grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
    gap: 56px;
  }
}

/* Switch to one column before the document titles become cramped. */
@media (max-width: 1180px) {
  .documents-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 680px) {
  .document-item,
  .document-download {
    gap: 12px;
  }
  .document-item p,
  .document-download p {
    font-size: 16px;
    line-height: 1.4;
  }
  .document-item b,
  .document-download b {
    width: 18px;
  }
}

/* ============================================================
   Documents responsive polish — v24
   Stable layout on desktop, laptop and mobile.
   ============================================================ */
#documents .documents-grid {
  align-items: start;
}

#documents .document-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.18);
  min-width: 0;
}

#documents .document-item,
#documents .document-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 72px;
  margin: 0;
  padding: 15px 4px;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: transparent;
  border-radius: 0;
}

#documents .document-item p,
#documents .document-download p {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

#documents .document-item b,
#documents .document-download b {
  width: 22px;
  margin: 0;
  text-align: right;
  color: #95d1ca;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 1180px) {
  #documents .documents-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 680px) {
  #documents.section {
    padding-top: 68px;
    padding-bottom: 68px;
  }
  #documents .documents-grid {
    gap: 28px;
  }
  #documents .documents-intro {
    margin-top: 18px;
    font-size: 16px;
  }
  #documents .license-card {
    margin-top: 24px;
    padding: 18px;
  }
  #documents .license-card strong {
    font-size: 20px;
  }
  #documents .license-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }
  #documents .license-thumb {
    min-width: 0;
  }
  #documents .license-thumb:last-child {
    grid-column: 1 / -1;
  }
  #documents .license-thumb img {
    aspect-ratio: 4 / 5;
    max-height: 210px;
    object-fit: cover;
    object-position: top center;
  }
  #documents .document-list {
    gap: 10px;
    border-top: 0;
  }
  #documents .document-item,
  #documents .document-download {
    min-height: 0;
    padding: 16px 16px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
  }
  #documents .document-item p,
  #documents .document-download p {
    font-size: 15.5px;
    line-height: 1.38;
  }
  #documents .document-item b,
  #documents .document-download b {
    width: 18px;
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  #documents .license-gallery {
    grid-template-columns: 1fr;
  }
  #documents .license-thumb:last-child {
    grid-column: auto;
  }
  #documents .license-thumb img {
    max-height: 240px;
  }
}
