:root {
  --blue: #0b5cad;
  --blue-dark: #083b73;
  --green: #0f9f7a;
  --green-soft: #e8f7f2;
  --ink: #172033;
  --muted: #627087;
  --line: #dbe5ef;
  --bg: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue-dark);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-size: 0.82rem;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #24324a;
  font-size: 0.95rem;
}

.main-nav a:hover,
.text-link:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--white);
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(8, 59, 115, 0.92), rgba(15, 159, 122, 0.75)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='900' viewBox='0 0 1400 900'%3E%3Crect width='1400' height='900' fill='%23eaf4fb'/%3E%3Cg fill='none' stroke='%23b9d9eb' stroke-width='2' opacity='.65'%3E%3Cpath d='M0 180h1400M0 360h1400M0 540h1400M0 720h1400M200 0v900M400 0v900M600 0v900M800 0v900M1000 0v900M1200 0v900'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.8'%3E%3Crect x='160' y='135' width='250' height='120' rx='12'/%3E%3Crect x='470' y='230' width='320' height='150' rx='12'/%3E%3Crect x='850' y='150' width='350' height='185' rx='12'/%3E%3Crect x='220' y='480' width='360' height='190' rx='12'/%3E%3Crect x='700' y='500' width='430' height='180' rx='12'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 950px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.local-hero .eyebrow,
.profile-hero .eyebrow {
  color: #bdf5e5;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.35rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 16px;
}

.hero-copy {
  max-width: 760px;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-top: 30px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  color: var(--blue-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: var(--blue-dark);
}

.button-light {
  color: var(--blue-dark);
  background: var(--white);
}

.section,
.page-hero,
.profile-hero,
.breadcrumbs,
.cta-band {
  padding-left: clamp(18px, 5vw, 72px);
  padding-right: clamp(18px, 5vw, 72px);
}

.section {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(48px, 7vw, 84px);
}

.section-soft {
  background: var(--bg);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p,
.muted {
  color: var(--muted);
}

.card-grid,
.doctor-grid,
.article-grid,
.benefits,
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.specialty-card,
.doctor-card,
.article-card,
.steps > div,
.benefits > div,
.info-panel,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 25px rgba(23, 32, 51, 0.04);
}

.specialty-card,
.article-card,
.steps > div,
.benefits > div,
.info-panel {
  padding: 22px;
}

.specialty-card {
  display: grid;
  gap: 10px;
  min-height: 190px;
}

.specialty-card span:last-child,
.article-card p,
.doctor-card p {
  color: var(--muted);
}

.specialty-card:hover,
.city-card:hover,
.article-card:hover {
  border-color: rgba(11, 92, 173, 0.45);
  transform: translateY(-2px);
}

.icon-badge,
.steps span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--green-soft);
  font-weight: 900;
}

.city-grid,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.city-card,
.pill-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--blue-dark);
  background: var(--white);
  font-weight: 800;
}

.doctor-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 18px;
}

.doctor-photo,
.profile-photo {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--green));
  font-weight: 900;
}

.doctor-photo {
  width: 74px;
  height: 74px;
}

.text-link {
  color: var(--blue-dark);
  font-weight: 900;
}

.prose {
  max-width: 920px;
}

.prose p,
.prose li {
  color: #35425a;
  font-size: 1.03rem;
}

.prose h2,
.prose h3 {
  margin-top: 28px;
}

.page-hero {
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(42px, 6vw, 72px);
  background: linear-gradient(135deg, #eef7ff, #eefaf5);
}

.page-hero p {
  max-width: 780px;
  color: #3c4c64;
  font-size: 1.08rem;
}

.local-hero,
.profile-hero,
.cta-band {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-dark), var(--green));
}

.local-hero p,
.profile-hero p,
.cta-band p {
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--muted);
  background: var(--white);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--blue-dark);
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--blue-dark);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-band {
  padding-top: 46px;
  padding-bottom: 46px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding-top: 58px;
  padding-bottom: 58px;
}

.profile-photo {
  width: 150px;
  aspect-ratio: 1;
  font-size: 2.4rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.info-panel {
  position: sticky;
  top: 96px;
}

.map-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--bg);
  text-align: center;
}

.article {
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.2rem;
  color: var(--blue-dark);
}

.site-footer {
  color: #dce8f6;
  background: #071d37;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 54px clamp(18px, 5vw, 72px);
}

.footer-grid h2 {
  font-size: 1rem;
  color: var(--white);
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: #dce8f6;
}

.footer-grid p {
  color: #b6c8db;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px clamp(18px, 5vw, 72px);
  color: #b6c8db;
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open {
    display: flex;
  }

  .search-panel,
  .card-grid,
  .doctor-grid,
  .article-grid,
  .benefits,
  .steps,
  .profile-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero {
    grid-template-columns: 1fr;
  }

  .info-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 66px;
  }

  .brand span:last-child {
    max-width: 190px;
    line-height: 1.15;
  }

  .hero {
    min-height: auto;
  }

  .search-panel {
    padding: 12px;
  }

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

  .profile-photo {
    width: 120px;
  }
}
