:root {
  color-scheme: light;
  --ink: #072033;
  --muted: #5b6873;
  --blue: #075ed8;
  --navy: #05243d;
  --teal: #02828b;
  --mint: #d9f2eb;
  --gold: #f7b731;
  --paper: #f7fafc;
  --white: #ffffff;
  --line: #d8e2ea;
  --shadow: 0 22px 60px rgba(5, 36, 61, 0.15);
}

* {
  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;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body::selection {
  background: var(--mint);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 12px clamp(18px, 4%, 54px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(216, 226, 234, 0.8);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--teal);
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.nav-links a,
.lang-switch,
.header-phone,
.btn,
.contact-row a,
.card-actions a {
  border-radius: 8px;
}

.nav-links a {
  padding: 10px 12px;
  color: #2e4051;
  font-size: 14px;
  font-weight: 760;
}

.nav-links a:hover {
  background: #edf5fb;
}

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

.lang-switch {
  min-width: 44px;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  font-weight: 900;
  cursor: pointer;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  white-space: nowrap;
}

.section-band {
  padding: clamp(48px, 7%, 92px) clamp(18px, 5%, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5%, 68px);
  min-height: calc(100svh - 76px);
  padding-top: clamp(34px, 5%, 72px);
  background:
    linear-gradient(135deg, rgba(5, 36, 61, 0.96), rgba(7, 94, 216, 0.82)),
    image-set(url("assets/pula-poliklinika-official.jpg") 1x);
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.image-split h2,
.arrival-grid h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 8.2rem, 92px);
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.45rem, 24px);
  line-height: 1.5;
}

.hero-actions,
.card-actions,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 900;
}

.btn-primary {
  background: var(--gold);
  color: #231807;
}

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

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.hero-facts div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 7px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 540px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media picture {
  display: block;
}

.hero-media img {
  object-fit: cover;
}

.media-note {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.media-note strong {
  color: var(--blue);
}

.booking-band,
.arrival-band {
  background: var(--white);
}

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

.section-heading h2,
.image-split h2,
.arrival-grid h2 {
  font-size: clamp(34px, 4.5rem, 64px);
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.action-card,
.service-panel,
.proof-strip div,
.steps li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.action-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px;
}

.action-card.urgent {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.card-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.urgent .card-kicker {
  color: var(--gold);
}

.action-card h3 {
  margin: 14px 0 0;
  font-size: 26px;
  line-height: 1.12;
}

.action-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.urgent p {
  color: rgba(255, 255, 255, 0.78);
}

.card-actions {
  margin-top: auto;
  padding-top: 24px;
}

.card-actions a {
  padding: 11px 12px;
  background: #edf5fb;
  color: var(--blue);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.urgent .card-actions a {
  background: rgba(255, 255, 255, 0.13);
  color: var(--white);
}

.services-band {
  background: #eef7f8;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  gap: clamp(28px, 5%, 70px);
  align-items: start;
}

.services-layout .section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.service-panel {
  padding: 22px;
  box-shadow: 0 18px 44px rgba(5, 36, 61, 0.08);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  background: #e3edf3;
}

.segmented button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #455969;
  font-weight: 900;
  cursor: pointer;
}

.segmented button.active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 6px 18px rgba(5, 36, 61, 0.1);
}

.service-content {
  padding: 26px 6px 4px;
}

.service-content h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.12;
}

.service-content p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-content ul,
.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.service-content li,
.check-list li {
  position: relative;
  padding-left: 28px;
  color: #243847;
  line-height: 1.45;
}

.service-content li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  content: "";
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.proof-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.proof-strip strong {
  display: block;
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
}

.proof-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.doctor-band {
  background: var(--paper);
}

.image-split {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5%, 68px);
  align-items: center;
}

.image-split img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.medical-note {
  margin-top: 26px;
  padding: 18px;
  border-left: 4px solid var(--gold);
  background: var(--white);
  color: #425668;
  line-height: 1.55;
}

.arrival-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: clamp(24px, 5%, 68px);
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 70px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  left: 20px;
  top: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal);
  content: counter(steps);
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-row {
  margin-top: 26px;
}

.contact-row a {
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--blue);
  font-weight: 900;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(18px, 5%, 72px) 96px;
  background: var(--navy);
  color: var(--white);
}

.site-footer p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--gold);
  font-weight: 900;
}

.mobile-actions {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(216, 226, 234, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(5, 36, 61, 0.2);
}

.mobile-actions a {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .services-layout,
  .image-split,
  .arrival-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
  }

  .booking-grid,
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    max-width: 145px;
    font-size: 13px;
  }

  .header-phone {
    display: none;
  }

  .section-band {
    padding: 44px 16px;
  }

  .hero {
    min-height: calc(100svh - 68px);
    align-content: center;
    padding-bottom: 122px;
  }

  .hero h1 {
    font-size: clamp(34px, 3.2rem, 42px);
  }

  .lead {
    margin-top: 16px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 22px;
    gap: 8px;
  }

  .hero-actions .btn {
    min-height: 44px;
    width: 100%;
  }

  .hero-facts,
  .booking-grid,
  .proof-strip,
  .segmented {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    display: none;
  }

  .hero-media {
    display: none;
  }

  .action-card {
    min-height: 0;
  }

  .service-content h3 {
    font-size: 26px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 112px;
  }

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

  .mobile-actions {
    display: grid;
  }
}
