:root {
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #122c4b;
  --muted: #52677e;
  --blue: #145ac4;
  --blue-hover: #0d459c;
  --pale-blue: #eef5fc;
  --line: #d6e1ee;
  --sans: 'Manrope', Arial, sans-serif;
  --header-height: 100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; object-fit: cover; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--sans); font-weight: 700; }
h1, h2 { letter-spacing: -.045em; line-height: 1.16; }
em { font-style: normal; }
h1 em, h2 em { color: var(--blue); font-weight: inherit; }
h2 { font-size: clamp(36px, 3.4vw, 48px); }
.container { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.section-space { padding-block: 96px; }
.eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: 1.6px; font-weight: 800; color: var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 58px; padding: 17px 24px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: var(--white); font-size: 16px; font-weight: 700; line-height: 1.5; transition: background .2s, border-color .2s; }
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.button-small { min-height: 48px; padding: 12px 18px; gap: 18px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--blue); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link .icon { width: 19px; height: 19px; }
:focus-visible { outline: 3px solid #6aa6f2; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 12px 24px; background: var(--ink); color: white; z-index: 100; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--blue); flex-shrink: 0; }

/* Header */
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 30; background: #fffffffa; border-bottom: 1px solid var(--line); }
.site-header.is-scrolled { box-shadow: 0 4px 16px #13335c08; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-copy { font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.7px; }
.brand-copy > span { display: block; margin-top: 7px; font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1.9px; }
.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.desktop-nav a { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.desktop-nav a:hover { color: var(--blue); }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; white-space: nowrap; }
.header-phone .icon { width: 18px; height: 18px; color: var(--blue); }
.header-phone-label { display: none; }
.menu-toggle { display: none; }
.menu-cross { display: none; }
.mobile-menu { display: none; }
.mobile-menu[hidden] { display: none; }

/* First screen */
.hero { padding-top: 46px; padding-bottom: 72px; background: linear-gradient(180deg, #f6faff 0, #fff 85%); }
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: 56px; align-items: center; }
.hero-copy { padding-block: 24px 35px; min-width: 0; }
.location-label { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.doctor-intro { font-size: 16px; line-height: 1.65; font-weight: 600; color: var(--muted); margin: 22px 0 0; max-width: 470px; }
.doctor-category { display: block; margin-top: 6px; color: var(--blue); font-weight: 700; }
.doctor-experience { white-space: nowrap; }
.doctor-experience::before { content: '·'; margin-inline: 5px 8px; }
h1 { font-size: clamp(48px, 4.2vw, 60px); line-height: 1.15; }
h1 em { white-space: nowrap; }
.hero-description { margin-top: 28px; font-size: 18px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 32px; }
.hero-actions .button { font-size: 15px; padding-inline: 21px; gap: 20px; }
.hero-actions .text-link { font-size: 14px; }
.hero-address { display: inline-flex; align-items: flex-start; gap: 12px; margin-top: 32px; font-size: 14px; color: var(--ink); line-height: 1.7; }
.hero-address > .icon { width: 21px; height: 21px; color: var(--blue); margin-top: 3px; }
.hero-address > span > span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.hero-address:hover { color: var(--blue); }
.hero-visual { position: relative; align-self: stretch; min-height: 610px; margin-bottom: 0; }
.hero-image-wrap { height: 100%; min-height: 610px; overflow: hidden; background: #e5effa; border-radius: 3px; }
.hero-image { height: 100%; position: absolute; inset: 0; border-radius: 3px; object-position: 50% 55%; }
.hero-image.doctor-portrait { object-position: 50% 12%; }

/* Contacts */
.appointment { padding-block: 0 88px; }
.appointment-shell { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 58px; background: #123b72; border: 1px solid #123b72; border-radius: 3px; color: white; position: relative; overflow: hidden; }
.appointment-copy { min-width: 0; padding-top: 9px; }
.appointment-copy .eyebrow { color: #bbd8ff; }
.appointment h2 { margin-top: 23px; font-size: clamp(44px, 4vw, 58px); }
.appointment h2 em { color: #a9d0ff; }
.appointment-description { margin-top: 25px; font-size: 17px; line-height: 1.8; color: #d4e5fc; }
.contact-phone { display: inline-flex; align-items: center; gap: 22px; margin-top: 34px; font-size: 28px; line-height: 1.4; font-weight: 700; letter-spacing: -.8px; }
.contact-phone .icon { width: 22px; height: 22px; color: #a9d0ff; }
.contact-phone:hover { color: #b9daff; }
.appointment-address { display: flex; align-items: flex-start; gap: 15px; margin-top: 34px; }
.contact-icon { display: grid; place-items: center; width: 38px; height: 41px; border: 1px solid #5d80af; border-radius: 2px; color: #b7d6fc; flex-shrink: 0; }
.contact-icon .icon { width: 20px; height: 20px; }
.appointment-address p { font-size: 17px; font-weight: 700; }
.appointment-address address { font-size: 15px; line-height: 1.8; color: #d4e5fc; font-style: normal; margin-top: 5px; }
.map-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 14px; color: #c5dfff; font-weight: 600; }
.map-link .icon { width: 17px; height: 17px; }
.map-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.messenger-card { min-width: 0; padding: 32px; align-self: center; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); }
.messenger-card h3 { font-size: 26px; line-height: 1.4; letter-spacing: -.7px; }
.messenger-card > p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.messenger-links { display: grid; gap: 12px; margin-top: 26px; }
.messenger-link { display: flex; align-items: center; gap: 15px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--pale-blue); color: var(--blue); font-size: 17px; font-weight: 700; transition: background .2s, border-color .2s; }
.messenger-link:hover { background: #e1edfc; border-color: var(--blue); }
.messenger-link > .icon { margin-left: auto; width: 19px; height: 19px; }
.messenger-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; }
.messenger-icon .icon { width: 25px; height: 25px; }

/* Footer */
.site-footer { padding-bottom: 28px; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 35px; }
.footer-bottom { display: flex; align-items: center; gap: 30px; justify-content: space-between; padding-top: 23px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.footer-bottom > span { margin-left: auto; }
.footer-bottom > p { margin-right: auto; }
.footer-location { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.footer-location > img { width: 22px; height: 20px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 2px #19477b1a); }

@media (max-width: 1250px) {
  .container { width: calc(100% - 72px); }
  .header-inner { gap: 20px; }
  .desktop-nav { gap: 18px; }
  .header-phone-copy { display: none; }
  .header-phone { margin-left: 2px; }
  .hero-grid { gap: 40px; }
  h1 { font-size: 52px; }
  .hero-description { font-size: 17px; }
  .hero-visual, .hero-image-wrap { min-height: 600px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 22px; }
  .appointment-shell { padding: 46px; gap: 42px; }
  .contact-phone { font-size: 25px; gap: 14px; }
}

@media (max-width: 1100px) {
  .brand-copy { font-size: 18px; }
  .desktop-nav a { font-size: 13px; }
  .desktop-nav { gap: 15px; }
  .header-inner { gap: 18px; }
  .header-cta { gap: 12px; font-size: 13px; padding-inline: 14px; }
  .hero-grid { gap: 32px; }
  h1 { font-size: 47px; }
  .doctor-intro { font-size: 15px; }
  .hero-description { font-size: 16px; }
  .desktop-break { display: none; }
  .appointment-shell { padding: 38px; gap: 32px; }
  .appointment h2 { font-size: 46px; }
  .contact-phone { font-size: 23px; gap: 12px; }
  .appointment-description { font-size: 16px; }
  .appointment-address address { font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --header-height: 84px; }
  html { scroll-padding-top: 104px; }
  .container { width: calc(100% - 48px); }
  .desktop-nav, .header-cta { display: none; }
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .header-phone { margin-left: auto; display: flex; justify-content: center; gap: 12px; min-height: 56px; padding: 8px 20px; border: 1px solid var(--blue); border-radius: 3px; background: var(--blue); color: white; }
  .header-phone:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
  .header-phone .icon { width: 24px; height: 24px; color: white; }
  .header-phone-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.25; }
  .header-phone-label { display: block; font-size: 13px; font-weight: 600; }
  .header-phone-number { font-size: 17px; font-weight: 800; letter-spacing: .3px; }
  .menu-toggle { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 126px; min-height: 54px; padding: 14px 20px; border: 1px solid #bdcee3; border-radius: 12px; background: white; color: var(--blue); font-size: 16px; font-weight: 700; line-height: 1.5; box-shadow: 0 5px 22px #123b7226; transition: background .2s, border-color .2s; }
  .menu-toggle:hover { background: var(--pale-blue); border-color: var(--blue); }
  .menu-toggle .icon { width: 22px; height: 22px; }
  .menu-toggle[aria-expanded=true] .menu-bars { display: none; }
  .menu-toggle[aria-expanded=true] .menu-cross { display: block; }
  .mobile-menu { position: fixed; inset: auto max(16px, env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) auto; z-index: 49; display: flex; flex-direction: column; width: min(350px, calc(100% - 32px)); max-height: calc(100dvh - var(--header-height) - 116px - env(safe-area-inset-bottom)); padding: 8px 20px; overflow: auto; overscroll-behavior: contain; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 44px #123b7233; }
  .mobile-menu:not([hidden]) { transform-origin: bottom right; animation: mobile-menu-appear .24s cubic-bezier(.2, .8, .2, 1) both; }
  .mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; }
  .mobile-menu a:last-child { border: 0; color: var(--blue); font-weight: 800; }
  .hero { padding-top: 34px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  h1 { font-size: clamp(39px, 5.1vw, 48px); }
  .hero-visual, .hero-image-wrap { min-height: 640px; }
  .hero-actions .button { font-size: 14px; gap: 15px; padding-inline: 16px; }
  .hero-address { font-size: 13px; }
  .hero-address > span > span { font-size: 12px; }
  .section-space { padding-block: 72px; }
  .appointment { padding-top: 0; }
  .appointment-shell { grid-template-columns: 1fr; padding: 42px; gap: 35px; }
  .appointment-copy { padding: 0; }
  .appointment h2 { font-size: 48px; }
  .contact-phone { font-size: 29px; gap: 20px; }
  .footer-bottom { flex-wrap: wrap; gap: 16px 25px; }
  .footer-bottom > p { width: 100%; }
}

@media (max-width: 700px) {
  :root { --header-height: 78px; }
  html { scroll-padding-top: 98px; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px; }
  .header-phone { width: auto; min-height: 44px; margin-left: auto; gap: 8px; padding: 10px 12px; flex-shrink: 0; }
  .header-phone .icon { width: 18px; height: 18px; }
  .header-phone-number { display: none; }
  .brand-copy { font-size: 18px; }
  .brand-copy > span { font-size: 9px; letter-spacing: 1.6px; }
  .hero { padding-top: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy { padding: 0; }
  .location-label { margin-bottom: 18px; }
  .doctor-intro { font-size: 16px; margin: 20px 0 0; }
  h1 { font-size: clamp(43px, 8.4vw, 58px); line-height: 1.15; }
  .hero-description { font-size: 17px; margin-top: 24px; }
  .hero-actions { gap: 22px; margin-top: 27px; }
  .hero-actions .button { min-height: 58px; font-size: 16px; padding-inline: 21px; gap: 22px; }
  .hero-actions .text-link { font-size: 15px; }
  .hero-address { font-size: 14px; margin-top: 30px; }
  .hero-address > span > span { font-size: 13px; }
  .hero-visual { order: -1; min-height: 430px; margin: 0; }
  .hero-image-wrap { min-height: 430px; }
  .section-space { padding-block: 60px; }
  h2 { font-size: 36px; }
  .appointment { padding-top: 0; }
  .appointment-shell { width: calc(100% - 24px); padding: 30px 23px; gap: 34px; }
  .appointment h2 { font-size: 44px; }
  .messenger-card { padding: 24px; }
  .appointment-description { font-size: 16px; }
  .contact-phone { font-size: 27px; gap: 15px; }
  .appointment-address p { font-size: 16px; }
  .appointment-address address { font-size: 15px; }
  .map-link { font-size: 14px; }
  .footer-main { flex-wrap: wrap; gap: 28px; }
  .footer-main > .brand { order: 0; }
  .footer-bottom { font-size: 12px; }
}

@media (max-width: 420px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: 9px; }
  .brand-copy { font-size: 16px; letter-spacing: -.5px; }
  .brand-copy > span { font-size: 8px; letter-spacing: 1.3px; }
  .doctor-role { font-size: 14px; }
  .eyebrow { font-size: 11px; letter-spacing: 1.1px; }
  h1 { font-size: 42px; }
  .hero-visual, .hero-image-wrap { min-height: 380px; }
  .appointment-shell { width: calc(100% - 20px); padding: 29px 19px; }
  .appointment h2 { font-size: 41px; }
  .messenger-card { padding: 20px 16px; }
  .messenger-card h3 { font-size: 23px; }
  .messenger-card > p { font-size: 14px; }
  .contact-phone { font-size: 24px; gap: 12px; }
  .appointment-address { gap: 11px; }
  .contact-icon { width: 31px; height: 36px; }
  .footer-main { gap: 23px; }
}

@media (max-width: 359px) {
  .header-inner { gap: 8px; }
  .header-phone { gap: 6px; padding-inline: 8px; }
  .header-phone-label { font-size: 12px; }
  .brand-copy { font-size: 14px; }
  .brand-copy > span { font-size: 8px; letter-spacing: .8px; }
  h1 { font-size: 38px; }
  .hero-actions .button { width: 100%; gap: 12px; font-size: 15px; padding-inline: 15px; }
  .hero-address { font-size: 13px; }
  .contact-phone { font-size: 21px; gap: 8px; }
  .appointment-shell { padding-inline: 15px; }
  .appointment-address address { font-size: 14px; }
}

@keyframes mobile-menu-appear {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

@media print {
  .site-header { position: static; }
  .menu-toggle, .mobile-menu, .hero-actions { display: none; }
  body { padding-bottom: 0; }
  .container { width: 100%; }
  .hero-visual, .hero-image-wrap { min-height: 380px; }
  .section-space { padding-block: 30px; }
  .appointment-shell { display: block; background: white; color: #122c4b; padding: 25px; border: 1px solid var(--line); }
  .appointment-copy .eyebrow, .appointment h2 em, .appointment-description, .appointment-address address, .map-link, .contact-phone .icon { color: #122c4b; }
  .site-footer { padding: 0; }
}
