.hero {
    background-color: var(--bg-light-gray); 
    padding: 80px 0;
    position: relative;
    overflow: hidden; 
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: nowrap;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 58px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 400px;
}

.hero-text .btn-submit {
    background-color: var(--text-dark);
    color: var(--bg-light-gray);
    border: none;
    padding: 16px 36px;
    border-radius: 50px; 
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero-text .btn-submit.is-touched {
    background-color: #333333; 
    transform: translateY(-2px); 
}

@media (hover: hover) {
    .hero-text .btn-submit:hover {
        background-color: #333333; 
        transform: translateY(-2px); 
    }
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 50%;
}

.hero-slider {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.hero-slider-images {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    overflow: hidden;
    touch-action: pan-y;
}

.hero-slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; 
    z-index: 1;
}

.hero-slider-img.active {
    opacity: 1;
    z-index: 2;
}

.hero-slider-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.indicator {
    height: 4px;
    flex: 1;
    max-width: 50px; 
    background-color: rgba(44, 44, 44, 0.15); 
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator:hover {
    background-color: rgba(44, 44, 44, 0.4);
}

.indicator.active {
    background-color: var(--text-dark); 
}

.shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    z-index: 2;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.shape-divider .shape-fill {
    fill: var(--bg-white);
}

.categories {
    background-color: var(--bg-white); 
    padding: 90px 0 90px 0;
    position: relative;
}

.categories-header {
    text-align: center;
    margin-bottom: 45px;
}

.categories-header h2 {
    font-size: 42px; 
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.categories-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 500px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.category-card-new {
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 15px; 
    transition: transform 0.3s ease;
}

.category-card-new.is-touched {
    transform: translateY(-5px); 
}

.category-card-new.is-touched .card-img-wrapper img {
    /* Додано translateZ(0) для плавного збільшення */
    transform: translateZ(0) scale(1.05);
}

.category-card-new.is-touched .card-info h3 {
    letter-spacing: 4px; 
}

@media (hover: hover) {
    .category-card-new:hover {
        transform: translateY(-5px); 
    }
    .category-card-new:hover .card-img-wrapper img {
        /* Додано translateZ(0) для плавного збільшення */
        transform: translateZ(0) scale(1.05);
    }
    .category-card-new:hover .card-info h3 {
        letter-spacing: 4px; 
    }
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    /* Замінено жорстку висоту на пропорції 4/5 */
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Апаратне прискорення (вирішує проблему смикання) */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1);
    will-change: transform;
}

.card-info {
    background: transparent;
    padding: 0;
    text-align: center; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
}

.card-info h3 {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: letter-spacing 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden-category {
    display: none;
}

.load-more-container {
    text-align: center;
    margin-top: 35px;
    margin-bottom: 30px;
}

.btn-load-more {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    padding: 12px 35px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 30px; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-load-more.is-touched {
    background-color: var(--text-dark);
    color: var(--bg-light-gray);
}

@media (hover: hover) {
    .btn-load-more:hover {
        background-color: var(--text-dark);
        color: var(--bg-light-gray);
    }
}

.simple-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg); 
}

.simple-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.simple-wave .shape-fill {
    fill: var(--text-dark); 
}

@media (max-width: 992px) {
    .hero {
        padding: 20px 0 35px 0;
    }

    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: 18px;
    }

    .hero-text h1,
    .hero-text p {
        display: none;
    }

    .hero-image-wrapper {
        max-width: 100%;
        width: 100%;
        justify-content: center;
    }

    .hero-slider {
        gap: 10px;
    }

    .hero-slider-images {
        height: 230px;
        border-radius: 12px;
    }

    .hero-text {
        max-width: 100%;
        display: flex;
        justify-content: center;
        margin: 0;
    }

    .hero-text .btn-submit {
        padding: 12px 30px;
        font-size: 13px;
        letter-spacing: 0.5px;
        border-radius: 25px;
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .shape-divider svg {
        height: 25px;
    }

    .categories {
        padding: 50px 0 60px 0;
    }

    .categories-header {
        margin-bottom: 30px;
    }

    .categories-header h2 {
        font-size: 42px; 
    }

    .categories-subtitle {
        font-size: 14px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-bottom: 30px;
    }

    .card-img-wrapper {
        height: auto !important;
        /* Замінено 1/1 на 4/5 */
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 992px) and (orientation: landscape) {
    .hero {
        padding: 25px 0;
    }
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text h1,
    .hero-text p {
        display: none !important;
    }
    .hero-slider-images {
        height: 200px;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .card-img-wrapper {
        height: auto !important;
        /* Замінено 1/1 на 4/5 */
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 16px 0 30px 0;
    }
    .hero-slider-images {
        height: 200px;
    }
    .categories {
        padding: 45px 0 55px 0;
    }

    .categories-header h2 {
        font-size: 32px; 
        margin-bottom: 10px;
        letter-spacing: -0.5px;
    }

    .categories-subtitle {
        font-size: 14px;
        padding: 0 15px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .card-img-wrapper {
        height: auto !important;
        /* Замінено 1/1 на 4/5 */
        aspect-ratio: 4 / 5;
    }
    .card-info h3 {
        font-size: 13px;
    }
}