/* Meble na wymiar – Łukasz Brańka. Kolory i wymiary z projektu w Figmie (wersja D). */

:root {
  --bg: #f2eee7;
  --ink: #1d1b18;
  --text: #2e2b27;
  --muted: #4a453e;
  --muted-2: #5f5950;
  --accent: #8a5a33;
  --gold: #d9be97;
  --line: #cfc8bc;
  --dark: #2a221b;
  --dark-line: #4a3f34;
  --dark-text: #d8cfc2;
  --dark-muted: #c9bfb0;
  --sand: #e6dccb;
  --sand-light: #e6e0d5;
  --faq-line: #c4bcae;
  --light: #f7f4ee;

  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --logo: "Montserrat", system-ui, sans-serif;

  --gutter: 32px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { left: 16px; }

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

.ornament { width: 200px; height: 10px; }

/* ---------- Typografia ---------- */

.h-page, .h-real, .h-section, .h-cta, .h-contact, .hero__title {
  font-weight: 500;
  color: var(--ink);
}
.h-page { font-size: clamp(44px, 5.85vw, 84px); line-height: .98; letter-spacing: -.035em; }
.h-page--sm { font-size: clamp(40px, 4.5vw, 64px); }
.h-real { font-size: clamp(38px, 5vw, 72px); line-height: 1.02; letter-spacing: -.035em; }
.h-section { font-size: clamp(36px, 3.62vw, 52px); line-height: 1; letter-spacing: -.03em; }
.h-section--56 { font-size: clamp(38px, 3.9vw, 56px); }
.h-section--40 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15; }
.h-cta { font-size: clamp(34px, 4.03vw, 58px); line-height: 1.03; letter-spacing: -.035em; }
.h-contact { font-size: clamp(40px, 4.6vw, 66px); line-height: 1; letter-spacing: -.035em; }
.h-serif { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 4.45vw, 64px); line-height: 1; }
.h-article { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }

.link { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.link:hover { color: var(--accent); }
.link--sm { font-size: 15px; }

.side-text { font-size: 17px; line-height: 1.5; color: var(--dark-muted); }
.side-text--muted { color: var(--muted); }
.side-text--sm { font-size: 16px; }

.kicker { font-size: 16px; color: var(--muted-2); }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 12px 22px; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--light); }
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--phone { padding: 18px 30px; font-size: 20px; }
.btn--light { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); }

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

.site-header { border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.site-header--hero { position: absolute; inset: 0 0 auto; border: 0; }
.site-header--hero .site-header__in { padding-block: 24px; }

.logo { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.logo__name { font-family: var(--logo); font-weight: 800; font-size: 22px; line-height: .95; }
.logo__line { width: 132px; height: 8px; }
.logo__person { font-family: var(--logo); font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--accent); }
.site-header--hero .logo, .logo--light { color: var(--light); }
.site-header--hero .logo__person, .logo--light .logo__person { color: var(--gold); }
.site-header--hero .logo__name { font-size: 23px; }
.site-header--hero .logo__line { width: 136px; }
.site-header--hero .logo__person { font-size: 15px; }

.menu { display: flex; align-items: center; gap: 32px; }
.menu a { font-size: 16px; text-decoration: none; }
.menu a:not(.btn):hover, .menu a.is-active { text-decoration: underline; text-underline-offset: 3px; }
.menu__phone { display: none; }
.site-header--hero .menu a:not(.btn) { color: var(--light); }
.site-header--hero .menu__cta { background: var(--light); color: var(--ink); border-color: var(--light); }
.site-header--hero .menu__cta:hover { background: var(--gold); border-color: var(--gold); }

.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; z-index: 31; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.site-header--hero .menu-toggle { color: var(--light); }

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

.hero { position: relative; height: clamp(560px, 92vh, 780px); background: #4a3f33; overflow: hidden; color: var(--light); }
.hero__slides, .hero__slide, .hero__img, .hero__shade, .hero__media, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img, .hero__video { object-fit: cover; }
.hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero__clip.is-playing { opacity: 1; }
/* Slajd z filmem nie ma dodatkowego przybliżania – ruch daje sam film */
.hero__slide.hero__slide--clip, .js .hero:not(.is-ready) .hero__slide--clip.is-active { transform: none; transition: opacity 1.1s ease; }
/* Zmiana zdjęcia: przenikanie + bardzo powolne przybliżenie bez skoków przy szybkim przełączaniu */
.hero__slide { opacity: 0; transform: scale(1.06); transition: opacity 1.1s ease, transform 9s cubic-bezier(.2,.6,.2,1); will-change: opacity, transform; }
.hero__slide.is-active { opacity: 1; transform: none; z-index: 1; }
.js .hero:not(.is-ready) .hero__slide.is-active { transform: scale(1.06); transition: none; }
.hero__shade { background: linear-gradient(180deg, rgba(24,19,14,.6) 0%, rgba(24,19,14,.12) 26%, rgba(24,19,14,.12) 52%, rgba(24,19,14,.78) 100%); pointer-events: none; }
.hero__bottom { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; margin-inline: auto; pointer-events: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 64px; }
.hero__claim, .rooms { pointer-events: auto; }
.hero__claim { display: flex; flex-direction: column; gap: 20px; max-width: 780px; }
.hero__title { color: var(--light); font-size: clamp(46px, 5.85vw, 84px); line-height: .98; letter-spacing: -.035em; }
.hero__text { max-width: 480px; font-size: 18px; line-height: 1.5; color: rgba(247,244,238,.88); }

.rooms { display: flex; flex-direction: column; }
.rooms__item { display: flex; align-items: center; gap: 14px; padding: 10px 0; font-size: 17px; color: rgba(247,244,238,.62); text-decoration: none; transition: color .3s; }
/* Kreska ma stałą szerokość i tylko się wydłużać w stronę napisu – tekst nie przesuwa się */
.rooms__line { flex: none; width: 48px; height: 1px; background: currentColor; transform: scaleX(.34); transform-origin: right center; transition: transform .5s var(--ease, ease); }
.rooms__item.is-active, .rooms__item:hover { color: var(--light); }
.rooms__item.is-active .rooms__line { transform: scaleX(1); }

/* ---------- O mnie ---------- */

.about { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 760px); justify-content: space-between; gap: 96px; align-items: center; padding-top: 140px; padding-bottom: 130px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about__photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted-2); }
.about__text { display: flex; flex-direction: column; gap: 28px; }
.about__lead { font-size: clamp(19px, 1.67vw, 24px); line-height: 1.45; color: var(--text); }
.about__more { font-size: 17px; line-height: 1.5; color: var(--muted); }
.about__quote { margin: 8px 0 0; padding-left: 22px; border-left: 2px solid var(--accent, #b08a5b); }
.about__quote p { margin: 0; font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; color: var(--text); }
.about__quote footer { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Sekcje ---------- */

.section-pb { padding-bottom: 140px; }
.section-py { padding-block: 130px; }
.section-py-100 { padding-block: 100px; }
.dark { background: var(--dark); color: var(--bg); }
.dark .h-section, .dark .h-cta { color: var(--bg); }
.sand { background: var(--sand); }
.sand-light { background: var(--sand-light); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }

.split { display: grid; grid-template-columns: 300px minmax(0, 980px); justify-content: space-between; gap: 96px; align-items: start; }
.split__side { display: flex; flex-direction: column; gap: 18px; }
.split__side--wide { max-width: 420px; }
.dark .split { grid-template-columns: 300px minmax(0, 980px); }
.dark .split:has(.split__side--wide) { grid-template-columns: 420px minmax(0, 860px); }

/* Wiersze: kroki i "co dostajesz w cenie" */
.rows { border-bottom: 1px solid var(--line); }
.rows__row { display: grid; grid-template-columns: 300px minmax(0, 640px); gap: 40px; padding-block: 24px; border-top: 1px solid var(--line); }
.rows__title { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.2; }
.rows__text { font-size: 17px; line-height: 1.55; color: var(--muted); }
.rows--dark { border-color: var(--dark-line); }
.rows--dark .rows__row { padding-block: 28px; border-color: var(--dark-line); }
.rows--dark .rows__title { font-size: 30px; color: var(--bg); }
.rows--dark .rows__text { color: var(--dark-text); }

/* Miasta */
.cities { display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--serif); font-size: clamp(30px, 3.05vw, 44px); line-height: 1.2; }
.cities a { text-decoration: none; transition: color .2s; }
.cities a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ---------- Kafelki realizacji ---------- */

.card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.card__img { display: block; overflow: hidden; border-radius: var(--radius); margin-bottom: 10px; background: var(--line); }
.card__img img { width: 100%; height: 100%; aspect-ratio: 437 / 328; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img, .service-card:hover .card__img img { transform: scale(1.03); }
.card__place { font-size: 15px; color: var(--accent); }
.card__place--muted { color: var(--muted-2); }
.card__title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.card:hover .card__title { text-decoration: underline; text-underline-offset: 3px; }

.featured { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 32px; }
.featured .card--tall { grid-row: span 2; }
.featured .card--tall .card__img img { aspect-ratio: 4 / 5; }
.featured .card:not(.card--tall) .card__img img { aspect-ratio: 3 / 2; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid3--list { gap: 48px 32px; padding-top: 32px; }
.grid3--services { gap: 56px 32px; }

/* ---------- Oferta ---------- */

.service-card { display: flex; flex-direction: column; gap: 16px; }
.service-card .card__img { margin: 0; }
.service-card__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.service-card__title { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; }
.service-card__title a { text-decoration: none; }
.service-card__title a:hover { color: var(--accent); }
.service-card__text { font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ---------- Góra podstron ---------- */

.page-top { padding-top: 24px; padding-bottom: 48px; }
.crumbs { font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; padding-top: 64px; }
.page-head__main { display: flex; flex-direction: column; gap: 22px; flex: 1 1 auto; max-width: 900px; }
.page-head > .page-head__lead, .page-head > .facts { flex: 0 0 auto; }
.page-head--real .page-head__main { gap: 16px; }
.page-head__lead { width: 416px; max-width: 100%; font-size: 19px; line-height: 1.55; color: var(--text); display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.page-head__lead--sm { font-size: 16px; color: var(--muted); }

.wide-img { width: 100%; object-fit: cover; border-radius: var(--radius); }
.wide-img--590 { aspect-ratio: 1376 / 590; }
.wide-img--774 { aspect-ratio: 16 / 9; height: auto; }
.wide-img-link { display: block; cursor: zoom-in; }
/* Pionowe zdjęcia realizacji – w całości, bez przycinania */
.showcase { position: relative; display: flex; justify-content: center; gap: 16px; height: min(78vh, 760px); min-height: 420px; }
.showcase--single { background: var(--sand); border-radius: var(--radius); overflow: hidden; }
.showcase__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(40px) saturate(.9); transform: scale(1.2); opacity: .55; pointer-events: none; }
.showcase__item { position: relative; display: block; flex: 0 1 auto; aspect-ratio: var(--r); height: 100%; min-width: 0; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.showcase--single .showcase__item { border-radius: 0; box-shadow: 0 10px 40px rgba(29, 27, 24, .18); }
.showcase__item img { width: 100%; height: 100%; object-fit: cover; }
/* Jedno zdjęcie: pełne proporcje, najwyżej ~80% wysokości ekranu; boki wypełnia rozmyte tło */
.showcase--single { height: auto; min-height: 0; }
.showcase--single .showcase__item { height: auto; width: min(100%, calc(min(80vh, 820px) * var(--r))); }

/* Filtry i stronicowanie */
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.filters a { font-size: 16px; text-decoration: none; padding-block: 4px; }
.filters a:hover, .filters a.is-active { text-decoration: underline; text-underline-offset: 4px; }
.filters a.is-active { font-weight: 500; }

.pager { display: flex; align-items: center; gap: 8px; margin-top: 56px; }
.pager a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; border-radius: 2px; }
.pager a:hover { background: var(--sand); }
.pager a.is-active { background: var(--ink); color: var(--bg); }
.pager__next { text-decoration: underline !important; padding-inline: 8px; }

[data-ajax-list] .grid3, [data-ajax-list] .pager, [data-ajax-list] .empty { transition: opacity .3s ease; }
[data-ajax-list].is-loading .grid3, [data-ajax-list].is-loading .pager, [data-ajax-list].is-loading .empty { opacity: .3; pointer-events: none; }
.empty { padding-block: 48px; font-size: 18px; color: var(--muted); }

.section-where { margin-top: 32px; padding-top: 48px; padding-bottom: 130px; border-top: 1px solid var(--line); }
.regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.regions h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.regions h3 a, .regions p a { text-decoration: none; }
.regions a:hover { text-decoration: underline; color: var(--accent); }
.regions p { font-size: 14px; color: var(--muted-2); line-height: 1.6; }

/* ---------- Strona usługi ---------- */

.prices { display: flex; flex-direction: column; gap: 16px; }
.prices__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--dark-line); border-radius: var(--radius); }
.price__label { font-size: 15px; color: var(--dark-muted); }
.price__value { font-family: var(--serif); font-size: 40px; line-height: 1.15; color: var(--bg); }
.prices__note { font-size: 16px; line-height: 1.55; color: var(--dark-text); }

.faq { border-bottom: 1px solid var(--faq-line); }
.faq__item { border-top: 1px solid var(--faq-line); padding-block: 22px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__icon { position: relative; flex: 0 0 16px; height: 16px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1.5px; background: currentColor; transition: transform .25s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__answer { margin-top: 12px; max-width: 900px; font-size: 17px; line-height: 1.55; color: var(--muted); }

.cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta > div { display: flex; flex-direction: column; gap: 16px; }
.cta__note { font-size: 17px; color: var(--muted); }

/* ---------- Realizacja ---------- */

.facts { display: grid; grid-template-columns: repeat(2, 186px); gap: 18px 24px; font-size: 15px; flex-shrink: 0; }
.facts dt { color: var(--muted-2); }
.facts dd { font-weight: 500; }

.article { display: grid; grid-template-columns: 300px minmax(0, 760px); gap: 80px; padding-top: 120px; padding-bottom: 100px; }
.toc { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.toc p { color: var(--muted-2); }
.toc a { text-decoration: underline; text-underline-offset: 3px; }
.toc a:hover { color: var(--accent); }
.article__body { display: flex; flex-direction: column; gap: 56px; }
.article__body section { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 32px; }
.article__body section p { font-size: 19px; line-height: 1.55; color: var(--text); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 372 / 465; object-fit: cover; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.03); }
.spec { width: 100%; border-collapse: collapse; font-size: 17px; }
.spec tr { border-top: 1px solid var(--line); }
.spec tr:last-child { border-bottom: 1px solid var(--line); }
.spec th { width: 240px; padding: 14px 24px 14px 0; text-align: left; font-weight: 400; color: var(--muted-2); vertical-align: top; }
.spec td { padding: 14px 0; }

/* Powiększanie zdjęć */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,16,12,.94); display: flex; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.lightbox button { position: absolute; border: 0; background: none; color: var(--light); cursor: pointer; font-size: 32px; line-height: 1; padding: 12px 16px; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- Kontakt ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 640px); justify-content: space-between; gap: 96px; }
.contact__info { display: flex; flex-direction: column; gap: 28px; }
.contact__info .side-text { max-width: 420px; }
.contact__links { display: flex; flex-direction: column; gap: 8px; font-size: 24px; }
.contact__links a, .contact__links span { text-decoration: underline; text-underline-offset: 4px; width: fit-content; }
.contact__links a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 14px; color: var(--muted-2); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  background: transparent; font: inherit; font-size: 18px; color: var(--ink);
  height: 44px; padding: 8px 0; outline: none; transition: border-color .2s;
}
.field textarea { height: 88px; resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { border-bottom: 2px solid var(--accent); }
.form .btn { align-self: flex-start; padding: 17px 32px; }
.form__rodo { font-size: 13px; color: var(--muted-2); }
.form__msg { padding: 14px 18px; border-radius: var(--radius); font-size: 16px; animation: msg-in .35s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.form button[disabled] { opacity: .6; cursor: progress; }
.form__msg--ok { background: #d9e4cf; color: #2c4020; }
.form__msg--err { background: #f0d4cb; color: #6b2414; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

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

.site-footer { background: var(--dark); color: var(--dark-muted); }
.site-footer__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 48px; }
.site-footer__info { text-align: right; font-size: 14px; line-height: 1.7; }
.site-footer__info a { text-decoration: none; }
.site-footer__info a:hover { color: var(--light); text-decoration: underline; }
.site-footer__small { opacity: .75; }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--text); }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* ---------- Tablet ---------- */

@media (max-width: 1180px) {
  .split, .dark .split, .dark .split:has(.split__side--wide) { grid-template-columns: 1fr; gap: 48px; }
  .split__side { max-width: 560px; }
  .about { gap: 56px; }
  .article { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
  .page-head { gap: 48px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }

  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: 30;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px;
    padding: 96px var(--gutter) 40px;
    background: var(--dark);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .menu a:not(.btn) { font-family: var(--serif); font-size: 40px; line-height: 1.1; color: var(--bg) !important; }
  .menu .menu__cta { margin-top: 16px; padding: 17px 28px; font-size: 17px; background: var(--bg); color: var(--ink); border-color: var(--bg); }
  .menu .menu__phone { display: block; font-family: var(--sans) !important; font-size: 20px !important; color: var(--dark-muted) !important; }
  .menu-open .menu { opacity: 1; visibility: visible; }
  .menu-open .menu-toggle { color: var(--bg); position: fixed; right: var(--gutter); top: 22px; }
  .menu-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
  .menu-open { overflow: hidden; }

  .about { grid-template-columns: 1fr; padding-top: 88px; padding-bottom: 88px; }
  .about__photo { max-width: 520px; }
  .featured { grid-template-columns: 1fr; }
  .featured .card--tall { grid-row: auto; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; gap: 56px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 32px; padding-top: 40px; }
  .page-head__lead { width: auto; max-width: 640px; }
  .article { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .toc { display: none; }
  .section-pb { padding-bottom: 96px; }
  .section-py { padding-block: 88px; }
  .section-py-100 { padding-block: 72px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .hero__bottom { padding-bottom: 40px; }
}

/* ---------- Telefon ---------- */

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .site-header__in { padding-block: 16px; }
  .site-header--hero .site-header__in { padding-block: 16px; }
  .logo__name, .site-header--hero .logo__name { font-size: 19px; }
  .logo__line, .site-header--hero .logo__line { width: 114px; height: 7px; }
  .logo__person, .site-header--hero .logo__person { font-size: 13px; }
  .menu-open .menu-toggle { top: 16px; }

  .hero { height: min(100svh, 720px); min-height: 560px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: 28px; }
  .hero__text { font-size: 16px; }
  .rooms { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .rooms__item { font-size: 15px; gap: 8px; padding: 4px 0; }
  .rooms__line { display: none; }
  .rooms__item.is-active { text-decoration: underline; text-underline-offset: 4px; }

  .about { gap: 32px; padding-top: 64px; padding-bottom: 72px; }
  .about__text { gap: 20px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .grid3, .grid3--list, .grid3--services { grid-template-columns: 1fr; gap: 36px; }
  .featured { gap: 36px; }
  .regions { grid-template-columns: 1fr; gap: 24px; }

  .rows__row { grid-template-columns: 1fr; gap: 8px; padding-block: 20px; }
  .rows__title, .rows--dark .rows__title { font-size: 26px; }

  .section-pb { padding-bottom: 72px; }
  .section-py { padding-block: 72px; }
  .section-where { padding-bottom: 72px; }

  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 22px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { white-space: nowrap; }

  .facts { grid-template-columns: 1fr 1fr; width: 100%; }
  .wide-img--590 { aspect-ratio: 4 / 3; }
  .wide-img--774 { aspect-ratio: 4 / 3; }
  .showcase { height: 72vh; min-height: 0; justify-content: flex-start; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .showcase::-webkit-scrollbar { display: none; }
  .showcase--single { justify-content: center; margin-inline: 0; padding-inline: 0; }
  .showcase__item { flex: 0 0 auto; scroll-snap-align: center; }
  .showcase--single { height: auto; overflow: hidden; }
  .showcase--single .showcase__item { flex: 0 1 auto; width: min(100%, calc(75vh * var(--r))); }
  .article__body { gap: 44px; }
  .article__body section p { font-size: 17px; }
  .h-article { font-size: 26px; }
  .gallery { gap: 10px; }
  .spec th { width: 40%; }
  .spec { font-size: 16px; }

  .price { padding: 22px; }
  .price__value { font-size: 34px; }
  .faq__item summary { font-size: 22px; }
  .service-card__title { font-size: 32px; }

  .contact__links { font-size: 20px; }
  .btn--phone { font-size: 18px; }

  .site-footer__in { flex-direction: column; align-items: flex-start; }
  .site-footer__info { text-align: left; }
}

/* ---------- Animacje ---------- */

:root { --ease: cubic-bezier(.2, .7, .1, 1); }

/* Hero: hasło wysuwa się linijka po linijce, zdjęcie powoli się przybliża */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: line-up 1.2s var(--ease) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.hero__title .line:nth-child(2) > span { animation-delay: .4s; }
.hero__text { opacity: 0; animation: fade-up 1.1s var(--ease) .75s forwards; }
.rooms li { opacity: 0; animation: fade-left .9s var(--ease) forwards; }
.rooms li:nth-child(1) { animation-delay: .9s; }
.rooms li:nth-child(2) { animation-delay: 1s; }
.rooms li:nth-child(3) { animation-delay: 1.1s; }
.rooms li:nth-child(4) { animation-delay: 1.2s; }
.rooms li:nth-child(5) { animation-delay: 1.3s; }
.site-header--hero .site-header__in { opacity: 0; animation: fade-down 1s var(--ease) .1s forwards; }

@keyframes line-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes fade-left { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes dot-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(247,244,238,.35); } 50% { box-shadow: 0 0 0 12px rgba(247,244,238,0); } }

/* Elementy pojawiają się przy przewijaniu (klasy dodaje main.js) */
.js .reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Zdjęcia odsłaniają się od dołu i lekko oddalają */
.js .reveal-img { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-img:not(.is-in) { clip-path: inset(18% 0 0 0 round var(--radius)); }
.js .reveal-img img { transition: transform 1.6s var(--ease); }
.js .reveal-img:not(.is-in) img,
.js .reveal:not(.is-in) .card__img img { transform: scale(1.12); }
.card__img img, .gallery img { transition: transform 1.2s var(--ease); }

/* Ozdobnik rysuje się od lewej */
.js .ornament.reveal { transform: none; clip-path: inset(0 100% 0 0); transition: opacity .3s, clip-path 1.2s var(--ease) .25s; }
.js .ornament.reveal.is-in { clip-path: inset(0 0 0 0); }

/* Linie w wierszach (kroki, cennik, pytania) rozciągają się */
.js .rows__row.reveal, .js .faq__item.reveal { transform: translateY(20px); }

/* Przyciski i linki: delikatny ruch */
.btn { transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.link, .toc a, .filters a, .menu a:not(.btn) { text-decoration-thickness: 1px; transition: color .25s; }
.cities a { display: inline-block; transition: color .3s, transform .4s var(--ease); }
.cities a:hover { transform: translateX(4px); }
.rooms__item:hover:not(.is-active) .rooms__line { transform: scaleX(.66); }

/* Menu na telefonie: linki wjeżdżają po kolei */
@media (max-width: 960px) {
  .menu > * { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
  .menu-open .menu > * { opacity: 1; transform: none; }
  .menu-open .menu > :nth-child(1) { transition-delay: .08s; }
  .menu-open .menu > :nth-child(2) { transition-delay: .14s; }
  .menu-open .menu > :nth-child(3) { transition-delay: .2s; }
  .menu-open .menu > :nth-child(4) { transition-delay: .26s; }
  .menu-open .menu > :nth-child(5) { transition-delay: .32s; }
  .menu-open .menu > :nth-child(6) { transition-delay: .38s; }
}

/* ---------- Strzałka „na górę” ---------- */

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 25;
  width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg); cursor: pointer;
  box-shadow: 0 6px 24px rgba(29,27,24,.18);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9);
  transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s, background .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); }
.to-top:hover .to-top__arrow { transform: translateY(-3px); }
.to-top__arrow { position: relative; transition: transform .35s var(--ease); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-dasharray: 154; stroke-dashoffset: calc(154 - 154 * var(--progress, 0));
}
.menu-open .to-top { opacity: 0; visibility: hidden; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; } }

@media (prefers-reduced-motion: reduce) {
  .hs { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero__title .line > span, .hero__text, .rooms li, .site-header--hero .site-header__in { transform: none; opacity: 1; }
  .menu > * { opacity: 1 !important; transform: none !important; }
}

/* ===== Kropki z opisami na zdjęciu / filmie ===== */
.hs-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hs { position: absolute; width: 0; height: 0; pointer-events: auto; opacity: 0; transform: scale(.3); transition: opacity .6s ease, transform .8s var(--ease); }
.hero__slide.is-active .hs { opacity: 1; transform: none; transition-delay: calc(.9s + var(--i) * .18s); }
.hs.is-on { opacity: 1; transform: none; }
.hs.is-hidden { visibility: hidden; }
.hs__dot { position: absolute; left: -17px; top: -17px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: rgba(247,244,238,.18); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: pointer; transition: background .3s, transform .4s var(--ease); }
.hs__dot span { position: absolute; inset: 11px; border-radius: 50%; background: var(--light); transition: inset .4s var(--ease), background .3s; }
.hs__dot::before, .hs__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(247,244,238,.7); animation: hs-ring 2.8s cubic-bezier(.2,.6,.3,1) infinite; }
.hs__dot::after { animation-delay: 1.4s; }
.hs:nth-child(2n) .hs__dot::before, .hs:nth-child(2n) .hs__dot::after { animation-duration: 3.2s; }
.hs:hover .hs__dot, .hs.is-open .hs__dot, .hs__dot:focus-visible { background: rgba(217,190,151,.35); transform: scale(1.08); }
.hs:hover .hs__dot span, .hs.is-open .hs__dot span { inset: 9px; background: var(--gold); }
.hs__dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@keyframes hs-ring { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }

.hs__card { position: absolute; left: 30px; top: -22px; width: max-content; max-width: min(280px, 64vw); padding: 14px 16px 15px; border-left: 1px solid var(--gold); background: rgba(29,24,19,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--light); pointer-events: none; opacity: 0; clip-path: inset(0 100% 0 0); transform: translateX(-6px); transition: opacity .35s ease, clip-path .55s var(--ease), transform .55s var(--ease); }
.hs__card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; letter-spacing: -.01em; }
.hs__card p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: rgba(247,244,238,.82); }
.hs__card b, .hs__card p { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .5s var(--ease); }
.hs--left .hs__card { left: auto; right: 30px; border-left: 0; border-right: 1px solid var(--gold); text-align: right; clip-path: inset(0 0 0 100%); transform: translateX(6px); }
.hs--up .hs__card { top: auto; bottom: -22px; }
.hs:hover .hs__card, .hs.is-open .hs__card, .hs:focus-within .hs__card { opacity: 1; clip-path: inset(0 0 0 0); transform: none; pointer-events: auto; }
.hs:hover .hs__card b, .hs.is-open .hs__card b, .hs:focus-within .hs__card b { opacity: 1; transform: none; transition-delay: .12s; }
.hs:hover .hs__card p, .hs.is-open .hs__card p, .hs:focus-within .hs__card p { opacity: 1; transform: none; transition-delay: .2s; }
.hs:hover, .hs.is-open, .hs:focus-within { z-index: 5; }

/* ===== Film przewijany scrollem ===== */
.hero--video { height: calc(100vh * (1 + var(--len) / 100)); overflow: visible; background: var(--dark); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero--video .hero__media { background: #4a3f33; }
.hero--video .hero__claim { transition: opacity .3s linear, transform .3s linear; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,244,238,.7); transition: opacity .4s; }
.hero__scroll i { position: relative; width: 1px; height: 44px; background: rgba(247,244,238,.25); overflow: hidden; }
.hero__scroll b { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--light); transform-origin: top; transform: scaleY(var(--p, 0)); }
.hero--video.is-scrolled .hero__scroll span { opacity: 0; }
@media (max-width: 1240px) { .hero__scroll { display: none; } }
@media (max-width: 640px) {
  .hs__dot { left: -14px; top: -14px; width: 28px; height: 28px; }
  .hs__dot span { inset: 9px; }
  .hs__card { left: 24px; padding: 11px 13px; }
  .hs--left .hs__card { right: 24px; }
  .hs__card b { font-size: 19px; }
  .hs__card p { font-size: 13px; }
}
