:root {
  --navy: #06324f;
  --navy-2: #0c5f83;
  --blue: #1686c7;
  --teal: #00a88a;
  --sun: #f4b63f;
  --ink: #13283a;
  --muted: #5d7082;
  --line: #d6e7ef;
  --bg: #f0faf7;
  --sky: #e7f6ff;
  --mint: #e8fff8;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(6, 50, 79, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 158px;
  scroll-behavior: smooth;
}

section[id],
aside[id] {
  scroll-margin-top: 158px;
}

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.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 229, 238, 0.9);
  backdrop-filter: blur(18px);
}

.topbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--line);
  border-inline: 1px solid var(--line);
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
}

.topbar-item small,
.brand small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.3;
}

.topbar-item strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

.topbar-item.trebon-nurse {
  background: var(--blue);
}

.topbar-item.trebon-urgent {
  background: var(--navy-2);
}

.topbar-item.suchdol-nurse {
  background: var(--teal);
}

.topbar-item.suchdol-urgent {
  color: #0b2638;
  background: var(--sun);
}

.topbar-item.suchdol-urgent small {
  color: rgba(11, 38, 56, 0.74);
}

.topbar-item.suchdol-urgent .icon {
  border-color: rgba(11, 38, 56, 0.28);
}

.icon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1240px;
  min-width: 0;
  min-height: 78px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--white);
  background: var(--teal);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
  color: #44546a;
  font-size: 13px;
  font-weight: 650;
}

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

.nav-cta,
.button,
.panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  white-space: nowrap;
}

.nav-cta,
.button.primary,
.panel-button {
  background: var(--blue);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
}

.button.compact {
  min-height: 42px;
  color: var(--white);
  background: var(--navy);
}

.button.outline {
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), #087064);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 50, 79, 0.88) 0%, rgba(6, 50, 79, 0.64) 36%, rgba(6, 50, 79, 0.08) 70%),
    linear-gradient(135deg, rgba(0, 168, 138, 0.28), rgba(244, 182, 63, 0.16));
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 44px;
  max-width: 1240px;
  min-height: 640px;
  margin: 0 auto;
  padding: 82px 22px 60px;
}

.hero-copy {
  max-width: 675px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-panel {
  border: 1px solid rgba(0, 168, 138, 0.38);
  border-radius: 8px;
  padding: 22px;
  color: var(--white);
  background: rgba(6, 50, 79, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-head {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.panel-head span,
.panel-row span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.panel-head strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-button {
  width: 100%;
  margin-top: 20px;
}

.quick-grid,
.office-overview,
.section,
.contact-section {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: 22px;
}

.office-overview {
  padding-top: 52px;
  padding-bottom: 28px;
}

.office-overview h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

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

.office-choice {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(6, 50, 79, 0.07);
}

.office-choice::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  content: "";
  background: var(--blue);
}

.office-choice.suchdol::before {
  background: var(--teal);
}

.office-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--navy);
  background: var(--sky);
  font-size: 13px;
  font-weight: 850;
}

.office-choice.suchdol .office-badge {
  background: var(--mint);
}

.office-choice h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.16;
}

.office-choice p {
  margin-bottom: 18px;
  color: var(--muted);
}

.office-facts {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.office-facts div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.office-facts dt {
  color: var(--navy);
  font-weight: 850;
}

.office-facts dd {
  margin: 0;
  color: var(--muted);
}

.office-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 52px;
}

.quick-card,
.info-card,
.step-card,
.hours-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(8, 33, 58, 0.06);
}

.quick-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px 16px;
  align-items: start;
  padding: 24px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 850;
}

.quick-card h2 {
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 20px;
}

.quick-card p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
}

.section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.section.muted {
  max-width: none;
  padding-inline: max(22px, calc((100vw - 1240px) / 2 + 22px));
  background: var(--bg);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  gap: 64px;
  align-items: start;
}

.section h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hours-card {
  padding: 8px;
}

.hours-stack {
  display: grid;
  gap: 18px;
}

.hours-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.hours-title h3 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 24px;
}

.hours-title span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.hours-row {
  display: grid;
  grid-template-columns: 104px 118px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 7px;
}

.hours-row:nth-child(odd) {
  background: #f7fafc;
}

.hours-row strong {
  color: var(--navy);
}

.hours-row span {
  font-weight: 800;
}

.hours-row em {
  color: var(--muted);
  font-style: normal;
}

.section-note {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head > a:not(.button) {
  color: var(--blue);
  font-weight: 800;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.four {
  grid-template-columns: repeat(4, 1fr);
}

.info-card,
.step-card {
  min-height: 220px;
  padding: 24px;
}

.info-card time,
.step-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.info-card h3,
.step-card h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.22;
}

.info-card p,
.step-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-list span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--navy);
  background: #f7fafc;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(8, 33, 58, 0.06);
}

.main-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  color: var(--white);
  background: var(--navy);
  font-size: 22px;
  font-weight: 850;
}

.profile-card h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 21px;
}

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

.contact-section {
  margin-bottom: 92px;
  padding-top: 54px;
}

.contact-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 38px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
}

.contact-intro h2 {
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.18;
}

.contact-intro p:not(.eyebrow) {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  margin-top: 18px;
}

.contact-details,
.map-stack {
  display: grid;
  gap: 18px;
}

.contact-office,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(8, 33, 58, 0.06);
}

.contact-office {
  padding: 24px;
}

.contact-office > span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.contact-office h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.contact-office address,
.contact-office p {
  margin-bottom: 0;
  color: var(--muted);
  font-style: normal;
}

.office-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.office-links .button {
  min-height: 40px;
  padding-inline: 14px;
  font-size: 14px;
}

.map-card {
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 264px;
  border: 0;
}

.map-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}

.map-card-footer strong {
  color: var(--navy);
}

.map-card-footer a {
  color: var(--blue);
  font-weight: 800;
}

.button.primary.light {
  background: var(--white);
  color: var(--navy);
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.32);
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 16px 36px rgba(8, 33, 58, 0.28);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--navy);
}

.back-to-top:focus-visible {
  outline: 3px solid rgba(42, 157, 143, 0.45);
  outline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px;
  color: var(--muted);
  background: var(--bg);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 250px;
  }

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

  .quick-grid,
  .office-choice-grid,
  .cards.three,
  .cards.four,
  .two-column,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .contact-intro,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .nav {
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: center;
  }

  section[id],
  aside[id] {
    scroll-margin-top: 250px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 300px;
  }

  .topbar-item {
    gap: 8px;
    min-height: auto;
    padding: 9px 10px;
  }

  .icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  h1 {
    font-size: 40px;
  }

  .section h2,
  .office-overview h2 {
    font-size: 30px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head .button {
    width: 100%;
    white-space: normal;
  }

  .office-choice {
    padding: 24px;
  }

  .office-facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .office-choice-actions,
  .office-choice-actions .button {
    width: 100%;
  }

  .hours-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .hours-title {
    display: block;
  }

  .hours-title span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .contact-actions,
  .contact-actions .button {
    width: 100%;
  }

  .contact-intro {
    padding: 26px;
  }

  .map-stack {
    grid-template-columns: 1fr;
  }

  .map-card iframe {
    height: 235px;
  }

  .office-links .button {
    width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}
