.catalog-page {
    overflow: hidden;
}

/* Hero */
.catalog-hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(30px, 5vw, 50px);
    position: relative;
    overflow: hidden;
}

.catalog-hero__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(30px, 5vw, 50px);
    z-index: 2;
    position: relative;
}

.catalog-hero__title {
    font-weight: 900;
    font-size: clamp(32px, 6vw, 54px);
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    /*max-width: 900px;*/
}

.catalog-hero__btn {
    width: 350px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.catalog-hero__btn:hover {
    background: #fff;
    color: #00b7b7;
}

/* Base Section with Parallax */
.catalog-section {
    min-height: clamp(600px, 80vh, 1200px);
    padding: clamp(40px, 8vw, 100px) 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Important for parallax */
}

/* Parallax Background Layer */
.catalog-section__bg {
    position: absolute;
    top: -15%; /* Allow space for parallax movement */
    left: 0;
    width: 100%;
    height: 130%; /* Larger than section for parallax */
    background-size: cover;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

.catalog-section:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above bg, below container */
}

.catalog-section--teal:before {
    background: rgba(255, 255, 255, 0.5);
}

.catalog-section--white:before {
    background: rgba(19, 255, 220, 0.3);
}

.catalog-section__container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 2; /* Highest */
}

.catalog-section__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.catalog-section__title {
    font-weight: 900;
    font-size: clamp(32px, 5vw, 60px);
    text-transform: uppercase;
    margin: 0;
    text-shadow: 4px 4px 4px rgba(0,0,0,0.8);
}

.catalog-section--teal .catalog-section__title {
    color: #00b7b7;
}

.catalog-section--white .catalog-section__title {
    color: #fff;
}

.catalog-section__subtitle {
    color: #000;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    max-width: 1000px;
    margin: 0 auto;
}

/* Grid */
.catalog-section__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.catalog-section__item {
    position: relative;
    /*height: 370px;*/
    aspekt-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    will-change: transform, opacity;
}

.catalog-section__item:nth-child(3n+1) { transition-delay: 0.1s; }
.catalog-section__item:nth-child(3n+2) { transition-delay: 0.2s; }
.catalog-section__item:nth-child(3n+3) { transition-delay: 0.3s; }

.catalog-section__item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    pointer-events: none;
}

.catalog-section__item-title {
    color: #fff;
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    text-shadow: 4px 4px 4px rgba(0,0,0,0.8);
}

.catalog-section__item-subtitle {
    color: #fff;
    font-weight: 700;
    font-size: clamp(16px, 1.8vw, 20px);
    margin: 0;
    text-shadow: 4px 4px 4px rgba(0,0,0,0.8);
}

.catalog-section__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.catalog-section__item:hover .catalog-section__img {
    transform: scale(1.1);
}

/* CTA */
.catalog-cta {
    height: 300px;
    background-color: #00a6a0;
    display: flex;
    align-items: center;
    position: relative; /* Consistent structure */
}

.catalog-cta__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.catalog-cta__title {
    color: #fff;
    font-weight: 900;
    font-size: clamp(32px, 5vw, 60px);
    text-transform: uppercase;
    text-align: center;
    margin: 0;
}

.catalog-cta__btn {
    width: 350px;
    height: 60px;
    border: 2px solid #fff;
    border-radius: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.catalog-cta__btn:hover {
    background: #fff;
    color: #00a6a0;
}

/* Responsive */
@media (max-width: 991px) {
    .catalog-section__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .catalog-hero__title,
    .catalog-cta__title {
        font-size: 40px;
    }
    .catalog-section__title {
        font-size: 32px;
    }
    .catalog-section {
        min-height: auto;
    }
    .catalog-section__title {
        text-shadow: unset;
    }
    .catalog-section__item-title {
        font-size: 26px;
    }
    .catalog-section__bg {
        background-image: none !important;
    }
    .catalog-section:before {
        content: none;
    }
    .catalog-section--white .catalog-section__bg {
        background: #00b7b7;
    }
}

@media (max-width: 767px) {
    .catalog-section__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .catalog-hero__title,
    .catalog-cta__title {
        font-size: 24px;
    }
    .catalog-hero__btn,
    .catalog-cta__btn {
        width: 100%;
        max-width: 260px;
    }
    .catalog-hero__btn {
        height: 46px;
        font-size: 16px;
    }
    .catalog-cta__btn {
        font-size: 16px;
        height: 50px;
    }
}
