/* =========================================================
   Mieszkania Wytchnieniowe — arkusz stylów
   Paleta z logo: kremowy, granatowy, złoty
   ========================================================= */

:root {
  --cream:      #FBF1E8;
  --cream-2:    #F5E7D4;
  --cream-3:    #FDF8F1;
  --navy:       #1B2C4B;
  --navy-2:     #13203a;
  --navy-soft:  #2b3f63;
  --gold:       #BE9553;
  --gold-deep:  #A67C3D;
  --sage:       #6f8a6b;
  --sage-soft:  #eef1e9;
  --ink:        #2b2723;
  --ink-soft:   #55504a;
  --line:       #e6d9c6;
  --white:      #ffffff;

  --shadow-sm: 0 2px 8px rgba(27, 44, 75, .06);
  --shadow-md: 0 10px 30px rgba(27, 44, 75, .10);
  --shadow-lg: 0 24px 60px rgba(27, 44, 75, .16);

  --radius:   18px;
  --radius-sm:12px;
  --maxw:     1160px;

  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans:  "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --script:"Caveat", "Segoe Script", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: .2px;
}

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

section { position: relative; }

.section {
  padding: 96px 0;
}
.section--tight { padding: 72px 0; }
.section--cream2 { background: var(--cream-2); }
.section--sage   { background: var(--sage-soft); }
.section--navy   { background: var(--navy); }

/* ---------- Eyebrow + section title ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--gold-deep);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--gold);
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  max-width: 20ch;
}
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-title { margin-inline: auto; }
.lead {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--navy .section-title,
.section--navy .lead,
.section--navy h3,
.section--navy p { color: var(--cream); }
.section--navy .eyebrow { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  line-height: 1;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 8px 22px rgba(190,149,83,.35);
}
.btn--primary:hover { background: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(190,149,83,.42); }
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn--light {
  background: #fff; color: var(--navy);
}
.btn--light:hover { background: var(--cream); transform: translateY(-2px); }
.btn--lg { font-size: 1.1rem; padding: 17px 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,241,232,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand-text b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--navy);
  letter-spacing: .5px;
  display: block;
  line-height: 1.05;
}
.brand-text span {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a.navlink {
  font-weight: 700;
  font-size: .98rem;
  color: var(--navy);
  padding: 6px 2px;
  position: relative;
}
.nav a.navlink::after {
  content:""; position:absolute; left:0; bottom:-2px;
  width:0; height:2px; background: var(--gold); transition: width .2s ease;
}
.nav a.navlink:hover::after { width:100%; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}
.header-phone:hover { background: var(--navy-2); transform: translateY(-1px); color:#fff; }
.header-phone svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  background: var(--navy);
  border: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content:""; display:block; width: 22px; height: 2px; background:#fff; margin: 0 auto; position: relative; transition: .25s;
}
.nav-toggle span::before { position:absolute; top:-7px; }
.nav-toggle span::after  { position:absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top:0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top:0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 88% -8%, rgba(190,149,83,.16), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-3) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 78px 0 84px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius:50%; background: var(--sage); box-shadow:0 0 0 4px rgba(111,138,107,.18); }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  margin: 22px 0 8px;
  letter-spacing: 0;
}
.hero .script {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.hero p.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  margin-top: 22px;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-soft); font-size: .98rem;
}
.hero-note svg { width: 20px; height: 20px; color: var(--sage); flex: none; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}
.hero-media::after {
  content:"";
  position:absolute; inset:0;
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
  pointer-events:none;
}
.hero-badge {
  position: absolute;
  left: -18px; bottom: 26px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 14px;
  max-width: 270px;
}
.hero-badge .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--sage-soft); color: var(--sage);
  display: grid; place-items: center; flex: none;
}
.hero-badge .ico svg { width: 24px; height: 24px; }
.hero-badge b { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); display:block; }
.hero-badge span { font-size: .86rem; color: var(--ink-soft); line-height: 1.35; }

/* ---------- Trust / stats strip ---------- */
.stats {
  background: var(--navy);
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: 46px 0;
}
.stat { text-align: center; padding: 6px 10px; }
.stat b {
  font-family: var(--serif);
  font-size: 2.7rem;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat span { color: rgba(255,255,255,.82); font-size: .98rem; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: 22px; box-shadow: var(--shadow-md); width:100%; aspect-ratio: 5/4; object-fit: cover; }
.about-media .frame {
  position:absolute; inset: 16px -16px -16px 16px;
  border: 2px solid var(--gold);
  border-radius: 22px; z-index:-1;
}
.about-quote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 20px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--navy);
  font-style: italic;
  margin: 26px 0 0;
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.feature .ico {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cream-2), #fff);
  color: var(--gold-deep);
  display: grid; place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.32rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  color: #fff; font-weight: 700; font-size: .98rem;
  background: linear-gradient(180deg, transparent, rgba(19,32,58,.82));
}
.gal-item.big   { grid-column: span 3; grid-row: span 2; }
.gal-item.tall  { grid-column: span 3; grid-row: span 2; }
.gal-item.wide  { grid-column: span 3; grid-row: span 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,23,42,.9);
  display: none;
  align-items: center; justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lightbox .lb-close {
  position: absolute; top: 22px; right: 26px;
  width: 50px; height: 50px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color:#fff;
  font-size: 1.6rem; cursor: pointer;
}
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.15); color:#fff;
  font-size: 1.7rem; cursor: pointer;
}
.lightbox .lb-prev { left: 20px; }
.lightbox .lb-next { right: 20px; }

/* ---------- Two-column info (audience / prepare) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { font-size: 1.7rem; margin-bottom: 18px; display:flex; align-items:center; gap:12px; }
.info-card h3 .ico { width: 42px; height:42px; border-radius:11px; background: var(--sage-soft); color: var(--sage); display:grid; place-items:center; flex:none;}
.info-card h3 .ico svg { width: 22px; height: 22px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 38px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
}
.step .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.step h3 { color: #fff; font-size: 1.4rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.8); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: stretch;
}
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .ico {
  width: 56px; height: 56px; border-radius: 14px; flex: none;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
}
.contact-card .ico svg { width: 26px; height: 26px; }
.contact-card .c-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); font-weight: 700; }
.contact-card .c-value { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); font-weight: 600; line-height: 1.1; }
.contact-card .c-sub { color: var(--ink-soft); font-size: .95rem; }

.contact-cta {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-md);
}
.contact-cta h3 { color: #fff; font-size: 1.9rem; }
.contact-cta p { color: rgba(255,255,255,.82); }
.contact-cta .btn { margin-top: 10px; }
.contact-cta .fb {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); font-weight: 700;
}
.contact-cta .fb svg { width: 22px; height: 22px; }
.contact-cta .fb:hover { color: var(--gold); }

/* ---------- Mapa ---------- */
.map {
  position: relative;
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}
.map-dir {
  position: absolute;
  right: 18px;
  bottom: 18px;
  box-shadow: var(--shadow-md);
}
.map-dir svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .map iframe { height: 320px; }
  .map-dir { right: 12px; bottom: 12px; padding: 12px 18px; font-size: .95rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,.75);
  padding: 60px 0 26px;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display:flex; align-items:center; gap:14px; margin-bottom: 16px; }
.footer-brand img { width: 56px; height:56px; border-radius: 12px; }
.footer-brand b { font-family: var(--serif); color:#fff; font-size: 1.2rem; letter-spacing:.5px; display:block; line-height:1.1;}
.footer-brand span { color: var(--gold); font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; font-weight:700;}
.site-footer h4 { color:#fff; font-family: var(--sans); font-size: .84rem; letter-spacing:.14em; text-transform:uppercase; margin-bottom: 16px; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--gold); }
.footer-fund {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.55);
  font-size: .86rem;
}

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none;
  background: var(--gold);
  color: #fff;
  padding: 12px 16px;
  align-items: center; justify-content: center; gap: 10px;
  font-weight: 800; font-size: 1.08rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}
.callbar svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 96px 28px 28px; gap: 8px; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: var(--shadow-lg); }
  .nav.open { transform: none; }
  .nav a.navlink { font-size: 1.15rem; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .header-phone { margin-top: 14px; }
  .nav-toggle { display: block; z-index: 61; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 60px; }
  .hero-media { order: -1; max-width: 520px; }
  .hero-media img { aspect-ratio: 4/3; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 560px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .stat:nth-child(3) { border-left: none; }
  .stat + .stat { border-left: none; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gal-item.big, .gal-item.tall, .gal-item.wide { grid-column: span 2; grid-row: span 1; }
  .info-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .callbar { display: flex; }
  body { padding-bottom: 60px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .brand-text b { font-size: 1rem; }
  .brand-text span { font-size: .62rem; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-badge { left: 8px; right: 8px; max-width: none; }
  .info-card { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .05ms !important; }
}
