/* About block layout */
.about-block {
}

.main-info-wrapper {
    display: flex;
    gap: 50px;
}

#about-block .wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(0.625rem, 0.125rem + 2.5vw, 3.125rem);
}

#about-block .advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: clamp(0.625rem, 0.125rem + 2.5vw, 3.125rem);
}

#about-block h2 {
    text-align: center;
    font-family: var(--second-family);
    font-weight: 700;
    line-height: 110%;
    color: var(--text-primary-head);
    margin: clamp(0.625rem, 0.25rem + 1.875vw, 2.5rem);
}

#about-block .advantage {
    border: 1.50px solid var(--bg-primary-stroke);
    border-radius: 10px;
    padding: 20px;
    background: var(--bg-primary-main);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

#about-block .advantage svg  {
    position: absolute;
    bottom: 0;
    left: -20px;
}

#about-block .advantage .value {
    font-family: var(--second-family);
    font-weight: 700;
    line-height: 110%;
    color: var(--text-primary-head);
}

#about-block .advantage .name {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 135%;
    color: var(--text-primary-main);
}

.about-block__image {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 470px;
    max-height: 307px;
    flex-shrink: 0;
}

.about-block__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.about-block__content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-block__text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    line-height: 1.6;
}

.about-block__text-left,
.about-block__text-right {
    font-size: 16px;
    color: var(--text-primary-main);
}

.about-block__toggle {
    align-self: flex-end;
    margin-top: 20px;
}

/* SVG monster positioning */
#svg-milota {
    position: absolute;
    right: 80%;
    top: -25px;
    z-index: 2;
}

@media (max-width: 1100px) {
    #svg-milota {
        display: none;
    }
}

/* Video section */
.about-block__video {
}

.about-block__video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.about-block__video-preview {
    width: 100%;
    height: auto;
    display: block;
    min-height: 300px;
    max-height: 500px;
    object-fit: cover;
}

.about-block__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.about-block__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.about-block__video-file {
    width: 100%;
    height: auto;
    max-height: 500px;
}

.about-block__img {
    max-height: 307px;
}

@media (max-width: 1050px) {
    .main-info-wrapper {
        gap: 10px;
        flex-direction: column;
    }
    .about-block__image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-info-wrapper {
        gap: 20px;
    }

    #about-block .advantages {
        grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    }

    #about-block .advantage svg {
        top: 10px;
        right: 10px;
        left: unset;
        bottom: unset;
    }
    
    .about-block__text {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}