[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: break-word; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 12px; background: white; }
.skip-link:focus { top: 8px; }
.page-main { padding-top: 100px; min-height: 70vh; }
.page-main > .section { padding-block: 40px 64px; }
.page-heading { max-width: 850px; margin-bottom: 32px; }
.page-heading h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; margin: 16px 0; }
.page-heading p { color: #40649b; line-height: 1.7; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; font-size: 13px; list-style: none; }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; }
.breadcrumbs a { text-decoration: underline; }
.catalog-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.service-nav { position: sticky; top: 100px; display: grid; gap: 4px; padding: 16px; background: white; border: 1px solid var(--sky); border-radius: 16px; }
.service-nav a { padding: 9px; border-radius: 8px; font-size: 14px; }
.service-nav a:hover, .service-nav a[aria-current] { color: var(--primary); background: var(--light); }
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { border-bottom: 1px solid var(--sky); }
.service-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; }
.service-list strong { white-space: nowrap; }
.service-list a:hover { color: var(--primary); }
.doctor-profile { display: grid; grid-template-columns: minmax(220px, 350px) 1fr; gap: 40px; align-items: start; }
.doctor-profile > img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 20px; }
.doctor-profile h1 { margin-top: 12px; font-size: clamp(28px,4vw,42px); line-height: 1.2; }
.doctor-profile p { line-height: 1.7; }
.doctor-role { font-size: 20px; font-weight: 700; color: var(--primary); }
.profile-links { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 24px; }
.doctor-card a { display: block; }
.doctor-card img { width: 100%; }
.doctor-card h2, .doctor-card h3 { font-size: 17px; font-weight: 500; }
.doctor-card .doctor-role { font-size: 17px; font-weight: 700; }
.form-title { margin: 0 0 20px; font-size: 24px; }
.site-footer { background: var(--deep); color: white; padding-top: 28px; }
.site-footer .footer-grid img { background: var(--primary); border-radius: 12px; }
.site-footer .footer-grid p, .site-footer .footer-grid span, .site-footer .footer-bottom { color: #d3e4ff; }
.service-price { font-size: 24px; font-weight: 700; }
.price-disclaimer { font-size: 13px; line-height: 1.6; color: #40649b; }
.mobile-nav { position: absolute; inset: 100% 0 auto; padding: 16px; background: white; border-bottom: 1px solid var(--sky); box-shadow: var(--shadow); }
.mobile-nav a { display: block; padding: 12px; }
.catalog-filter { display: grid; gap: 8px; max-width: 420px; margin-bottom: 24px; }
.catalog-filter input { padding: 12px 16px; border: 1px solid var(--sky); border-radius: 10px; font: inherit; }
.card-link { display: block; margin-top: 16px; color: var(--primary); font-weight: 600; }
.service-heading { margin-top: 0; }
@media(max-width: 767px) {
  .catalog-layout, .doctor-profile { grid-template-columns: 1fr; }
  .service-nav { position: static; }
  .doctor-profile > img { max-width: 320px; }
  .page-main { padding-top: 88px; }
  .hero h1 { font-size: 38px; }
}
.doctor-card { display: block; }
.doctor-card > a { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 16px; align-items: start; }
.doctor-card img { width: 100px; height: 160px; }
.doctor-card .card-link { font-size: 11px; }
.direction-card h2, .direction-card h3 { margin: 24px 0 0; font-size: 21px; }
.catalog-layout > .direction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.catalog-prices { border: 1px solid var(--sky); border-radius: 14px; padding: 18px; margin-top: 10px; background: white; }
.catalog-prices summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.footer-grid address { display: grid; gap: 8px; font-style: normal; font-size: 13px; }
@media(max-width: 767px) {
  .catalog-layout > .direction-grid { grid-template-columns: 1fr; }
  .doctor-card > a { grid-template-columns: 100px minmax(0,1fr); }
}
@media(max-width: 680px) {
  .page-main .doctor-grid, .page-main .direction-grid { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; overflow: visible; }
  .page-main .doctor-card, .page-main .direction-card { min-width: 0; }
}

.doctor-card h2 { margin: 8px 0 0; line-height: 1.4; }
.catalog-prices summary h3 { display: inline; margin: 0; font: inherit; }
.doctor-profile h2 { margin: 24px 0 10px; font-size: 20px; }

.doctor-experience, .doctor-card .doctor-experience, .booking-doctor-card .doctor-experience { color: var(--primary); font-size: 14px; font-weight: 600; }

/* Full-width opening section: team on the left, live booking on the right. */
.hero { min-height: 0; background: white; }
.hero-grid { width: 100%; margin: 0; padding: 40px clamp(20px, 3vw, 72px) 0; min-height: calc(100svh - 78px); grid-template-columns: minmax(0, 1.3fr) minmax(380px, 1fr); gap: clamp(24px, 3vw, 64px); align-items: start; }
.hero-copy { min-width: 0; max-width: none; align-self: stretch; display: flex; flex-direction: column; }
.hero-copy h1 { margin: 16px 0 0; font-size: clamp(30px, 3.35vw, 72px); line-height: 1.12; text-transform: uppercase; }
.hero-copy h1 span { color: var(--primary); }
.hero-actions { margin-top: 28px; }
.hero-actions .primary-button { min-height: 60px; padding-inline: 30px; font-size: 20px; text-transform: uppercase; background: linear-gradient(110deg, var(--primary), var(--blue)); }
.hero-team { position: relative; width: calc(100% + 28px); margin: 24px 0 0 -14px; aspect-ratio: 1.65; overflow: hidden; }
.hero-team img { position: absolute; display: block; width: 114%; max-width: none; height: auto; left: -8%; top: -21%; }
.hero-booking { width: 100%; padding: 0 0 36px; }
.hero-booking .request-form { background: #eef5ff; }
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; padding: 32px 24px 0; gap: 24px; min-height: 0; }
  .hero-copy h1 { font-size: clamp(30px, 5.6vw, 56px); }
  .hero-team { width: min(100%, 800px); margin: 24px auto 0; aspect-ratio: 2; }
  .hero-team img { top: -27%; }
  .hero-booking { max-width: 760px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .hero-grid { padding: 24px 14px 0; gap: 16px; }
  .hero-copy h1 { margin-top: 0; font-size: clamp(23px, 6.6vw, 40px); }
  .hero-actions { margin-top: 20px; }
  .hero-actions .primary-button { min-height: 52px; font-size: 17px; }
  .hero-team { width: calc(100% + 28px); margin: 20px 0 0 -14px; }
  .hero-booking { padding-bottom: 28px; }
}
