/* =====================================================================
   Tanie Pokoje w Kutnie – arkusz stylów. Kolory zmienisz w sekcji :root.
   Pomarańcz ze starej strony, ale stonowany; grafit zamiast czerni.
   ===================================================================== */
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --orange: #E8590C;       /* akcent – pomarańcz ze starej strony, stonowany */
  --orange-btn: #C2410C;   /* ciemniejszy – białe napisy są czytelne */
  --orange-soft: #FDEBDD;
  --graphite: #1F232A;
  --graphite-2: #2C323B;
  --ink: #1B1F24;
  --muted: #59616B;
  --paper: #F5F5F3;
  --tint: #ECEAE6;
  --line: #DAD8D3;
  --white: #fff;
  --wrap: 1160px;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--orange-btn); text-underline-offset: .2em; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3rem); }
h3 { font-size: 1.5rem; margin-top: 1.2em; }
h3:first-child { margin-top: 0; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; line-height: 1.55; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border: 2px solid transparent; border-radius: 8px;
  font: 650 1.02rem/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; margin: 0 .4rem .5rem 0;
}
.btn-orange { background: var(--orange-btn); color: var(--white); }
.btn-orange:hover { background: #A3360A; color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--graphite); color: var(--white); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--head); font-size: 1.5rem; font-weight: 700; }
.brand-sub { font-size: .8rem; color: #B9BEC6; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .5rem .8rem; color: #E7E9EC; text-decoration: none; font-weight: 550; border-radius: 6px; }
.site-nav a:hover, .site-nav a.is-active { background: rgba(255,255,255,.1); color: var(--white); }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; color: var(--white); font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone svg { color: var(--orange); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem; padding: .5rem .85rem;
  border: 2px solid rgba(255,255,255,.3); border-radius: 8px; background: transparent; color: var(--white); font: 650 1rem var(--body); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero { background: var(--graphite-2); color: var(--white); padding-top: clamp(2rem, 5vw, 3.5rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.2rem); margin: 0 0 1rem; max-width: 14ch; }
.hero-lead { font-size: 1.18rem; color: #D6DAE0; max-width: 42ch; }
.hero-actions { margin-top: 1.5rem; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }

/* pasek z najważniejszymi informacjami – wyróżnik strony */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  background: var(--white); color: var(--ink); border-radius: 12px 12px 0 0; overflow: hidden;
}
.fact { padding: 1.2rem 1.4rem 1.3rem; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: .9rem; color: var(--muted); }
.fact dd { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1.05; }
.fact dd.fact-note { font-family: var(--body); font-weight: 500; font-size: .92rem; line-height: 1.35; color: var(--muted); margin-top: .25rem; }
.fact--price { background: var(--orange-soft); }
.fact--price dd:not(.fact-note) { color: var(--orange-btn); }

/* ---------- sekcje ---------- */
.band { padding-block: clamp(2.75rem, 6vw, 4.75rem); scroll-margin-top: 4rem; }
.band--tint { background: var(--tint); }
.band--dark { background: var(--graphite); color: #DDE1E6; }
.band--dark h2 { color: var(--white); }
.band--dark a { color: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: start; }
.split p { max-width: 62ch; }

.amenities { list-style: none; padding: 0; margin: 0 0 1rem; }
.amenities li { position: relative; padding: .7rem 0 .7rem 2rem; border-bottom: 1px solid var(--line); }
.amenities li::before { content: ""; position: absolute; left: .2rem; top: 1.05rem; width: .9rem; height: .5rem; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }

.price-box { background: var(--white); border-left: 6px solid var(--orange); border-radius: 0 12px 12px 0; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.price { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 1; margin: 0 0 .5rem; color: var(--orange-btn); }
.price-from, .price-unit { font-family: var(--body); font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-box p:last-child { margin: 0; color: var(--muted); }

.big-phone { margin: .25rem 0 0; }
.big-phone a { font-family: var(--head); font-weight: 700; font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4rem); text-decoration: none; color: var(--white); }
.big-phone a:hover { color: var(--orange); }
.contact-name { font-weight: 650; color: var(--white); margin-bottom: .5rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .65rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list span { width: 5.5rem; color: #9AA1AB; }
.contact-list a { font-weight: 650; text-decoration: none; }
.directions .btn-outline, .band--dark .btn-outline { display: inline-flex; padding: .8rem 1.35rem; border: 2px solid rgba(255,255,255,.5); border-radius: 8px; color: var(--white); text-decoration: none; font-weight: 650; }
.band--dark .btn-outline:hover { background: rgba(255,255,255,.08); }

/* ---------- galeria ---------- */
.gallery { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 8px; }
.gallery a { display: block; transition: transform .2s; }
.gallery a:hover { transform: translateY(-2px); }

/* ---------- stopka ---------- */
.site-footer { background: #171A1F; color: #A9B0B9; padding: 2rem 0 1rem; font-size: .95rem; border-top: 4px solid var(--orange); }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1rem; padding-top: 1rem; font-size: .85rem; color: #7E8691; }
.call-bar { display: none; }

/* ---------- podgląd zdjęć ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15, 17, 20, .93); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 3.5rem 3.5rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; border-radius: 6px; }
.lightbox figcaption { color: #E3E6EA; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; border: 0; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lb-close { top: .8rem; right: .8rem; }
.lb-prev { left: .8rem; top: 50%; translate: 0 -50%; }
.lb-next { right: .8rem; top: 50%; translate: 0 -50%; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .header-phone { display: none; }
  .hero-inner, .split { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; padding-bottom: 4.4rem; }
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .brand-name { font-size: 1.25rem; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--graphite); border-top: 1px solid rgba(255,255,255,.1); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem .75rem 1rem; }
  .site-nav a { padding: .8rem 1rem; }
  .hero-actions .btn { width: 100%; margin-right: 0; }
  .fact { padding: 1rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .call-bar {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--graphite);
  }
  .call-bar .btn { margin: 0; }
  .call-bar .btn-orange { flex: 1; }
  .lightbox figure { padding: 3.5rem .5rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: .8rem; translate: none; }
}

@media print {
  .site-header { position: static; }
  .site-nav, .nav-toggle, .call-bar, .header-phone { display: none !important; }
  .hero, .band--dark { background: none; color: var(--ink); }
}
