:root {
  --bg: #F4ECE1;
  --bg2: #EADFCE;
  --ink: #2B1F19;
  --muted: #6B5648;
  --line: #D5C5B0;
  --accent: #2B1F19;
  --accent-ink: #F4ECE1;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #241A15;
    --bg2: #2E221B;
    --ink: #F1E7DA;
    --muted: #C2AF9C;
    --line: #4A3A2F;
    --accent: #E6D6C0;
    --accent-ink: #241A15;
  }
}

:root[data-theme="dark"] {
  --bg: #241A15;
  --bg2: #2E221B;
  --ink: #F1E7DA;
  --muted: #C2AF9C;
  --line: #4A3A2F;
  --accent: #E6D6C0;
  --accent-ink: #241A15;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 74px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
}

header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  letter-spacing: .04em;
  text-decoration: none;
  line-height: 1.1;
  min-width: 0;
}

nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color .2s ease;
}

nav a:hover, nav a.active {
  color: var(--ink);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 400;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: opacity .2s ease;
}

.btn:hover {
  opacity: .88;
}

.btn.alt {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.hero {
  padding: 84px 0 76px;
  text-align: center;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(38px, 7vw, 68px);
  max-width: 820px;
  margin: 0 auto 20px;
}

.hero p.lead {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 18px;
}

.hero .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.rating {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .05em;
}

section {
  padding: 72px 0;
}

section.alt {
  background: var(--bg2);
}

h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  text-align: center;
  margin-bottom: 12px;
}

.sub {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 44px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 340px) 1fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 52px;
}

.intro img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.intro h2 {
  text-align: left;
}

.intro p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.card {
  border: 1px solid var(--line);
  padding: 24px 16px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.card .ph {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 16px;
}

.card .n {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: .15em;
}

.card h3 {
  font-size: 25px;
  margin: 6px 0 10px;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  flex: 1;
}

.more-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-weight: 400;
  transition: opacity .2s ease;
}

.more-link:hover {
  opacity: .65;
}

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

.prices h3 {
  font-size: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 6px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.row b {
  font-weight: 500;
  white-space: nowrap;
}

.note {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.about h2 {
  text-align: left;
}

.about ul {
  padding-left: 18px;
  color: var(--muted);
}

.about li {
  margin-bottom: 6px;
}

.box {
  border: 1px solid var(--line);
  padding: 34px;
  text-align: center;
  background: var(--bg2);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  max-width: 720px;
  margin: 0 auto;
}

summary {
  cursor: pointer;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact {
  text-align: center;
}

.contact .tel {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  text-decoration: none;
  display: block;
  margin: 14px 0 6px;
}

.contact .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Podstrony usług i polityki prywatności */
.subpage-head {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.subpage-head h1 {
  font-size: clamp(34px, 5.5vw, 56px);
  margin-bottom: 14px;
}

.subpage-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
  margin: 0 0 24px;
}

.service-details {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}

.service-details h2 {
  text-align: left;
  font-size: clamp(26px, 3.5vw, 34px);
  margin-bottom: 16px;
}

.service-details p {
  color: var(--muted);
  margin: 0 0 16px;
}

.service-details ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 0 0 24px;
}

.service-details li {
  margin-bottom: 8px;
}

.price-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--bg2);
}

.price-card h3 {
  font-size: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.policy-content {
  max-width: 780px;
  margin: 0 auto;
}

.policy-content h2 {
  text-align: left;
  font-size: 28px;
  margin: 32px 0 12px;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p, .policy-content li {
  color: var(--muted);
}

.policy-content ul {
  padding-left: 20px;
}

/* Lightbox dla galerii */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 14, 11, .9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--line);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 26px;
  background: none;
  border: none;
  color: #F4ECE1;
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
}

/* Stopka (pojedyncza) */
footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .service-details {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }
  .hero {
    padding: 60px 0 54px;
  }
  section {
    padding: 54px 0;
  }
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .intro img {
    max-width: 340px;
    margin: 0 auto;
  }
}