/* ============================================================
   TERRAZYT SZOSTAK — shared theme
   Baza wizualna: design „Inwest Dach" (materialy/inwestdach-design-pawel)
   Adaptacja branżowa: dekarstwo -> okna/drzwi/bramy/osłony
   Akcent: stalowy niebieski (szkło/aluminium). DEMO — zdjęcia placeholder.
   ============================================================ */

:root {
    --bg-color: #ffffff;
    --text-main: #14181d;
    --text-muted: #5c6670;
    --accent: #d12a1e;          /* firmowa czerwień (z logo Terrazyt) */
    --accent-dark: #a81f16;
    --ink: #14181d;             /* ciemny nav / cta */
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-dark: rgba(20, 24, 29, 0.85);
    --light-bg: #f4f7fa;
    --line: #e6ebf0;
    --radius: 14px;
    --maxw: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---------- Navigation (glass dark) ---------- */
nav.site-nav {
    position: fixed; top: 0; width: 100%;
    padding: 12px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid rgba(20, 24, 29, 0.08);
    box-shadow: 0 2px 24px rgba(20, 24, 29, 0.06);
    z-index: 100;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.logo img { height: 42px; width: auto; display: block; }
.footer-col .logo img { background: transparent; padding: 0; height: 42px; }
.logo .mark {
    width: 34px; height: 34px; border-radius: 8px;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
}
.logo .name { font-weight: 800; font-size: 19px; letter-spacing: -0.5px; color: #fff; }
.logo .name small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 2px; color: #9fb0c0; text-transform: uppercase; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: var(--text-main); font-size: 13px; font-weight: 600;
    letter-spacing: 0.5px; text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
    background: var(--accent); color: #fff !important;
    padding: 11px 20px; border-radius: 6px;
    display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta:hover { background: var(--accent-dark); color: #fff !important; }
.nav-cta svg { width: 16px; height: 16px; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-toggle svg { width: 28px; height: 28px; stroke: var(--text-main); }

.mobile-nav {
    position: fixed; top: 66px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px 5% 16px; transform: translateY(-150%);
    transition: transform 0.3s ease; z-index: 99;
    border-bottom: 1px solid rgba(20, 24, 29, 0.08);
    box-shadow: 0 12px 24px rgba(20, 24, 29, 0.08);
}
.mobile-nav.active { transform: translateY(0); }
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: 0; }
.mobile-nav a {
    display: block; padding: 13px 0; font-size: 16px; font-weight: 600;
    color: var(--text-main); border-bottom: 1px solid rgba(20, 24, 29, 0.08);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-radius: 6px; cursor: pointer; border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-secondary { background: transparent; color: var(--text-main); border: 1px solid var(--text-main); }
.btn-secondary:hover { background: var(--text-main); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
header.hero {
    min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
    padding: 140px 8% 70px; position: relative;
    background:
        linear-gradient(100deg, #ffffff 0%, #ffffff 40%, rgba(255,255,255,0.6) 64%, rgba(255,255,255,0.18) 100%),
        url('../grafiki/wnetrze-hero.jpg');
    background-size: cover;
    background-position: right center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.hero-text-wrapper { max-width: 820px; }
.hero-logo { height: 66px; width: auto; margin-bottom: 26px; }
.page-hero .hero-logo { height: 54px; margin-bottom: 18px; }
h1 {
    font-size: clamp(32px, 5vw, 60px); font-weight: 800; line-height: 1.08;
    letter-spacing: -1.5px; margin-bottom: 20px;
}
h1 span { color: var(--accent); }
.subtitle {
    font-size: clamp(16px, 2vw, 20px); color: var(--text-muted);
    font-weight: 400; max-width: 640px; line-height: 1.65; margin-bottom: 36px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Status / trust bar ---------- */
.status-bar {
    background: var(--ink); color: #fff;
    padding: 28px 8%; display: flex; justify-content: center; gap: 60px;
    flex-wrap: wrap;
}
.status-item { display: flex; flex-direction: column; align-items: center; }
.status-value { font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--accent); }
.status-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: #8d9aa6; margin-top: 5px; }

/* ---------- Generic section ---------- */
section { padding: 96px 8%; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.section-subtitle { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.bg-light { background: var(--light-bg); }

/* ---------- Cards (problems / usp) ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; max-width: var(--maxw); margin: 0 auto; }
.card {
    background: #fff; border: 1px solid var(--line);
    padding: 34px 28px; border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(20,24,29,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(20,24,29,0.09); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
    width: 56px; height: 56px; background: rgba(209,42,30,0.10); color: var(--accent);
    border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.card-icon svg { width: 28px; height: 28px; stroke: var(--accent); stroke-width: 2; fill: none; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.4px; }
.card p { color: var(--text-muted); line-height: 1.7; font-size: 15px; }

/* ---------- Product / service cards ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: var(--maxw); margin: 0 auto; }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: 0 10px 30px rgba(20,24,29,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease; position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(20,24,29,0.09); }
.product-image { position: relative; padding-top: 66%; overflow: hidden; }
.product-image .ph {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #dce6f0 0%, #c3d4e6 100%);
    display: flex; align-items: center; justify-content: center;
    color: #6f8197; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; text-align: center; padding: 12px;
}
.product-image .ph span { opacity: 0.85; }
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.06); }
.page-illustration { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin: 4px 0 8px; box-shadow: 0 14px 36px rgba(20,24,29,0.10); }
.product-content { padding: 30px 28px; }
.product-content h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.4px; }
.product-content p { color: var(--text-muted); line-height: 1.7; font-size: 15px; margin-bottom: 22px; }
.product-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--accent);
    font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
    transition: gap 0.3s ease;
}
.product-link:hover { gap: 14px; }
.product-link svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* ---------- Two locations ---------- */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; max-width: 900px; margin: 0 auto; }
.loc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.loc-card .tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); background: rgba(209,42,30,0.10); padding: 5px 12px; border-radius: 20px; margin-bottom: 16px; }
.loc-card h3 { font-size: 20px; margin-bottom: 12px; }
.loc-card p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.loc-card a { color: var(--accent); font-weight: 600; }

/* ---------- CTA dark ---------- */
.cta-dark { background: var(--ink); color: #fff; text-align: center; }
.cta-dark h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.cta-dark p { font-size: 18px; color: #c4ccd4; line-height: 1.7; margin-bottom: 36px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Breadcrumb (city pages) ---------- */
.breadcrumb { padding: 100px 8% 0; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: #b8c2cc; }

/* ---------- Article / prose (city pages) ---------- */
.page-hero {
    display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center;
    max-width: var(--maxw); margin: 0 auto; padding: 16px 8% 64px;
}
.page-hero:has(.page-hero-media) { grid-template-columns: 1.05fr 0.95fr; }
.page-hero h1 { font-size: clamp(28px, 4.2vw, 48px); }
.page-hero-text { min-width: 0; }
.page-hero-text .lead { max-width: 560px; }
.page-hero-media { min-width: 0; }
.page-hero-media img {
    width: 100%; height: 100%; max-height: 480px; object-fit: cover;
    border-radius: var(--radius); margin: 0;
    box-shadow: 0 26px 54px rgba(20,24,29,0.18);
}
.page-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 900px) {
    .page-hero, .page-hero:has(.page-hero-media) { grid-template-columns: 1fr; gap: 26px; padding-bottom: 48px; }
    .page-hero-media img { max-height: 320px; }
    .page-hero-cta .btn { flex: 1; justify-content: center; }
}
.lead { font-size: 19px; line-height: 1.7; color: var(--text-main); margin: 22px 0 0; }
.lead strong { color: var(--accent-dark); }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: clamp(23px, 3vw, 30px); font-weight: 800; letter-spacing: -0.6px; margin: 46px 0 16px; }
.prose h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.prose p { color: #2c343c; line-height: 1.8; margin-bottom: 16px; font-size: 16.5px; }
.prose ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: 11px; line-height: 1.7; color: #2c343c; }
.prose ul li::before {
    content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px;
    background: var(--accent); border-radius: 2px; transform: rotate(45deg);
}
.prose a { color: var(--accent); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

/* spec / data list */
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 24px 0; }
.spec-list dt { padding: 14px 18px; font-weight: 700; background: var(--light-bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-list dd { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: 14px; }

/* callout */
.callout { background: var(--light-bg); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 22px 26px; margin: 28px 0; }
.callout strong { color: var(--accent-dark); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; background: #fff; }
.faq-q {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    padding: 20px 24px; font-size: 16.5px; font-weight: 700; color: var(--text-main);
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { flex-shrink: 0; width: 22px; height: 22px; transition: transform 0.3s ease; stroke: var(--accent); stroke-width: 2.5; fill: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 24px 22px; color: var(--text-muted); line-height: 1.75; font-size: 15.5px; }

/* ---------- Form ---------- */
.form-section { background: var(--light-bg); }
.form-card {
    max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 40px; box-shadow: 0 14px 40px rgba(20,24,29,0.06);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px;
    font-size: 15px; background: #fff; color: var(--text-main); transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.consent a { color: var(--accent); font-weight: 600; }
.form-note { font-size: 12px; color: #9aa6b1; margin-top: 12px; text-align: center; }
.form-status { display: none; margin-top: 16px; padding: 14px; border-radius: 8px; font-size: 14px; text-align: center; }
.form-status.ok { display: block; background: #e7f6ec; color: #1c7a3f; }
.form-status.err { display: block; background: #fdecec; color: #b3261e; }

/* ---------- Map ---------- */
.map-embed { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(0.1); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--bg-color); padding: 72px 8% 36px; border-top: 1px solid var(--line); }
.footer-content { max-width: var(--maxw); margin: 0 auto 48px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 50px; }
.footer-col .logo { color: var(--text-main); margin-bottom: 16px; }
.footer-col .logo .name { color: var(--text-main); }
.footer-col .logo .name small { color: var(--text-muted); }
.footer-col > p { color: var(--text-muted); font-size: 14px; line-height: 1.9; }
.footer-col h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.copyright { max-width: var(--maxw); margin: 0 auto; text-align: center; color: #9aa6b1; font-size: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.copyright a { color: #9aa6b1; }
.copyright a:hover { color: var(--accent); }

/* ---------- Cookie banner (RODO) ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
    max-width: 460px; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 20px 50px rgba(20,24,29,0.18);
    padding: 24px; display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.cookie-banner p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin-bottom: 18px; }
.cookie-banner p a { color: var(--accent); font-weight: 600; }
.cookie-actions { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions .btn { padding: 13px 18px; font-size: 13px; justify-content: center; }
.btn-ghost { background: var(--light-bg); color: var(--text-main); border: 1px solid var(--line); }
.btn-ghost:hover { background: #e9eef3; }

.cookie-settings { display: none; }
.cookie-settings.show { display: block; }
.cookie-cat { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cookie-cat:last-of-type { border-bottom: none; }
.cookie-cat-info strong { display: block; font-size: 14px; margin-bottom: 3px; }
.cookie-cat-info span { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
/* toggle switch */
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; background: #c9d3dd; border-radius: 24px; cursor: pointer; transition: 0.3s; }
.slider::before { content: ''; position: absolute; height: 18px; width: 18px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { background: var(--accent); opacity: 0.5; cursor: not-allowed; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
    .spec-list { grid-template-columns: 1fr; }
    .spec-list dt { border-bottom: none; }
}
@media (max-width: 768px) {
    section { padding: 64px 6%; }
    header.hero { padding: 120px 6% 56px;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.93), rgba(255,255,255,0.82)),
            url('../grafiki/wnetrze-hero.jpg');
        background-size: cover; background-position: center; }
    .hero-btns { flex-direction: column; align-items: stretch; }
    .hero-btns .btn { justify-content: center; }
    .status-bar { gap: 32px; }
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 26px; }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
    .cookie-banner { max-width: none; }
}

/* ---------- Floating button + modal formularz ---------- */
.fab {
    position: fixed; right: 22px; bottom: 22px; z-index: 900;
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: #fff; border: none; cursor: pointer;
    padding: 15px 22px; border-radius: 50px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    box-shadow: 0 12px 30px rgba(209,42,30,0.42);
    transition: transform 0.25s ease, background 0.25s ease;
}
.fab:hover { background: var(--accent-dark); transform: translateY(-3px); }
.fab svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
@media (max-width: 600px) {
    .fab { right: 14px; bottom: 14px; padding: 14px 20px; font-size: 14px; }
}

.modal-overlay {
    position: fixed; inset: 0; z-index: 1100;
    background: rgba(20,24,29,0.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-box {
    background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
    max-height: 92vh; overflow-y: auto; padding: 34px; position: relative;
    box-shadow: 0 30px 70px rgba(0,0,0,0.32);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-close {
    position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
    border: none; background: var(--light-bg); border-radius: 50%; cursor: pointer;
    font-size: 22px; line-height: 1; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #e6ebf0; color: var(--text-main); }
.modal-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.4px; }
.modal-box .modal-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }
body.modal-open { overflow: hidden; }

/* ============================================================
   PREMIUM PODSTRONY (glass / Apple-Tesla feel) — nadpisuje blog-layout
   ============================================================ */

/* atmosferyczne tło całej podstrony */
body.subpage {
    background:
        radial-gradient(680px 480px at 88% -4%, rgba(209,42,30,0.10), transparent 60%),
        radial-gradient(720px 560px at -6% 18%, rgba(26,90,180,0.07), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
    background-attachment: fixed;
}

/* szersze, premium sekcje treści */
body.subpage section { padding: 88px 6%; }
.subpage .prose { max-width: 940px; }
.subpage .prose p { color: #313942; }
.subpage .prose h2 {
    font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.8px;
    margin: 52px 0 18px; line-height: 1.15;
}
.subpage .prose h2:first-child { margin-top: 0; }

/* eyebrow nad sekcją */
.sec-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 14px;
}
.sec-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }

/* ---- Highlights: szklane karty atutów ---- */
.highlights { padding: 64px 6% 16px; }
.highlights-grid {
    max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px;
}
.glass-card {
    position: relative; padding: 30px 26px; border-radius: 18px;
    background: rgba(255,255,255,0.55);
    -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 18px 50px rgba(20,24,29,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.4s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.4s ease;
}
.glass-card:hover { transform: translateY(-6px); box-shadow: 0 28px 60px rgba(20,24,29,0.16); }
.glass-card .gc-icon {
    width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
    background: linear-gradient(140deg, var(--accent), #f06a52);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(209,42,30,0.35);
}
.glass-card .gc-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.glass-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.glass-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ---- spec-list -> premium glass grid ---- */
.subpage .spec-list, .spec-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
    border: none; border-radius: 0; overflow: visible; margin: 30px 0;
}
.subpage .spec-list dt, .subpage .spec-list dd { border: none; padding: 0; background: none; }
.subpage .spec-list dt {
    grid-column: auto; padding: 22px 22px 6px; font-size: 12px; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--accent); font-weight: 800;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.7); border-bottom: none;
    border-radius: 16px 16px 0 0;
}
.subpage .spec-list dd {
    padding: 0 22px 22px; font-size: 15px; color: #313942; font-weight: 500;
    background: rgba(255,255,255,0.55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.7); border-top: none;
    border-radius: 0 0 16px 16px; box-shadow: 0 14px 36px rgba(20,24,29,0.07);
}

/* ---- callout -> glass ---- */
.subpage .callout {
    background: rgba(255,255,255,0.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7); border-left: 4px solid var(--accent);
    border-radius: 16px; padding: 26px 30px; margin: 34px 0;
    box-shadow: 0 16px 44px rgba(20,24,29,0.08);
}

/* ---- Kalkulator wyceny ---- */
.calc-section { padding: 90px 6%; }
.calc {
    max-width: 880px; margin: 0 auto; border-radius: 26px; overflow: hidden;
    background: linear-gradient(155deg, #171b20 0%, #20262d 100%);
    box-shadow: 0 40px 90px rgba(20,24,29,0.35);
    position: relative;
}
.calc::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(540px 320px at 85% -10%, rgba(209,42,30,0.30), transparent 60%);
}
.calc-head { position: relative; padding: 38px 40px 8px; color: #fff; }
.calc-head .sec-eyebrow { color: #ff7a68; }
.calc-head .sec-eyebrow::before { background: #ff7a68; }
.calc-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.6px; margin-bottom: 8px; }
.calc-head p { color: #aeb8c2; font-size: 14.5px; line-height: 1.6; max-width: 520px; }
.calc-body {
    position: relative; margin: 22px; padding: 28px; border-radius: 18px;
    background: rgba(255,255,255,0.07); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end;
}
.calc-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: #9aa6b2; margin-bottom: 10px; }
.calc-stepper { display: flex; align-items: center; gap: 0; }
.calc-stepper button {
    width: 46px; height: 50px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06);
    color: #fff; font-size: 22px; cursor: pointer; transition: background 0.2s;
}
.calc-stepper button:first-child { border-radius: 12px 0 0 12px; }
.calc-stepper button:last-child { border-radius: 0 12px 12px 0; }
.calc-stepper button:hover { background: rgba(255,255,255,0.16); }
.calc-stepper input {
    width: 80px; height: 50px; text-align: center; border: 1px solid rgba(255,255,255,0.16);
    border-left: none; border-right: none; background: rgba(255,255,255,0.04); color: #fff;
    font-size: 18px; font-weight: 700; -moz-appearance: textfield;
}
.calc-stepper input::-webkit-outer-spin-button, .calc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-field select {
    width: 100%; height: 50px; padding: 0 14px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff;
    font-size: 15px; font-family: inherit; cursor: pointer;
}
.calc-field select option { color: #171b20; }
.calc-result {
    grid-column: 1 / -1; margin-top: 4px; padding: 22px 24px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(209,42,30,0.18), rgba(255,255,255,0.05));
    border: 1px solid rgba(255,122,104,0.35); text-align: center;
}
.calc-result-label { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #ffb3a6; margin-bottom: 4px; }
.calc-result-value { display: block; font-size: clamp(28px, 5vw, 40px); font-weight: 800; color: #fff; letter-spacing: -1px; }
.calc-result-note { display: block; font-size: 12px; color: #9aa6b2; margin-top: 6px; }
.calc-body .btn { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .calc-body { grid-template-columns: 1fr; padding: 20px; margin: 16px; }
    .calc-head { padding: 30px 24px 4px; }
}

/* FAQ premium na podstronie */
.subpage .faq-item {
    background: rgba(255,255,255,0.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 10px 30px rgba(20,24,29,0.05);
}

/* ============================================================
   TESLA-STYLE PODSTRONY PRODUKTOWE (.tsl)
   Pełnoekranowe sekcje, duże zdjęcia, minimalistyczny tekst.
   ============================================================ */
body.tesla { background: #000; }
.tsl { scroll-snap-type: y proximity; }
.tsl section { scroll-snap-align: start; }

/* wspólny pełnoekranowy blok ze zdjęciem */
.tsl-screen {
    position: relative; min-height: 100svh;
    display: flex; flex-direction: column; align-items: center;
    background-image: var(--bg); background-size: cover; background-position: center;
    overflow: hidden;
}
.tsl-screen::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.05) 28%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.55) 100%);
}
.tsl-screen.light::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.15) 30%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.7) 100%);
}

/* HERO */
.tsl-hero { justify-content: center; text-align: center; color: #fff; padding: 120px 6% 130px; }
.tsl-hero-inner { position: relative; z-index: 2; }
.tsl-eyebrow {
    font-size: clamp(12px, 1.4vw, 15px); font-weight: 600; letter-spacing: 3px;
    text-transform: uppercase; opacity: 0.92; margin-bottom: 14px;
}
.tsl-hero h1 {
    font-size: clamp(52px, 10vw, 124px); font-weight: 700; line-height: 0.95;
    letter-spacing: -3px; margin: 0; color: #fff;
}
.tsl-hero .tsl-sub { font-size: clamp(15px, 2vw, 21px); font-weight: 500; margin-top: 16px; opacity: 0.95; }

/* tekst na sekcjach feature (dół lub środek) */
.tsl-screen .tsl-text { position: relative; z-index: 2; max-width: 720px; padding: 0 6%; text-align: center; }
.tsl-screen.bottom { justify-content: flex-end; padding-bottom: 12vh; }
.tsl-screen.center { justify-content: center; }
.tsl-text h2 { font-size: clamp(30px, 5vw, 60px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.05; color: #fff; }
.tsl-screen.light .tsl-text h2, .tsl-screen.light .tsl-text p { color: var(--ink); }
.tsl-text p { font-size: clamp(15px, 1.8vw, 19px); line-height: 1.6; margin-top: 14px; color: rgba(255,255,255,0.92); }
.tsl-text .tlink {
    display: inline-block; margin-top: 22px; font-size: 15px; font-weight: 600;
    color: #fff; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 3px;
}
.tsl-screen.light .tsl-text .tlink { color: var(--ink); border-color: rgba(20,24,29,0.4); }
.tsl-text .tlink:hover { border-color: currentColor; }

/* przyciski Tesla (pill) */
.tsl-cta-row { position: relative; z-index: 2; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }
.tsl-hero .tsl-cta-row { position: absolute; bottom: 8vh; left: 0; right: 0; }
.tbtn {
    min-width: 250px; padding: 15px 28px; border-radius: 30px; text-align: center;
    font-size: 14px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
    transition: all 0.25s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tbtn-dark { background: rgba(23,27,32,0.82); color: #fff; }
.tbtn-dark:hover { background: #171b20; }
.tbtn-light { background: rgba(255,255,255,0.85); color: var(--ink); }
.tbtn-light:hover { background: #fff; }
.tbtn-accent { background: var(--accent); color: #fff; }
.tbtn-accent:hover { background: var(--accent-dark); }
@media (max-width: 600px) { .tbtn { min-width: 84%; } .tsl-hero .tsl-cta-row { flex-direction: column; align-items: center; } }

/* scroll hint */
.tsl-hint { position: absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; opacity: 0.85; animation: bob 1.8s ease-in-out infinite; }
.tsl-hero.light .tsl-hint, .tsl-screen.light .tsl-hint { color: var(--ink); }
.tsl-hint svg { width: 30px; height: 30px; stroke: currentColor; fill: none; stroke-width: 1.6; }
@keyframes bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* sekcja treści (SEO, jasna, czysta) */
.tsl-info { background: #fff; padding: 12vh 6%; }
.tsl-info-inner { max-width: 1100px; margin: 0 auto; }
.tsl-info .lead-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tsl-info h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -1px; line-height: 1.08; max-width: 760px; margin-bottom: 26px; }
.tsl-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px 56px; margin-top: 30px; }
.tsl-info-grid h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.tsl-info-grid p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.tsl-info-grid li { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); list-style: none; padding-left: 22px; position: relative; margin-bottom: 8px; }
.tsl-info-grid li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }

/* specs strip (Tesla data row) */
.tsl-stats { background: #0c0e11; color: #fff; padding: 9vh 6%; }
.tsl-stats-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 30px; text-align: center; }
.tsl-stat .v { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; letter-spacing: -1px; }
.tsl-stat .l { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #8a95a1; margin-top: 6px; }
.tsl-stat .v small { color: var(--accent); }

/* kalkulator i FAQ na ciemnym/jasnym — Tesla padding */
.tsl-faq-wrap { background: #fff; padding: 12vh 6%; }
.tsl-faq-wrap .section-header { margin-bottom: 40px; }

/* ============================================================
   APPLE-STYLE FEATURE BLOCKS (spójne ze stroną główną)
   ============================================================ */
.feature { padding: 84px 6%; }
.feature-inner {
    max-width: 1150px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.feature.reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 22px; box-shadow: 0 30px 70px rgba(20,24,29,0.16);
}
.feature-media::after {
    content: ''; position: absolute; inset: 0; border-radius: 22px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4); pointer-events: none;
}
.feature-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.feature-eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.feature-text h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.08; margin-bottom: 18px; }
.feature-text p { font-size: 17px; line-height: 1.75; color: #313942; margin-bottom: 14px; }
.feature-text ul { list-style: none; margin: 18px 0 0; }
.feature-text ul li { position: relative; padding-left: 28px; margin-bottom: 11px; font-size: 16px; line-height: 1.65; color: #313942; }
.feature-text ul li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); }
.feature-text ul li strong { font-weight: 700; }
@media (max-width: 860px) {
    .feature-inner { grid-template-columns: 1fr; gap: 30px; }
    .feature.reverse .feature-media { order: 0; }
    .feature-media img { aspect-ratio: 16 / 10; }
}
