:root {
  --red: #c8102e;
  --blue: #1d4ed8;
  --navy: #0f3d7a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #dbe5f0;
  --surface: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 61, 122, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--surface);
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--navy);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 61, 122, 0.1);
}

.top-bar {
  color: #ffffff;
  background: var(--navy);
  font-size: 0.92rem;
}

.top-bar__inner,
.top-bar__actions,
.navbar__inner,
.nav-menu,
.hero__actions,
.hero__badges {
  display: flex;
  align-items: center;
}

.top-bar__inner {
  min-height: 40px;
  justify-content: space-between;
  gap: 16px;
}

.top-bar__actions {
  gap: 10px;
  flex-wrap: wrap;
}

.top-link {
  font-weight: 800;
}

.top-appointment {
  padding: 6px 12px;
  color: var(--navy);
  font-weight: 800;
  background: #ffffff;
  border-radius: 999px;
}

.navbar__inner {
  min-height: 78px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand__logo {
  width: clamp(210px, 22vw, 300px);
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.nav-menu {
  gap: 18px;
  color: var(--text);
  font-weight: 800;
}

.nav-menu a {
  transition: color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--red);
}

.nav-call {
  padding: 10px 16px;
  color: #ffffff !important;
  background: var(--red);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
}

.hero__image,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__image {
  background-image: url("https://images.unsplash.com/photo-1606811971618-4486d14f3f99?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__overlay {
  background: linear-gradient(90deg, rgba(8, 31, 65, 0.88), rgba(8, 31, 65, 0.58) 52%, rgba(8, 31, 65, 0.18));
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 86px 0 104px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffffff;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 4.8rem);
  line-height: 1.04;
}

.hero__lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e7eef8;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero__actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  font-weight: 900;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn--primary {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 12px 24px rgba(200, 16, 46, 0.28);
}

.btn--primary:hover,
.btn--primary:focus {
  background: #ad0d27;
}

.btn--secondary {
  color: var(--navy);
  background: #ffffff;
}

.btn--outline {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid rgba(15, 61, 122, 0.22);
}

.btn--outline:hover,
.btn--outline:focus {
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(15, 61, 122, 0.12);
}

.btn--full {
  width: 100%;
}

.hero__badges {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero__badges span {
  padding: 8px 12px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
}

.trust-strip {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.trust-strip span {
  color: var(--muted);
  margin-top: 4px;
}

.section {
  padding: 88px 0;
}

.section:nth-of-type(even) {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
}

.section-heading p:last-child,
.section-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.about__panel,
.contact-card,
.appointment-form,
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about__panel {
  padding: 26px;
}

.doctor-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.doctor-card__mark {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: var(--navy);
  border-radius: 50%;
}

.doctor-card h3,
.doctor-card p {
  margin: 0;
}

.doctor-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
}

.doctor-card p {
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(-45deg);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 265px;
  padding: 24px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  background: rgba(29, 78, 216, 0.08);
  border-radius: 50%;
}

.service-card:hover,
.service-card:focus,
.service-card.is-active {
  transform: translateY(-6px);
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: 0 22px 55px rgba(15, 61, 122, 0.18);
}

.service-card__number {
  color: var(--red);
  font-weight: 900;
}

.service-card h3 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: 1.28rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.service-card a {
  display: inline-flex;
  margin-top: 20px;
  color: var(--red);
  font-weight: 900;
}

.branches {
  background: #ffffff;
}

.branches__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.branch-card__tag {
  width: fit-content;
  padding: 6px 12px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--red);
  border-radius: 999px;
}

.branch-card h3 {
  margin: 18px 0;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.branch-card dl {
  display: grid;
  gap: 16px;
  margin: 0 0 24px;
}

.branch-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.branch-card dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.branch-card dd a {
  color: var(--red);
  font-size: 1.18rem;
  font-weight: 900;
}

.branch-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
}

.contact-card,
.appointment-form {
  padding: 26px;
}

.contact-card h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.5rem;
}

.contact-card dl {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.phone-strong {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 900;
}

.appointment-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row--full {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.map-wrap {
  margin-top: 24px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 7;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  color: #e5edf8;
  background: #0b2e5c;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr 1.2fr;
  gap: 28px;
  padding: 56px 0 34px;
}

.footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer p,
.footer a {
  color: #d6e4f5;
}

.footer a {
  display: block;
  margin: 8px 0;
}

.brand--footer {
  margin-bottom: 14px;
}

.brand--footer .brand__logo {
  width: 250px;
  padding: 6px;
  background: #ffffff;
  border-radius: var(--radius);
}

.footer-phone {
  color: #ffffff !important;
  font-size: 1.2rem;
  font-weight: 900;
}

.footer__bottom {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__bottom p {
  margin: 0;
}

.sticky-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: none;
  padding: 12px 16px;
  color: #ffffff;
  font-weight: 900;
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 16px 30px rgba(200, 16, 46, 0.34);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    inset: 118px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 12px 16px 20px;
    background: #ffffff;
    box-shadow: 0 24px 40px rgba(15, 61, 122, 0.14);
  }

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

  .nav-menu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-call {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0 !important;
  }

  .hero {
    min-height: 620px;
  }

  .hero__overlay {
    background: linear-gradient(180deg, rgba(8, 31, 65, 0.9), rgba(8, 31, 65, 0.68));
  }

  .trust-strip__grid,
  .about__grid,
  .contact__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

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

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

  .map-wrap {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .top-bar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 8px 0;
  }

  .navbar__inner {
    min-height: 70px;
  }

  .brand__logo {
    width: 210px;
    max-height: 64px;
  }

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

  .branch-card__actions .btn {
    width: 100%;
  }

  .hero {
    min-height: 590px;
  }

  .hero__content {
    padding: 68px 0 86px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .services__grid,
  .appointment-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .sticky-call {
    display: inline-flex;
  }
}
