:root {
  --ink: #102236;
  --muted: #5a6876;
  --line: #dce7ef;
  --paper: #f5f8fb;
  --white: #ffffff;
  --teal: #008c95;
  --teal-dark: #06606e;
  --lime: #d9f16f;
  --coral: #e53935;
  --blue: #123f7a;
  --shadow: 0 20px 60px rgba(16, 32, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Manrope, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  background: #0f2c33;
  color: #e9fffb;
  font-size: 14px;
}
.topbar .wrap, .nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar .wrap { padding: 8px 0; flex-wrap: wrap; }
.topbar span { opacity: .9; }
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(16,32,42,.08);
}
.nav .wrap { padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 0; }
.brand img { width: 150px; height: auto; }
.links { display: flex; align-items: center; gap: 22px; font-weight: 750; color: #28424b; }
.links a { font-size: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn.primary { background: var(--teal); color: white; }
.btn.dark { background: #112f36; color: white; }
.btn.light { background: white; color: var(--teal-dark); border-color: var(--line); }
.menu { display: none; border: 0; background: #eef7f5; border-radius: 8px; min-width: 62px; height: 44px; padding: 0 12px; font-size: 13px; font-weight: 900; color: var(--blue); }

.hero {
  min-height: calc(100vh - 108px);
  display: grid;
  align-items: center;
  padding: 56px 0 36px;
  background:
    radial-gradient(circle at 82% 18%, rgba(201,242,105,.34), transparent 28%),
    linear-gradient(135deg, #ecfbf8 0%, #f7fbfa 45%, #eef6ff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  color: var(--teal-dark);
  font-weight: 850;
  font-size: 13px;
}
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(40px, 6.8vw, 86px); max-width: 760px; }
h2 { font-size: clamp(30px, 4vw, 54px); }
h3 { font-size: 22px; }
p { color: var(--muted); margin: 0; }
.lead { font-size: clamp(18px, 2.2vw, 23px); max-width: 650px; margin-top: 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
  max-width: 640px;
}
.stat {
  padding: 18px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.stat strong { display: block; font-size: 30px; color: var(--teal-dark); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.doctor-card {
  position: relative;
  min-height: 620px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dff3ee;
}
.doctor-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.doctor-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(16,32,42,.88);
  color: white;
}
.doctor-badge p { color: #d7f5ef; }
.quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}
.quick a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 12px 30px rgba(16,32,42,.08);
  font-weight: 850;
}
.quick a small { display: block; color: var(--muted); font-weight: 700; margin-top: 2px; }
.quick-dot {
  width: 14px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral), var(--teal));
}
.icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e7f7f4;
  color: var(--teal-dark);
  flex: 0 0 auto;
}
section { padding: 86px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 30px; }
.section-head p { max-width: 560px; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.service-card, .panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(16,32,42,.06);
}
.service-card img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 18px; }
.service-card p, .panel p { margin-top: 10px; }
.feature {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
}
.feature-media { min-height: 460px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { list-style: none; padding: 14px 14px 14px 44px; background: white; border: 1px solid var(--line); border-radius: 8px; position: relative; font-weight: 750; }
.ticks li:before { content: "OK"; position: absolute; left: 14px; color: var(--teal); font-weight: 900; font-size: 11px; }
.band { background: #102f37; color: white; }
.band p { color: #cfe4e1; }
.band .service-card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: white; }
.band .service-card p { color: #d8ece8; }
.band .ticks li { color: var(--ink); background: white; }
.condition-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.condition-list a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  font-weight: 850;
}
.cta {
  background: linear-gradient(135deg, #0f333b, #087f7b);
  color: white;
  border-radius: 8px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.cta p { color: #ddfffa; }
.footer {
  background: #081a20;
  color: white;
  padding: 54px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.footer a, .footer p { color: #cde1de; }
.footer small { display: block; border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; color: #9fb5b1; }
.page-hero { padding: 72px 0; background: linear-gradient(135deg, #e8f8f6, #fff); }
.page-hero h1 { font-size: clamp(38px, 5.5vw, 70px); }
.content { background: white; }
.contact-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
.form { display: grid; gap: 12px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  font: inherit;
  background: #fbfefd;
}
textarea { min-height: 132px; resize: vertical; }
.mobile-actions { display: none; }

.intro-strip {
  padding: 62px 0;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items: center;
}
.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(16, 34, 54, .08);
}
.service-tile.wide { grid-column: span 2; }
.service-tile img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: #e9f0f4;
}
.service-tile.wide img { height: 360px; }
.service-tile div { padding: 24px; }
.service-tile span {
  display: inline-flex;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.service-tile p { margin-top: 10px; }
.procedure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.procedure-grid article {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  overflow: hidden;
  color: white;
}
.procedure-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: rgba(255,255,255,.08);
}
.procedure-grid h3,
.procedure-grid p { padding-left: 22px; padding-right: 22px; }
.procedure-grid h3 { margin-top: 22px; }
.procedure-grid p { color: #d9edf3; padding-bottom: 22px; margin-top: 10px; }
.patient-path { background: #eaf4f7; }
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.path-grid div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-height: 230px;
}
.path-grid b {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  margin-bottom: 16px;
}
.symptom-list a {
  min-height: 82px;
  display: flex;
  align-items: center;
  border-left: 5px solid var(--coral);
}
.knowledge { background: white; }

@media (max-width: 900px) {
  body { padding-bottom: 76px; }
  .links { display: none; position: absolute; left: 16px; right: 16px; top: 76px; background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .links.open { display: flex; }
  .menu { display: block; }
  .nav .btn { display: none; }
  .hero { min-height: auto; padding-top: 40px; }
  .hero-grid, .feature, .contact-box { grid-template-columns: 1fr; }
  .doctor-card { min-height: 520px; }
  .quick, .grid.three, .grid.two, .condition-list, .footer-grid { grid-template-columns: 1fr; }
  .intro-grid, .service-gallery, .procedure-grid, .path-grid { grid-template-columns: 1fr; }
  .service-tile.wide { grid-column: auto; }
  .service-tile img, .service-tile.wide img, .procedure-grid img { height: 240px; }
  .section-head, .cta { display: grid; grid-template-columns: 1fr; align-items: start; }
  section { padding: 58px 0; }
  .stats { grid-template-columns: 1fr; }
  .mobile-actions {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 46px rgba(16,32,42,.18);
  }
  .mobile-actions a {
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 2px;
    color: #12333a;
    font-size: 11px;
    font-weight: 900;
  }
}

/* Hospital-style polish pass */
.topbar { background: #0d315f; }
.nav { box-shadow: 0 10px 28px rgba(16, 34, 54, .06); }
.btn.primary { background: var(--coral); }
.btn.dark { background: var(--blue); }
.btn.light { color: var(--blue); }
.eyebrow {
  border-color: rgba(0,140,149,.24);
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero-hospital {
  min-height: calc(100vh - 98px);
  background:
    linear-gradient(90deg, rgba(8,31,59,.94) 0%, rgba(8,31,59,.86) 46%, rgba(8,31,59,.10) 100%),
    url("/assets/images/xray.jpg") center/cover no-repeat;
  color: white;
}
.hero-hospital h1 { color: white; }
.hero-hospital p { color: #dcecf7; }
.hero-hospital .eyebrow {
  background: rgba(255,255,255,.12);
  color: #e9fbff;
  border-color: rgba(255,255,255,.24);
}
.hero-hospital .stat {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.20);
}
.hero-hospital .stat strong { color: white; }
.hero-hospital .stat span { color: #d8e9f4; }
.hero-photo {
  position: relative;
  min-height: 620px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0,0,0,.26);
  background: #e8eef3;
  border: 8px solid rgba(255,255,255,.20);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center 24%;
}
.hero-photo-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
}
.hero-photo-card strong { font-size: 22px; color: var(--blue); }
.hero-photo-card span { color: var(--muted); font-weight: 750; }
.quick a { border-top: 4px solid var(--teal); }
.icon { background: #edf7fb; color: var(--blue); }
.service-card.image-card { padding: 0; overflow: hidden; }
.service-card.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin: 0 0 22px;
}
.service-card.image-card h3,
.service-card.image-card p { padding-left: 24px; padding-right: 24px; }
.service-card.image-card p { padding-bottom: 24px; }
.service-card:not(.image-card) img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
}
.feature-media { background: #e7eef3; }
.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.band { background: linear-gradient(135deg, #0d315f, #06606e); }
.page-hero {
  background:
    linear-gradient(90deg, rgba(13,49,95,.92), rgba(6,96,110,.76)),
    url("/assets/images/xray.jpg") center/cover no-repeat;
  color: white;
}
.page-hero p { color: #e4f0f6; }
.page-hero .eyebrow { background: rgba(255,255,255,.13); color: white; border-color: rgba(255,255,255,.25); }
.footer { background: #071b32; }

@media (max-width: 900px) {
  .hero-hospital {
    background:
      linear-gradient(180deg, rgba(8,31,59,.96) 0%, rgba(8,31,59,.86) 55%, rgba(8,31,59,.48) 100%),
      url("/assets/images/xray.jpg") center/cover no-repeat;
  }
  .hero-photo,
  .hero-photo img {
    min-height: 420px;
  }
  .service-card.image-card img { height: 210px; }
  .mobile-actions { grid-template-columns: 1fr 1fr 1.25fr 1.25fr; }
  .mobile-actions a {
    font-size: 11px;
    line-height: 1.1;
    border-radius: 8px;
    background: #f5fbff;
  }
  .mobile-actions a:nth-child(4) {
    background: var(--coral);
    color: white;
  }
}
