/* ============================================
   ZMIENNE I BASE STYLES
   ============================================ */
:root {
    --primary: #0052a3;        /* Granatowy */
    --primary-dark: #003d7a;   
    --secondary: #0078d4;      /* Błękit */
    --accent: #00bfff;         /* Jasny błękit */
    --dark: #1a1a1a;           /* Czarny */
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
    --success: #28a745;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Courier New', monospace;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text);
    background-color: #ffffff;
    overflow-x: hidden;
    --section-brand-overlay: linear-gradient(135deg, rgba(0, 61, 122, 0.9) 0%, rgba(0, 82, 163, 0.82) 100%);
    --section-brand-bg: url("images/button-instalacje-bg.webp");
    --button-sheen-overlay: linear-gradient(135deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.08) 100%);
    --button-border-color: #58a9ff;
    --subpage-hero-bg:
        linear-gradient(135deg, rgba(232, 243, 255, 0.9) 0%, rgba(249, 252, 255, 0.88) 100%),
        url("images/hero-bg.webp");
    --subpage-pill-bg: #d8ebff;
    --subpage-pill-text: #0052a3;
    --subpage-text-strong: #0052a3;
    --subpage-text-muted: #33516e;
    --subpage-alt-bg: #f8fbff;
    --subpage-card-border: #dbe9f7;
    --subpage-card-shadow: rgba(0, 61, 122, 0.08);
    --subpage-link-chip-bg: #e8f3ff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.vertical-ogrody,
body[data-main-vertical="ogrody"] {
    --section-brand-overlay: linear-gradient(135deg, rgba(20, 92, 28, 0.88) 0%, rgba(33, 121, 44, 0.78) 100%);
    --section-brand-bg: url("images/button-ogrody-bg.webp");
    --button-border-color: #6ecb78;
    --subpage-hero-bg:
        linear-gradient(135deg, rgba(255, 245, 248, 0.9) 0%, rgba(255, 250, 253, 0.86) 100%),
        url("images/ogrody-placeholder-bg.webp");
    --subpage-pill-bg: #d8ead5;
    --subpage-pill-text: #1f6b2b;
    --subpage-text-strong: #1f6b2b;
    --subpage-text-muted: #3e5f40;
    --subpage-alt-bg: #f5fbf3;
    --subpage-card-border: #dbead6;
    --subpage-card-shadow: rgba(31, 107, 43, 0.08);
    --subpage-link-chip-bg: #e6f5e3;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER / NAWIGACJA
   ============================================ */
.site-header {
    background: white;
    border-bottom: 2px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-link {
    text-decoration: none;
    color: inherit;
}

.brand-link:hover,
.brand-link:focus-visible {
    text-decoration: none;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin: 0;
    min-width: 0;
}

.brand-title {
    display: block;
}

.brand-subtitle {
    display: block;
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
}

.main-nav {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.nav-link-garden {
    background: #e6f7df;
    color: #2b6b2d;
    border-radius: 999px;
    padding: 8px 14px;
    border-bottom: none;
    font-weight: 700;
}

.nav-link-garden:hover {
    background: #ccebba;
    color: #1f5122;
}

.cta-nav {
    background: var(--button-sheen-overlay), var(--section-brand-overlay), var(--section-brand-bg);
    background-size: cover;
    background-position: center;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid var(--button-border-color);
    border-bottom: 2px solid var(--button-border-color) !important;
    white-space: nowrap;
}

#mainSwitchMount {
    position: -webkit-sticky;
    position: sticky;
    top: 82px;
    z-index: 109;
    margin-top: -2px;
    min-height: 50px;
}

.main-switch-section {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    backdrop-filter: blur(4px);
}

.main-switch-section.target-ogrody {
    background: linear-gradient(90deg, rgba(26, 92, 32, 0.92), rgba(26, 92, 32, 0.82));
}

.main-switch-section.target-instalacje {
    background: linear-gradient(90deg, rgba(0, 61, 122, 0.92), rgba(0, 82, 163, 0.84));
}

.main-switch-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-switch-marquee {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #fff;
    font-weight: 600;
    opacity: 0.94;
    text-transform: none;
    letter-spacing: 0;
}

.main-switch-marquee-track {
    display: block;
    width: 100%;
    animation: none;
}

.main-switch-marquee-item {
    display: inline;
    white-space: nowrap;
    padding-right: 0;
}

.main-switch-separator {
    display: inline-block;
    font-weight: 800;
    letter-spacing: 1px;
    vertical-align: baseline;
    margin: 0 10px;
    opacity: 0.95;
}

.main-switch-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    background: transparent;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 4px 0;
    border: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.main-switch-link-prefix {
    font-weight: 600;
}

.main-switch-link-target {
    text-transform: none;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.main-switch-link:hover {
    opacity: 1;
    filter: brightness(1.22);
    transform: translateY(-1px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    .main-switch-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .main-switch-marquee {
        font-size: 13px;
    }

    .main-switch-link {
        margin-top: 6px;
    }
}

.cta-nav:hover {
    filter: brightness(1.08);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ============================================
   RESPONSYWNOŚĆ - MOBILE MENU
   ============================================ */
@media (max-width: 768px) {
    .site-header {
        position: sticky;
        border-bottom-width: 1px;
    }

    .header-container {
        position: relative;
        padding: 10px 12px;
        gap: 10px;
    }

    .logo {
        gap: 10px;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .brand-name {
        font-size: clamp(1rem, 4.4vw, 1.1rem);
        line-height: 1.15;
    }

    .brand-subtitle {
        font-size: clamp(0.72rem, 3.1vw, 0.8rem);
    }

    .main-nav {
        display: flex;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: auto;
        background: white;
        flex-direction: column;
        padding: 14px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .nav-link {
        display: block;
        font-size: 1.15rem;
        padding: 12px 8px;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 6px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    .cta-nav {
        padding: 10px 12px;
        font-size: 1.05rem;
    }

    #mainSwitchMount {
        position: static;
        top: auto;
        margin-top: 0;
        min-height: 64px;
    }

    .main-switch-section {
        padding: 6px 0;
    }

    .main-switch-inner {
        padding: 0 14px;
    }

    .main-switch-marquee {
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
    }

    .main-switch-link {
        margin-top: 0;
        font-size: 12px;
        gap: 6px;
        white-space: nowrap;
        flex-wrap: nowrap;
    }

    .main-switch-link-target {
        border-bottom-width: 2px;
    }

    .main-switch-marquee-item {
        white-space: normal;
        display: block;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Keep mobile nav text readable even when wider breakpoints also match. */
@media (max-width: 768px) {
    .main-nav .nav-link {
        font-size: 1.12rem !important;
        line-height: 1.35;
    }

    .main-nav .cta-nav {
        font-size: 1.06rem !important;
    }
}

@media (max-width: 480px) {
    .main-switch-inner {
        padding: 0 10px;
    }

    .main-switch-marquee {
        font-size: 11px;
    }

    .main-switch-link {
        font-size: 11px;
    }
}

/* ============================================
   PRECYZYJNY TUNING MOBILE (360 / 390 / 430)
   ============================================ */
@media (max-width: 360px) {
    .header-container {
        padding: 8px 10px;
    }

    .brand-name {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.68rem;
    }

    .main-nav {
        padding: 12px 10px;
    }

    .nav-link {
        font-size: 1.02rem;
        padding: 10px 6px;
    }

    .cta-nav {
        font-size: 1rem;
        padding: 9px 10px;
    }
}

@media (min-width: 361px) and (max-width: 390px) {
    .header-container {
        padding: 9px 11px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.72rem;
    }

    .main-switch-marquee {
        font-size: 11.5px;
    }

    .main-switch-link {
        font-size: 11.5px;
    }

    .nav-link {
        font-size: 1.05rem;
    }

    .cta-nav {
        font-size: 1rem;
    }
}

@media (min-width: 391px) and (max-width: 430px) {
    .header-container {
        padding: 10px 12px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: 0.76rem;
    }

    .main-nav {
        padding: 14px 12px;
    }

    .main-switch-marquee {
        font-size: 12px;
    }

    .main-switch-link {
        font-size: 12px;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .cta-nav {
        font-size: 1.03rem;
    }
}

@media (max-width: 1080px) {
    .nav-list {
        gap: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1080px) {
    .nav-link {
        font-size: 13px;
    }

    .cta-nav {
        padding: 7px 10px;
        font-size: 13px;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background:
        linear-gradient(135deg, rgba(0, 61, 122, 0.82) 0%, rgba(0, 82, 163, 0.72) 100%),
        url("images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px max(20px, calc((100% - 1200px) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    height: auto;
    min-height: 620px;
}

@media (min-width: 1024px) {
    .hero {
        min-height: calc(100vh - var(--header-sticky-offset, 84px) - var(--main-switch-height, 56px));
    }
}

.gardens-hero {
    background:
        linear-gradient(135deg, rgba(20, 92, 28, 0.82) 0%, rgba(33, 121, 44, 0.74) 100%),
        url("images/ogrody-placeholder-bg.webp");
    background-size: cover;
    background-position: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 18px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--button-sheen-overlay), var(--section-brand-overlay), var(--section-brand-bg);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--button-border-color);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 255, 0.4);
}

.hero .btn-primary {
    background: linear-gradient(135deg, #1d7fda 0%, #0052a3 100%);
}

body.vertical-ogrody .hero .btn-primary,
body[data-main-vertical="ogrody"] .hero .btn-primary {
    background: linear-gradient(135deg, #63b96b 0%, #2f8f3a 100%);
    border-color: #3e8c49;
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-secondary:hover {
    background: transparent;
    color: white;
}

.hero .hero-email-btn:hover {
    color: #fff;
}

.hero-proof {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.proof-item {
    font-size: 14px;
    white-space: nowrap;
    min-width: max-content;
}

.proof-item strong {
    display: block;
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 5px;
}

.proof-number-label {
    margin-left: 0.28em;
}

body.vertical-ogrody .proof-item strong,
body[data-main-vertical="ogrody"] .proof-item strong {
    color: #d6f7da;
}

.proof-divider {
    background: rgba(255, 255, 255, 0.3);
    width: 2px;
    height: 60px;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .hero-proof {
        gap: 14px;
    }

    .proof-item {
        font-size: 13px;
    }

    .proof-item strong {
        font-size: 22px;
    }
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    min-height: 0;
    padding: 0 20px 0 0;
}

.visual-placeholder {
    background: rgba(255, 255, 255, 0.1);
    padding: 60px;
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    text-align: center;
    color: white;
    font-size: 18px;
}

.hero-photo {
    width: 390px;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: min(74vh, 560px);
    object-fit: cover;
    display: block;
}

.hero-photo-wrap {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    border: 14px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 82, 163, 0.18);
}

body.vertical-ogrody .hero-photo-wrap::after,
body[data-main-vertical="ogrody"] .hero-photo-wrap::after {
    background: rgba(47, 143, 58, 0.18);
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        height: auto;
        min-height: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-content {
        padding-left: 0;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 0;
        justify-content: center;
        padding-right: 0;
    }

    .hero-photo {
        width: min(100%, 330px);
        height: auto;
    }
}

/* ============================================
   SEKCJE OGÓLNE
   ============================================ */
.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    section {
        padding: 50px 0;
    }
}

/* ============================================
   SEKCJA USŁUG
   ============================================ */
.services-section {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    border: 2px solid transparent;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0, 82, 163, 0.15);
    transform: translateY(-5px);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    padding: 14px;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    fill: white;
}

.service-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-link {
    color: #00407f;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.service-link:hover {
    color: #002b57;
}

/* ============================================
   SEGMENT OGRODY
   ============================================ */
.gardens-intro-section {
    background:
        linear-gradient(135deg, rgba(18, 83, 29, 0.84) 0%, rgba(36, 112, 47, 0.78) 100%),
        url("images/ogrody-placeholder-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.gardens-intro-section .section-title {
    color: #fff;
}

.gardens-intro-section .section-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.gardens-intro-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(216, 234, 213, 0.9);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 24px rgba(23, 78, 27, 0.08);
}

.gardens-intro-card p {
    color: #2d4d2d;
    margin-bottom: 18px;
}

.gardens-intro-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

#ogrodyUslugi {
    background:
        linear-gradient(180deg, #f2faef 0%, #ffffff 100%);
}

#ogrodyUslugi .service-card {
    border-color: #d8ead5;
}

#ogrodyUslugi .service-card:hover {
    border-color: #63a86a;
    box-shadow: 0 12px 28px rgba(28, 97, 35, 0.16);
}

/* ============================================
   PROCES PRACY
   ============================================ */
.process-section {
    background: white;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 30px;
    border-left: 4px solid var(--secondary);
    position: relative;
}

.step-number {
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: -45px;
}

body.vertical-ogrody .process-step,
body[data-main-vertical="ogrody"] .process-step {
    border-left-color: #0f4a18;
}

body.vertical-ogrody .step-number,
body[data-main-vertical="ogrody"] .step-number {
    background:
        linear-gradient(135deg, rgba(20, 92, 28, 0.84) 0%, rgba(33, 121, 44, 0.72) 100%),
        url("images/button-ogrody-bg.webp");
    background-size: cover;
    background-position: center;
}

.process-step h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   PORTFOLIO / GALERIA
   ============================================ */
.portfolio-section {
    background: var(--bg-light);
}

.portfolio-section .section-subtitle {
    max-width: 860px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.08),
        0 14px 28px rgba(0, 82, 163, 0.14);
    transition: var(--transition);
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.14),
        0 18px 34px rgba(0, 82, 163, 0.2);
}

body.vertical-ogrody .portfolio-item,
body[data-main-vertical="ogrody"] .portfolio-item {
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.08),
        0 14px 28px rgba(31, 107, 43, 0.14);
}

body.vertical-ogrody .portfolio-item:hover,
body[data-main-vertical="ogrody"] .portfolio-item:hover {
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.14),
        0 18px 34px rgba(31, 107, 43, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-item h3 {
    padding: 15px;
    color: var(--primary);
    font-size: 18px;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.portfolio-item p {
    padding: 0 15px 15px;
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   PORÓWNANIE / TABELA
   ============================================ */
.comparison-section {
    background: white;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: var(--section-brand-overlay), var(--section-brand-bg);
    background-size: cover;
    background-position: center;
    color: white;
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 16px;
}

.comparison-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.comparison-table tbody tr:hover {
    background: #f0f8ff;
}

.comparison-table .highlight {
    background: #e6f3ff;
    font-weight: 600;
    color: var(--primary);
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.faq-item {
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover {
    background: var(--bg-light);
}

.faq-item[open] summary {
    background: var(--section-brand-overlay), var(--section-brand-bg);
    background-size: cover;
    background-position: center;
    color: white;
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-light);
    line-height: 1.6;
}

body.vertical-ogrody .faq-item {
    border-color: #dbead6;
}

body.vertical-ogrody .faq-item summary {
    color: #1f6b2b;
}

body.vertical-ogrody .faq-item summary:hover {
    background: #f1f8ee;
}

body.vertical-ogrody .faq-item[open] summary {
    background: var(--section-brand-overlay), var(--section-brand-bg);
    background-size: cover;
    background-position: center;
    color: #fff;
}

body.vertical-ogrody .faq-item p {
    color: #3e5f40;
}

body.vertical-ogrody .faq-section,
body[data-main-vertical="ogrody"] .faq-section,
body.vertical-ogrody .blog-section,
body[data-main-vertical="ogrody"] .blog-section {
    background: #f0eef4;
}

body.vertical-ogrody .faq-section .faq-item,
body[data-main-vertical="ogrody"] .faq-section .faq-item {
    border-color: #145c1c;
}

body.vertical-ogrody .blog-section .blog-card,
body[data-main-vertical="ogrody"] .blog-section .blog-card {
    background: #fff;
    border-color: #145c1c;
    border-left-color: #145c1c;
}

@media (min-width: 769px) {
    .faq-item summary {
        cursor: default;
        pointer-events: none;
        user-select: text;
    }
}

/* ============================================
   BLOG
   ============================================ */
.blog-section {
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 18px;
}

.blog-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #fff5f8 0%, #fffafd 100%);
    color: var(--text);
    text-align: center;
    padding: 80px 20px;
}

.cta-section .container,
.secondary-branch-box {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
}

body.vertical-instalacje .cta-section,
body[data-main-vertical="instalacje"] .cta-section {
    color: #0052a3;
}

body.vertical-ogrody .cta-section,
body[data-main-vertical="ogrody"] .cta-section {
    background: #f0eef4;
    color: #1f6b2b;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn {
    padding: 15px 40px;
    font-size: 16px;
}

.cta-section .btn-primary {
    border: none;
}

.cta-section .btn-secondary {
    border: 2px solid var(--button-border-color);
}

body.vertical-instalacje .cta-section .btn-secondary,
body[data-main-vertical="instalacje"] .cta-section .btn-secondary {
    border-color: #2f74c7;
}

body.vertical-ogrody .cta-section .btn-secondary,
body[data-main-vertical="ogrody"] .cta-section .btn-secondary {
    border-color: #3f8f49;
}

.secondary-branch-section {
    background: #f0f8ef;
    padding: 80px 20px;
}

.secondary-branch-box {
    background: #fff;
    border: 1px solid #d8ead5;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(20, 92, 28, 0.08);
    text-align: center;
}

.secondary-branch-box h3 {
    color: #1f5c25;
    font-size: 30px;
    margin-bottom: 10px;
}

.secondary-branch-box p {
    color: #3e5f40;
    margin-bottom: 16px;
}

body.vertical-instalacje .secondary-branch-section .btn-primary,
body[data-main-vertical="instalacje"] .secondary-branch-section .btn-primary {
    background:
        var(--button-sheen-overlay),
        linear-gradient(135deg, rgba(20, 92, 28, 0.88) 0%, rgba(33, 121, 44, 0.78) 100%),
        url("images/button-ogrody-bg.webp");
    background-size: cover;
    background-position: center;
    border-color: #6ecb78;
    color: #fff;
}

body.vertical-instalacje .secondary-branch-section,
body[data-main-vertical="instalacje"] .secondary-branch-section {
    background: #ffffff;
}

body.vertical-instalacje .secondary-branch-box,
body[data-main-vertical="instalacje"] .secondary-branch-box {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

body.vertical-instalacje .secondary-branch-box h3,
body[data-main-vertical="instalacje"] .secondary-branch-box h3 {
    color: var(--text);
}

body.vertical-instalacje .secondary-branch-box p,
body[data-main-vertical="instalacje"] .secondary-branch-box p {
    color: var(--text-light);
}

body.vertical-ogrody .secondary-branch-section .btn-primary,
body[data-main-vertical="ogrody"] .secondary-branch-section .btn-primary {
    background:
        var(--button-sheen-overlay),
        linear-gradient(135deg, rgba(0, 61, 122, 0.9) 0%, rgba(0, 82, 163, 0.82) 100%),
        url("images/button-instalacje-bg.webp");
    background-size: cover;
    background-position: center;
    border-color: #58a9ff;
    color: #fff;
}

body.vertical-ogrody .secondary-branch-section,
body[data-main-vertical="ogrody"] .secondary-branch-section {
    background: #ffffff;
}

body.vertical-ogrody .secondary-branch-box,
body[data-main-vertical="ogrody"] .secondary-branch-box {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

body.vertical-ogrody .secondary-branch-box h3,
body[data-main-vertical="ogrody"] .secondary-branch-box h3 {
    color: var(--text);
}

body.vertical-ogrody .secondary-branch-box p,
body[data-main-vertical="ogrody"] .secondary-branch-box p {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .cta-section .container,
    .secondary-branch-box {
        min-height: 0;
        align-items: stretch;
    }

    .secondary-branch-section {
        padding: 40px 20px;
    }

    .main-switch-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .main-switch-marquee {
        font-size: 13px;
    }
}

.vertical-ogrody .section-title,
.vertical-ogrody .service-card h3,
.vertical-ogrody .blog-card h3,
.vertical-ogrody .process-step h3,
body[data-main-vertical="ogrody"] .process-step h3,
.vertical-ogrody .brand-name,
.vertical-ogrody .brand-subtitle,
.vertical-ogrody .service-link,
.vertical-ogrody .nav-link:hover {
    color: #1f6b2b;
}

.vertical-ogrody .btn-primary {
    color: #fff;
}

.vertical-ogrody .btn-primary:hover {
    box-shadow: 0 5px 15px rgba(52, 132, 56, 0.35);
}

.vertical-ogrody .btn-secondary {
    color: #1f6b2b;
    border-color: #fff;
}

.vertical-ogrody .cta-nav {
    border-color: var(--button-border-color);
}

.vertical-ogrody .cta-nav:hover {
    filter: brightness(1.08);
}

.main-switch-section.target-instalacje .main-switch-link {
    color: #fff;
}

.main-switch-section.target-ogrody .main-switch-link {
    color: #fff;
}

.main-switch-section.target-instalacje .main-switch-link:hover {
    opacity: 0.85;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col a {
    color: #00bfff;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
}

body.vertical-instalacje .footer-col a,
body[data-main-vertical="instalacje"] .footer-col a {
    color: #58a9ff;
}

body.vertical-instalacje .footer-col a:hover,
body[data-main-vertical="instalacje"] .footer-col a:hover {
    color: #ffffff;
}

body.vertical-ogrody .footer-col a,
body[data-main-vertical="ogrody"] .footer-col a {
    color: #6ecb78;
}

body.vertical-ogrody .footer-col a:hover,
body[data-main-vertical="ogrody"] .footer-col a:hover {
    color: #d6f7da;
}

.footer-col ul {
    list-style: none;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    color: #888;
}

.footer-credit {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #fff !important;
    text-decoration: none;
}

.footer-credit:hover,
.footer-credit:focus-visible {
    color: #fff !important;
    text-decoration: none;
    opacity: 0.9;
}

.footer-credit-logo {
    width: 120px;
    height: auto;
    display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: clip;
    }

    .services-grid,
    .portfolio-grid,
    .blog-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .hero-proof {
        gap: 15px;
        flex-wrap: wrap;
    }

    .proof-item {
        white-space: normal;
        min-width: 0;
        max-width: 100%;
    }

    .proof-divider {
        height: 0;
        width: 100%;
        background: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ANIMACJE
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.service-card,
.portfolio-item,
.blog-card,
.process-step {
    animation: slideInUp 0.5s ease-out;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ============================================
   DOSTEPNOSC I POLITYKA COOKIES
   ============================================ */
.accessibility-fab,
.cookie-fab {
    position: fixed;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-weight: 700;
    z-index: 120;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.accessibility-fab {
    left: 20px;
    right: auto;
    bottom: 86px;
    z-index: 121;
    background: #2f8f3a;
    color: #fff;
    border: 2px solid #6ecb78;
    font-size: 22px;
}

body.vertical-instalacje .accessibility-fab,
body[data-main-vertical="instalacje"] .accessibility-fab {
    background: var(--primary);
    border-color: #58a9ff;
}

body.vertical-ogrody .accessibility-fab,
body[data-main-vertical="ogrody"] .accessibility-fab {
    background: #2f8f3a;
    border-color: #6ecb78;
}

.cookie-fab {
    left: 20px;
    right: auto;
    bottom: 20px;
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-size: 22px;
    opacity: 0.82;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

body.vertical-ogrody .cookie-fab,
body[data-main-vertical="ogrody"] .cookie-fab {
    color: #2f8f3a;
    border-color: #3f8f49;
}

body.vertical-ogrody .cookie-fab:hover,
body[data-main-vertical="ogrody"] .cookie-fab:hover {
    box-shadow: 0 10px 28px rgba(31, 107, 43, 0.24);
}

body.vertical-ogrody .service-card,
body[data-main-vertical="ogrody"] .service-card,
body.vertical-ogrody .portfolio-item,
body[data-main-vertical="ogrody"] .portfolio-item,
body.vertical-ogrody .blog-card,
body[data-main-vertical="ogrody"] .blog-card,
body.vertical-ogrody .faq-item,
body[data-main-vertical="ogrody"] .faq-item,
body.vertical-ogrody .subpage-card,
body[data-main-vertical="ogrody"] .subpage-card {
    border-color: #6ecb78;
}

body.vertical-ogrody .comparison-table td,
body[data-main-vertical="ogrody"] .comparison-table td {
    border-bottom-color: #d9ecd6;
}

body.vertical-ogrody .comparison-table,
body[data-main-vertical="ogrody"] .comparison-table {
    border: 1px solid #6ecb78;
}

body.vertical-ogrody .comparison-table thead,
body[data-main-vertical="ogrody"] .comparison-table thead {
    background: var(--section-brand-overlay), var(--section-brand-bg);
    background-size: cover;
    background-position: center;
    color: #fff;
}

body.vertical-ogrody .comparison-table tbody tr:hover,
body[data-main-vertical="ogrody"] .comparison-table tbody tr:hover {
    background: #eef8ef;
}

body.vertical-ogrody .comparison-table .highlight,
body[data-main-vertical="ogrody"] .comparison-table .highlight {
    background: #e6f5e9;
    color: #1f6b2b;
    border-left: 3px solid #3d9a4a;
    font-weight: 600;
}

.cookie-fab:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 61, 122, 0.24);
}

.cookie-notice {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: max(8px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border: 1px solid #d6e7fb;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 118;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cookie-notice p {
    margin: 0;
    color: #33516e;
    font-size: 14px;
}

.cookie-notice-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-notice-btn,
.cookie-notice-link {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.cookie-notice-btn {
    background: var(--primary);
    color: #fff;
}

.cookie-notice-link {
    background: #edf5ff;
    color: var(--primary);
}

.cookie-notice[hidden] {
    display: none;
}

.accessibility-panel {
    position: fixed;
    left: 20px;
    right: auto;
    bottom: 148px;
    width: min(300px, calc(100% - 40px));
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #58a9ff;
    border-radius: 14px;
    padding: 14px;
    z-index: 122;
    box-shadow: 0 14px 36px rgba(0, 61, 122, 0.2);
    backdrop-filter: blur(8px);
}

.accessibility-title {
    font-size: 18px;
    color: #0052a3;
    margin-bottom: 12px;
}

.accessibility-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.access-btn {
    border: 2px solid #58a9ff;
    background: #f5f9ff;
    color: #0052a3;
    font-weight: 700;
    border-radius: 8px;
    min-height: 42px;
    cursor: pointer;
}

.access-btn:hover {
    background: #0052a3;
    color: #fff;
}

body.vertical-ogrody .accessibility-panel,
body[data-main-vertical="ogrody"] .accessibility-panel {
    border-color: #6ecb78;
    box-shadow: 0 14px 36px rgba(31, 107, 43, 0.18);
}

body.vertical-ogrody .accessibility-title,
body[data-main-vertical="ogrody"] .accessibility-title {
    color: #1f6b2b;
}

body.vertical-ogrody .access-btn,
body[data-main-vertical="ogrody"] .access-btn {
    border-color: #6ecb78;
    background: #f2fbf0;
    color: #1f6b2b;
}

body.vertical-ogrody .access-btn:hover,
body[data-main-vertical="ogrody"] .access-btn:hover {
    background: #2f8f3a;
    color: #fff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal[hidden] {
    display: none;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cookie-modal-content {
    position: relative;
    background: #fff;
    color: var(--text);
    width: min(760px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 16px;
    padding: 24px;
    z-index: 1;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.cookie-modal-content h2 {
    color: var(--primary);
    margin-bottom: 12px;
}

.cookie-modal-content h3 {
    color: var(--primary-dark);
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 18px;
}

.cookie-close {
    position: sticky;
    top: 0;
    float: right;
    border: none;
    background: #edf5ff;
    color: var(--primary);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

.cookie-close:hover {
    background: var(--primary);
    color: #fff;
}

body.high-contrast {
    background: #000;
    color: #fff;
}

body.high-contrast .hero {
    background: #000 !important;
}

body.high-contrast .hero-title,
body.high-contrast .hero-subtitle,
body.high-contrast .badge,
body.high-contrast .proof-item,
body.high-contrast .proof-item strong,
body.high-contrast .section-subtitle,
body.high-contrast .footer-bottom,
body.high-contrast .footer-col p,
body.high-contrast .footer-col li,
body.high-contrast .cookie-notice p {
    color: #fff !important;
}

body.high-contrast .badge,
body.high-contrast .cookie-notice,
body.high-contrast .faq-item,
body.high-contrast .portfolio-item,
body.high-contrast .blog-card,
body.high-contrast .process-step,
body.high-contrast .subpage-card,
body.high-contrast .warning-card,
body.high-contrast .site-footer,
body.high-contrast .services-section,
body.high-contrast .portfolio-section,
body.high-contrast .faq-section,
body.high-contrast .blog-section,
body.high-contrast .subpage-section,
body.high-contrast .subpage-section-alt {
    background: #000 !important;
    border-color: #fff !important;
}

body.high-contrast .btn,
body.high-contrast .cookie-notice-btn,
body.high-contrast .cookie-notice-link,
body.high-contrast .access-btn,
body.high-contrast .cta-nav,
body.high-contrast .cookie-close {
    background: #ffeb3b !important;
    color: #000 !important;
    border-color: #ffeb3b !important;
}

body.high-contrast .cta-nav {
    color: #000 !important;
    text-shadow: none !important;
}

body.high-contrast .btn-secondary {
    background: #000 !important;
    color: #ffeb3b !important;
    border-color: #ffeb3b !important;
}

body.high-contrast .hero-photo {
    box-shadow: 0 0 0 2px #ffeb3b;
}

body.high-contrast .site-header,
body.high-contrast .service-card,
body.high-contrast .portfolio-item,
body.high-contrast .blog-card,
body.high-contrast .faq-item,
body.high-contrast .process-step,
body.high-contrast .comparison-section,
body.high-contrast .cookie-modal-content,
body.high-contrast .accessibility-panel {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

body.high-contrast a,
body.high-contrast .nav-link,
body.high-contrast .section-title,
body.high-contrast .service-card h3,
body.high-contrast .brand-name,
body.high-contrast .brand-subtitle {
    color: #ffeb3b !important;
}

body.font-scale-1 {
    zoom: 1.08;
}

body.font-scale-2 {
    zoom: 1.16;
}

@media (max-width: 768px) {
    .accessibility-fab,
    .cookie-fab {
        width: 50px;
        height: 50px;
    }

    .cookie-fab {
        left: 14px;
        bottom: 14px;
    }

    .accessibility-fab {
        left: 14px;
        right: auto;
        bottom: 74px;
    }

    .accessibility-panel {
        left: 14px;
        right: auto;
        bottom: 132px;
        width: min(280px, calc(100% - 28px));
    }

    .cookie-notice {
        left: 10px;
        right: 10px;
        bottom: max(6px, env(safe-area-inset-bottom));
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   PODSTRONY USLUG I ARTYKULOW
   ============================================ */
.subpage-hero {
    padding: 90px 0 60px;
    background: var(--subpage-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.subpage-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.seo-pill {
    display: inline-block;
    background: var(--subpage-pill-bg);
    color: var(--subpage-pill-text);
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--subpage-text-muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--subpage-text-strong);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.subpage-hero h1 {
    color: var(--subpage-text-strong);
    font-size: 44px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.subpage-lead {
    font-size: 20px;
    color: var(--subpage-text-muted);
    max-width: 900px;
}

.subpage-image {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 20px 45px rgba(0, 61, 122, 0.2);
}

.subpage-section {
    padding: 60px 0;
}

.subpage-section-alt {
    background: var(--subpage-alt-bg);
}

.subpage-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.article-layout {
    display: grid;
    gap: 24px;
}

.subpage-card {
    background: #fff;
    border: 1px solid var(--subpage-card-border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 20px var(--subpage-card-shadow);
}

.subpage-card h2 {
    color: var(--subpage-text-strong);
    margin-bottom: 14px;
    font-size: 28px;
}

.subpage-card p {
    color: var(--subpage-text-muted);
    margin-bottom: 14px;
}

.warning-card {
    border-color: #ffe0cb;
    background: #fff9f4;
}

.scope-list {
    margin: 0;
    padding-left: 22px;
}

.scope-list li {
    margin-bottom: 10px;
    color: var(--subpage-text-muted);
}

.subpage-faq-grid {
    margin-top: 18px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.related-link {
    display: inline-block;
    text-decoration: none;
    background: var(--subpage-link-chip-bg);
    color: var(--subpage-text-strong);
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 14px;
}

.related-link:hover {
    background: var(--subpage-text-strong);
    color: #fff;
}

@media (max-width: 920px) {
    .subpage-hero-grid,
    .subpage-grid {
        grid-template-columns: 1fr;
    }

    .subpage-hero h1 {
        font-size: 34px;
    }

    .subpage-lead {
        font-size: 18px;
    }
}
