/* Biel — gabinet stomatologiczny */
:root {
  --spruce: #10302E;
  --spruce-2: #17413E;
  --teal: #2C6E66;
  --porcelain: #FAFAF8;
  --mist: #EEF2F1;
  --line: #D8E0DE;
  --text: #1B2A29;
  --muted: #566664;
  --pale: #CFE3DE;
}
body { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--porcelain); }
h1, h2, h3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--spruce); }
a { color: var(--teal); text-underline-offset: 3px; }
:focus-visible { outline-color: var(--teal); }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 6px; border: 1px solid transparent; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .15s; }
.btn--dark { background: var(--spruce); color: #fff; }
.btn--dark:hover { background: var(--spruce-2); }

/* Nagłówek */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand__text { display: grid; line-height: 1.05; }
.brand__name { font-family: 'Newsreader', serif; font-size: 28px; color: var(--spruce); letter-spacing: -.01em; }
.brand__sub { font-size: 13px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--teal); }
.nav__cta { padding: 10px 18px; border-radius: 6px; background: var(--spruce); color: #fff !important; }
.nav__cta:hover { background: var(--spruce-2); }
.d-toggle { color: var(--spruce); }
@media (max-width: 860px) {
  .top__in { flex-wrap: wrap; }
  .nav.is-open { flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: 16px; }
  .nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .nav__cta { margin-top: 10px; text-align: center; padding: 14px; }
}

/* Hero */
.hero { background: #fff; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; padding-top: 64px; padding-bottom: 72px; }
.hero__text { align-self: center; }
.hero h1 { font-size: clamp(44px, 5.6vw, 78px); font-weight: 300; letter-spacing: -.025em; line-height: 1.02; font-variation-settings: 'opsz' 72; }
.hero__sub { margin-top: 24px; font-size: 18px; color: var(--muted); max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 32px; }
.hero__tel { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--spruce); text-decoration: none; font-size: 17px; }
.hero__tel svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linejoin: round; }
.hero__tel:hover { text-decoration: underline; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--line); }
.hero__facts div { padding: 18px 20px 0 0; }
.hero__facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hero__facts dt { font-weight: 600; color: var(--spruce); font-size: 15px; }
.hero__facts dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.hero__plate { position: relative; margin: 0; background: var(--spruce); border-radius: 4px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding-top: 24px; overflow: hidden; }
.plate__svg { width: 100%; max-width: 480px; height: auto; align-self: center; }
.plate__mm { font: 500 10px 'Instrument Sans', sans-serif; fill: #CFE3DE; fill-opacity: .55; letter-spacing: .04em; }
.plate__label { font: 400 15px 'Newsreader', serif; font-style: italic; fill: #F3F7F6; }
.slot { position: relative; align-self: flex-start; margin: 0 24px 24px; display: grid; gap: 2px; background: #fff; padding: 16px 20px; border-radius: 4px; box-shadow: 0 18px 40px -20px rgba(4, 20, 18, .6); }
.slot__label { font-size: 13px; color: var(--muted); }
.slot__time { font-family: 'Newsreader', serif; font-size: 21px; color: var(--spruce); line-height: 1.25; }
.slot a { margin-top: 6px; font-weight: 600; font-size: 14px; }

@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; padding-top: 40px; }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
  .hero__facts div { padding-top: 14px; }
  .slot { margin: 0 16px 16px; align-self: stretch; }
}

/* Informacje */
.info { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.info__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info__in > div { padding: 28px 24px 28px 0; }
.info__in > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.info h2 { font-family: 'Instrument Sans', sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.info p { color: var(--spruce); font-size: 16px; line-height: 1.5; }
.info a { color: var(--spruce); text-decoration: none; }
.info a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .info__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info__in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .info__in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Zakres leczenia */
.treat { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px 72px; padding-top: 104px; padding-bottom: 104px; }
.treat__head h2, .first h2, .docs h2, .prices h2, .visit h2 { font-size: clamp(38px, 4.4vw, 56px); font-weight: 300; letter-spacing: -.02em; }
.treat__head p { margin-top: 18px; color: var(--muted); max-width: 26em; }
.treat__head { position: sticky; top: 32px; align-self: start; }
.treat__list { list-style: none; border-top: 1px solid var(--spruce); }
.treat__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.treat__list h3 { font-size: 26px; grid-column: 1; }
.treat__list p { grid-column: 1; color: var(--muted); font-size: 16px; max-width: 36em; }
.treat__list b { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding-top: 4px; font-weight: 600; color: var(--spruce); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .treat { grid-template-columns: 1fr; } .treat__head { position: static; } }

/* Pierwsza wizyta */
.first { background: var(--spruce); color: rgba(243, 247, 246, .78); padding: 96px 0; }
.first h2 { color: #fff; }
.first__steps { counter-reset: s; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.first__steps li { counter-increment: s; border-top: 1px solid rgba(207, 227, 222, .3); padding-top: 22px; }
.first__steps li::before { content: counter(s, decimal-leading-zero); display: block; font-family: 'Newsreader', serif; font-size: 18px; color: var(--pale); margin-bottom: 14px; }
.first__steps h3 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.first :focus-visible { outline-color: var(--pale); }
@media (max-width: 860px) { .first__steps { grid-template-columns: 1fr; gap: 28px; } }

/* Lekarze */
.docs { padding-top: 104px; padding-bottom: 104px; }
.docs__list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.docs__list li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.docs__mono { display: flex; align-items: center; justify-content: center; width: 112px; height: 136px; background: var(--mist); border-radius: 56px 56px 4px 4px; font-family: 'Newsreader', serif; font-size: 40px; color: var(--spruce); }
.docs__list h3 { font-size: 26px; }
.docs__role { margin-top: 6px; color: var(--teal); font-weight: 500; }
.docs__list dl { margin-top: 18px; display: grid; gap: 0; }
.docs__list dl div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.docs__list dt { color: var(--muted); }
.docs__list dd { margin: 0; font-weight: 600; color: var(--spruce); }
@media (max-width: 860px) { .docs__list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .docs__list li { grid-template-columns: 1fr; } .docs__mono { width: 88px; height: 104px; font-size: 32px; } }

/* Cennik */
.prices { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prices__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 32px 72px; padding-top: 96px; padding-bottom: 96px; }
.prices__in > div p { margin-top: 18px; color: var(--muted); max-width: 26em; }
table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--spruce); }
th, td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
td { text-align: right; font-weight: 600; color: var(--spruce); white-space: nowrap; padding-left: 24px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .prices__in { grid-template-columns: 1fr; } }

/* Wizyta */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 72px; padding-top: 104px; padding-bottom: 104px; }
.visit__info > p { margin-top: 18px; color: var(--muted); max-width: 32em; }
.visit__tel { margin-top: 28px !important; }
.visit__tel a { font-family: 'Newsreader', serif; font-size: 40px; color: var(--spruce); text-decoration: none; letter-spacing: -.01em; }
.visit__map { width: 100%; margin-top: 32px; border-radius: 4px; }
.visit__form { display: grid; gap: 20px; align-content: start; align-self: start; padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.f-field { display: grid; gap: 6px; }
.f-field label, .f-time legend { font-size: 14px; font-weight: 600; color: var(--spruce); }
.f-field input, .f-field select { width: 100%; padding: 12px 14px; border: 1px solid #BFCCC9; border-radius: 4px; background: #fff; font-size: 16px; }
.f-field input:focus, .f-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(44, 110, 102, .18); }
.f-time { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.f-time legend { padding: 0; margin-bottom: 8px; }
.f-time label { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.f-time input { accent-color: var(--spruce); width: 18px; height: 18px; margin: 0; }
.visit__form .btn { justify-self: start; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr; } .visit__form { padding: 22px; } }

/* Stopka */
.foot { background: var(--spruce); color: rgba(243, 247, 246, .7); padding: 40px 0; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.foot__name { font-family: 'Newsreader', serif; font-size: 26px; color: #fff; }
.foot__name span { font-family: 'Instrument Sans', sans-serif; font-size: 14px; color: rgba(243, 247, 246, .7); margin-left: 6px; }
