@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0020-007E,U+00A0,U+00A9,U+00B7,U+00D3,U+00F3,U+2013-2014,U+2018-2019,U+201C-201E,U+2026;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-ext.woff2") format("woff2");
  unicode-range: U+0104-0107,U+0118-0119,U+0141-0144,U+015A-015B,U+0179-017C;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0020-007E,U+00A0,U+00A9,U+00B7,U+00D3,U+00F3,U+2013-2014,U+2018-2019,U+201C-201E,U+2026;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-ext.woff2") format("woff2");
  unicode-range: U+0104-0107,U+0118-0119,U+0141-0144,U+015A-015B,U+0179-017C;
}

:root {
  --bg: #fcfdfb;
  --surface: #ffffff;
  --mint-50: #f3f8f4;
  --mint-100: #e8f1ea;
  --mint-200: #d3e4d8;
  --green-500: #3f8a63;
  --green-600: #2d6a4c;
  --green-700: #245a40;
  --green-800: #1c4632;
  --ink: #13221a;
  --ink-2: #44564b;
  --ink-3: #5b6c62;

  --shadow-border:
    0 0 0 1px rgb(19 34 26 / 0.06),
    0 1px 2px -1px rgb(19 34 26 / 0.06),
    0 2px 4px 0 rgb(19 34 26 / 0.04);
  --shadow-border-hover:
    0 0 0 1px rgb(19 34 26 / 0.1),
    0 1px 2px -1px rgb(19 34 26 / 0.08),
    0 3px 8px 0 rgb(19 34 26 / 0.07);

  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --pad: 8px;
  --r-in: 20px;
  --r-out: calc(var(--r-in) + var(--pad));

  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

h1, h2, h3, p, address, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p, address { text-wrap: pretty; }

a { color: inherit; }

::selection { background: #cde3d4; color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--green-700);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.eyebrow, .label {
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
}

.nowrap { white-space: nowrap; }

/* ---------- Nagłówek ---------- */

.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-decoration: none;
}
.brand-name { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.005em; }
.brand-city { color: var(--ink-2); }

.header-contact { display: flex; align-items: center; gap: 20px; }

.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease);
}
.phone svg { flex: none; }

.reception {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.reception::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 40px;
  translate: 0 -50%;
  background: var(--mint-200);
}

/* ---------- Hero ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(20px, 4vw, 56px) clamp(48px, 7vw, 96px);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  font-weight: 480;
  line-height: 1.03;
  letter-spacing: -0.025em;
}
.h1-title {
  display: block;
  margin-bottom: 0.7em;
  font-family: var(--font-sans);
  font-size: 0.3em;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}

.lead {
  max-width: 27em;
  margin-top: 24px;
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--ink-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition-property: background-color, box-shadow, transform;
  transition-duration: 160ms;
  transition-timing-function: var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; }
.btn-primary {
  padding-left: 18px;
  background: var(--green-700);
  color: #fff;
  box-shadow:
    0 0 0 1px rgb(19 34 26 / 0.2),
    0 1px 2px rgb(19 34 26 / 0.18),
    inset 0 1px 0 rgb(255 255 255 / 0.1);
}
.btn-secondary {
  padding-right: 18px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-border);
}

.hero-meta {
  margin-top: 24px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.portrait {
  justify-self: end;
  width: 100%;
  max-width: 480px;
  padding: var(--pad);
  border-radius: var(--r-out);
  background: var(--mint-100);
  box-shadow: var(--shadow-border);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 642 / 784;
  object-fit: cover;
  border-radius: var(--r-in);
  outline: 1px solid rgb(0 0 0 / 0.1);
  outline-offset: -1px;
}

/* ---------- Umów wizytę ---------- */

.visit { background: var(--mint-100); }

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(56px, 8vw, 104px);
}

.visit h2 {
  font-size: clamp(2.375rem, 1.7rem + 2.6vw, 3.5rem);
  font-weight: 480;
  letter-spacing: -0.02em;
}
.visit-intro p { margin-top: 16px; max-width: 26em; color: var(--ink-2); }
.visit-intro strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-top: 20px;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
  color: var(--green-700);
  transition: color 160ms var(--ease);
}
.big-phone svg { flex: none; }
.visit-intro .small { margin-top: 8px; font-size: 0.9375rem; color: var(--ink-3); }

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

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-border);
}
.card h3 { margin-top: 14px; font-size: 1.625rem; font-weight: 500; }
.card address { margin-top: 14px; font-style: normal; color: var(--ink-2); }

.link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: rgb(36 90 64 / 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms var(--ease);
}
.card address + .link { margin-top: 12px; }

.hours {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -0.01em;
}


.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: auto;
  padding: 6px;
  border-radius: 16px;
  background: var(--mint-50);
  box-shadow: inset 0 0 0 1px rgb(19 34 26 / 0.05);
}
.hours { margin-bottom: 24px; }
.week span {
  display: grid;
  place-items: center;
  height: 40px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
}
.week .on { background: var(--green-700); color: #fff; }

/* ---------- Stopka ---------- */

.site-footer { padding-block: 32px 40px; text-align: center; font-size: 0.875rem; color: var(--ink-3); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  margin-top: 4px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: rgb(19 34 26 / 0.25);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms var(--ease), text-decoration-color 160ms var(--ease);
}
.footer-links a[aria-current="page"] { color: var(--ink); }

/* ---------- Podstrona tekstowa (polityka prywatności) ---------- */

.legal-head { background: var(--mint-100); }
.legal-head-in { padding-block: clamp(20px, 4vw, 40px) clamp(40px, 6vw, 72px); }

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--green-700);
  text-decoration: none;
}
.back svg { flex: none; transition: transform 160ms var(--ease); }

.legal-head h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 480;
  letter-spacing: -0.02em;
}
.legal-meta {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.legal-body { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }

.prose { max-width: 44rem; }
.prose section + section { margin-top: clamp(32px, 4vw, 48px); }
.prose h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  font-weight: 500;
}
.prose p, .prose li { line-height: 1.7; color: var(--ink-2); }
.prose p { margin-top: 14px; }
.prose ul { margin: 14px 0 0; padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--green-500); }
.prose a {
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-color: rgb(36 90 64 / 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ---------- Animacja wejścia: opacity + translateY + blur, ze stagger ---------- */

@keyframes enter {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
}
.enter {
  animation: enter 700ms var(--ease) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@media (hover: hover) {
  .phone:hover, .big-phone:hover { color: var(--green-600); }
  .btn-primary:hover { background: var(--green-800); }
  .btn-secondary:hover { box-shadow: var(--shadow-border-hover); }
  .link:hover { text-decoration-color: currentColor; }
  .footer-links a:hover { color: var(--ink); text-decoration-color: currentColor; }
  .back:hover svg { transform: translateX(-3px); }
  .prose a:hover { text-decoration-color: currentColor; }
}

/* ---------- Responsywność ---------- */

@media (max-width: 1000px) {
  .visit-grid { grid-template-columns: 1fr; }
  .visit-intro p { max-width: 36em; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 440px; }
}

@media (max-width: 760px) {
  .reception { display: none; }
  .phone {
    padding: 0 16px 0 12px;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-border);
  }
}

@media (max-width: 700px) {
  .visit-cards { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .btn { width: 100%; }
  .big-phone { font-size: 1.5rem; }
}

@media (max-width: 440px) {
  .phone { width: 44px; padding: 0; justify-content: center; }
  .phone-text {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enter { animation: none; }
  .btn, .phone, .big-phone, .link, .back svg, .footer-links a { transition-duration: 0.01ms; }
}
