/* ========== Tokeny ========== */
:root {
  --color-bg: #fffefa;           /* kremowa biel */
  --color-bg-soft: #f7f5ef;
  --color-beige: #e8decc;
  --color-surface: #ffffff;
  --color-text: #382711;         /* ciemny brąz */
  --color-muted: #6b5a47;        /* kontrast ≥ 4.8:1 także na beżu */
  --color-accent: #382711;
  --color-border: #e3dccf;
  --color-dark: #382711;
  --color-on-dark: #fffefa;
  --color-on-dark-muted: #d9ccb9;
  --color-border-dark: rgba(255, 254, 250, .18);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* Lato dla alfabetu łacińskiego, Jost dla cyrylicy (Lato jej nie ma) */
  --font-sans: "Lato", "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 136px);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* Po ukraińsku cały tekst w Jost, żeby litery nie mieszały się z Lato */
html[lang="uk"] { --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif; }

/* ========== Baza ========== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.25rem); }
h1 em { font-style: normal; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--color-text); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: .78rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 1.1rem; font-weight: 400;
}
.muted { color: var(--color-muted); font-style: italic; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 15px 26px;
  background: var(--color-text); color: #fff;
  border: 1px solid var(--color-text); border-radius: 0;
  font: 300 .8rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: transparent; color: var(--color-text); }
.btn-ghost { background: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-text); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 48px; margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head h2 { margin-bottom: 0; }
.section-sub { color: var(--color-muted); max-width: 420px; margin: 0; }

/* ========== Nagłówek ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 250, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--color-border); }
.header-inner {
  max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.logo { margin-right: auto; }
.logo img { height: 56px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav a, .mobile-menu a, .footer-nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; position: relative; padding: 10px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--color-accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.lang-switch {
  display: flex; padding-left: clamp(12px, 2vw, 24px);
  border-left: 1px solid var(--color-border);
}
.lang-switch button {
  min-width: 40px; min-height: 44px; padding: 0 6px;
  background: none; border: 0; cursor: pointer;
  font: 400 .78rem/1 var(--font-sans); letter-spacing: .12em; color: var(--color-muted);
  transition: color .2s;
}
.lang-switch button:hover { color: var(--color-text); }
.lang-switch button[aria-pressed="true"] {
  color: var(--color-text); font-weight: 500;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--color-accent);
}

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 1.5px; background: var(--color-text); margin: 5px 0; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px var(--gutter) 24px; border-top: 1px solid var(--color-border);
}
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--color-border); }

@media (max-width: 1024px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .logo img { height: 46px; }
  .menu-toggle { display: block; }
  .header-inner { gap: 8px; }
  .lang-switch { border-left: 0; padding-left: 0; }
}

/* ========== Karuzela ========== */
.hero { padding-top: 6px; }
.carousel { overflow: hidden; }
.carousel-track { display: flex; will-change: transform; }
.slide {
  flex: 0 0 var(--slide-w, 33.3333%);
  padding-inline: 3px;
  height: clamp(460px, 76vh, 820px);
}
.slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-bar {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  padding-top: 20px;
}
.counter {
  margin: 0; font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: .05em;
  color: var(--color-muted); font-variant-numeric: tabular-nums;
}
.counter-current { color: var(--color-text); }
.progress { flex: 1; height: 1px; background: var(--color-border); overflow: hidden; }
.progress-fill { display: block; height: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; }
.carousel-buttons { display: flex; gap: 8px; }
.round-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 0;
  background: transparent; color: var(--color-text); border: 1px solid transparent;
  cursor: pointer; transition: border-color .2s;
}
.round-btn:hover { border-color: var(--color-border); }
.round-btn svg { width: 18px; height: 18px; }
.carousel-pause .icon-play { fill: currentColor; display: none; }
.carousel-bar.is-paused .icon-pause { display: none; }
.carousel-bar.is-paused .icon-play { display: block; }

@media (max-width: 900px) {
  .slide { height: clamp(420px, 70vh, 720px); }
}
@media (max-width: 600px) {
  .hero { padding-top: 12px; }
  .slide { height: auto; aspect-ratio: 4 / 5; padding-inline: 5px; }
  .carousel-bar { justify-content: center; padding-top: 14px; }
  .progress { display: none; }
}

/* ========== Intro ========== */
.intro {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px clamp(32px, 6vw, 96px); align-items: end;
  padding-block: clamp(56px, 8vw, 104px) 0;
}
.intro h1 { margin: 0; }
.intro-side p { color: var(--color-muted); font-size: 1.15rem; max-width: 42ch; margin-bottom: 1.6rem; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

/* ========== O mnie ========== */
.about { padding-block: var(--section-y); }
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(48px, 8vw, 120px); align-items: center; }
.about-text p { max-width: 62ch; }
.about-text blockquote {
  margin: 0 0 1em; max-width: 62ch;
  font-style: italic; color: var(--color-accent);
}
.signature {
  font-family: var(--font-script); font-size: 3.6rem; line-height: 1; color: var(--color-accent);
  margin: .6rem 0 0;
}
.about-photo { position: relative; margin: 0 16px 16px 0; }
.about-photo::before {
  content: ""; position: absolute; inset: 0; transform: translate(16px, 16px);
  border: 1px solid var(--color-accent); z-index: -1;
}
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; position: relative; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; max-width: 260px; }
  .about-photo img { aspect-ratio: 4 / 5; }
}

/* ========== Oferta ========== */
.offer { padding-block: var(--section-y); background: var(--color-beige); --color-border: rgba(56, 39, 17, .16); }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 4vw, 56px) clamp(20px, 3vw, 36px); }
.offer-link { display: block; text-decoration: none; }
.offer-img { overflow: hidden; margin-bottom: 18px; aspect-ratio: 3 / 4; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.offer-link:hover .offer-img img { transform: scale(1.04); }
.offer-num { font-size: .78rem; letter-spacing: .2em; color: var(--color-accent); }
.offer-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--color-border); padding-bottom: 10px; margin: 4px 0 12px;
}
.offer-meta h3 { margin: 0; }
.price-from { font-size: .9rem; white-space: nowrap; color: var(--color-accent); font-weight: 400; }
.offer-card p { color: var(--color-muted); font-size: 1rem; margin: 0; }

@media (max-width: 960px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .offer-grid { gap: 32px 12px; }
  .offer-img { aspect-ratio: 4 / 5; margin-bottom: 10px; }
  .offer-meta { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 8px; margin-bottom: 8px; }
  .offer-meta h3 { font-size: 1.2rem; }
  .price-from { font-size: .82rem; }
  .offer-card p { font-size: .88rem; line-height: 1.5; }
}

/* ========== Cennik ========== */
.pricing { padding-block: var(--section-y); }
.pricing-subhead {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem); margin: clamp(56px, 7vw, 88px) 0 24px;
  padding-bottom: 14px; border-bottom: 1px solid var(--color-text);
}
.section-head + .pricing-subhead { margin-top: 0; }
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.package {
  display: flex; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 32px 26px 24px;
}
.package h4 { font-family: var(--font-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; letter-spacing: .03em; text-transform: uppercase; margin: 0; }
.package-price { font-family: var(--font-serif); font-size: 2.5rem; line-height: 1; margin: .35em 0 .7em; }
.package-desc { color: var(--color-muted); font-size: .95rem; line-height: 1.55; }
.spec { margin: auto 0 0; }
.spec div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--color-border); font-size: .95rem; line-height: 1.4;
}
.spec dt { color: var(--color-muted); }
.spec dd { margin: 0; text-align: right; font-weight: 400; white-space: nowrap; }
.package-featured { background: var(--color-dark); color: var(--color-on-dark); border-color: var(--color-dark); }
.package-featured .spec div { border-top-color: var(--color-border-dark); }
.package-featured .spec dt { color: var(--color-on-dark-muted); }

.extras {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px clamp(32px, 6vw, 96px); align-items: start;
  margin-top: clamp(56px, 7vw, 88px); padding: clamp(28px, 4vw, 44px);
  background: var(--color-bg-soft);
}
.extras h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: .3em; }
.extras p { color: var(--color-muted); margin: 0; }
.price-list { margin: 0; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--color-border);
}
.price-row dt { font-size: 1.05rem; }
.price-row dd { margin: 0; font-family: var(--font-serif); font-size: 1.6rem; white-space: nowrap; }
.price-note { color: var(--color-muted); font-size: .95rem; margin-top: 24px; }

@media (max-width: 1100px) { .packages { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .extras { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .packages { grid-template-columns: 1fr; } }

/* ========== FAQ ========== */
.faq { padding-block: var(--section-y); background: var(--color-bg-soft); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px clamp(40px, 8vw, 120px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list details { border-bottom: 1px solid var(--color-border); }
.faq-list details:first-child { border-top: 1px solid var(--color-border); }
.faq-list summary {
  list-style: none; cursor: pointer; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 500; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--color-border); border-radius: 0;
  font-family: var(--font-sans); font-weight: 300; font-size: 1.2rem; line-height: 1;
  transition: transform .25s var(--ease), background-color .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--color-surface); }
.faq-list details p { color: var(--color-muted); padding-bottom: 22px; margin: 0; max-width: 62ch; }
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}

/* ========== Kontakt ========== */
.contact {
  /* jasna, beżowa wersja: lokalnie odwracamy zmienne „ciemne” */
  --color-dark: var(--color-bg);
  --color-on-dark: var(--color-text);
  --color-on-dark-muted: var(--color-muted);
  --color-border-dark: rgba(56, 39, 17, .18);
  padding-block: var(--section-y); background: var(--color-beige); color: var(--color-text);
}
.contact :focus-visible { outline-color: var(--color-on-dark); }
.contact .eyebrow { color: var(--color-on-dark-muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px clamp(40px, 8vw, 120px); align-items: center; }
.contact-intro p { color: var(--color-on-dark-muted); max-width: 44ch; margin-bottom: 2rem; }
.btn-light { background: var(--color-on-dark); color: var(--color-dark); border-color: var(--color-on-dark); }
.btn-light:hover { background: transparent; color: var(--color-on-dark); border-color: var(--color-on-dark); }

.contact-list { margin: 0; }
.contact-list > div { padding: 22px 0; border-top: 1px solid var(--color-border-dark); }
.contact-list > div:last-child { border-bottom: 1px solid var(--color-border-dark); }
.contact-list dt { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--color-on-dark-muted); margin-bottom: 6px; }
.contact-list dd { margin: 0; }
.contact-big, .contact-mid {
  font-family: var(--font-serif); text-decoration: none; line-height: 1.15;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease);
  overflow-wrap: anywhere;
}
.contact-big { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.contact-mid { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.contact-big:hover, .contact-mid:hover { background-size: 100% 1px; }

.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--color-border-dark); border-radius: 0; text-decoration: none;
  transition: border-color .2s, background-color .2s, color .2s;
}
.social a:hover { background: var(--color-on-dark); color: var(--color-dark); border-color: var(--color-on-dark); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ========== Stopka ========== */
.site-footer {
  --color-on-dark: var(--color-text);
  --color-on-dark-muted: var(--color-muted);
  --color-border-dark: rgba(56, 39, 17, .14);
  background: var(--color-bg-soft); color: var(--color-muted); padding-block: 48px 32px;
}
.site-footer :focus-visible { outline-color: var(--color-on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-logo { height: 52px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.footer-nav a:hover { color: var(--color-on-dark); }
.copyright { font-size: .85rem; margin: 0; width: 100%; padding-top: 24px; border-top: 1px solid var(--color-border-dark); }

/* ========== Animacja pojawiania ========== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .progress { visibility: hidden; }
}
