@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/assets/fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/assets/fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --font-sans: 'Inter Variable', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ink: #0f172a;
  --muted: #42526b;
  --soft: #6b7280;
  --blue: #0066cc;
  --blue-hover: #0071e3;
  --surface: #ffffff;
  --surface-alt: #f5f5f7;
  --line: #dfe3ea;
  --line-strong: #c8d0dc;
  --nav-bg: rgba(255, 255, 255, 0.86);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
}

body.is-locked {
  overflow: hidden;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

a:hover {
  color: var(--blue-hover);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
.button {
  min-height: 44px;
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(0, 102, 204, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: max(10px, env(safe-area-inset-top)) var(--pad) 10px;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(223, 227, 234, 0.72);
}

@supports (backdrop-filter: blur(20px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: saturate(1.15) blur(20px);
  }
}

.nav-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
}

.site-nav a,
.mobile-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a[aria-current='page'],
.mobile-nav a:hover,
.mobile-nav a[aria-current='page'] {
  color: var(--blue);
}

.nav-branches-menu {
  position: relative;
}

.nav-branches-menu summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.nav-branches-menu summary::-webkit-details-marker {
  display: none;
}

.nav-branches-menu summary::after {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.nav-branches-menu[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.nav-branches-menu summary:hover,
.nav-branches-menu[open] summary,
.nav-branches-menu.is-current summary {
  color: var(--blue);
}

.nav-branches-menu:not([open]) > .nav-branches-panel {
  display: none;
}

.nav-branches-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 50%;
  width: 220px;
  display: grid;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  transform: translateX(-50%);
}

.site-nav .nav-branches-panel a {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
}

.site-nav .nav-branches-panel a:hover,
.site-nav .nav-branches-panel a[aria-current='page'] {
  background: var(--surface-alt);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 0 16px;
  cursor: pointer;
}

.mobile-nav {
  width: min(100%, var(--max));
  margin: 10px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.mobile-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

main {
  background: var(--surface);
}

.hero,
.page-hero,
.section,
.doctor-profile {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.hero {
  padding-top: clamp(38px, 7vw, 88px);
  padding-bottom: clamp(42px, 7vw, 96px);
}

.hero-copy {
  max-width: 940px;
  margin-inline: auto;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
p,
li,
dd,
dt,
a,
button,
small,
strong,
span {
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.125rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 650;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 620;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 620;
}

h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 620;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 620;
}

p,
li,
dd,
dt {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.65;
}

.hero-copy p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.inline-actions,
.dialog-actions,
.branch-call-actions,
.branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  justify-content: center;
}

.branch-call-actions {
  gap: 10px;
}

.branch-actions {
  gap: 10px;
}

.button,
.inline-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.inline-actions button:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
  color: #fff;
}

.button-secondary {
  color: var(--blue);
}

.hero-photo {
  margin: clamp(22px, 4vw, 52px) 0 0;
}

.hero-photo img,
.visit-layout img,
.gallery-grid img,
.doctor-profile-media img,
.doctor-card img {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1240 / 744;
  object-fit: cover;
}

.section {
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading > p:first-child {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 620;
}

.section-heading > p:last-child {
  margin-bottom: 0;
}

.plain-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: clip;
  background: var(--line);
}

.plain-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plain-grid article {
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.service-list,
.doctor-grid,
.compact-list,
.step-list,
.gallery-grid,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px) 0;
  border-bottom: 1px solid var(--line);
}

.service-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: clamp(14px, 3vw, 28px);
  color: var(--ink);
  text-decoration: none;
}

.service-main > span {
  min-width: 0;
}

.row-number {
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.service-main strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.24rem, 2.5vw, 1.65rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  font-weight: 620;
}

.service-main small {
  display: block;
  max-width: 780px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 28px);
}

.doctor-card {
  min-width: 0;
}

.doctor-photo-link {
  display: block;
}

.doctor-card img {
  width: 100%;
  aspect-ratio: 520 / 640;
  object-fit: cover;
}

.doctor-copy {
  padding-top: 16px;
}

.doctor-copy h3 a {
  color: var(--ink);
  text-decoration: none;
}

.doctor-copy p,
.doctor-role {
  color: var(--muted);
  text-transform: none;
}

.inline-actions {
  margin-top: 14px;
  gap: 10px 16px;
}

.inline-actions a,
.inline-actions button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.visit-layout,
.detail-layout,
.contact-grid,
.doctor-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.visit-layout img {
  width: 100%;
  aspect-ratio: 1600 / 1108;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.step-list {
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.step-list strong,
.step-list span {
  display: block;
  grid-column: 2;
}

.step-list strong {
  color: var(--ink);
  font-weight: 620;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 620;
  letter-spacing: -0.015em;
}

.faq-list p {
  max-width: 780px;
  padding-bottom: 18px;
}

.contact-section {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: clip;
}

.contact-panel {
  min-width: 0;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.contact-panel a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.branch-card-main {
  margin-bottom: 22px;
}

.branch-card-main h3 {
  margin-bottom: 6px;
}

.branch-card-main .branch-address {
  margin: 0;
  color: var(--muted);
}

.branch-card-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  margin-bottom: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.branch-actions a {
  margin-top: 0;
}

.branch-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 4px;
  font-weight: 570;
}

.branch-contact-card .branch-actions {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.branch-contact-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.branch-detail .step-list {
  margin-top: 18px;
}

.side-actions {
  display: grid;
  margin-top: 18px;
}

.schedule-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.schedule-list div {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(64px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid #d6e6f6;
  border-radius: 12px;
  background: #f4f9fe;
}

.schedule-list dt,
.schedule-list dd {
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.schedule-list dd {
  color: var(--blue);
  font-size: 1.04rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.schedule-list dt,
.schedule-list .is-closed dd {
  color: var(--muted);
}

.schedule-list .is-closed dd {
  font-weight: 520;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #f7fbff;
}

.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: clamp(36px, 5vw, 56px) var(--pad) calc(clamp(24px, 4vw, 38px) + env(safe-area-inset-bottom));
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.footer-about {
  display: grid;
  justify-items: start;
  align-content: start;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-brand img {
  width: auto;
  height: 58px;
  display: block;
}

.footer-about p {
  max-width: 260px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-instagram {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 570;
}

.footer-branch {
  display: grid;
  align-content: start;
  margin: 0;
  padding-left: clamp(20px, 3vw, 38px);
  border-left: 1px solid var(--line-strong);
  font-style: normal;
}

.footer-branch-title {
  color: var(--ink);
  font-size: 1.14rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-branch-address {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-branch > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-branch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 4px;
}

.footer-branch-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 570;
}

.footer-branch-actions a:first-child {
  color: var(--ink);
  font-size: 1.03rem;
  font-weight: 650;
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  margin-top: clamp(24px, 4vw, 38px);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.footer-bottom p {
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
}

.footer-bottom p:last-child {
  justify-self: end;
  text-align: right;
}

.branch-hero {
  text-align: left;
}

.branch-hero h1 {
  max-width: 900px;
}

.branch-hero > p,
.branch-hero .hero-actions {
  margin-left: 0;
  margin-right: 0;
}

.branch-hero .hero-actions {
  justify-content: flex-start;
}

.branch-hero .eyebrow {
  margin-bottom: 10px;
}

.branch-hero .branch-hero-address {
  max-width: none;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.24rem);
  font-weight: 570;
}

.branch-hero .branch-hero-summary {
  max-width: 760px;
  margin-bottom: 28px;
}

.branch-announcement-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.branch-announcement-copy {
  max-width: 780px;
}

.branch-announcement-section h2 {
  margin-bottom: 12px;
}

.branch-announcement-section p:last-child {
  margin-bottom: 0;
}

.branch-announcement-audience {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  font-weight: 620;
}

.branch-announcement-actions {
  flex: 0 0 auto;
}

.branch-section-heading {
  max-width: none;
}

.branch-section-heading h2 {
  margin-bottom: 0;
}

.branch-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.branch-fact-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}

.branch-fact-card h3 {
  margin-bottom: 20px;
}

.branch-fact-card address,
.branch-route-card address {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  font-style: normal;
  line-height: 1.55;
}

.branch-fact-card > p {
  margin-bottom: 0;
}

.branch-hours-card .schedule-list {
  margin-top: 0;
}

.branch-amenity-group + .branch-amenity-group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.branch-amenity-group h4 {
  margin-bottom: 4px;
}

.branch-amenity-group .compact-list li {
  padding: 7px 0;
}

.branch-visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.branch-doctor-booking {
  max-width: 760px;
}

.branch-doctor-booking h2,
.branch-route-card h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
}

.branch-doctor-lead {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.branch-doctor-actions {
  margin-top: 24px;
}

.branch-route-card {
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.branch-route-card address {
  margin-bottom: 18px;
}

.branch-nearby-list {
  margin: 0 0 18px;
  padding-left: 22px;
}

.branch-nearby-list li {
  margin-bottom: 8px;
}

.branch-route-card > p:not(.eyebrow) {
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.branch-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  list-style: none;
}

.branch-step-grid li {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
}

.branch-step-grid span,
.branch-step-grid strong {
  display: block;
}

.branch-step-grid span {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 620;
}

.branch-step-grid strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.35;
}

.branch-step-grid p {
  margin: 10px 0 0;
  font-size: 1rem;
}

.branch-before-actions {
  margin-top: 22px;
}

.branch-other-card {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.branch-other-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
}

.branch-other-card p:last-child {
  margin-bottom: 0;
}

.branch-other-actions {
  flex: 0 0 auto;
}

.branch-map-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.branch-map-heading h2 {
  margin-bottom: 8px;
}

.branch-map-heading p:last-child {
  margin-bottom: 0;
}

.branch-map-heading .button {
  flex: 0 0 auto;
}

.branch-map-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.branch-map-frame {
  width: 100%;
  min-height: 500px;
  display: block;
  border: 0;
}

.page-hero {
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(48px, 7vw, 82px);
}

.page-hero.narrow {
  max-width: 960px;
  text-align: center;
}

.back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 22px;
  text-decoration: none;
}

.detail-copy {
  min-width: 0;
}

.detail-copy h2 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.detail-copy h2:first-child {
  margin-top: 0;
}

.detail-copy li {
  margin-bottom: 10px;
}

.note,
.fineprint,
.noscript-contact {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
  color: var(--muted);
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-alt);
}

.compact-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.compact-list li:last-child {
  border-bottom: 0;
}

.compact-list a,
.compact-list span {
  display: block;
}

.compact-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.side-panel .button {
  width: 100%;
  margin-top: 18px;
}

.doctor-profile {
  padding-top: clamp(50px, 8vw, 90px);
  padding-bottom: clamp(50px, 8vw, 90px);
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: center;
}

.doctor-profile-media img {
  width: 100%;
  aspect-ratio: 520 / 640;
  object-fit: cover;
}

.doctor-profile-copy .hero-actions {
  justify-content: flex-start;
}

.booking-dialog {
  width: min(94vw, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--ink);
}

.booking-dialog::backdrop {
  background: rgba(15, 23, 42, 0.38);
}

.dialog-panel {
  position: relative;
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.4rem;
}

.dialog-actions {
  margin-top: 18px;
}

.booking-branch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.booking-branch {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-alt);
}

.booking-branch h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.booking-branch p {
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

.dialog-actions .button {
  flex: 1 1 190px;
}

.booking-selected {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 620;
}

.noscript-contact {
  width: min(calc(100% - (var(--pad) * 2)), var(--max));
  margin: 16px auto;
  overflow-wrap: anywhere;
}

.noscript-contact span {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.not-found {
  min-height: 55vh;
  display: grid;
  align-content: center;
}

@media (max-width: 980px) {
  .site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
  }

  .mobile-nav .nav-branches-menu {
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav .nav-branches-menu summary {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-nav .nav-branches-panel {
    position: static;
    width: auto;
    margin: 0 0 8px 10px;
    padding: 0 0 0 14px;
    border: 0;
    border-left: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    transform: none;
  }

  .mobile-nav .nav-branches-panel a {
    padding-inline: 0;
    font-size: 0.94rem;
  }

  .plain-grid.three,
  .doctor-grid,
  .gallery-grid,
  .visit-layout,
  .detail-layout,
  .contact-grid,
  .doctor-profile,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-branch-list {
    grid-template-columns: 1fr;
  }

  .branch-card-columns {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .branch-map-heading {
    align-items: start;
  }

  .branch-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .branch-fact-card:last-child {
    grid-column: 1 / -1;
  }

  .branch-visit-grid {
    grid-template-columns: 1fr;
  }

  .branch-doctor-booking {
    max-width: none;
  }

  .branch-other-card {
    align-items: flex-start;
  }

  .branch-announcement-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-branch {
    padding: 20px 0 0;
    border-top: 1px solid var(--line-strong);
    border-left: 0;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-bottom p:last-child {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 18px;
  }

  .brand-logo {
    height: 48px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-photo {
    margin-top: 20px;
  }

  .hero-actions .button,
  .branch-actions .button,
  .branch-call-actions,
  .branch-call-actions .button,
  .service-row .button,
  .dialog-actions .button {
    width: 100%;
  }

  .hero-photo img,
  .visit-layout img,
  .gallery-grid img,
  .doctor-profile-media img,
  .doctor-card img {
    border-radius: var(--radius-md);
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .service-main {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel {
    padding: 22px;
  }

  .branch-map-heading {
    display: grid;
  }

  .branch-map-heading .button {
    width: 100%;
  }

  .branch-facts-grid,
  .branch-step-grid {
    grid-template-columns: 1fr;
  }

  .branch-fact-card:last-child {
    grid-column: auto;
  }

  .branch-other-card {
    display: grid;
  }

  .branch-other-actions {
    width: 100%;
  }

  .branch-announcement-actions,
  .branch-announcement-actions .button {
    width: 100%;
  }

  .branch-map-frame {
    height: 420px;
    min-height: 420px;
  }

  .footer-brand img {
    height: 52px;
  }

  .footer-inner {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
