:root {
  color-scheme: light;
  --ink: #10231f;
  --muted: #66736f;
  --green: #103f36;
  --green-2: #1f6656;
  --mint: #dcebe5;
  --paper: #f6f7f2;
  --white: #ffffff;
  --line: rgba(16, 63, 54, 0.13);
  --shadow: 0 18px 55px rgba(17, 50, 43, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(184, 218, 204, 0.45), transparent 30rem),
    var(--paper);
  font-size: 16px;
  line-height: 1.5;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
svg { width: 1.2rem; fill: currentColor; }

.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 242, 0.88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-copy { display: grid; gap: 1px; line-height: 1; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: white;
  background: var(--green);
  font-family: Georgia, serif;
  font-weight: 700;
}
.brand-name { font-family: Georgia, serif; font-size: 1.02rem; letter-spacing: 0.1em; }
.brand-subtitle { color: var(--green); font-size: .48rem; font-weight: 650; letter-spacing: .19em; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.language-picker { position: relative; }
.language-picker select { min-height: 40px; padding: 0 32px 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); background: white; font: inherit; font-size: .78rem; font-weight: 850; cursor: pointer; }
.location-button, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.location-button { gap: 7px; padding: 0 14px; cursor: pointer; }
.icon-button { width: 42px; }

main { width: min(1160px, 100%); margin: 0 auto; }
.intro { padding: clamp(38px, 7vw, 86px) 5vw 44px; }
.eyebrow, .section-kicker {
  margin: 0 0 9px;
  color: var(--green-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.06; }
h1 { max-width: 780px; margin: 0; font-size: clamp(2.55rem, 7vw, 5.7rem); letter-spacing: -0.045em; }
.intro-copy { max-width: 600px; margin: 18px 0 26px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.16rem); }
.city-switch { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.city-chip {
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: white;
  font-weight: 750;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}
.city-chip:hover { transform: translateY(-2px); }
.city-chip.is-active { color: white; border-color: var(--green); background: var(--green); }

.branch-panel {
  max-width: 880px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading.compact { align-items: center; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: clamp(1.75rem, 4vw, 3rem); letter-spacing: -0.025em; }
.section-heading.compact h2 { font-family: inherit; font-size: 1.05rem; font-weight: 800; letter-spacing: 0; }
.section-heading a { color: var(--green-2); font-size: 0.9rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.branch-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.branch-card {
  position: relative;
  min-height: 158px;
  border: 1px solid transparent;
  border-radius: 17px;
  color: var(--ink);
  background: #f4f7f4;
  overflow: hidden;
}
.branch-select { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 16px 16px 12px; color: inherit; background: transparent; text-align: left; }
.branch-copy { display: grid; gap: 4px; }
.branch-card strong { font-size: 0.97rem; }
.branch-address { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; width: fit-content; max-width: 100%; color: inherit; text-decoration: none; }
.branch-address strong { min-width: 0; }
.branch-map-hint { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 999px; color: var(--green); background: rgba(16,63,54,.09); font-size: .6rem; font-weight: 900; letter-spacing: .02em; }
.branch-map-hint svg { width: 11px; height: 11px; fill: currentColor; stroke: none; }
.branch-card small { color: var(--muted); font-size: 0.78rem; }
.branch-rating { display: flex; align-items: center; gap: 8px; margin-top: 3px; color: var(--muted); font-size: 0.72rem; }
.branch-rating b { color: #9a6712; font-size: 0.76rem; }
.branch-card svg { flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.branch-hours { display: flex; align-items: center; gap: 8px; padding: 0 16px 11px; color: var(--muted); font-size: 0.7rem; }
.branch-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 800; }
.branch-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9a6a64; }
.branch-status.is-open::before { background: #2f9e63; box-shadow: 0 0 0 4px rgba(47,158,99,0.1); }
.branch-actions { display: flex; gap: 8px; padding: 0 16px 14px; }
.branch-actions a { min-width: 0; color: var(--green); font-size: 0.69rem; font-weight: 850; text-decoration: none; }
.contact-action { display: flex; color: var(--green); align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 1px solid rgba(16,63,54,0.14); border-radius: 999px; background: white; white-space: nowrap; }
.contact-action img, .contact-action svg { flex: 0 0 auto; width: 16px; height: 16px; }
/* Кнопки с подписью: иконка без текста читалась хуже, а 40 px мало для пальца. */
.contact-action--phone, .contact-action--whatsapp { flex: 1 1 0; min-height: 44px; padding: 0 14px; font-size: .8rem; }
.contact-action--phone img { filter: invert(20%) sepia(27%) saturate(1129%) hue-rotate(116deg) brightness(91%) contrast(94%); }
.contact-action--whatsapp { color: white !important; border-color: #25a865; background: #25a865; }
.contact-action--whatsapp img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.branch-card--kids { background: #edf6f8; }
.branch-card--mammo { background: #fbf0f1; }
.branch-card--featured { outline: 2px solid var(--green); outline-offset: -2px; }
.branch-card--kids .branch-select, .branch-card--mammo .branch-select { min-height: 108px; padding-right: 116px; }
.kids-illustration { position: absolute; top: 5px; right: 8px; width: 108px; height: 92px; object-fit: contain; pointer-events: none; }
.mammo-icon { position: absolute; top: 20px; right: 22px; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 24px; color: #a14f5b; background: #f1cfd3; pointer-events: none; }
.mammo-icon svg { width: 42px; height: 42px; fill: rgba(255,255,255,0.7); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  margin-top: 20px;
  padding: 0 26px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: var(--green);
  box-shadow: 0 13px 30px rgba(16,63,54,0.2);
  font-weight: 800;
  cursor: pointer;
}
.primary-action svg { fill: none; stroke: currentColor; stroke-width: 2; }
.prototype-note, .conditions { color: var(--muted); font-size: 0.78rem; }
.prototype-note { margin: 11px 0 0; }

.promotions, .services { padding: 54px 5vw; }
.promotions { border-radius: 40px; background: var(--green); color: white; overflow: hidden; }
.promotions .section-kicker, .promotions .section-heading a { color: #bfe2d5; }
.promo-scroll { display: grid; grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 14px; }
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
  border-radius: 26px;
  color: var(--ink);
  overflow: hidden;
}
.promo-card::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 190px; height: 190px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.12; }
.promo-card--rose { background: #f0c8c2; }
.promo-card--blue { background: #cbdde4; }
.promo-card--sand { background: #eadfbf; }
.promo-topline { display: flex; justify-content: space-between; color: rgba(16,35,31,0.68); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.promo-symbol { margin: 34px 0 12px; font-family: Georgia, serif; font-size: 2.4rem; line-height: 1; }
.promo-card h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.promo-card p { max-width: 300px; margin: 0 0 20px; color: rgba(16,35,31,0.72); font-size: 0.9rem; }
.promo-card button { align-self: flex-start; margin-top: auto; padding: 10px 14px; border: 1px solid rgba(16,35,31,0.18); border-radius: 999px; background: rgba(255,255,255,0.55); color: var(--ink); font-weight: 750; cursor: pointer; }
.promo-price { margin-top: -10px; font-size: 1.35rem; font-weight: 850; }
.conditions { color: rgba(255,255,255,0.62); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-grid article {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 13px;
  min-height: 105px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  color: var(--ink);
  text-align: left;
}
.service-grid article { cursor: default; }
.service-icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--green); background: var(--mint); font-family: Georgia, serif; font-size: 1.25rem; }
.service-grid article > span:not(.service-icon) { min-width: 0; align-self: end; font-weight: 800; line-height: 1.18; overflow-wrap: anywhere; }
.service-grid small { color: var(--muted); }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service-icon--rose { color: #9a4f5b; background: #f3d9dc; }
.service-icon--blue { color: #176078; background: #dcecf2; }
.external-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.external-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--green);
  background: white;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
}
.external-action svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.external-action--primary { color: white; border-color: var(--green); background: var(--green); }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 5vw 70px; border: 1px solid var(--line); border-radius: 24px; background: white; }
.trust-strip div { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 24px; }
.trust-strip div + div { border-left: 1px solid var(--line); }
.trust-strip strong { color: var(--green); font-family: Georgia, serif; font-size: 1.8rem; }
.trust-strip span { color: var(--muted); font-size: 0.82rem; }

footer { padding: 36px 5vw 110px; color: rgba(255,255,255,0.74); background: #0c2f29; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: white; font-family: Georgia, serif; }
footer p { max-width: 600px; font-size: 0.85rem; }
footer a { color: white; font-size: 0.85rem; }

.mobile-tabbar { display: none; }
/* Высота нижнего таббара на мобиле: 58px кнопка + 2×6px отступа + рамка + safe-area. */
:root { --tabbar-h: calc(71px + env(safe-area-inset-bottom)); }

.booking-dialog {
  width: min(600px, 100%);
  max-width: none;
  max-height: min(880px, 94dvh);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,0.28);
  overflow: hidden;
}
.booking-dialog::backdrop { background: rgba(4, 20, 17, 0.62); backdrop-filter: blur(8px); }
.dialog-shell { display: flex; flex-direction: column; max-height: min(880px, 94dvh); }
.dialog-header { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 12px; padding: 20px 20px 14px; }
.dialog-header p { margin: 0; color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.dialog-header h2 { margin: 2px 0 0; font-family: inherit; font-size: 1.25rem; font-weight: 850; letter-spacing: 0; }
.dialog-back, .dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; }
.dialog-back svg { fill: none; stroke: currentColor; stroke-width: 2; }
.dialog-close { font-size: 1.8rem; font-weight: 300; }
.progress-track { height: 3px; background: #e8eeeb; }
.progress-track span { display: block; width: 33%; height: 100%; background: var(--green); transition: width 220ms ease; }
.dialog-content { min-height: 360px; padding: 22px; overflow-y: auto; }
.dialog-footer { display: flex; gap: 10px; padding: 16px 22px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: white; }
.dialog-footer button { flex: 1; min-height: 54px; border-radius: 16px; font-weight: 800; cursor: pointer; }
.dialog-footer .continue { border: 0; color: white; background: var(--green); }
.dialog-footer .secondary { border: 1px solid var(--line); color: var(--green); background: white; }
.choice-list { display: grid; gap: 10px; }
.choice-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.choice-card.is-selected { border-color: var(--green); background: #eef6f2; }
.choice-symbol, .doctor-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; color: var(--green); background: var(--mint); font-family: Georgia, serif; font-weight: 700; }
.choice-copy strong, .choice-copy span { display: block; }
.choice-copy span { margin-top: 3px; color: var(--muted); font-size: 0.8rem; }
.choice-check { color: var(--green); font-weight: 900; }
.summary-card { padding: 18px; border-radius: 20px; background: #eef6f2; }
.summary-card p { margin: 0 0 7px; color: var(--muted); font-size: 0.8rem; }
.summary-card strong { display: block; margin-bottom: 12px; }
.demo-success { display: grid; place-items: center; min-height: 340px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 18px; border-radius: 50%; color: white; background: var(--green); font-size: 2rem; }
.demo-success h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.demo-success p { max-width: 390px; margin: 0; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); padding: 12px 16px; border-radius: 999px; color: white; background: #10231f; box-shadow: var(--shadow); font-size: 0.84rem; transition: transform 220ms ease; }
.toast.is-visible { transform: translate(-50%, 0); }

@media (max-width: 760px) {
  body { padding-bottom: 0; }
  .topbar { height: 62px; padding: 0 16px; }
  .brand { gap: 7px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 0.86rem; }
  .brand-subtitle { font-size: .39rem; letter-spacing: .16em; }
  .location-button { padding: 0 12px; }
  .intro { padding: 18px 16px 26px; }
  .intro .eyebrow { margin-bottom: 6px; font-size: .68rem; }
  h1 { font-size: clamp(2rem, 10.2vw, 3rem); line-height: .98; }
  .intro-copy { margin: 12px 0 17px; font-size: .94rem; line-height: 1.42; }
  .city-switch { gap: 7px; margin-bottom: 16px; }
  .city-chip { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 0 10px; font-size: .91rem; }
  .branch-panel { padding: 15px; border-radius: 24px; }
  .branch-list { grid-template-columns: 1fr; }
  .primary-action { width: 100%; }
  .promotions, .services { padding: 42px 16px; }
  .promotions { border-radius: 30px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 2rem; }
  .promo-scroll { grid-template-columns: repeat(3, 82vw); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-right: 14px; }
  .promo-scroll::-webkit-scrollbar { display: none; }
  .promo-card { scroll-snap-align: start; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid article { grid-template-columns: 40px minmax(0, 1fr); min-width: 0; min-height: 108px; padding: 12px; gap: 3px 10px; }
  .service-icon { width: 40px; height: 40px; border-radius: 13px; }
  .service-icon svg { width: 24px; height: 24px; }
  .service-grid article > span:not(.service-icon) { align-self: center; font-size: .88rem; }
  .service-grid small { grid-column: 1 / -1; min-width: 0; margin-top: 5px; font-size: .76rem; line-height: 1.3; overflow-wrap: anywhere; }
  .external-actions { grid-template-columns: 1fr 1fr; }
  .external-action { min-height: 48px; }
  .trust-strip { margin: 0 16px 46px; grid-template-columns: 1fr; }
  .trust-strip div { justify-content: flex-start; padding: 16px 20px; }
  .trust-strip div + div { border-top: 1px solid var(--line); border-left: 0; }
  .mobile-tabbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 -6px 24px rgba(16,63,54,.06); backdrop-filter: blur(18px); }
  .mobile-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; color: var(--muted); font-size: clamp(.61rem,2.6vw,.72rem); font-weight: 700; line-height: 1.1; text-align: center; text-decoration: none; white-space: nowrap; }
  .mobile-tabbar a[aria-current="page"] { color: var(--green); }
  .mobile-tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  #branches { scroll-margin-top: 76px; }
  .booking-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .dialog-shell { max-height: 92dvh; }
  .dialog-content { min-height: 320px; padding: 18px 16px; }
  .dialog-header { padding: 16px 16px 12px; }
  .dialog-footer { padding: 14px 16px max(16px, env(safe-area-inset-bottom)); }
}

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

/* Отметка «сдать анализы» в карточке филиала: тот же голубой, что у блока DARMED Lab. */
.branch-lab { display: inline-flex; justify-self: start; align-items: center; gap: 5px; margin-top: 2px; padding: 3px 9px 3px 7px; border-radius: 999px; color: #1d5a73; background: #dcecf2; font-size: .68rem; font-weight: 850; white-space: nowrap; }
.branch-lab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

/* Самозапись — главное действие страницы, поэтому стоит первым, над выбором города. */
.booking-cta { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 18px; border-radius: var(--radius-md); color: white; background: var(--green); box-shadow: var(--shadow); text-decoration: none; }
.booking-cta:active { transform: scale(.99); }
.booking-cta-icon { display: grid; flex: 0 0 auto; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.14); }
.booking-cta-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.booking-cta-copy { display: grid; flex: 1; gap: 3px; min-width: 0; }
.booking-cta-copy strong { font-size: 1.08rem; font-weight: 850; }
.booking-cta-copy small { color: rgba(255,255,255,.78); font-size: .8rem; }
.booking-cta-arrow { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Подвал с юрлицом и страница публичного договора */
.legal-footer { padding: 28px 16px 40px; color: var(--muted); font-size: 0.8rem; text-align: center; background: none; }
@media (max-width: 760px) { .site-shell > .legal-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); } }
.legal-footer p { margin: 0 auto 8px; max-width: 560px; font-size: 0.8rem; }
.legal-footer a { color: var(--green); font-size: 0.85rem; font-weight: 600; }


/* Direct booking per branch; city entry points share an accessible native dialog. */
.branch-booking { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 16px 10px; padding: 8px 14px; border: 1px solid var(--green); border-radius: 14px; color: white; background: var(--green); font-size: .8rem; font-weight: 800; text-decoration: none; }
.branch-booking-dialog { width: min(480px, calc(100% - 32px)); max-height: 85dvh; margin: auto; padding: 20px; border: 0; border-radius: 24px; color: var(--ink); background: white; box-shadow: var(--shadow); overflow-y: auto; }
.branch-booking-dialog::backdrop { background: rgba(4,20,17,.62); }
body:has(.branch-booking-dialog[open]) { overflow: hidden; }
.branch-booking-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.branch-booking-header p { margin: 0 0 3px; color: var(--muted); font-size: .85rem; }
.branch-booking-header h2 { margin: 0; font-family: inherit; font-size: 1.3rem; font-weight: 800; }
.branch-booking-header button { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; color: var(--green); background: white; font-size: 1.7rem; cursor: pointer; }
.booking-branch-list { display: grid; gap: 10px; }
.booking-branch-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #f4f7f4; color: var(--green); text-decoration: none; }
.booking-branch-choice:hover { border-color: var(--green); }
.booking-branch-choice strong, .booking-branch-choice small { display: block; }
.booking-branch-choice small { margin-top: 3px; color: var(--muted); }
.branch-page-link { display: inline-block; margin-top: 6px; color: var(--green); font-size: .82rem; font-weight: 700; }

/* Текст главной для поиска и тех, кто листает ниже карточек (собирает tools/build_home.py). */
.home-about { padding: 8px 5vw 40px; color: var(--ink); font-size: .9rem; line-height: 1.5; }
.home-about h2 { margin: 0 0 10px; font-size: 1.05rem; font-weight: 800; }
.home-about h3 { margin: 22px 0 8px; font-size: .95rem; font-weight: 800; }
.home-about p { margin: 0 0 10px; color: var(--muted); }
.home-about ul { display: grid; gap: 10px; margin: 0 0 10px; padding: 0; list-style: none; }
.home-about li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--muted); font-size: .82rem; }
.home-about li strong { color: var(--ink); }
.home-about a { color: var(--green-2); }
.home-about-cta { margin-top: 18px; font-weight: 800; }

/* «Обновлено: ДД.ММ.ГГГГ» внизу индексируемых страниц (tools/page_dates.py). */
.page-updated { margin: 18px 0 0; color: var(--muted); font-size: 0.78rem; }
