/* =============================================
   OSIEDLE KAMPINOS - PREMIUM LANDING PAGE
   Bazuje na stylu factorycentrum.pl
   Font: Albra Light (serif headings) + Inter (body)
   Kolory: Dark Green #1B3A2D | Lime #C8D83E | Cream #EDE8E0
   ============================================= */

/* ========== FONTS ========== */
@font-face {
    font-family: 'albra-light';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/albra-light.woff2') format('woff2');
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========== VARIABLES ========== */
:root {
    --green-dark: #162e22;
    --green: #1B3A2D;
    --green-mid: #264d38;
    --green-light: #2d5c43;
    --lime: #C8D83E;
    --lime-light: #d4e34e;
    --lime-muted: rgba(200, 216, 62, 0.7);
    --cream: #EDE8E0;
    --cream-light: #F5F0EB;
    --white: #ffffff;
    --black: #17181C;
    --text: #17181C;
    --text-mid: #4a4a4a;
    --text-light: #706D70;
    --text-muted: #9a9a9a;

    --font-heading: 'albra-light', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --section-padding: clamp(80px, 10vw, 150px);
    --container-max: 1320px;
    --container-narrow: 900px;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-mid: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ========== PRELOADER ========== */
.preloader {
    position: fixed; inset: 0; z-index: 99999;
    background: var(--green-dark);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
    gap: 20px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-text {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 8px;
    font-weight: 400;
    opacity: 0;
    animation: preloaderFade 1.5s ease forwards;
}
.preloader-text span { color: var(--lime); }
.preloader-bar {
    width: 120px; height: 2px; background: rgba(255,255,255,0.1);
    overflow: hidden; border-radius: 2px;
}
.preloader-bar::after {
    content: '';
    display: block; width: 100%; height: 100%;
    background: var(--lime);
    animation: preloaderBar 1.2s ease-in-out;
}
@keyframes preloaderFade { 0%{opacity:0;transform:translateY(10px)} 50%{opacity:1;transform:translateY(0)} }
@keyframes preloaderBar { 0%{transform:translateX(-100%)} 100%{transform:translateX(0)} }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 24px 60px;
    display: flex; align-items: center; justify-content: space-between;
    transition: all var(--transition-mid);
}
.navbar.scrolled {
    background: rgba(22, 46, 34, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 60px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}
.nav-logo {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.35rem;
    letter-spacing: 6px;
    font-weight: 400;
    display: flex; align-items: center; gap: 14px;
}
.nav-logo svg { width: 26px; height: 26px; opacity: 0.85; }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute; bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--lime);
    transition: width var(--transition-fast);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--lime); color: var(--green-dark);
    padding: 12px 28px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--transition-fast);
    border: 2px solid var(--lime);
}
.nav-cta:hover { background: transparent; color: var(--lime); }
.nav-hamburger {
    display: none; flex-direction: column; gap: 6px; cursor: pointer;
    padding: 8px;
}
.nav-hamburger span {
    width: 26px; height: 1.5px; background: var(--white);
    transition: var(--transition-fast);
    display: block;
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--green-dark);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 28px;
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 3px;
    transition: color var(--transition-fast);
}
.mobile-menu a:hover { color: var(--lime); }
.mobile-close {
    position: absolute; top: 24px; right: 30px;
    color: var(--white); font-size: 2rem; cursor: pointer;
    background: none; border: none;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.08);
    transition: transform 12s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hero.loaded .hero-bg { transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg,
        rgba(22, 46, 34, 0.55) 0%,
        rgba(22, 46, 34, 0.3) 40%,
        rgba(22, 46, 34, 0.65) 100%
    );
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 900px; padding: 0 30px;
}
.hero-badge {
    display: inline-block;
    border: 1px solid rgba(200, 216, 62, 0.4);
    padding: 10px 28px;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 32px;
    opacity: 0; transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}
.hero-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 28px;
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.8s;
}
.hero-title em {
    font-style: italic;
    color: var(--lime);
}
.hero-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 44px;
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 1s ease forwards 1s;
}
.hero-actions {
    display: flex; gap: 20px;
    justify-content: center; flex-wrap: wrap;
    opacity: 0; transform: translateY(30px);
    animation: fadeUp 1s ease forwards 1.2s;
}
.hero-scroll {
    position: absolute; bottom: 40px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column;
    align-items: center; gap: 10px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.6s;
}
.hero-scroll span {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50% { transform: scaleY(1.4); opacity: 0.8; }
}

/* ========== BUTTONS ========== */
.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--lime); color: var(--green-dark);
    padding: 16px 38px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    transition: all var(--transition-fast);
    border: 2px solid var(--lime);
}
.btn-primary:hover {
    background: var(--lime-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200,216,62,0.25);
}
.btn-primary svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline-white {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--white);
    padding: 16px 38px;
    font-size: 0.8rem; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all var(--transition-fast);
}
.btn-outline-white:hover {
    border-color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
}

.btn-dark {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--green); color: var(--white);
    padding: 16px 38px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    transition: all var(--transition-fast);
}
.btn-dark:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(27, 58, 45, 0.25);
}
.btn-dark svg { width: 14px; height: 14px; transition: transform var(--transition-fast); }
.btn-dark:hover svg { transform: translateX(4px); }

.btn-outline-dark {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--green);
    padding: 14px 32px;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    border: 1.5px solid var(--green);
    transition: all var(--transition-fast);
}
.btn-outline-dark:hover {
    background: var(--green); color: var(--white);
}

/* ========== LAYOUT ========== */
.section-padding { padding: var(--section-padding) 60px; }
.container { max-width: var(--container-max); margin: 0 auto; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; }

/* ========== TYPOGRAPHY ========== */
.section-label {
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
    display: block;
}
.section-label.lime { color: var(--lime); }
.section-label.dark { color: var(--text-light); }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 24px;
}
.section-title.white { color: var(--white); }
.section-title .lime { color: var(--lime); }
.section-title .lime-muted { color: var(--lime-muted); }

.section-desc {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.85;
    max-width: 620px;
}
.section-desc.white { color: rgba(255,255,255,0.65); }
.section-desc.center { margin: 0 auto; }

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-left {
    opacity: 0; transform: translateX(-60px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
    opacity: 0; transform: translateX(60px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale {
    opacity: 0; transform: scale(0.92);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========== STATS BAR ========== */
.stats-bar {
    background: var(--green-dark);
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    padding: 48px 32px; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    transition: background var(--transition-fast);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.02); }
.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--lime);
    font-weight: 400;
    line-height: 1;
}
.stat-number span { font-size: 0.5em; }
.stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ========== FEATURE CARDS (grid, no horizontal scroll) ========== */
.features-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 20px 0 40px;
}
@media (max-width: 900px) {
    .features-scroll { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .features-scroll { grid-template-columns: 1fr; }
}
.feature-card {
    position: relative; overflow: hidden;
    border-radius: var(--radius-md);
    cursor: default;
}
.feature-card-img {
    width: 100%; height: 340px;
    object-fit: cover;
    transition: transform 0.8s ease;
    border-radius: var(--radius-md);
}
.feature-card:hover .feature-card-img { transform: scale(1.05); }
.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 400;
    margin: 20px 0 10px;
    color: var(--text);
}
.feature-card p {
    font-size: 0.9rem; color: var(--text-light);
    line-height: 1.7;
}

/* ========== DARK SECTION ========== */
.dark-section { background: var(--green-dark); }
.cream-section { background: var(--cream); }
.white-section { background: var(--white); }

/* ========== SPLIT SECTION (text + image) ========== */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.split-grid.reverse { direction: rtl; }
.split-grid.reverse > * { direction: ltr; }

.split-image {
    position: relative; overflow: hidden;
    border-radius: var(--radius-lg);
}
.split-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.split-image:hover img { transform: scale(1.04); }

/* ========== INFRASTRUCTURE ========== */
.infra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.infra-item {
    position: relative; overflow: hidden;
    min-height: 380px;
}
.infra-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}
.infra-item:hover img { transform: scale(1.06); }
.infra-item-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(22,46,34,0.7) 0%, transparent 60%);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}
.infra-item-overlay h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 6px;
}
.infra-item-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
}

/* ========== HOUSE CARDS ========== */
.houses-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.house-card {
    background: var(--cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-mid), box-shadow var(--transition-mid);
}
.house-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}
.house-card-img {
    overflow: hidden; height: 380px;
}
.house-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.house-card:hover .house-card-img img { transform: scale(1.05); }
.house-card-body { padding: 36px; }
.house-card-name {
    font-family: var(--font-heading);
    font-size: 2rem; font-weight: 400;
    color: var(--green-dark);
    margin-bottom: 8px;
}
.house-card-meta {
    display: flex; gap: 24px;
    margin-bottom: 16px;
}
.house-card-meta span {
    font-size: 0.85rem; color: var(--text-light);
}
.house-card-meta span strong {
    color: var(--text); font-weight: 600;
}
.house-card-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--green-dark);
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.house-card-price small {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 8px;
}

/* ========== LOCATION ========== */
.location-points { margin-top: 40px; }
.location-point {
    display: flex; align-items: flex-start; gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.loc-icon {
    width: 48px; height: 48px;
    background: var(--cream);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.loc-icon svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; }
.loc-text h4 {
    font-size: 1rem; font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 4px;
}
.loc-text p { font-size: 0.85rem; color: var(--text-light); }

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 500px;
}
.location-map iframe {
    width: 100%; height: 100%; border: none;
    filter: grayscale(0.2) contrast(1.05);
}

/* ========== DEPOSIT / FINANCING CTA ========== */
.deposit-amount {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 7rem);
    color: var(--lime);
    font-weight: 400;
    line-height: 1;
    margin: 24px 0;
}
.deposit-amount sup { font-size: 0.35em; vertical-align: super; }
.deposit-scheme {
    display: flex; align-items: center;
    justify-content: center; gap: 40px;
    margin: 44px 0;
}
.scheme-step { text-align: center; }
.scheme-step .step-val {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--lime);
}
.scheme-step .step-label {
    font-size: 0.75rem; letter-spacing: 1px;
    color: rgba(255,255,255,0.45);
    margin-top: 6px;
}
.scheme-divider {
    width: 80px; height: 1px;
    background: rgba(255,255,255,0.15);
    position: relative;
}
.scheme-divider::after {
    content: '/';
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.25);
    font-size: 1.4rem;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}
.contact-form-box {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%; padding: 16px 20px;
    border: 1px solid #e0ddd6;
    background: var(--cream-light);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
    outline: none;
    border-radius: var(--radius-sm);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--green);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn-submit {
    width: 100%;
    background: var(--green); color: var(--white);
    padding: 18px; border: none;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.btn-submit:hover { background: var(--green-mid); }

.contact-cards { margin-top: 40px; }
.contact-card {
    display: flex; align-items: center; gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.contact-card:last-child { border-bottom: none; }
.cc-icon {
    width: 48px; height: 48px;
    background: var(--green);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cc-icon svg { width: 20px; height: 20px; stroke: var(--lime); fill: none; stroke-width: 2; }
.cc-label {
    font-size: 0.65rem; letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.cc-value {
    font-size: 1rem; font-weight: 500;
    color: var(--text);
}
.cc-value a { color: var(--green-dark); font-weight: 600; }
.cc-value a:hover { color: var(--green-mid); }

/* ========== FOOTER ========== */
.footer {
    background: var(--green-dark);
    padding: 60px;
    text-align: center;
}
.footer-logo {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.2rem;
    letter-spacing: 6px;
    margin-bottom: 24px;
}
.footer-links {
    display: flex; justify-content: center; gap: 32px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.45);
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--lime); }
.footer-info {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    line-height: 1.8;
}
.footer-bottom {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.25);
    font-size: 0.7rem;
}

/* ========== VIDEO SECTION ========== */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    margin-top: 50px;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ========== IMAGE GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 4/3;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* ========== SUBPAGE HERO ========== */
.subpage-hero {
    position: relative;
    height: 70vh; min-height: 500px;
    display: flex; align-items: flex-end;
    overflow: hidden;
}
.subpage-hero .hero-bg { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.subpage-hero .hero-overlay {
    background: linear-gradient(to top, rgba(22,46,34,0.75) 0%, transparent 70%);
}
.subpage-hero-content {
    position: relative; z-index: 2;
    padding: 60px;
    width: 100%;
}
.breadcrumb {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--lime); }

/* ========== PRODUCT CARD (subpage) ========== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-top: -80px;
    position: relative; z-index: 3;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
}
.product-name {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--green-dark);
}
.product-name small {
    font-family: var(--font-body);
    font-size: 0.4em;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}
.product-price {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--green-dark);
}
.product-status {
    display: inline-block;
    background: var(--lime);
    color: var(--green-dark);
    padding: 6px 16px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
}
.product-meta {
    display: flex; gap: 32px;
    padding: 24px 0;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-wrap: wrap;
}
.product-meta-item .pm-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-dark);
}
.product-meta-item .pm-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2px;
}
.product-actions {
    display: flex; gap: 16px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ========== FLOOR PLANS ========== */
.floor-tabs {
    display: flex; gap: 0;
    margin-bottom: 32px;
}
.floor-tab {
    padding: 14px 32px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
}
.floor-tab.active {
    color: var(--green-dark);
    border-bottom-color: var(--lime);
}
.floor-content { display: none; }
.floor-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.floor-plan-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--cream-light);
    padding: 20px;
}
.floor-plan-img img { width: 100%; }
.room-list { list-style: none; }
.room-item {
    display: flex; justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}
.room-item .room-name { color: var(--text-mid); }
.room-item .room-size { font-weight: 600; color: var(--text); }
.floor-total {
    display: flex; justify-content: space-between;
    padding: 18px 0;
    font-weight: 700;
    font-size: 1rem;
    border-top: 2px solid var(--lime);
    margin-top: 8px;
}

/* ========== ADVISOR CARD ========== */
.advisor-card {
    display: flex; align-items: center; gap: 20px;
    background: var(--cream);
    padding: 24px 32px;
    border-radius: var(--radius-md);
    margin-top: 32px;
}
.advisor-card .advisor-name {
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 4px;
}
.advisor-card .advisor-role {
    font-size: 0.8rem;
    color: var(--text-light);
}
.advisor-card a {
    color: var(--green);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========== FINISHING SECTION ========== */
.finishing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.finishing-card {
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
}
.finishing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--green-dark);
    margin-bottom: 16px;
}
.finishing-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ========== DECORATIVE ========== */
.circle-deco {
    position: absolute;
    border: 1px solid rgba(200, 216, 62, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .section-padding { padding: var(--section-padding) 40px; }
    .navbar { padding: 20px 40px; }
    .navbar.scrolled { padding: 14px 40px; }
}

@media (max-width: 1024px) {
    .split-grid { grid-template-columns: 1fr; gap: 48px; }
    .split-grid.reverse { direction: ltr; }
    .houses-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .floor-content.active { grid-template-columns: 1fr; }
    .infra-grid { grid-template-columns: 1fr; }
    .finishing-grid { grid-template-columns: 1fr; }
}

/* ========== INTRO GRID (550 domów section) ========== */
.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ========== FINANCING TIMELINE ========== */
.finance-steps {
    display: grid;
    grid-template-columns: 24% 16% 30% 18% 12%;
    gap: 0;
    margin-bottom: 8px;
}
.finance-bar {
    display: grid;
    grid-template-columns: 24% 16% 30% 18% 12%;
    gap: 0;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}
.finance-split {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 0;
    align-items: start;
}

/* ========== CONTACT CARDS (3 karty na dole) ========== */
.contact-trio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
    .split-grid { grid-template-columns: 1fr; gap: 48px; }
    .split-grid.reverse { direction: ltr; }
    .intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .houses-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .floor-content.active { grid-template-columns: 1fr; }
    .infra-grid { grid-template-columns: 1fr; }
    .finishing-grid { grid-template-columns: 1fr; }
    .contact-trio { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 20px; }
    .navbar { padding: 16px 20px; }
    .navbar.scrolled { padding: 12px 20px; }
    .nav-links { display: none; }
    .nav-cta.desktop-only { display: none; }
    .nav-hamburger { display: flex; }

    /* Stats bar */
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 28px 16px; }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-number { font-size: 2rem; }

    /* Feature cards */
    .features-scroll { grid-template-columns: 1fr !important; gap: 20px; }
    .fcard { min-width: 0 !important; width: 100%; }

    /* Gallery */
    .gallery-grid { grid-template-columns: 1fr; }

    /* Forms */
    .form-row { grid-template-columns: 1fr; }
    .contact-form-box { padding: 28px 20px; }
    .contact-grid { gap: 32px; }

    /* Hero */
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline-white { width: 100%; max-width: 300px; justify-content: center; }
    .hero-badge { font-size: 0.55rem; letter-spacing: 3px; padding: 8px 16px; }

    /* Intro grid - stack vertically */
    .intro-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Finance timeline - mobile: vertical list */
    .finance-steps {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    .finance-steps > div {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .finance-steps > div:last-child { border-bottom: none; }
    .finance-steps > div > div:first-child {
        min-width: 52px;
        font-size: 0.55rem !important;
    }
    .finance-steps > div > div:last-child {
        font-size: 0.7rem !important;
    }
    .finance-bar { display: none; }
    .finance-split {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 24px;
        text-align: center;
    }
    .finance-split > div {
        background: var(--white);
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }

    /* Product card (subpages) */
    .product-card { padding: 24px 20px; margin-top: -40px; }
    .product-header { flex-direction: column; gap: 16px; }
    .product-meta { gap: 16px; flex-wrap: wrap; }
    .product-actions { flex-direction: column; }
    .product-actions .btn-dark,
    .product-actions .btn-outline-dark { width: 100%; justify-content: center; }

    /* Subpage hero */
    .subpage-hero { height: 50vh; min-height: 400px; }
    .subpage-hero-content { padding: 24px 20px; }

    /* Footer */
    .footer { padding: 40px 20px; }
    .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }

    /* Section title smaller on mobile */
    .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }

    /* Location olive section */
    #lokalizacja > div { padding-left: 20px !important; padding-right: 20px !important; }

    /* Contain all sections */
    section { overflow-x: hidden; }

    /* Contact trio cards stack */
    .contact-trio { grid-template-columns: 1fr; }

    /* Interior carousel items smaller */
    .interior-carousel-item { flex: 0 0 85% !important; min-width: 260px !important; }

    /* Infra slider items */
    .infra-slide { min-width: 280px !important; height: 380px !important; }

    /* Prevent inline gaps from causing overflow */
    [style*="gap: 60px"] { gap: 24px !important; }
    [style*="gap:60px"] { gap: 24px !important; }

    /* Advisor card stack on mobile */
    .advisor-card { flex-direction: column; text-align: center; }

    /* Deposit CTA mobile */
    .deposit-amount { font-size: clamp(3rem, 12vw, 5rem); }

    /* Map estate */
    #estateMap .house-poly { stroke-width: 3 !important; }

    /* Fix all inline 2-col grids on mobile */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }

    /* Floor tabs */
    .floor-tabs { flex-wrap: wrap; }
    .floor-tab { padding: 10px 16px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
    .section-padding { padding: 48px 16px; }
    .stat-item { padding: 20px 12px; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.6rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .section-desc { font-size: 0.9rem; }
    .finance-split { gap: 12px; }
    .finance-split > div { padding: 20px 12px; }
    .contact-form-box { padding: 24px 16px; }
    .nav-logo img { height: 36px !important; }
}
