/* =====================================================================
   Apartamenty Centrum Kutno – arkusz stylów. Kolory zmienisz w :root.
   Kolorystyka ze starego szablonu: bordo + złoto (logo „Apartamenty Centrum Kutno”).
   ===================================================================== */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --wine: #3B0F1A;        /* bordo ze starego szablonu */
  --wine-2: #521626;
  --gold: #D4AF5A;        /* złoto z logo */
  --gold-dark: #9A7A2C;
  --ink: #23161A;
  --muted: #6A5B5F;
  --paper: #F6F3EF;
  --line: #E3DCD5;
  --white: #fff;
  --wrap: 1180px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "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: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--wine-2); text-underline-offset: .2em; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .55em; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); color: var(--wine); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.22rem; line-height: 1.55; }
.section-lead { color: var(--muted); max-width: 60ch; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); 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.4rem; border: 1.5px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; margin: 0 .45rem .5rem 0; letter-spacing: .01em;
}
.btn-sm { padding: .55rem 1rem; margin: 0; }
.btn-gold { background: var(--gold); color: var(--wine); }
.btn-gold:hover { background: #E2C277; color: var(--wine); }
.btn-line { border-color: rgba(212,175,90,.7); color: var(--white); }
.btn-line:hover { background: rgba(212,175,90,.15); color: var(--white); }
.btn-line-dark { border-color: var(--wine); color: var(--wine); }
.btn-line-dark:hover { background: var(--wine); color: var(--white); }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--wine); border-bottom: 1px solid rgba(212,175,90,.35); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .55rem; }
.brand img { display: block; width: 210px; height: auto; }
.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: #EADFD5; text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.is-active { color: var(--white); border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; margin-left: auto; align-items: center; gap: .5rem; padding: .5rem .85rem;
  border: 1.5px solid rgba(212,175,90,.6); border-radius: 2px; background: transparent; color: var(--white); font: 600 1rem var(--sans); 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: panorama salonu ---------- */
.hero { position: relative; min-height: min(70vh, 640px); display: grid; align-items: end; color: var(--white); overflow: hidden; background: var(--wine); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(59,15,26,.88) 0%, rgba(59,15,26,.55) 45%, rgba(59,15,26,.1) 100%), linear-gradient(0deg, rgba(59,15,26,.5), transparent 50%); }
.hero-content { position: relative; z-index: 2; padding-block: 4rem 3.5rem; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.6rem); max-width: 14ch; margin-bottom: 1rem; }
.hero h1::after { content: ""; display: block; width: 90px; height: 2px; background: var(--gold); margin-top: 1.1rem; }
.hero-lead { font-size: 1.2rem; max-width: 46ch; color: #F1E6DB; }
.hero-actions { margin-top: 1.5rem; }

/* ---------- sekcje ---------- */
.band { padding-block: clamp(3.25rem, 7vw, 5.5rem); }
.band--tint { background: var(--paper); }
.band--dark { background: var(--wine); color: #EADFD5; }
.band--dark h2 { color: var(--white); }
.band--dark a { color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4.5rem; align-items: start; }
.split p { max-width: 62ch; }

/* lista apartamentów */
.apartments { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.apt-card { display: block; background: var(--white); text-decoration: none; color: var(--ink); height: 100%; box-shadow: 0 1px 2px rgba(59,15,26,.06); transition: transform .25s ease, box-shadow .25s ease; }
.apt-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(59,15,26,.14); color: var(--ink); }
.apt-img { display: block; overflow: hidden; aspect-ratio: 32 / 23; background: var(--line); }
.apt-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.apt-card:hover .apt-img img { transform: scale(1.05); }
.apt-body { display: grid; gap: .1rem; padding: 1rem 1.15rem 1.15rem; border-top: 3px solid var(--gold); }
.apt-name { font-family: var(--serif); font-size: 1.45rem; color: var(--wine); line-height: 1.15; }
.apt-meta { color: var(--ink); font-weight: 500; }
.apt-count { color: var(--muted); font-size: .92rem; }

/* wyposażenie – ikony w stylu dawnych ikon SAT/TV/WiFi */
.amenities { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.amenities li { border: 1px solid rgba(212,175,90,.35); padding: 1.4rem 1.3rem 1.2rem; }
.amenities svg { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: .6rem; }
.amenities h3 { color: var(--white); margin-bottom: .25rem; }
.amenities p { margin: 0; color: #D9C9BE; font-size: .98rem; }

/* lokalizacje */
.locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.location { margin: 0; }
.location img { display: block; width: 100%; aspect-ratio: 750 / 371; object-fit: cover; }
.location figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
.location strong { font-family: var(--serif); font-weight: 600; color: var(--wine); font-size: 1.3rem; }

/* kontakt */
.big-phone { margin: .5rem 0 0; }
.big-phone a { font-family: var(--serif); font-size: clamp(2.4rem, 1.7rem + 3vw, 3.6rem); text-decoration: none; color: var(--gold); }
.contact-name { color: var(--white); font-weight: 600; margin: 0; }
.contact-address { margin-bottom: .6rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-list li { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding: .6rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list span { width: 5.5rem; color: #B9A79D; }
.contact-list a { font-weight: 600; text-decoration: none; }
.band--dark .btn-outline { display: inline-flex; padding: .8rem 1.4rem; border: 1.5px solid rgba(212,175,90,.7); color: var(--white); text-decoration: none; font-weight: 600; }

/* ---------- podstrona apartamentu ---------- */
.apt-page { padding-top: 2.25rem; }
.crumbs { margin-bottom: 1rem; font-size: .95rem; }
.crumbs a::before { content: "← "; }
.apt-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: 1.5rem; }
.apt-head h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.6rem); color: var(--wine); margin-bottom: .2rem; }
.apt-address { color: var(--muted); font-size: 1.1rem; }
.apt-cta { background: var(--paper); padding: 1.2rem 1.3rem; border-top: 3px solid var(--gold); }
.apt-cta p { margin-bottom: .6rem; font-weight: 600; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.apt-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery a { display: block; height: 100%; overflow: hidden; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 10 / 7; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
.plan-h { margin-top: 2.5rem; }
.plans { display: flex; flex-wrap: wrap; gap: 1rem; }
.plans .plan { display: block; max-width: 640px; border: 1px solid var(--line); padding: .75rem; background: var(--white); }
.plans img { display: block; }
.others { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.others h2 { font-size: 1.5rem; }
.others div { display: flex; flex-wrap: wrap; gap: .5rem; }
.others a { padding: .45rem .9rem; border: 1px solid var(--line); text-decoration: none; color: var(--wine); }
.others a:hover { border-color: var(--gold); background: var(--paper); }

/* ---------- stopka ---------- */
.site-footer { background: #2A0A12; color: #CDBBB0; padding: 2.5rem 0 1rem; font-size: .98rem; }
.site-footer a { color: var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 1.5rem 3rem; }
.footer-logo { width: 220px; display: block; margin-bottom: .75rem; }
.footer-contact { text-align: right; }
.copyright { border-top: 1px solid rgba(212,175,90,.2); margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; color: #9D8A80; }
.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(26, 6, 11, .95); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 3.5rem 4rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 7rem); object-fit: contain; }
.lightbox figcaption { color: #EADFD5; 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,.12); color: #fff; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: var(--gold); color: var(--wine); }
.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-call { display: none; }
  .split, .apt-head { grid-template-columns: minmax(0, 1fr); }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- telefon ---------- */
@media (max-width: 760px) {
  body { font-size: 1rem; padding-bottom: 4.4rem; }
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .brand img { width: 165px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wine); border-bottom: 1px solid rgba(212,175,90,.35); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem .75rem 1rem; }
  .site-nav a { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero { min-height: 74vh; }
  .hero::after { background: linear-gradient(0deg, rgba(59,15,26,.92) 15%, rgba(59,15,26,.35) 70%, rgba(59,15,26,.2)); }
  .hero-actions .btn { width: 100%; margin-right: 0; }
  .apartments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .apt-body { padding: .7rem .8rem .8rem; }
  .apt-name { font-size: 1.15rem; }
  .apt-count { font-size: .82rem; }
  .amenities, .locations { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; }
  .footer-contact { text-align: left; }
  .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(--wine);
  }
  .call-bar .btn { margin: 0; }
  .call-bar .btn-gold { 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-call { display: none !important; }
  .hero, .band--dark, .site-footer { background: none; color: var(--ink); }
}
