/* TEXT AND 6 BLOCKS */

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

h2 {
    font-family: 'PerepelMain', 'Regular';
    font-size: 60px;
    font-weight: 100;
}

.text span {
    font-size: clamp(11px, 2vw, 17px);
}

.block {
    display: flex;
    background-color: #FAECDC;
    border-radius: 7px;
}

.icon {
    width: clamp(38px, 7vw, 79px);
    aspect-ratio: 79 / 73;

    position: relative;
    background-color: #190C04;
    padding: clamp(10px, 1.8vw, 20px);

    border-radius: 7px 0 0 7px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.block-text {
    display: flex;
    align-self: center;
    padding: 14px;
    font-weight: 300;
    font-size: clamp(11px, 1.5vw, 17px);
}

/* PHOTO SLIDER */

.slider-wr {
    width: min(1190px, 100%);
    margin-inline: auto;

    display: flex;
    margin-bottom: 32px;
}

.switcherContent {
    overflow: hidden;
}

.events-slider {
    display: flex;
    gap: 23px;
}

.events-slider a {
    flex-shrink: 0;

    width: 526px;

    display: block;
}

.events-slider img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 7px;

    aspect-ratio: 526 / 306;
}

.slider-arrow {
    padding: 0;
    border: none;
    background: none;

    cursor: pointer;
}

.slider-arrow img {
    width: clamp(23px, 2.7vw, 37px);
    height: auto;
}

.slider-arrow picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow_right {
    padding-left: 7px;
}

.slider-arrow_left {
    padding-right: 7px;
}

@media (max-width: 1154px) {
    .slider-arrow_right {
    padding-left: 2px;
    }
    .slider-arrow_left {
        padding-right: 2px;
    }

}


/* TEXT AND PHOTO SLIDER */

.background {
    background-image: url("../static/background-banket.jpg");
    background-size: cover;
    padding: 64px 0;
}

.about-text {
    font-size: clamp(11px, 2vw, 17px);
}

.sliderTwo {
    padding: 32px 0;
}

.button {
    width: 100%;
    font-size: clamp(10px, 3.2vw, 19px);
    border-radius: 7px;
    background: none;
    border: 0.5px #190C04 solid;
    padding: 7px 0;
    cursor: pointer;
}

.button a {
    text-decoration: none;
    color: #190C04;
}

/* WHATS */


.whats-wr {
    padding-top: 20px;
    padding-bottom: 64px;
}

.whats {
    display: grid;
    gap: 20px;
}

.whats-elem {
    display: grid;
    align-items: center;
    width: 100%;

    color: #190C04;
    font-size: 24px;
    font-weight: 600;

    background-color: #FAECDC;
    border-radius: 7px;
}

.whats-elem > div:first-child {
    display: flex;
    align-items: center;
    min-width: 0;
}

.whats-elem-wr {
    display: flex;
    justify-content: space-between;

    width: 100%;
    padding-inline: 22px;

    cursor: pointer;
}

.line {
    width: 8px;
    height: 55px;

    background-color: #190C04;
    padding: 0;

    border-radius: 20px 0 0 20px;
}

.whats-elem.active .line {
    border-bottom-left-radius: 0;
}

.line-about {
    width: 8px;
    flex-shrink: 0;

    background-color: #190C04;

    margin-right: 24px;

    border-radius: 0 0 0 20px;
}

.about {
    display: flex;
    align-items: stretch;

    width: 100%;
    max-height: 0;
    overflow: hidden;

    font-size: clamp(11px, 1.2vw, 17px);

    transition:
        max-height 0.25s ease,
        opacity 0.2s ease;
    
    opacity: 0;
}

.about-content {
    padding: 12px 30px 18px 0;
}

.whats-elem.active .about {
    max-height: 300px;
    opacity: 1;
}

.whats-elem.active .about span {
    padding: 3px 0 9px 0;
}

.plus {
    width: clamp(18px, 3vw, 28px);
    height: clamp(18px, 3vw, 28px);

    flex-shrink: 0;

    transition: 0.2s;
}

.plus img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.whats-elem.active .plus {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    /* ЗАГОЛОВОК */
    h2 {
        margin-top: 22px;
        margin-bottom: 12px;
        font-size: clamp(32px, 10vw, 50px);
        font-weight: 100;
        width: 85%;
    }

    .text span {
        font-size: clamp(9px, 3.2vw, 17px);
    }

    /* 6 БЛОКОВ — 2 колонки */
    .blocks {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 20px 0;
    }

    .block-text {
        font-size: clamp(8px, 2.8vw, 14px);
        padding: 7px;
    }

    .slider-wr {
        position: relative;
    }

    .slider-arrow {
        display: flex;
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 10;

        width: 40px;
        height: 40px;

        align-items: center;
        justify-content: center;
        margin-block: auto;
    }

    .slider-arrow_left {
        left: 10px;
        padding: 0;
    }

    .slider-arrow_right {
        right: 10px;
        padding: 0;
    }

    .slider-arrow img {
        width: 28px;
        height: 35px;
    }

    .switcherContent {
        width: 100%;
    }

    .events-slider {
        gap: 12px;
    }

    .events-slider a {
        flex: 0 0 100%;
        width: auto;
    }

    /* ФОНОВЫЙ БЛОК */
    .background {
        padding: 32px 0;
    }

    .about-text {
        font-size: clamp(9px, 3.2vw, 17px);
    }

    .sliderTwo {
        padding: 20px 0;
    }

    .whats {
        gap: 12px;
    }

    /* АККОРДЕОН */
    .whats-elem {
        font-size: clamp(9px, 3vw, 17px);
    }

    .whats-elem > div:first-child {
        height: 43px; /* ← высота только у шапки, не у всего элемента */
    }

    .line {
        width: 8px;
        height: 43px;
    }

    .whats-elem-wr {
        padding-inline: 14px;
        display: flex;
        align-items: center;
    }
}
