/* ===================================
   Propozycja 12: Ciepły i Organiczny Design
   =================================== */

/* ===================================
   Accessibility
   =================================== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 24px;
    background: #1a4a3a;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Paleta zieleni - ciepła */
    --primary: #3d7a4a;
    --primary-light: #5db386;
    --primary-dark: #2d5a38;
    --primary-soft: #e8f4eb;

    /* Ciepłe neutralne */
    --cream: #faf8f5;
    --cream-dark: #f5f0e8;
    --warm-white: #fffdf9;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;

    /* Akcenty */
    --accent-warm: #d4a574;
    --accent-soft: #e8dfd4;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(61, 122, 74, 0.08);
    --shadow-medium: 0 8px 40px rgba(61, 122, 74, 0.12);

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Legacy compatibility */
    --primary-color: #3d7a4a;
    --primary-hover: #5db386;
    --secondary-color: #5db386;
    --dark-bg: #2d3436;
    --text-dark: #2d3436;
    --white: #faf8f5;
    --light-bg: #ffffff;
    --border-color: #e8dfd4;
    --shadow: 0 4px 20px rgba(61, 122, 74, 0.08);
    --transition: all 0.3s ease;
    --radius: 24px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    /* overflow-x: hidden; */ /* REMOVED - source of horizontal overflow fixed (floating cards, accent circle) */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.3;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 24px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

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

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

a:hover {
    color: var(--primary-light);
}

/* ===================================
   Layout & Container
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

/* ===================================
   Cookie Consent Banner
   =================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text);
    color: white;
    padding: 24px;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.cookie-consent-content p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
}

/* Fix button contrast in dark banner */
.cookie-consent .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent .btn-secondary:hover {
    border-color: white;
    color: white;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

/* Subpages: Always show navbar with background (no transparent state) */
.page-subpage .header {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

/* Homepage: Keep existing transparent behavior */
.page-home .header {
    background: transparent;
}

.page-home .header.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.navbar {
    padding: 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-brand .logo .logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0;
    white-space: nowrap;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 22px;
    margin: 0;
}

.navbar-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-2px);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Phone CTA */
.phone-cta {
    position: relative;
    margin-left: auto;
    margin-right: 16px;
}

.phone-cta-btn {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--primary-soft);
    transition: background 0.3s ease, color 0.3s ease;
}

.phone-cta-btn::after {
    content: '';
    position: absolute;
    inset: -4px;
    z-index: -1;
    border-radius: inherit;
    background: rgba(61, 122, 74, 0.18);
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.phone-cta.is-animating .phone-cta-btn::after {
    animation: phone-pulse-soft 1.35s ease-out;
    will-change: transform, opacity;
}

.phone-cta-btn:hover {
    background: var(--primary);
    color: white;
}

.phone-cta-btn:hover::after {
    animation: none;
    opacity: 0;
}

.phone-cta-btn:hover .phone-cta-icon {
    stroke: white;
    animation: none;
}

.phone-cta-icon {
    flex-shrink: 0;
    stroke: var(--primary);
    transition: stroke 0.3s ease;
    transform-origin: 50% 50%;
}

.phone-cta.is-animating .phone-cta-icon {
    animation: phone-ring-soft 1.35s ease-in-out;
    will-change: transform;
}

@keyframes phone-pulse-soft {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    40% {
        opacity: 0.42;
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

@keyframes phone-ring-soft {
    0%, 60%, 100% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(10deg);
    }
    20% {
        transform: rotate(-10deg);
    }
    30% {
        transform: rotate(7deg);
    }
    40% {
        transform: rotate(-7deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

.phone-cta-number {
    white-space: nowrap;
}

/* Phone CTA Tooltip (desktop) */
.phone-cta-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow-medium);
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.phone-cta-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

.phone-cta:hover .phone-cta-tooltip {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.phone-cta-hours {
    font-size: 0.8rem;
    color: var(--text);
    line-height: 1.6;
}

.phone-cta-dropdown {
    display: none;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 16px;
}

.lang-switcher-toggle {
    background: none;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
    font-family: inherit;
}

.lang-switcher-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.lang-switcher-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--cream-dark);
    border-radius: 6px;
    box-shadow: var(--shadow-medium);
    list-style: none;
    padding: 4px 0;
    min-width: 140px;
    z-index: 100;
}

.lang-switcher.open .lang-switcher-menu {
    display: block;
}

.lang-switcher-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-switcher-menu a:hover {
    background: var(--cream);
    color: var(--primary);
}

/* ── Scroll Reveal ─────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child items inside .reveal containers */
.reveal .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

.reveal.revealed .stagger-item:nth-child(1) { transition-delay: 0s; }
.reveal.revealed .stagger-item:nth-child(2) { transition-delay: 0.08s; }
.reveal.revealed .stagger-item:nth-child(3) { transition-delay: 0.16s; }
.reveal.revealed .stagger-item:nth-child(4) { transition-delay: 0.24s; }
.reveal.revealed .stagger-item:nth-child(5) { transition-delay: 0.32s; }
.reveal.revealed .stagger-item:nth-child(6) { transition-delay: 0.40s; }
.reveal.revealed .stagger-item:nth-child(7) { transition-delay: 0.48s; }
.reveal.revealed .stagger-item:nth-child(8) { transition-delay: 0.56s; }
.reveal.revealed .stagger-item:nth-child(n+9) { transition-delay: 0.60s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .reveal .stagger-item {
        opacity: 1;
        transform: none;
        transition: none;
        transition-delay: 0s !important;
    }
    .phone-cta-btn::after,
    .phone-cta-icon,
    .hero-blob {
        animation: none;
        will-change: auto;
    }
    .flip-card,
    .flip-card-inner {
        transition: none;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--warm-white);
    overflow: hidden;
    padding: 120px 0 100px;
}

/* Animated hero blobs */
.hero-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    background: rgba(45, 90, 61, 0.07);
    --blob-scale: 1;
    transform: translate3d(0, 0, 0) scale(var(--blob-scale));
}

.ambient-motion-active .hero-blob {
    will-change: transform;
}

.hero-blob-1 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    border-radius: 60% 40% 50% 50%;
}

.hero-blob-2 {
    width: 100px;
    height: 100px;
    bottom: 15%;
    right: 10%;
    border-radius: 40% 60% 50% 50%;
}

.hero-blob-3 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 45%;
    border-radius: 50% 50% 60% 40%;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 560px;
}

.hero-logo {
    margin-bottom: 24px;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 32px;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.hero-title,
.hero h1 {
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-weight: 500;
}

.hero h1 span {
    color: var(--primary);
}

.hero-subtitle,
.hero-description {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-search {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    max-width: 480px;
}

.hero-search-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.hero-search-row {
    display: flex;
    gap: 16px;
}

.hero-search select {
    flex: 1;
    padding: 16px 40px 16px 44px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    color: var(--text-dark);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='18'%20height='18'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%235a6c7d'%20stroke-width='2'%3E%3Ccircle%20cx='11'%20cy='11'%20r='8'/%3E%3Cpath%20d='M21%2021l-4.35-4.35'/%3E%3C/svg%3E") no-repeat left 14px center / 18px 18px,
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='20'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%233d7a4a'%20stroke-width='2.5'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E") no-repeat right 16px center / 20px 20px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.hero-search select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(61, 122, 74, 0.15);
}

.hero-search .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.hero-visual {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-medium);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating elements */
.floating-card {
    position: absolute;
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    gap: 16px;
}

.floating-card.top {
    top: 10%;
    left: -40px;
}

.floating-card.bottom {
    bottom: 15%;
    right: -30px;
}

.floating-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-soft);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-text {
    font-weight: 600;
    color: var(--text);
}

.floating-text span {
    display: block;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(61, 122, 74, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(61, 122, 74, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--text);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-label--center {
    justify-content: center;
}

.section-label::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.section-line {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 0 auto 24px;
    border-radius: 2px;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: var(--section-padding);
    background: var(--primary-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image-main img {
    width: 100%;
    display: block;
}

.about-image-accent {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--primary-soft);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 32px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.about-feature h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ===================================
   About Page
   =================================== */
.about-source-page {
    background: var(--warm-white);
}

.about-source-content {
    max-width: 980px;
    margin: 0 auto;
}

.about-source-content h2 {
    margin-top: 72px;
    margin-bottom: 22px;
    color: var(--text);
    font-size: 2.2rem;
}

.about-source-content h2:first-child {
    margin-top: 0;
}

.about-source-content p,
.about-source-content li {
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.85;
}

.about-source-content p {
    margin-bottom: 24px;
}

.about-source-content ul {
    display: grid;
    gap: 12px;
    margin: 22px 0 28px;
    padding: 0;
    list-style: none;
}

.about-source-content li {
    position: relative;
    padding-left: 28px;
}

.about-source-content li::before {
    content: '';
    position: absolute;
    top: 0.82em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.about-source-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 64px;
    align-items: center;
}

.about-source-media {
    margin: 0;
}

.about-source-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.space-gallery.about-source-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    margin: 34px 0 8px;
}

.about-source-trust {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.about-source-trust p {
    min-height: 100%;
    margin: 0;
    padding: 32px;
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    background: white;
    box-shadow: 0 10px 28px rgba(61, 122, 74, 0.05);
}

.about-source-trust strong {
    color: var(--text);
}

.about-page-header .container {
    max-width: 920px;
}

.about-page-header .subtitle {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.about-page-intro {
    background: var(--warm-white);
}

.about-page-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
    gap: 72px;
    align-items: center;
}

.about-page-intro-copy {
    max-width: 720px;
}

.about-page-intro-copy h2,
.about-team-copy h2,
.about-mission-content h2 {
    color: var(--text);
}

.about-page-intro-copy p:not(.lead),
.about-team-copy p,
.about-mission-content p:not(.lead) {
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-page-actions,
.about-mission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.about-page-intro-media {
    position: relative;
}

.about-page-intro-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.about-page-media-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 18px 20px;
    border-radius: 8px;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.about-page-media-caption strong,
.about-page-media-caption span {
    display: block;
}

.about-page-media-caption strong {
    color: var(--text);
    font-size: 1rem;
}

.about-page-media-caption span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-team-section {
    background: var(--cream);
}

.about-team-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 68px;
    align-items: start;
}

.about-team-note {
    margin-top: 34px;
    padding: 24px 0 24px 28px;
    border-left: 4px solid var(--primary);
}

.about-team-note h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.about-team-note p {
    margin-bottom: 0;
}

.about-specialist-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-specialist-list li {
    position: relative;
    min-height: 100%;
    padding: 18px 18px 18px 44px;
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    background: var(--warm-white);
    color: var(--text);
    line-height: 1.65;
    box-shadow: 0 10px 28px rgba(61, 122, 74, 0.05);
}

.about-specialist-list li::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 22px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.space-section.about-space-section {
    padding: var(--section-padding);
}

.space-gallery.about-space-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
}

.about-space-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
}

.about-space-point {
    padding-top: 24px;
    border-top: 3px solid var(--primary);
}

.about-space-point h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 1.2rem;
}

.about-space-point p {
    color: var(--text-light);
}

.about-trust-section .section-header {
    max-width: 760px;
}

.about-trust-section .value-card {
    padding: 56px 32px;
}

.about-mission-section {
    background: var(--warm-white);
}

.about-mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-mission-content .lead {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}

.about-mission-actions {
    justify-content: center;
}

/* ===================================
   Values Section
   =================================== */
.values-section {
    padding: var(--section-padding);
    background: var(--warm-white);
    position: relative;
    overflow: hidden;  /* Clip overflowing decorative circle */
}

/* Organic background shape */
.values-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--primary-soft);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}

.values-section .container {
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.value-card {
    padding: 60px 40px;
    text-align: center;
    border-right: 1px solid var(--cream-dark);
    transition: all 0.4s ease;
    background: transparent;
    box-shadow: none;
}

.value-card:last-child {
    border-right: none;
}

.value-card:hover {
    background: white;
    transform: none;
    box-shadow: none;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 56px;
    height: 56px;
    stroke: var(--primary);
    stroke-width: 1.5;
    fill: none;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ===================================
   Services Section
   =================================== */
.services-section {
    padding: var(--section-padding);
    background: var(--primary-soft);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.services-header-text {
    max-width: 500px;
}

.services-header h2 span {
    color: var(--primary);
}

.services-categories {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.category-block h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.service-subcategory {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--cream-dark);
    line-height: 1;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 14px;
}

.service-link svg {
    width: 16px;
    height: 16px;
}

/* Stretched link utility - rozszerza link na cały parent z position: relative */
.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    content: "";
    pointer-events: auto;
}

/* Upewnij się że hover działa na całym kafelku */
.service-card {
    cursor: pointer;
}

/* Service icon for fallback */
.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===================================
   Flip Cards — Homepage Categories
   =================================== */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.flip-card {
    perspective: 1000px;
    cursor: pointer;
    min-height: 360px;
    transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 360px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flip-card-front {
    background: linear-gradient(135deg, var(--primary) 0%, #2d6339 100%);
    color: white;
    justify-content: center;
    align-items: center;
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-medium);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.flip-card:not(.flipped):hover .flip-card-front {
    box-shadow: 0 12px 48px rgba(61, 122, 74, 0.25);
    transform: translateY(-4px);
}

.flip-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.flip-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.flip-card-front h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}

.flip-card-desc {
    font-size: 0.9rem;
    opacity: 0.85;
    text-align: center;
    line-height: 1.5;
    margin-top: 8px;
    max-width: 260px;
}

.flip-card-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
    transition: opacity 0.3s ease, gap 0.3s ease;
}

.flip-card:not(.flipped):hover .flip-card-hint {
    opacity: 1;
    gap: 10px;
}

.flip-card-back {
    background: white;
    transform: rotateY(180deg);
    padding: 32px;
    box-shadow: var(--shadow-medium);
    justify-content: flex-start;
}

.flip-card-back h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-soft);
}

.flip-card-services {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
}

.flip-card-services li {
    margin-bottom: 6px;
}

.flip-card-services a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.flip-card-services a:hover {
    color: var(--primary);
}

.flip-card-services .checkmark {
    flex-shrink: 0;
    color: var(--primary);
}

.flip-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--cream-dark);
    transition: gap 0.3s ease;
}

.flip-card-cta:hover {
    gap: 14px;
}

/* ===================================
   Space Section (Nasza Przestrzeń)
   =================================== */
.space-section {
    padding: 40px 0;  /* Reduced from 100px to 40px */
    background: var(--cream);
}

.space-header {
    text-align: center;
    margin-bottom: 60px;
}

.space-header h2 {
    font-size: 2.8rem;
    color: var(--text);
}

.space-header h2 span {
    color: var(--primary);
}

.space-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 16px auto 0;
}

.space-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);     /* 3 kolumny zamiast 12 */
    grid-auto-rows: 280px;                     /* Stała wysokość dla standardowej galerii */
    gap: 24px;
}

/* ============================================
   SPACE GALLERY - MOZAIKA
   ============================================ */

/* Adres gabinetu */
.space-address {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Galeria mozaikowa dla Gabinetu 1 (7 zdjęć) */
.space-gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

/* ============================================
   DESKTOP - Asymetryczna mozaika (≥992px)
   ============================================ */
@media (min-width: 992px) {
    /* Rząd 1: Recepcja (średnia, 8 kol) + Pokój 1 (mały, 4 kol) */
    .space-gallery-mosaic .space-item:nth-child(1) {
        grid-column: span 8;
        grid-row: span 1;
    }

    .space-gallery-mosaic .space-item:nth-child(2) {
        grid-column: span 4;
        grid-row: span 1;
    }

    /* Rząd 2: Pokój 2 (mały, 3 kol) + Poczekalnia (DUŻA, 9 kol) */
    .space-gallery-mosaic .space-item:nth-child(3) {
        grid-column: span 3;
        grid-row: span 1;
    }

    .space-gallery-mosaic .space-item:nth-child(4) {
        grid-column: span 9;
        grid-row: span 1;
        min-height: 320px;  /* Poczekalnia większa - główny akcent */
    }

    /* Rząd 3: Pokój 3 (średni, 6 kol) + Pokój 4 (średni, 6 kol) */
    .space-gallery-mosaic .space-item:nth-child(5) {
        grid-column: span 6;
        grid-row: span 1;
    }

    .space-gallery-mosaic .space-item:nth-child(6) {
        grid-column: span 6;
        grid-row: span 1;
    }

    /* Rząd 4: Pokój 5 (panoramiczny, pełna szerokość) */
    .space-gallery-mosaic .space-item:nth-child(7) {
        grid-column: span 12;
        grid-row: span 1;
        min-height: 240px;
    }
}

/* ============================================
   TABLET - Uproszczona mozaika (768-991px)
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .space-gallery-mosaic {
        grid-template-columns: repeat(3, 1fr);
    }

    .space-gallery-mosaic .space-item:nth-child(1) {
        grid-column: span 2;  /* Recepcja */
    }

    .space-gallery-mosaic .space-item:nth-child(2) {
        grid-column: span 1;  /* Pokój 1 */
    }

    .space-gallery-mosaic .space-item:nth-child(3) {
        grid-column: span 1;  /* Pokój 2 */
    }

    .space-gallery-mosaic .space-item:nth-child(4) {
        grid-column: span 2;  /* Poczekalnia */
    }

    .space-gallery-mosaic .space-item:nth-child(5),
    .space-gallery-mosaic .space-item:nth-child(6) {
        grid-column: span 1;  /* Pokoje 3, 4 */
    }

    .space-gallery-mosaic .space-item:nth-child(7) {
        grid-column: span 3;  /* Pokój 5 panoramiczny */
    }
}

/* ============================================
   MOBILE - Pojedyncza kolumna (<768px)
   ============================================ */
@media (max-width: 767px) {
    .space-gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .space-gallery-mosaic .space-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .space-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
}

/* Tło dla drugiej sekcji (Gabinet 2) */
.space-section-alt {
    background-color: var(--bg-secondary, #f8f9fa);
}

.space-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.space-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.space-item:hover img {
    transform: scale(1.05);
}

.space-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(45, 52, 54, 0.8), transparent);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.space-item:hover .space-item-overlay {
    opacity: 1;
}

.space-item-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.space-item-overlay p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.space-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.space-feature {
    text-align: center;
    padding: 32px 24px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.space-feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.8rem;
}

.space-feature h4 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

/* ===================================
   Team Section
   =================================== */
.team-section {
    padding: var(--section-padding);
    background: var(--warm-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-card {
    text-align: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: var(--transition);
}

.team-card:hover {
    transform: none;
    box-shadow: none;
}

.team-card-image,
.team-image {
    position: relative;
    margin-bottom: 24px;
    width: 100%;
    height: auto;
    overflow: visible;
    background: transparent;
}

.team-card-image img,
.team-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.team-card:hover .team-card-image img,
.team-card:hover .team-image img {
    border-radius: 30%;
    transform: scale(1.02);
}

.team-card-content {
    padding: 0;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text);
}

.team-card-title,
.team-card .role {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.team-card-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
}

.cta-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ===================================
   Page Header
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-header .subtitle,
.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ===================================
   Service Hero
   =================================== */
.service-hero {
    padding: 120px 0 48px;
    background: var(--warm-white);
    border-bottom: 1px solid var(--accent-soft);
    overflow: hidden;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 64px;
    align-items: center;
}

.service-eyebrow {
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.service-hero h1 {
    max-width: 720px;
    margin-bottom: 28px;
    color: var(--text);
    font-size: 3.35rem;
    line-height: 1.08;
}

.service-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.service-hero-media {
    position: relative;
    min-height: 0;
}

.service-hero-image {
    overflow: hidden;
    border-radius: 8px;
    background: var(--cream-dark);
    box-shadow: var(--shadow-medium);
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero-image-main {
    width: 100%;
    height: 380px;
    margin-left: auto;
}

/* ===================================
   Content Box
   =================================== */
.content-box {
    background-color: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    line-height: 1.8;
}

.content-box h2 {
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-box h2:first-child {
    margin-top: 0;
}

.content-box h3 {
    color: var(--primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-box p {
    margin-bottom: 16px;
    color: var(--text-light);
}

/* ===================================
   Regulamin — kroki klienta
   =================================== */

.regulamin-steps {
    max-width: 800px;
    margin: 0 auto;
}

.regulamin-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.regulamin-step:last-of-type {
    border-bottom: none;
}

.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-icon {
    font-size: 32px;
    line-height: 1;
}

.regulamin-step h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
}

.regulamin-step p {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
    flex: 1;
}

.regulamin-acceptance {
    text-align: center;
    padding: 24px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .regulamin-step {
        flex-direction: column;
        gap: 12px;
    }

    .step-header {
        flex-direction: row;
        gap: 12px;
    }

    .regulamin-step h3 {
        text-align: left;
    }
}

/* ===================================
   Service Detail Sections
   =================================== */
.service-detail {
    background: var(--warm-white);
    padding-top: 32px;
}

.service-sections {
    display: grid;
    gap: 0;
}

.service-opening {
    margin-top: 0;
    margin-bottom: 32px;
    padding: 42px;
    border-left: 6px solid var(--primary);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.service-section {
    padding: 82px 0;
    border-top: 1px solid var(--accent-soft);
}

.service-section:first-of-type {
    border-top: 0;
}

.service-section-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
    gap: 72px;
    align-items: start;
}

.service-section-heading {
    position: sticky;
    top: 112px;
}

.service-section-number {
    display: block;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.service-section-heading h2 {
    max-width: 860px;
    margin-bottom: 0;
    color: var(--text);
    font-size: 2rem;
}

.service-section-body {
    max-width: 800px;
}

.service-opening p,
.service-section-body > p:first-child {
    color: var(--text-light);
}

.service-section p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.service-section-image {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream-dark);
    box-shadow: var(--shadow-soft);
}

.service-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-question-list,
.service-feature-list,
.service-process-list {
    display: grid;
    gap: 14px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.service-feature-list {
    grid-template-columns: 1fr;
}

.service-question-list li,
.service-feature-list li,
.service-process-list li {
    position: relative;
    min-height: 56px;
    padding: 18px 22px 18px 54px;
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    background: white;
    color: var(--text);
    box-shadow: 0 10px 28px rgba(61, 122, 74, 0.05);
}

.service-question-list li::before,
.service-feature-list li::before,
.service-process-list li::before {
    position: absolute;
    left: 22px;
    top: 18px;
    color: var(--primary);
    font-weight: 700;
}

.service-question-list li::before {
    content: "?";
}

.service-feature-list li::before {
    content: "";
    width: 8px;
    height: 8px;
    top: 25px;
    border-radius: 50%;
    background: var(--primary);
}

.service-process-list {
    counter-reset: service-step;
}

.service-process-list li {
    counter-increment: service-step;
    padding-left: 58px;
}

.service-process-list li::before {
    content: counter(service-step);
    top: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-soft);
    text-align: center;
    line-height: 28px;
}

.service-faq-list {
    display: grid;
    gap: 14px;
}

.service-faq-item {
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    background: var(--warm-white);
    overflow: hidden;
}

.service-faq-item summary {
    cursor: pointer;
    padding: 18px 22px;
    color: var(--text);
    font-weight: 700;
}

.service-faq-item p {
    padding: 0 22px 18px;
    margin: 0;
}

.service-cta-box {
    margin-top: 56px;
    padding: 48px;
    border-radius: 8px;
    background: var(--text);
    text-align: center;
}

.service-cta-box h3 {
    color: white;
}

.service-cta-box p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
}

.service-specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.service-specialist-card {
    padding: 24px;
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

/* ===================================
   Team Member Detail
   =================================== */
.member-detail-content {
    display: grid;
    /* minmax(0, …) stops the info column's content (e.g. the topic tile grid)
       from raising its min-width and stealing space from the image column. */
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 60px;
    margin-bottom: 40px;
    align-items: start;
}

.member-image {
    position: relative;
}

.member-image img {
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
}

.member-section {
    margin-bottom: 32px;
}

.member-section h2 {
    color: var(--text);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 16px;
    text-align: left;
}

.member-bio {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-light);
}

.services-list,
.specializations-list {
    list-style: none;
    padding-left: 0;
    line-height: 1.8;
}

.services-list li,
.specializations-list li {
    padding: 8px 0;
    color: var(--text);
    position: relative;
    padding-left: 24px;
}

.services-list li::before,
.specializations-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Booking Widget */
.booking-widget {
    margin: 32px 0;
    padding: 32px;
    background-color: var(--cream);
    border-radius: 24px;
    text-align: center;
}

#practicare-calendar-small {
    width: 100%;
    min-height: 400px;
}

/* ===================================
   Contact Section
   =================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 48px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.contact-item {
    margin-bottom: 32px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    background-color: white;
    padding: 48px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--cream-dark);
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: auto;
}

/* ===================================
   Pricing Section
   =================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pricing-card {
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.pricing-card p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--text);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p,
.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
    max-width: 300px;
}

.footer h3,
.footer h4,
.footer-section h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 24px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    margin-right: 16px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===================================
   Error Pages
   =================================== */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 8rem;
    color: var(--primary);
    font-weight: bold;
    line-height: 1;
    margin-bottom: 16px;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

.back-link {
    margin-top: 32px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-search {
        max-width: 100%;
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* FIX: Hide floating cards to prevent horizontal overflow */
    .floating-card {
        display: none;
    }

    /* FIX: Hide accent circle to prevent horizontal overflow */
    .about-image-accent {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-source-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .about-source-media {
        max-width: 560px;
        margin: 0 auto;
    }

    .space-gallery.about-source-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-page-intro-grid,
    .about-team-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-page-intro-media {
        max-width: 560px;
        margin: 0 auto;
    }

    .space-gallery.about-space-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value-card {
        border-bottom: 1px solid var(--cream-dark);
    }

    .value-card:nth-child(2n) {
        border-right: none;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flip-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .space-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(2, 250px);
    }

    .space-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .space-item:nth-child(2),
    .space-item:nth-child(3) {
        grid-column: span 1;
    }

    .space-item:nth-child(4) {
        display: none;
    }

    .space-gallery.about-space-gallery .space-item:nth-child(1),
    .space-gallery.about-space-gallery .space-item:nth-child(2),
    .space-gallery.about-space-gallery .space-item:nth-child(3),
    .space-gallery.about-space-gallery .space-item:nth-child(4) {
        display: block;
        grid-column: span 1;
        grid-row: span 1;
    }

    .space-gallery.about-source-gallery .space-item:nth-child(1),
    .space-gallery.about-source-gallery .space-item:nth-child(2),
    .space-gallery.about-source-gallery .space-item:nth-child(3),
    .space-gallery.about-source-gallery .space-item:nth-child(4) {
        display: block;
        grid-column: span 1;
        grid-row: span 1;
    }

    .space-features {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

    .service-hero-grid,
    .service-section-inner {
        grid-template-columns: 1fr;
    }

    .service-section-heading {
        position: static;
    }

    .service-hero h1 {
        font-size: 3rem;
    }

    .service-hero-media {
        min-height: 0;
    }

    .service-hero-image-main {
        width: 100%;
        height: 360px;
    }
}

@media (max-width: 1199px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        align-items: stretch;
        background-color: var(--cream);
        width: 100%;
        padding: 32px;
        box-shadow: var(--shadow-medium);
        transition: var(--transition);
        gap: 0;
        z-index: 998;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-menu li {
        padding: 12px 0;
        border-bottom: 1px solid var(--cream-dark);
    }

    .navbar-toggle {
        display: flex;
    }

    .phone-cta {
        margin-left: auto;
        margin-right: 12px;
    }

    .phone-cta-btn {
        padding: 8px;
    }

    .phone-cta-number {
        display: none;
    }

    .phone-cta-tooltip {
        display: none !important;
    }

    .phone-cta-dropdown {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 24px;
        box-shadow: var(--shadow-medium);
        text-align: center;
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0;
        transition: opacity 0.2s ease, transform 0.2s ease;
        pointer-events: none;
    }

    .phone-cta-dropdown.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .phone-cta-dropdown a {
        display: block;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--primary);
        text-decoration: none;
        margin-bottom: 4px;
    }

    .phone-cta-dropdown .phone-cta-hours {
        font-size: 0.8rem;
        color: var(--text-light);
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 12px;
        order: 10;
    }

    .hero {
        padding: 120px 0 80px;
        min-height: auto;
    }

    .hero-title,
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle,
    .hero-description {
        font-size: 1.1rem;
    }

    /* Mobile-optimized hero blobs */
    .hero-blobs {
        will-change: auto;
    }
    .hero-blob {
        opacity: 0.04;
        --blob-scale: 0.6;
    }

    /* Mobile-optimized decorative circle for values section */
    .values-section::before {
        width: 120vw;     /* Bardzo duże: 120% szerokości viewport - dramatyczny efekt */
        height: 120vw;
        max-width: 600px; /* Limit dla większych ekranów/tabletów */
        max-height: 600px;
        opacity: 0.45;    /* Zwiększone dla większego rozmiaru */
    }

    /* Mobile-optimized decorative blob for CTA section */
    .cta-section::before {
        top: -10%;        /* Zmiana z -50% → częściowo widoczny */
        right: -25%;      /* Lekko poza ekranem */
        width: 70%;       /* Zmniejszone z 60% */
        height: 120%;     /* Zmniejszone z 200% */
        opacity: 0.03;    /* Bardzo subtelne na ciemnym tle */
    }

    .section {
        padding: 60px 0;
    }

    h2,
    .section-header h2,
    .cta-content h2 {
        font-size: 2rem;
    }

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .about-source-content h2 {
        margin-top: 52px;
        font-size: 2rem;
    }

    .about-source-content p,
    .about-source-content li {
        font-size: 1rem;
    }

    .about-source-media img {
        aspect-ratio: 4 / 3;
    }

    .about-source-trust {
        grid-template-columns: 1fr;
    }

    .space-gallery.about-source-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .about-page-intro-copy h2,
    .about-team-copy h2,
    .about-mission-content h2 {
        font-size: 2rem;
    }

    .about-page-actions,
    .about-mission-actions {
        flex-direction: column;
    }

    .about-page-actions .btn,
    .about-mission-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .about-page-intro-media img {
        aspect-ratio: 4 / 3;
    }

    .about-page-media-caption {
        position: static;
        margin-top: 12px;
        border: 1px solid var(--accent-soft);
        background: white;
    }

    .about-specialist-list,
    .about-space-points {
        grid-template-columns: 1fr;
    }

    .space-gallery.about-space-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .about-team-note {
        padding-left: 20px;
    }

    .hero-search-row {
        flex-direction: column;
    }

    .hero-search select,
    .hero-search .btn {
        width: 100%;
    }

    .service-hero {
        padding: 104px 0 40px;
    }

    .service-hero-grid {
        gap: 38px;
    }

    .service-hero h1 {
        font-size: 2.35rem;
    }

    .service-hero-actions,
    .service-hero-actions .btn {
        width: 100%;
    }

    .service-hero-media {
        min-height: 0;
    }

    .service-hero-image-main {
        width: 100%;
        height: 240px;
    }

    .service-section {
        padding: 52px 0;
    }

    .service-opening,
    .service-cta-box {
        padding: 28px;
    }

    .service-feature-list {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .values-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .flip-cards-grid {
        grid-template-columns: 1fr;
    }

    .flip-card {
        min-height: 320px;
    }

    .flip-card-inner {
        min-height: 320px;
    }

    .value-card {
        border-right: none;
        border-bottom: 1px solid var(--cream-dark);
    }

    .value-card:last-child {
        border-bottom: none;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .space-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
    }

    .space-gallery.about-space-gallery {
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }

    .space-gallery.about-source-gallery {
        grid-template-rows: none;
        grid-auto-rows: 220px;
    }

    .space-item:nth-child(1),
    .space-item:nth-child(2),
    .space-item:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .space-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-consent-content {
        flex-direction: column;
    }

    .cookie-consent-buttons {
        width: 100%;
    }

    .cookie-consent-buttons button {
        flex: 1;
    }

    .content-box {
        padding: 32px 24px;
    }

    .contact-form,
    .contact-info {
        padding: 32px 24px;
    }
}

/* ===================================
   FAQ Section (Homepage)
   =================================== */
.faq-section {
    background-color: var(--warm-white);
}

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

.faq-section .faq-item {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease;
}

.faq-section .faq-item:hover {
    transform: translateX(5px);
}

.faq-section .faq-item h3 {
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-section .faq-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

.faq-section .faq-item a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-section .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Blog
   =================================== */
.blog-section {
    background-color: var(--cream);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.blog-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

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

.blog-card-content {
    padding: 32px;
}

.blog-category {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.blog-card-content h2 {
    font-size: 1.3rem;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-card-content h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-content h2 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.2s ease;
}

.blog-read-more:hover {
    gap: 12px;
}

/* Blog Post Detail */
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-detail {
    background-color: var(--warm-white);
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
}

.blog-featured-image {
    margin-bottom: 40px;
    border-radius: 24px;
    overflow: hidden;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content .content-box {
    font-size: 1.05rem;
    line-height: 1.8;
}

.empty-state {
    text-align: center;
    padding: 80px 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Homepage rewrite (2026-06) — SOLVO copy
   =================================== */

/* Hero USP list + CTA buttons */
.hero-usp {
    list-style: none;
    margin: 28px 0 32px;
    padding: 0;
    display: grid;
    gap: 14px;
}

.hero-usp li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.5;
}

.hero-usp li svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--primary);
    margin-top: 2px;
}

.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* About section CTA */
.about-cta {
    margin-top: 32px;
}

/* Section 3 — interiors intro */
.space-intro {
    background-color: var(--cream);
}

.space-intro-text {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.space-intro-text p {
    color: var(--text-light);
    font-size: 1.08rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Section 4 — discipline tiles */
.offer-section {
    background-color: var(--warm-white);
}

.discipline-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.discipline-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.discipline-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.discipline-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.discipline-card-icon svg {
    width: 34px;
    height: 34px;
    color: var(--primary);
}

.discipline-card h3 {
    font-size: 1.35rem;
    color: var(--text);
    margin: 0 0 14px;
}

.discipline-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 24px;
    flex-grow: 1;
}

.discipline-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.discipline-card-cta:hover {
    gap: 14px;
}

/* Section 5 — reasons */
.reasons-section {
    background-color: var(--cream);
}

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

.reason-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
}

.reason-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--primary-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.reason-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.reason-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.4;
}

.reason-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 0.97rem;
}

/* Section 6 — stats */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.stats-section .section-header .section-label,
.stats-section .section-header h2 {
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Section 7 — testimonials carousel */
.testimonials-section {
    background-color: var(--warm-white);
}

.testimonials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    flex: 1;
    scrollbar-width: none;
}

.testimonial-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    scroll-snap-align: start;
    flex: 0 0 clamp(280px, 80%, 380px);
    background: white;
    border: 1px solid var(--accent-soft);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin: 0;
    display: flex;
    flex-direction: column;
}

.testimonial-stars {
    color: var(--accent-warm);
    letter-spacing: 3px;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.testimonial-card blockquote {
    margin: 0 0 18px;
    color: var(--text);
    font-style: italic;
    line-height: 1.75;
    flex-grow: 1;
}

.testimonial-card figcaption {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial-nav {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--accent-soft);
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.testimonial-nav:hover {
    background: var(--primary);
    color: white;
}

.testimonials-cta {
    text-align: center;
    margin-top: 24px;
}

/* Section 8 — homepage FAQ (animated accordion, reuse .service-faq-item) */
.home-faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.home-faq-list .service-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    list-style: none;
}

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

.home-faq-list .service-faq-item summary::after {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.home-faq-list .service-faq-item.open summary::after {
    transform: rotate(-135deg);
}

.home-faq-list .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.home-faq-list .service-faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.home-faq-list .faq-answer-inner {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .home-faq-list .faq-answer,
    .home-faq-list .service-faq-item summary::after {
        transition: none;
    }
}

/* Section 9 — CTA buttons row */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

/* Discipline stub pages */
.discipline-services {
    margin: 0 0 28px;
    padding-left: 22px;
}

.discipline-services li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.discipline-page-cta,
.booking-cta,
.about-source-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

/* Booking page */
.booking-rules {
    margin: 0 0 28px;
    padding-left: 22px;
}

.booking-rules li {
    margin-bottom: 14px;
    line-height: 1.7;
}

.booking-account {
    background: var(--primary-soft);
    border-radius: 12px;
    padding: 16px 20px;
}

/* Responsive — homepage rewrite */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 24px;
    }
}

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.3rem;
    }
    .testimonial-card {
        flex-basis: clamp(260px, 85%, 320px);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   Sekcja "Znajdź specjalistę" (finder)
   Wygląd spójny z CTA końcowym (.cta-section), ale z własnymi klasami
   — można edytować niezależnie od sekcji CTA.
   =================================== */
.finder-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.finder-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.finder-content {
    position: relative;
    z-index: 1;
}

.finder-content h2 {
    font-size: 2.8rem;
    color: white;
    margin-bottom: 16px;
}

.finder-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 40px;
    max-width: 560px;
}

.finder-search {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.finder-select {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius);
    border: none;
    background: white;
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%233d7a4a'%20stroke-width='2'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
}

.finder-select:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.finder-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.finder-section .btn-primary {
    background: white;
    color: var(--primary);
}

.finder-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.finder-section .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.finder-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

@media (max-width: 480px) {
    .finder-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================================================
   Topic accordion (Obszary / Problemy / Diagnostyka) — tile grid, single-open
   =========================================================================== */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.topic-tile {
    background: var(--warm-white);
    border: 1px solid var(--accent-soft);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.topic-tile:hover,
.topic-tile.open {
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.topic-tile__header {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-align: left;
    transition: color 0.2s ease;
}

.topic-tile__header:hover,
.topic-tile.open .topic-tile__header {
    color: var(--primary);
}

.topic-tile__name {
    flex: 1 1 auto;
}

.topic-tile__chevron {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.topic-tile.open .topic-tile__chevron {
    transform: rotate(-135deg);
}

.topic-tile__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.topic-tile.open .topic-tile__panel {
    grid-template-rows: 1fr;
}

.topic-tile__inner {
    overflow: hidden;
    min-height: 0;
    padding: 0 20px;
}

.topic-tile.open .topic-tile__inner {
    padding-bottom: 20px;
}

.topic-tile__description {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 12px;
}

.topic-tile__lead {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-light);
    margin: 0 0 12px;
}

.topic-tile__empty {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 4px;
}

.topic-specialists {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.topic-specialist {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s ease;
}

.topic-specialist:hover {
    background: var(--primary-soft);
}

.topic-specialist__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.topic-specialist__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

.topic-specialist__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.topic-specialist__name {
    font-weight: 600;
    font-size: 0.95rem;
}

.topic-specialist__title {
    font-size: 0.8rem;
    color: var(--text-light);
}

.topics-empty {
    text-align: center;
    color: var(--text-light);
}

/* Nav dropdown — "Czym się zajmujemy" */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: inherit;
    color: var(--text);
    padding: 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--primary);
}

.nav-dropdown-caret {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: transform 0.3s ease;
}

.nav-dropdown.open .nav-dropdown-caret {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--warm-white);
    border: 1px solid var(--accent-soft);
    border-radius: 14px;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu li {
    padding: 0;
    border: none;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a::after {
    display: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

@media (max-width: 1199px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        min-width: 0;
        padding: 8px 0 0 16px;
        display: none;
    }

    /* hover must not reveal the panel inside the mobile column menu */
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown.open:hover .nav-dropdown-menu {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .topic-tile,
    .topic-tile__panel,
    .topic-tile__chevron,
    .topic-specialist,
    .nav-dropdown-menu,
    .nav-dropdown-caret {
        transition: none;
    }
}
