:root {
  --ink: #19211e;
  --ink-soft: #47514d;
  --forest: #1d3029;
  --forest-2: #29483d;
  --cream: #f5f2eb;
  --sand: #ded6c7;
  --white: #fff;
  --line: rgba(25, 33, 30, .14);
  --shadow: 0 24px 70px rgba(11, 20, 16, .16);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; }
body.modal-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; left: 12px; top: 12px; padding: 10px 14px; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; margin-right: auto; }
.brand img { width: 205px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { text-decoration: none; font-weight: 650; font-size: .92rem; }
.main-nav a:hover { color: var(--forest-2); }
.header-phone { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; color: white; background: var(--forest); border-radius: 999px; text-decoration: none; font-weight: 750; }
.header-phone svg, .mobile-cta svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden; color: #fff; background: #20312b; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: url("assets/images/hero-inwestycja.webp") center 42% / cover no-repeat; }
.hero-shade { background: linear-gradient(90deg, rgba(14,25,20,.92) 0%, rgba(14,25,20,.70) 45%, rgba(14,25,20,.16) 76%), linear-gradient(0deg, rgba(14,25,20,.65), transparent 45%); }
.hero-content { position: relative; z-index: 1; padding-block: 94px 70px; }
.eyebrow { margin: 0 0 16px; color: #d9decf; font-size: .78rem; line-height: 1.3; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.dark { color: #587166; }
.hero h1, .section h2, .contact-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 { max-width: 720px; font-size: clamp(3rem, 6.3vw, 5.5rem); text-wrap: balance; }
.hero-lead { max-width: 690px; margin: 24px 0 0; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.button { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 13px 21px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 780; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: #e7dfcf; }
.button-primary:hover { background: #fff; }
.button-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.button-ghost:hover { border-color: #fff; background: rgba(255,255,255,.15); }
.button-outline { color: var(--ink); border-color: var(--line); background: transparent; }
.button-dark { color: #fff; background: var(--forest); }
.hero-facts { max-width: 950px; margin: 54px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.28); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.hero-facts span { margin-top: 2px; color: rgba(255,255,255,.72); font-size: .88rem; }

.trust-strip { color: #fff; background: var(--forest); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { min-height: 118px; display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-right: 1px solid rgba(255,255,255,.12); }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid p { margin: 0; color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.45; }
.trust-grid strong { color: #fff; font-size: .98rem; }
.check { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }

.section { padding-block: 110px; }
.section h2, .contact-section h2 { font-size: clamp(2.3rem, 4.6vw, 4.3rem); text-wrap: balance; }
.section p, .contact-section p { color: var(--ink-soft); }
.lead { font-size: 1.16rem; }
.intro-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 78px; align-items: center; }
.section-copy > p:not(.eyebrow) { max-width: 650px; }
.text-link { display: inline-flex; gap: 9px; align-items: center; margin-top: 16px; color: var(--forest-2); font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }
.feature-image { position: relative; margin: 0; }
.feature-image::before { content: ""; position: absolute; z-index: -1; inset: 35px -28px -28px 35px; border-radius: var(--radius); background: var(--cream); }
.feature-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-image figcaption, .gallery-item span { position: absolute; left: 16px; bottom: 16px; padding: 7px 11px; border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.9); font-size: .75rem; font-weight: 750; }

.plan-section { background: var(--cream); }
.section-heading.center { text-align: center; }
.section-heading.center h2 { max-width: 800px; margin-inline: auto; }
.room-layout { margin-top: 50px; display: grid; grid-template-columns: 230px 1fr 330px; gap: 24px; align-items: stretch; }
.room-total { min-height: 280px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; border-radius: var(--radius); background: var(--forest); }
.room-total span { letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.room-total strong { font-family: Georgia, serif; font-weight: 500; font-size: 4.7rem; line-height: 1.1; }
.room-total small { font-size: 1rem; }
.room-list { padding: 8px 26px; border-radius: var(--radius); background: #fff; }
.room-list div { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.room-list div:last-child { border: 0; }
.room-list span { color: var(--ink-soft); }
.room-list strong { white-space: nowrap; }
.attic-card { padding: 30px; border: 1px solid rgba(25,33,30,.22); border-radius: var(--radius); }
.attic-icon { font-family: Georgia, serif; font-size: 2.6rem; }
.attic-card h3 { margin: 14px 0 8px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.attic-card p { margin: 0; font-size: .94rem; }

.standard-section { color: #fff; background: var(--forest); }
.standard-section p { color: rgba(255,255,255,.68); }
.split-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.split-heading > p { margin: 0 0 5px; }
.standard-grid { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.standard-grid article { min-height: 260px; padding: 30px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.standard-grid article > span { color: #c9c1b2; font-size: .75rem; letter-spacing: .1em; }
.standard-grid h3 { margin: 50px 0 10px; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.standard-grid p { margin: 0; font-size: .94rem; }

.gallery-section { color: #fff; background: #121816; }
.gallery-section p { color: rgba(255,255,255,.66); }
.gallery-grid { margin-top: 54px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; padding: 0; border: 0; border-radius: 14px; cursor: zoom-in; background: #27312d; }
.gallery-item.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.video-card { margin-top: 70px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: center; }
.video-copy h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1.08; }
.video-card video { width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.location-grid .button { margin-top: 18px; }
.location-card { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; padding: 50px; border-radius: var(--radius); color: #fff; text-align: center; background: var(--forest); }
.location-card p { margin: 20px 0 2px; color: #c7d2cc; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; }
.location-card strong { font-family: Georgia, serif; font-size: 3rem; font-weight: 500; }
.location-card > span:not(.map-pin) { color: #c7d2cc; }
.map-pin { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: #e7dfcf; }
.map-pin svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.route-lines { position: absolute; inset: auto 0 0; height: 100px; opacity: .13; }
.route-lines i { position: absolute; width: 150%; height: 1px; background: #fff; transform: rotate(-9deg); }
.route-lines i:nth-child(2) { top: 35px; transform: rotate(8deg); }
.route-lines i:nth-child(3) { top: 75px; transform: rotate(-4deg); }

.faq-section { padding-top: 30px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 45px 24px 0; cursor: pointer; list-style: none; font-size: 1.05rem; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 18px; font-size: 1.7rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: -8px 0 24px; padding-right: 35px; }

.contact-section { padding-block: 110px; color: #fff; background: var(--forest-2); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 520px; color: rgba(255,255,255,.75); font-size: 1.08rem; }
.direct-contact { margin-top: 38px; display: grid; gap: 12px; }
.direct-contact a { width: max-content; text-decoration: none; }
.direct-contact span, .direct-contact strong { display: block; }
.direct-contact span { color: rgba(255,255,255,.58); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.direct-contact strong { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.contact-form { padding: 38px; color: var(--ink); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form > label, .field-row label { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 750; font-size: .9rem; }
.contact-form label > span { color: #7a837f; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #cfd4d1; border-radius: 10px; padding: 13px 14px; color: var(--ink); background: #fff; outline: 0; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(41,72,61,.12); }
.contact-form textarea { resize: vertical; }
.contact-form .checkbox-label { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; color: #5d6662; font-size: .78rem; font-weight: 500; }
.checkbox-label input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; accent-color: var(--forest); }
.inline-button { padding: 0; border: 0; color: var(--forest-2); background: none; cursor: pointer; text-decoration: underline; }
.submit-button { width: 100%; color: #fff; background: var(--forest); }
.submit-button:hover,
.submit-button:focus-visible { color: #fff; background: #14241f; }
.form-note { margin: 10px 0 0; text-align: center; font-size: .78rem; }
.form-status { display: none; margin-bottom: 18px; padding: 13px 15px; border-radius: 10px; font-size: .9rem; }
.form-status.success { display: block; color: #16472e; background: #e7f4eb; }
.form-status.error { display: block; color: #7f1d1d; background: #feecec; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; }

.site-footer { padding: 48px 0 95px; border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-grid img { width: 205px; height: auto; }
.footer-grid p { margin: 0; color: var(--ink-soft); }
.footer-links { display: flex; justify-content: flex-end; gap: 20px; }
.footer-links button { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; }
.footer-bottom { margin-top: 35px; padding-top: 24px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: #75807b; font-size: .75rem; }
.footer-bottom p { margin: 0; }

.mobile-cta { display: none; }
.cookie-banner { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; max-width: 1180px; margin-inline: auto; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 18px 70px rgba(0,0,0,.23); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-size: 1.05rem; }
.cookie-banner p { max-width: 660px; margin: 3px 0 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-actions .button { min-height: 43px; padding: 9px 15px; font-size: .82rem; }

dialog { border: 0; }
dialog::backdrop { background: rgba(7,14,11,.74); backdrop-filter: blur(4px); }
.modal { width: min(620px, calc(100% - 30px)); max-height: min(760px, calc(100vh - 30px)); padding: 34px; border-radius: 20px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.modal h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }
.modal h3 { margin: 26px 0 6px; font-family: Georgia, serif; font-size: 1.3rem; }
.modal p { color: var(--ink-soft); }
.modal-close, .lightbox-close { position: absolute; right: 15px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; font-size: 1.8rem; line-height: 1; background: #eef0ef; }
.switch-row { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.switch-row span, .switch-row strong, .switch-row small { display: block; }
.switch-row small { color: var(--ink-soft); }
.switch-row input { width: 20px; height: 20px; accent-color: var(--forest); }
#cookie-preferences .button { margin-top: 20px; width: 100%; }

.lightbox { width: min(1120px, calc(100% - 30px)); max-width: 1120px; padding: 0; border-radius: 16px; overflow: visible; color: #fff; background: transparent; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 14px; background: #111; }
.lightbox p { margin: 10px 0 0; text-align: center; }
.lightbox-close { z-index: 2; top: -15px; right: -15px; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero { min-height: 680px; }
  .hero-shade { background: linear-gradient(90deg, rgba(14,25,20,.9), rgba(14,25,20,.42)), linear-gradient(0deg, rgba(14,25,20,.75), transparent 50%); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .intro-grid, .location-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .feature-image { max-width: 700px; }
  .room-layout { grid-template-columns: 210px 1fr; }
  .attic-card { grid-column: 1 / -1; }
  .standard-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .video-card, .faq-grid { grid-template-columns: 1fr; gap: 35px; }
  .video-copy { max-width: 650px; }
}

@media (max-width: 700px) {
  body { padding-bottom: 66px; }
  .container { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 65px; }
  .brand img { width: 174px; }
  .header-phone { width: 42px; height: 42px; justify-content: center; padding: 0; font-size: 0; }
  .header-phone svg { width: 19px; }
  .hero { min-height: 720px; align-items: end; }
  .hero-media { background-position: 60% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,25,20,.98) 10%, rgba(14,25,20,.58) 72%, rgba(14,25,20,.22)); }
  .hero-content { padding: 150px 0 34px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-lead { font-size: 1rem; line-height: 1.55; }
  .hero-actions { display: grid; }
  .hero-facts { margin-top: 32px; grid-template-columns: 1fr 1fr; }
  .hero-facts strong { font-size: 1.35rem; }
  .trust-grid { grid-template-columns: 1fr; padding-block: 10px; }
  .trust-grid > div { min-height: auto; padding: 13px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .section, .contact-section { padding-block: 75px; }
  .section h2, .contact-section h2 { font-size: 2.55rem; }
  .intro-grid { gap: 45px; }
  .feature-image::before { inset: 20px -8px -14px 18px; }
  .room-layout { grid-template-columns: 1fr; }
  .room-total { min-height: 220px; }
  .attic-card { grid-column: auto; }
  .room-list { padding-inline: 16px; }
  .room-list div { font-size: .88rem; }
  .split-heading { grid-template-columns: 1fr; gap: 20px; }
  .standard-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .standard-grid article { min-height: auto; }
  .standard-grid h3 { margin-top: 25px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item.gallery-wide { grid-column: auto; }
  .video-card { margin-top: 50px; gap: 25px; }
  .location-grid { gap: 45px; }
  .location-card { min-height: 350px; padding: 35px 20px; }
  .location-card strong { font-size: 2.5rem; }
  .faq-section { padding-top: 10px; }
  .contact-grid { gap: 38px; }
  .contact-form { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; }
  .mobile-cta { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: .8fr 1.2fr; height: 66px; box-shadow: 0 -8px 25px rgba(0,0,0,.13); }
  .mobile-cta a { display: flex; justify-content: center; align-items: center; gap: 8px; color: #fff; background: #121816; text-decoration: none; font-weight: 780; }
  .mobile-cta a:last-child { color: var(--ink); background: #e7dfcf; }
  .cookie-banner { left: 10px; right: 10px; bottom: 76px; display: block; padding: 18px; }
  .cookie-actions { margin-top: 15px; justify-content: stretch; }
  .cookie-actions .button { flex: 1 1 45%; }
  .cookie-actions .button-primary { flex-basis: 100%; }
  .modal { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
