@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --white: #ffffff;
  --paper: #f7fbff;
  --ink: #05070a;
  --muted: #5d6975;
  --line: #d7edf8;
  --blue: #38bdf8;
  --blue-deep: #064273;
  --blue-soft: #eaf7ff;
  --green: #0ea5e9;
  --green-soft: #eaf7ff;
  --orange: #f97316;
  --orange-soft: #fff7ed;
  --shadow: 0 20px 55px rgba(18, 33, 47, 0.11);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.topbar .container,
.navbar,
.topbar-list,
.nav-links,
.trust-list,
.footer-links {
  display: flex;
  align-items: center;
}

.topbar .container {
  min-height: 42px;
  justify-content: space-between;
  gap: 18px;
}

.topbar-list,
.nav-links,
.trust-list,
.footer-links {
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 232, 239, 0.92);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 14px;
  object-fit: contain;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(7, 89, 133, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-video {
  object-fit: cover;
}

.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-2deg);
  box-shadow: 0 14px 30px rgba(7, 89, 133, 0.18);
}

.brand-title,
.brand-subtitle {
  display: block;
  line-height: 1.15;
}

.brand-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav-links a {
  color: #33475b;
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 600;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--blue-deep);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 30px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(6, 66, 115, 0.24);
}

.btn-primary {
  background: var(--blue-deep);
  color: var(--white);
}

.btn-blue {
  background: var(--ink);
  color: var(--white);
}

.btn-soft {
  background: var(--white);
  border-color: rgba(6, 66, 115, 0.18);
  color: var(--blue-deep);
}

.btn-soft:hover {
  background: rgba(6, 66, 115, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92) 52%, rgba(234, 247, 255, 0.86));
}

.hero .container {
  position: relative;
  z-index: 2;
  display: block;
  min-height: auto;
  padding: 74px 0 66px;
  text-align: left;
}

.lungs-video-backdrop {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(980px, 72vw);
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  filter: saturate(1.08) contrast(1.04);
}

.eyebrow,
.section-kicker {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 15px 10px 10px;
  border: 1px solid rgba(7, 89, 133, 0.18);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(7, 89, 133, 0.16);
  letter-spacing: 0;
  color: var(--blue-deep);
}

.eyebrow::before {
  content: none;
}

.eyebrow::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 76px;
  height: 3px;
  border-radius: 999px;
  background: var(--orange);
}

.eyebrow i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
}

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

h1 {
  max-width: 840px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 4.7vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title {
  display: grid;
  max-width: 860px;
  gap: 2px;
  font-size: clamp(3.2rem, 7vw, 6.35rem);
  line-height: 0.9;
}

.hero-title span {
  display: block;
}

.hero-title span:nth-child(1) {
  color: var(--ink);
}

.hero-title span:nth-child(2) {
  color: var(--blue-deep);
}

.hero-title span:nth-child(3) {
  width: max-content;
  max-width: 100%;
  padding-bottom: 8px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 5.2vw, 4.65rem);
}

.hero-copy,
.lead {
  max-width: 720px;
  color: #3d4f60;
  font-size: clamp(1.03rem, 1.4vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 30px;
}

.trust-list {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #394d5f;
  font-size: 0.9rem;
  font-weight: 750;
}

.doctor-portrait {
  position: relative;
  width: min(500px, 100%);
  margin: 0 auto;
  align-self: center;
}

.doctor-photo {
  width: 100%;
  max-height: 640px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.portrait-card,
.info-card {
  border: 1px solid rgba(220, 232, 239, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.portrait-card {
  position: absolute;
  left: 18px;
  right: auto;
  bottom: 18px;
  max-width: 330px;
  padding: 16px 18px;
  text-align: left;
}

.portrait-card strong,
.info-card strong {
  display: block;
  line-height: 1.25;
}

.portrait-card span,
.info-card span,
.info-card a {
  color: var(--muted);
  font-size: 0.94rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--white), var(--paper));
}

.page-hero-grid,
.split-grid,
.appointment-grid,
.contact-layout,
.reviews {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 0.62fr);
  gap: 34px;
  align-items: center;
}

section {
  padding: 82px 0;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 32px;
  margin-bottom: 36px;
  align-items: end;
}

.compact-head {
  margin-bottom: 24px;
}

.section-head h2,
.split-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  line-height: 1.06;
}

.section-head p,
.split-copy p {
  color: var(--muted);
}

.info-card {
  padding: 24px;
}

.info-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.info-row:first-of-type {
  border-top: 0;
}

.icon-box {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--blue-soft);
  color: var(--blue);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.stat {
  padding: 18px 16px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  color: var(--blue-deep);
  font-size: 1.32rem;
  line-height: 1.1;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.15;
  object-fit: cover;
}

.feature-grid,
.service-grid,
.care-path,
.gallery-grid,
.quick-facts {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.feature-item,
.service-card,
.step,
.review,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.feature-item h3,
.step h3,
.service-card h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.feature-item p,
.step p,
.service-card p,
.review p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.service-card {
  display: flex;
  min-height: 218px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.condition-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.condition-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #263849;
  font-size: 0.88rem;
  font-weight: 750;
}

.symptom-section {
  background: linear-gradient(180deg, var(--white), #f4fbff);
}

.symptom-care-board {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.symptom-panel {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(18, 33, 47, 0.06);
}

.primary-panel {
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(7, 89, 133, 0.95), rgba(5, 7, 10, 0.96)),
    var(--blue-deep);
  color: var(--white);
}

.primary-panel .section-kicker {
  color: rgba(125, 211, 252, 0.96);
}

.symptom-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.symptom-list span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.symptom-panel h3 {
  margin-bottom: 10px;
  color: var(--blue-deep);
  font-size: 1.22rem;
  line-height: 1.18;
}

.symptom-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.image-panel {
  min-height: 260px;
  padding: 0;
  background: var(--blue-soft);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.image-panel span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px 13px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.25;
}

.cta-panel {
  background: var(--orange-soft);
  border-color: rgba(249, 115, 22, 0.22);
}

.cta-panel .hero-actions {
  margin-top: 20px;
}

.affiliation-band {
  padding: 58px 0;
  background:
    linear-gradient(90deg, rgba(234, 247, 255, 0.92), rgba(255, 255, 255, 0.96)),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.affiliation-card {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 32px rgba(18, 33, 47, 0.05);
}

.affiliation-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--blue);
}

.affiliation-card.is-current::before {
  background: var(--orange);
}

.affiliation-card i {
  display: inline-flex;
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--blue-deep);
}

.affiliation-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.affiliation-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.28;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 95, 159, 0.28);
  box-shadow: 0 16px 36px rgba(18, 33, 47, 0.08);
}

.specialities-section {
  position: relative;
  overflow: hidden;
  background: #05070a;
  color: var(--white);
}

.specialities-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.28), transparent 32%),
    radial-gradient(circle at 80% 45%, rgba(125, 211, 252, 0.18), transparent 28%);
  opacity: 0.9;
}

.specialities-section .container {
  position: relative;
  z-index: 1;
}

.specialities-section .section-head h2 {
  color: var(--white);
}

.specialities-section .section-head p {
  color: rgba(255, 255, 255, 0.68);
}

.speciality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.speciality-card {
  min-height: 245px;
  padding: 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  text-align: center;
}

.speciality-icon {
  display: inline-grid;
  width: 70px;
  height: 70px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: var(--ink);
  box-shadow: 0 18px 38px rgba(15, 95, 159, 0.28);
}

.speciality-card h3 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.25;
}

.speciality-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.care-path {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  padding: 22px;
}

.step-number {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}

.gallery-grid {
  grid-template-columns: 1.05fr 0.95fr 0.9fr;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--blue-soft);
}

.gallery-card.tall {
  grid-row: span 2;
  min-height: 656px;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.25;
}

.appointment {
  background: linear-gradient(90deg, var(--ink), var(--blue-deep));
  color: var(--white);
}

.appointment h1,
.appointment h2,
.appointment .section-kicker {
  color: var(--white);
}

.appointment p {
  color: rgba(255, 255, 255, 0.82);
}

.quick-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.quick-fact {
  display: flex;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.quick-fact span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

.appointment-form {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #263849;
  font-size: 0.86rem;
  font-weight: 850;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  outline: 0;
  padding: 12px 13px;
}

.form-grid textarea {
  min-height: 104px;
  resize: vertical;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(15, 95, 159, 0.55);
  box-shadow: 0 0 0 4px rgba(15, 95, 159, 0.1);
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.rating-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
}

.rating-card strong {
  display: block;
  font-size: 4rem;
  line-height: 1;
}

.rating-card p {
  color: rgba(255, 255, 255, 0.82);
}

.review-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.review {
  padding: 20px;
}

.review strong {
  color: var(--blue-deep);
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.38fr);
  gap: 28px;
  align-items: start;
}

.symptom-test {
  display: grid;
  gap: 14px;
}

.test-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-soft);
}

.test-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.test-question {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.test-question legend {
  padding: 0;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.35;
}

.test-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.test-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: #34485c;
  font-weight: 800;
  cursor: pointer;
}

.test-options input {
  accent-color: var(--blue);
}

.test-result {
  position: sticky;
  top: 108px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.test-score {
  display: inline-grid;
  width: 78px;
  height: 78px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 1.7rem;
  font-weight: 900;
}

.risk-low .test-score {
  background: var(--green-soft);
  color: var(--green);
}

.risk-medium .test-score {
  background: var(--orange-soft);
  color: var(--orange);
}

.risk-high .test-score {
  background: #feeceb;
  color: #b42318;
}

.test-result h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
  line-height: 1.22;
}

.test-result p,
.test-result li {
  color: var(--muted);
  font-size: 0.94rem;
}

.test-result ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.test-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-layout {
  align-items: stretch;
}

.contact-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.contact-card {
  padding: 26px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.site-footer {
  background: #071f35;
  color: rgba(255, 255, 255, 0.78);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: start;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand-subtitle,
.site-footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(18, 33, 47, 0.18);
  font-weight: 850;
}

.bottom-action-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 31;
  display: none;
  width: min(680px, 100%);
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -14px 40px rgba(18, 33, 47, 0.12);
  backdrop-filter: blur(12px);
}

.bottom-action-bar a {
  display: grid;
  min-height: 64px;
  place-items: center;
  gap: 3px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
}

.bottom-action-bar a:last-child i {
  color: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 40;
  width: min(420px, calc(100% - 32px));
  transform: translateX(-50%) translateY(16px);
  padding: 13px 16px;
  border-radius: var(--radius);
  background: #071f35;
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 1020px) {
  .topbar .container {
    justify-content: center;
  }

  .topbar-list:first-child {
    display: none;
  }

  .nav-links {
    position: fixed;
    inset: 121px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    display: block;
    padding: 12px;
  }

  .menu-toggle {
    display: grid;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
  }

  .navbar nav {
    order: 3;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .page-hero-grid,
  .split-grid,
  .test-layout,
  .appointment-grid,
  .contact-layout,
  .reviews {
    grid-template-columns: 1fr;
  }

  .hero .container {
    min-height: auto;
    padding-top: 56px;
    text-align: center;
  }

  .hero-title {
    justify-items: center;
  }

  .hero-title span:nth-child(3) {
    justify-self: center;
  }

  .hero-actions,
  .trust-list {
    justify-content: center;
  }

  .lungs-video-backdrop {
    width: 100%;
    opacity: 0.12;
  }

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

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

  .primary-panel {
    grid-column: 1 / -1;
    grid-row: auto;
  }

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

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

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

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

  .gallery-card.tall {
    grid-row: span 1;
    min-height: 320px;
  }

  .test-result {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .topbar {
    display: none;
  }

  .navbar {
    min-height: 72px;
    gap: 8px;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.76rem;
  }

  .nav-links {
    inset: 82px 14px auto 14px;
  }

  .navbar nav {
    order: 3;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
  }

  .hero .container {
    padding: 44px 0 34px;
  }

  .doctor-photo {
    aspect-ratio: 4 / 4.6;
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
  }

  .hero-title {
    font-size: clamp(2.65rem, 12vw, 4.2rem);
    justify-items: center;
  }

  .hero-title span:nth-child(3) {
    justify-self: center;
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-actions .btn,
  .appointment-form .btn {
    width: 100%;
  }

  section,
  .page-hero {
    padding: 58px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-grid,
  .service-grid,
  .symptom-care-board,
  .affiliation-grid,
  .affiliation-grid.detailed,
  .speciality-grid,
  .care-path,
  .quick-facts,
  .gallery-grid,
  .stats-strip,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }

  .portrait-card {
    position: static;
    margin-top: 12px;
  }

  .gallery-card,
  .gallery-card.tall {
    min-height: 270px;
  }

  .symptom-panel,
  .image-panel {
    min-height: 240px;
  }

  .footer-links,
  .footer-bottom {
    justify-content: flex-start;
  }

  .floating-cta {
    bottom: 78px;
  }

  .bottom-action-bar {
    display: grid;
  }

  body {
    padding-bottom: 68px;
  }
}
