/* ==========================================================================
   VARIANT 5: FLUID MOTION & ROUNDED INTERACTIVE (Okna V Dom)
   ========================================================================== */

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

:root {
    --primary: #0f172a;       /* Deep slate for text and dark accents */
    --primary-light: #1e293b; /* Medium slate */
    --accent: #ec430f;        /* Brand orange for highlights/CTAs */
    --accent-hover: #d13608;  /* Darker orange */
    --bg-light: #f8fafc;      /* Modern light gray-blue background */
    --surface: #ffffff;       /* Pure white for cards/menus */
    --border: #e2e8f0;        /* Soft boundary lines */
    --text-muted: #64748b;    /* Secondary readable gray text */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(51, 65, 85, 0.08), 0 8px 10px -6px rgba(51, 65, 85, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(51, 65, 85, 0.12), 0 12px 16px -8px rgba(51, 65, 85, 0.12);
    --radius-lg: 20px;        /* Corner radius for cards and panels */
    --radius-pill: 50px;      /* Corner radius for buttons and tags */
}

/* Base resets & styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Lexend', sans-serif !important;
    background-color: var(--bg-light);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Layout containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 30px 0;
    position: relative;
}

.section-bg-white {
    background-color: var(--surface);
}

.section-bg-light {
    background-color: var(--bg-light);
}

.section-border-top {
    border-top: 1px solid var(--border);
}

.section-title-wrap {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 20px auto;
}

.section-title-wrap--wide {
    max-width: 960px;
}

.section-title-wrap--wide .section-subtitle {
    text-wrap: balance;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
    display: block;
    max-width: 100%;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Grid helper utilities */
.grid {
    display: grid;
    gap: 20px;
}

.grid:has(.prod-card),
.prod-grid {
    align-items: stretch;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid:has(.prod-card):not(.grid-3):not(.grid-2),
    .prod-grid:not(.grid-3):not(.grid-2) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .grid:has(.prod-card):not(.grid-3):not(.grid-2),
    .prod-grid:not(.grid-3):not(.grid-2) {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid.grid-3:has(.prod-card) {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

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

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Header & Menu */
.top-info-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--primary);
    color: var(--surface);
    z-index: 1001;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-info-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-info-phones {
    display: flex;
    gap: 20px;
    align-items: center;
}

.top-info-phone-link,
.top-info-address,
.top-info-insta-link {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.top-info-text {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.top-info-insta-link .top-info-text {
    font-size: 12px;
}

.top-info-phone-link svg,
.top-info-address svg,
.top-info-insta-link svg {
    flex-shrink: 0;
    color: var(--accent);
    width: 13px;
    height: 13px;
}

.top-info-phone-link:hover,
.top-info-address:hover,
.top-info-insta-link:hover {
    color: var(--surface);
}

@media (max-width: 991px) {
    .top-info-address .top-info-text,
    .top-info-insta-link .top-info-text {
        display: none;
    }

    .top-info-container {
        gap: 12px;
    }

    .top-info-phones {
        gap: 12px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .top-info-bar .lang-switch {
        flex-shrink: 0;
        margin-left: 4px;
    }
}

@media (max-width: 767px) {
    .top-info-container {
        gap: 10px;
    }

    .top-info-phones {
        gap: 9px;
    }

    .top-info-phone-link,
    .top-info-address,
    .top-info-insta-link {
        font-size: 14px;
    }

    .top-info-phone-link svg,
    .top-info-address svg,
    .top-info-insta-link svg {
        width: 15px;
        height: 15px;
    }

    .top-info-bar .lang-switch {
        padding: 3px 9px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .top-info-container {
        gap: 7px;
    }

    .top-info-phones {
        gap: 5px;
        min-width: 0;
    }

    .top-info-phone-link {
        font-size: 12px;
        gap: 4px;
    }

    .top-info-phone-link svg {
        width: 13px;
        height: 13px;
    }

    /* Icon-only address + Instagram (text hidden at 991px) — keep compact, do not hide */
    .top-info-address,
    .top-info-insta-link {
        gap: 0;
        padding: 0 2px;
        flex-shrink: 0;
    }

    .top-info-address svg,
    .top-info-insta-link svg {
        width: 14px;
        height: 14px;
    }

    .top-info-bar .lang-switch {
        padding: 2px 7px;
        font-size: 12px;
        gap: 4px;
        flex-shrink: 0;
        margin-left: 2px;
    }
}

@media (max-width: 340px) {
    .top-info-bar {
        height: auto;
        min-height: 44px;
        padding: 4px 0;
    }

    .top-info-container {
        flex-wrap: wrap;
        height: auto;
        row-gap: 3px;
    }

    .top-info-phones {
        flex: 1 1 100%;
    }

    .top-info-bar .lang-switch {
        margin-left: auto;
    }

    #sp-header {
        top: 56px;
    }

    .carousel-section {
        margin-top: 131px;
    }
}

.mobile-menu-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.mobile-contact-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-contact-link svg {
    flex-shrink: 0;
    color: var(--accent);
}

.mobile-contact-link:hover,
.mobile-contact-link:focus-visible {
    color: var(--accent);
}

.mobile-lang-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.mobile-lang-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.mobile-lang-switch {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 4px 10px;
}

.top-info-bar .lang-switch {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.top-info-bar .lang-switch a {
    color: rgba(255, 255, 255, 0.7);
}

.top-info-bar .lang-switch a.active {
    color: var(--surface);
}

.top-info-bar .lang-switch span {
    color: rgba(255, 255, 255, 0.3);
}

#sp-header {
    position: fixed;
    top: 40px; /* Offset for top-info-bar */
    left: 0;
    width: 100%;
    height: 75px;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: top 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrap a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 44px;
    width: auto;
    border-radius: 0;
    image-rendering: auto;
}

/* Desktop Navigation */
.nav-menu {
    display: none;
    list-style: none;
    align-items: center;
    gap: 25px;
}

@media (min-width: 1024px) {
    .nav-menu { display: flex; }
}

.nav-item {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

/* RU labels (e.g. «Комплектующие», «Входные двери») are wider than UK equivalents */
@media (min-width: 1024px) {
    html[lang="ru"] .nav-menu {
        gap: 18px;
    }

    html[lang="ru"] .nav-link {
        white-space: nowrap;
    }
}

.nav-link:hover {
    color: var(--accent);
}

.nav-item.active .nav-link {
    color: var(--accent);
}

.nav-link svg {
    transition: transform 0.3s ease;
}

.nav-link:hover svg {
    transform: translateY(2px);
}

/* Dropdown styling */
.nav-dropdown {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevent hidden menu from capturing mouse hover */
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable mouse hover only when parent item is hovered */
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.dropdown-link:hover {
    color: var(--accent);
    background-color: var(--bg-light);
    padding-left: 28px;
}

/* Header contacts */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-phones {
    display: none;
    flex-direction: column;
    text-align: right;
    gap: 4px;
}

@media (min-width: 1024px) {
    .header-phones { display: flex; }
}

.header-phone-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

.header-phone-link svg {
    color: var(--accent);
}

.header-phone-link:hover {
    color: var(--accent);
}

.header-lang-item {
    display: flex;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    background-color: var(--surface);
    user-select: none;
}

.lang-switch a {
    color: var(--text-muted);
}

.lang-switch a:hover {
    color: var(--accent);
}

.lang-switch a.active {
    color: var(--accent);
    font-weight: 700;
}

/* Hamburger mobile trigger */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 25px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1002;
}

@media (min-width: 1024px) {
    .hamburger { display: none; }
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile menu overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background-color: var(--surface);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    padding: 90px 24px 40px 24px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-sub-menu {
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 1px solid var(--border);
}

.mobile-sub-link {
    font-size: 14px;
    color: var(--text-muted);
}

.mobile-sub-link:hover {
    color: var(--accent);
}

/* Interactive Buttons */
.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: 'Lexend', sans-serif !important;
    border-radius: var(--radius-pill) !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow: var(--shadow-sm) !important;
    background-image: none !important;
}

/* Primary — orange filled CTA */
.btn-primary {
    background-color: var(--accent) !important;
    color: var(--surface) !important;
    box-shadow: 0 4px 14px rgba(236, 67, 15, 0.3) !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--primary) !important;
    color: var(--surface) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.btn-primary:active {
    background-color: var(--primary) !important;
    transform: translateY(0) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Secondary — white/outline */
.btn-secondary {
    background-color: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--primary-light) !important;
    background-image: none !important;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: var(--bg-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary-light) !important;
    transform: translateY(-2px) !important;
    outline: none !important;
}

.btn-secondary:active {
    transform: translateY(0) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Layout helpers — not appearance overrides */
.btn-fit {
    align-self: flex-start;
}

.btn.prod-action {
    padding: 10px 0 !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

.hero-section {
    padding-top: 20px;
    padding-bottom: 20px;
    background: linear-gradient(180deg, rgba(240, 244, 251, 0.6) 0%, rgba(248, 250, 252, 0) 100%);
}

.hero-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-layout {
        flex-direction: row;
        text-align: left;
    }
}

.hero-content {
    flex: 1.2;
}

.hero-image-wrap {
    flex: 1;
    position: relative;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 1023px) {
    .hero-image-wrap {
        display: none !important;
    }
}

.hero-badge {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 1.8rem;
    line-height: 1.25;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 480px) {
    .hero-title { font-size: 2.2rem; }
}

@media (min-width: 768px) {
    .hero-title { font-size: 3rem; }
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    font-weight: 300;
}

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

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-insta-link {
    color: var(--accent);
}

.hero-insta-link:hover {
    color: var(--accent-hover);
}

.hero-img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--surface);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrap:hover .hero-img {
    transform: translateY(-8px) rotate(1deg);
}

/* Feature/USP Cards */
.usp-section {
    padding-top: 0;
}

.usp-grid {
    margin-top: -15px;
    position: relative;
    z-index: 10;
}

.usp-card {
    background-color: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-top: 4px solid transparent;
    padding: 25px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.usp-card--blue {
    border-top-color: #3b82f6;
    box-shadow: inset 0 8px 16px -8px rgba(59, 130, 246, 0.15), var(--shadow-md);
}

.usp-card--blue:hover {
    border-top-color: #3b82f6;
    box-shadow: inset 0 12px 24px -12px rgba(59, 130, 246, 0.3), var(--shadow-lg);
}

.usp-card--orange {
    border-top-color: #f97316;
    box-shadow: inset 0 8px 16px -8px rgba(249, 115, 22, 0.15), var(--shadow-md);
}

.usp-card--orange:hover {
    border-top-color: #f97316;
    box-shadow: inset 0 12px 24px -12px rgba(249, 115, 22, 0.3), var(--shadow-lg);
}

.usp-card--green {
    border-top-color: #10b981;
    box-shadow: inset 0 8px 16px -8px rgba(16, 185, 129, 0.15), var(--shadow-md);
}

.usp-card--green:hover {
    border-top-color: #10b981;
    box-shadow: inset 0 12px 24px -12px rgba(16, 185, 129, 0.3), var(--shadow-lg);
}

.usp-card:hover {
    transform: translateY(-5px);
}

.usp-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.usp-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Accent callout boxes (highlighted info blocks) */
.accent-callout {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.accent-callout--lg {
    padding: 30px;
    box-shadow: var(--shadow-md);
}

/* Stats section */
.stats-banner {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
    margin: 25px auto 0 auto;
    width: 100%;
    justify-items: center;
}

@media (min-width: 768px) {
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

@media (min-width: 992px) {
    .stats-banner {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
}

@media (min-width: 992px) {
    .stat-item {
        max-width: none;
    }
}

.stat-item::after {
    display: none;
}

@media (min-width: 768px) and (max-width: 991px) {
    .stat-item:nth-child(odd)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background-color: var(--border);
        display: block;
    }
}

@media (min-width: 992px) {
    .stat-item:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 15%;
        height: 70%;
        width: 1px;
        background-color: var(--border);
        display: block;
    }
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

@media (min-width: 992px) {
    .stat-val {
        font-size: 1.85rem;
    }
}

.stat-lbl {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

@media (min-width: 992px) {
    .stat-lbl {
        font-size: 13px;
    }
}

/* Product pricing cards */
.prod-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prod-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(236, 67, 15, 0.15);
}

.prod-card--lite {
    box-shadow: var(--shadow-sm);
}

.prod-card--lite:hover {
    transform: translateY(-4px);
}

.prod-img-wrap {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-light);
}

.prod-img-wrap--contain {
    background-color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.prod-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.prod-img--contain {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    flex-shrink: 0;
}

.prod-card:hover .prod-img:not(.prod-img--contain) {
    transform: scale(1.05);
}

.prod-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--surface);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.prod-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 6px;
}

.prod-title {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.prod-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

.prod-spec {
    margin-bottom: 10px;
}

.prod-spec p {
    margin: 4px 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.prod-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.prod-info > .prod-action:last-child {
    margin-top: auto;
    flex-shrink: 0;
}

.prod-info > .prod-price-box ~ .prod-action {
    margin-top: 0;
}

.prod-info > div:last-child:has(.prod-price-box) {
    margin-top: auto;
    flex-shrink: 0;
}

.prod-info > div:last-child:has(.prod-price-box) .prod-price-box {
    margin-top: 0;
}

.price-new {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
}

.price-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.prod-action {
    width: 100%;
    text-align: center;
}

/* Balcony Options Grid */
.balcony-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 380px;
    position: relative;
}

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

.balcony-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s, transform 0.5s;
}

.balcony-card:hover .balcony-img {
    filter: brightness(0.75);
    transform: scale(1.03);
}

.balcony-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 70%, rgba(15, 23, 42, 0) 100%);
    color: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.balcony-title {
    color: var(--surface);
    font-size: 1.2rem;
    font-weight: 600;
}

.balcony-btn {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.balcony-card:hover .balcony-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Benefits Checkbox Grid */
.benefit-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(236, 67, 15, 0.1);
}

.benefit-check {
    background-color: rgba(236, 67, 15, 0.08);
    color: var(--accent);
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.benefit-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.benefit-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Profiles logos grid */
.profile-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    height: 160px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(236, 67, 15, 0.15);
}

.profile-img {
    max-height: 50px;
    max-width: 100%;
    object-fit: contain;
}

.profile-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* Profile / spec image + text two-column blocks */
.profile-split {
    gap: 30px;
    align-items: start;
}

.profile-split__media {
    align-self: start;
}

.profile-split__img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 260px);
    max-height: 280px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Full-width photos in profile-split (no upscaling) */
.profile-split__img--photo {
    max-width: 100%;
    max-height: 480px;
}

/* Inline content illustrations inside FAQ / text blocks */
.profile-split__img--inline {
    max-width: min(100%, 450px);
    max-height: none;
    margin: 15px 0;
    box-shadow: none;
}

/* Certificate / partner badge logos in grid */
.cert-badge-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    justify-items: center;
}

@media (min-width: 768px) {
    .cert-badge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cert-badge-img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 280px);
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.cert-badge-img--horizontal {
    max-height: 120px;
}

/* Inline partner badges (e.g. tsena-rehau intro) */
.cert-badge-inline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.cert-badge-img--sm {
    max-width: min(100%, 140px);
}

.cert-badge-img--sm.cert-badge-img--horizontal {
    max-height: 60px;
}

/* Reviews Carousel Layout */
.reviews-carousel-wrapper {
    position: relative;
    padding: 0 60px; /* Space for arrow navigation on left/right */
    width: 100%;
}

.reviews-carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 20px 0;
}

.reviews-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 100%;
}

/* Base card width for desktop: 3 cards visible */
.reviews-carousel-track .review-card {
    width: calc((100% - 60px) / 3);
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Arrow Navigation */
.reviews-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 5;
}

.reviews-arrow:hover:not(:disabled) {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.05);
}

.reviews-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: var(--border);
    color: var(--text-muted);
}

.reviews-arrow-left {
    left: 0;
}

.reviews-arrow-right {
    right: 0;
}

/* Upgraded button classes for carousel nav */
.reviews-carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background-color: var(--surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--primary) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10 !important;
    padding: 0 !important;
    background-image: none !important;
}

.reviews-carousel-btn:hover:not(:disabled) {
    background-color: var(--accent) !important;
    color: var(--surface) !important;
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-md) !important;
    transform: translateY(-50%) scale(1.05) !important;
}

.reviews-carousel-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    background-color: var(--border) !important;
    color: var(--text-muted) !important;
}

.reviews-carousel-btn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
    fill: none !important;
}

.reviews-carousel-btn-prev {
    left: 0 !important;
}

.reviews-carousel-btn-next {
    right: 0 !important;
}

/* ==========================================================================
   ELEGANT LIGHTBOX POPUP SYSTEM
   ========================================================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-container {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    user-select: none;
}

.lightbox-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    padding: 0;
}

.lightbox-btn:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}

.lightbox-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
}

.lightbox-close {
    top: -60px;
    right: 0;
}

.lightbox-arrow-left {
    left: -70px;
}

.lightbox-arrow-right {
    right: -70px;
}

.lightbox-caption {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    line-height: 1.5;
    font-family: 'Lexend', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Lightbox responsiveness */
@media (max-width: 1024px) {
    .lightbox-arrow-left {
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .lightbox-arrow-right {
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

/* Dots Navigation */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.reviews-dot.active {
    background-color: var(--primary);
    transform: scale(1.25);
}

.reviews-dot:hover:not(.active) {
    background-color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .reviews-carousel-track .review-card {
        width: calc((100% - 30px) / 2); /* 2 cards visible */
    }
    .reviews-carousel-wrapper {
        padding: 0 50px;
    }
}

@media (max-width: 767px) {
    .reviews-carousel-wrapper {
        padding: 0;
    }
    .reviews-carousel-track {
        gap: 15px;
    }
    .reviews-carousel-track .review-card {
        width: 100%; /* 1 card visible */
    }
    .reviews-carousel-btn {
        display: none !important;
    }
    .section-title-wrap--wide .section-subtitle {
        font-size: 0.95rem;
    }
}

.review-card {
    max-width: 90vw;
    flex-shrink: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.review-stars {
    display: flex;
    gap: 3px;
    color: #ffc107;
}

.review-text {
    font-size: 14px;
    color: var(--primary-light);
    font-style: italic;
    line-height: 1.6;
    flex-grow: 1;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.review-name {
    font-size: 14px;
    font-weight: 600;
}

/* FAQ Accordion Section */
.faq-accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    width: 100%;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover, .faq-item.active {
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: rgba(236, 67, 15, 0.2);
}

.faq-trigger {
    width: 100%;
    padding: 22px 28px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-trigger svg {
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-trigger svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
    padding: 0 28px 22px 28px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-content-inner {
    border-top-color: var(--bg-light);
}

.faq-content ol {
    margin-top: 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Footer Section */
#sp-footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    padding: 25px 0 20px 0;
    color: var(--text-muted);
}

.footer-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.footer-phones {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.footer-phones a:hover {
    color: var(--accent);
}

.insta-logo-wrap {
    display: inline-block;
    transition: transform 0.3s ease;
}

.insta-logo-wrap:hover {
    transform: scale(1.05);
}

.insta-img {
    height: 60px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.footer-address {
    font-size: 14px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Floating CTAs widgets (Bottom corner actions) */
#okn-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 900;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(236, 67, 15, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.fab-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.4);
}

/* Floating sub-popup with telephone numbers */
.fab-popup {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fab-btn:hover .fab-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-phone-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
}

.fab-phone-link:hover {
    color: var(--accent);
    background-color: var(--bg-light);
}

.fab-zamer {
    background-color: var(--primary);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    gap: 2px;
}

.fab-zamer img {
    height: 20px;
    filter: invert(1);
}

.fab-zamer:hover {
    background-color: var(--accent);
    box-shadow: 0 6px 20px rgba(236, 67, 15, 0.3);
}

/* Modal form style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 25px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
}

.form-input {
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 14px;
    color: var(--primary);
    background-color: var(--bg-light);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--surface);
    box-shadow: 0 0 0 3px rgba(236, 67, 15, 0.1);
}

/* ==========================================================================
   HERO CAROUSEL / SLIDER STYLING
   ========================================================================== */
.carousel-section {
    position: relative;
    width: 100%;
    margin-top: 115px; /* Offset fixed header (75px) + top-info-bar (40px) */
    background-color: #000;
    overflow: hidden;
    aspect-ratio: 1300 / 500;
    max-height: 500px;
}

@media (max-width: 767px) {
    .carousel-section {
        margin-top: 115px;
        aspect-ratio: 1300 / 500;
        min-height: auto;
        max-height: none;
    }
}

.carousel-track-wrapper {
    width: 100%;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .carousel-track-wrapper {
        max-height: none;
    }
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    max-height: 500px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 767px) {
    .carousel-track {
        max-height: none;
    }
}

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    max-height: 500px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .carousel-slide {
        max-height: none;
    }
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 6s ease;
}

.carousel-slide:hover .carousel-slide-img {
    transform: scale(1.05);
}

.carousel-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 40px 30px 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    color: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .carousel-slide-overlay {
        padding: 15px 15px 15px 15px;
        gap: 4px;
    }
}

.carousel-slide-badge {
    background-color: var(--accent);
    color: var(--surface);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.carousel-slide-title {
    color: var(--surface);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    max-width: 800px;
    line-height: 1.25;
}

@media (max-width: 767px) {
    .carousel-slide-title {
        font-size: 1.2rem;
        margin: 2px 0 6px 0;
    }
}

.carousel-slide-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--surface);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.carousel-slide:hover .carousel-slide-btn {
    background-color: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left {
    left: 20px;
}

.carousel-arrow-right {
    right: 20px;
}

@media (max-width: 767px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
    }
    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
    .carousel-arrow-left { left: 10px; }
    .carousel-arrow-right { right: 10px; }
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: var(--accent);
    width: 24px;
    border-radius: var(--radius-pill);
}

@media (max-width: 767px) {
    .carousel-dots {
        bottom: 12px;
    }
    .carousel-dot {
        width: 8px;
        height: 8px;
    }
    .carousel-dot.active {
        width: 16px;
    }
}

/* Certificate carousel inside accent-callout (multi-slide + lightbox) */
.cert-carousel {
    position: relative;
    margin-top: 16px;
    padding: 0 36px;
}

.cert-carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.cert-carousel-track {
    display: flex;
    gap: 8px;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cert-carousel-slide {
    flex: 0 0 calc(25% - 6px);
    min-width: 0;
    display: flex;
}

.cert-carousel-slide a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px;
    cursor: zoom-in;
    box-sizing: border-box;
}

.cert-carousel-slide a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cert-carousel-img {
    display: block;
    width: 100%;
    height: 150px;
    max-height: 150px;
    object-fit: contain;
    object-position: center;
    background: var(--bg-light);
    border-radius: calc(var(--radius-md) - 4px);
}

.cert-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    padding: 0;
}

.cert-carousel-arrow:hover:not(:disabled),
.cert-carousel-arrow:focus-visible:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
    transform: translateY(-50%) translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.cert-carousel-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.cert-carousel-arrow--prev {
    left: 0;
}

.cert-carousel-arrow--next {
    right: 0;
}

@media (max-width: 1199px) {
    .cert-carousel-slide {
        flex: 0 0 calc(33.333% - 5.33px);
    }
}

@media (max-width: 991px) {
    .cert-carousel-slide {
        flex: 0 0 calc(50% - 4px);
    }

    .cert-carousel-img {
        height: 140px;
        max-height: 140px;
    }
}

@media (max-width: 575px) {
    .cert-carousel {
        padding: 0 32px;
    }

    .cert-carousel-slide {
        flex: 0 0 calc(50% - 4px);
    }

    .cert-carousel-img {
        height: 120px;
        max-height: 120px;
    }

    .cert-carousel-arrow {
        width: 28px;
        height: 28px;
    }

    .cert-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 399px) {
    .cert-carousel-slide {
        flex: 0 0 100%;
    }
}

/* Scroll Hint Arrow */
.carousel-scroll-hint {
    position: absolute;
    bottom: 45px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    color: var(--surface);
    opacity: 0.85;
    animation: bounceHint 2s infinite;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.carousel-scroll-hint span {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

@keyframes bounceHint {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-6px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@media (max-width: 767px) {
    .carousel-scroll-hint {
        bottom: 30px;
    }
    .carousel-scroll-hint span {
        display: none; /* Hide text on mobile to save space */
    }
    .section {
        padding: 15px 0 !important;
    }
    .hero-section {
        padding: 10px 0 !important;
    }
    .stats-banner {
        padding: 15px !important;
        margin-top: 15px !important;
    }
    .section-title-wrap {
        margin-bottom: 15px !important;
    }
}

/* Fix for gallery grid items visibility when bypassing original JS */
.dj-slide-in {
    opacity: 1 !important;
}

/* ==========================================================================
   MODERN CENTURED 4-COLUMN GALLERY GRID
   ========================================================================== */
.dj-galleryGrid {
    display: block !important;
    width: 100% !important;
    margin: 30px 0 !important;
}

.dj-galleryGrid-in {
    display: block !important;
    width: 100% !important;
}

.dj-slides {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Responsive grid layouts */
@media (max-width: 1024px) {
    .dj-slides {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}
@media (max-width: 768px) {
    .dj-slides {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}
@media (max-width: 480px) {
    .dj-slides {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 16px !important;
    }
}

/* Individual gallery item cards */
.dj-slide {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 1 / 1 !important; /* Perfect square cards */
    overflow: hidden !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border) !important;
    background-color: var(--surface) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dj-slide:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--accent) !important;
}

.dj-slide-in {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
    display: block !important;
}

.dj-slide-image {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

.dj-slide-image a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.dj-slide img.dj-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Fills card completely & uniformly */
    display: block !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dj-slide:hover img.dj-image {
    transform: scale(1.06) !important;
}

/* Modern Description Overlay on Hover */
.dj-slide-desc {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.65) 75%, rgba(15, 23, 42, 0) 100%) !important;
    color: #ffffff !important;
    padding: 20px 15px 15px 15px !important;
    box-sizing: border-box !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    text-align: left !important;
    z-index: 2 !important;
}

.dj-slide:hover .dj-slide-desc {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dj-slide-desc-in {
    background: none !important;
    padding: 0 !important;
}

.dj-slide-desc-bg {
    display: none !important; /* Hide legacy flat dark bg */
}

.dj-slide-description {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: 'Lexend', sans-serif !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Standalone thumbnails (option cards without .dj-slide grid) */
.gallery-thumb-hover {
    position: relative !important;
    overflow: hidden !important;
}

.gallery-thumb-hover > a.dj-slide-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
}

.gallery-thumb-hover > a.dj-slide-link::after,
.balkon-config-card__photo > a.dj-slide-link::after {
    content: attr(data-title) !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px 15px 15px 15px !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.65) 75%, rgba(15, 23, 42, 0) 100%) !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    font-family: 'Lexend', sans-serif !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(12px) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    z-index: 2 !important;
    text-align: left !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.gallery-thumb-hover:hover > a.dj-slide-link::after,
.balkon-config-card__photo:hover > a.dj-slide-link::after {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Gallery expand — show 12 slides, reveal rest on click */
.gallery-slide-hidden {
    display: none !important;
}

.gallery-expand-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 10px;
}

.gallery-expand-btn {
    align-self: center;
}

/* P-shaped balcony configuration cards */
.balkon-config-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 30px;
    box-shadow: var(--shadow-sm);
}

.balkon-config-card__photo {
    width: 250px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.balkon-config-card__photo a {
    display: block;
}

.balkon-config-card__photo img {
    display: block;
    width: 250px;
    height: 180px;
    object-fit: cover;
}

.balkon-config-card__text {
    flex: 1;
    min-width: 0;
}

@media (max-width: 640px) {
    .balkon-config-card {
        flex-direction: column;
    }

    .balkon-config-card__photo,
    .balkon-config-card__photo img {
        width: 100%;
    }
}



/* Pricing / content tables */
.content-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.content-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--primary-light);
}
.content-table tr:last-child td { border-bottom: none; }
.table-responsive { overflow-x: auto; border-radius: var(--radius-lg); }

/* Page hero (inner pages) */
.page-hero {
    margin-bottom: 20px;
    text-align: center;
}

.page-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 10px;
    color: var(--primary-light);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 300;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Program / partner banner image */
.program-banner {
    margin: 0;
    text-align: center;
}

.program-banner__img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 420px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    object-fit: contain;
}

/* Content blocks (єВідновлення and similar pages) */
.block-heading {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-light);
    margin: 20px 0 12px;
}

.content-list {
    margin: 0 0 20px;
    padding-left: 1.35rem;
    line-height: 1.7;
    color: var(--primary-light);
}

.content-list li {
    margin-bottom: 10px;
}

.content-list li:last-child {
    margin-bottom: 0;
}

.content-list a {
    color: var(--accent);
    font-weight: 600;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.steps-list__item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.steps-list__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--surface);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.steps-list__text {
    flex: 1;
    line-height: 1.65;
    color: var(--primary-light);
}

.btn-row {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.content-prose {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.content-prose p {
    margin: 0 0 14px;
}

.content-prose p:last-child {
    margin-bottom: 0;
}

.profile-split .content-prose {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.profile-split .content-prose .faq-accordion {
    margin-top: 20px;
    margin-left: 0;
}

.profile-split .content-prose .faq-trigger {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.profile-split + .faq-accordion {
    margin-top: 20px;
}

.content-prose .faq-accordion {
    margin-top: 20px;
}

.section .faq-accordion {
    margin-left: 0;
}

/* Fix: first content block must clear the fixed header (like .carousel-section) */
main > .hero-section:first-child,
main > section.section:first-child {
    margin-top: 115px;
}
@media (max-width: 340px) {
    main > .hero-section:first-child,
    main > section.section:first-child { margin-top: 131px; }
}
