/*
  Naming convention:
  - CSS class names: English
  - HTML id values: Polish
  - JavaScript variable/function names: English
*/

/* =========================================================
   Podstawowe ustawienia
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --text: #18211f;
  --text-soft: #5b6662;
  --primary: #1d5f56;
  --primary-dark: #164a43;
  --border: #dfe6e3;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(17, 45, 39, 0.08);
  --radius: 18px;
  --container: 1120px;
}

*,
*::before,
*::after {
  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(--text);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #5f9f94;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================================
   Nagłówek i nawigacja
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 227, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 0.98rem;
}

.brand-text small {
  color: var(--text-soft);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 650;
  color: #35413d;
}

.main-nav a:hover {
  color: var(--primary);
}

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

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 88px 0 78px;
  background:
    radial-gradient(circle at 85% 20%, rgba(29, 95, 86, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdfc 0%, #f6f9f8 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 680;
}

.doctor-title,
.doctor-name {
  display: block;
}

.doctor-title {
  margin-bottom: 0.12em;
  font-size: 0.58em;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.doctor-name {
  font-weight: 680;
}

.hero-lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
}

.button-secondary:hover {
  border-color: #b9c9c4;
}

.button-disabled {
  color: #72807b;
  background: #edf1ef;
  border-color: #d9e0dd;
  cursor: not-allowed;
}

.hero-note {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(223, 230, 227, 0.95);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #e8f1ee;
  color: var(--primary);
  font-size: 1.4rem;
}

.hero-card h2 {
  margin: 18px 0 8px;
  font-size: 1.38rem;
}

.hero-card p {
  margin: 8px 0;
  color: var(--text-soft);
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contact-list a {
  color: var(--primary);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
}

/* =========================================================
   Sekcje
   ========================================================= */

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-accent {
  background: #163f39;
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading h2,
.location-grid h2,
.booking-placeholder h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

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

.info-card {
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.info-card h3,
.price-item h3,
.contact-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.info-card p,
.price-item p,
.booking-placeholder p {
  margin: 0;
  color: var(--text-soft);
}

.clean-list {
  padding-left: 20px;
  margin: 0;
}

.condition-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.condition-grid li {
  position: relative;
  padding: 18px 18px 18px 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 650;
}

.condition-grid li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--primary);
  font-weight: 900;
}

.price-list {
  display: grid;
  gap: 14px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.price {
  flex: 0 0 auto;
  font-size: 1.35rem;
  color: var(--primary);
}

.price-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 40px;
  align-items: start;
}

.section-accent .eyebrow {
  color: #9fd1c8;
}

address {
  margin-top: 22px;
  font-style: normal;
  color: #d8e5e1;
  font-size: 1.1rem;
}

address span {
  color: #aac0ba;
}

.contact-card {
  padding: 28px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
}

.contact-card p {
  color: #bed0cb;
}

.phone-link {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  text-decoration: none;
}

.booking-placeholder {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border: 1px dashed #b9c9c4;
  border-radius: 18px;
  background: #fbfcfc;
}

/* =========================================================
   Stopka
   ========================================================= */

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

/* =========================================================
   Responsywność
   ========================================================= */

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

  .main-nav {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

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

  .main-nav a {
    padding: 10px 8px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }

  .booking-placeholder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .info-grid,
  .condition-grid {
    grid-template-columns: 1fr;
  }

  .price-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
