h2 {
    display: flex;
    flex-direction: column;
    &::after {
        width: 40%;
        height: 2px;
        display: block;
        align-self: flex-end;
        background: var(--accent);
    }
}
.promo {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
    background: var(--light-green);
    border-radius: 30px;
    .left {
        align-self: center;
        max-width: 581px;
        width: 100%;
        h1 {
            margin-bottom: 30px;
            max-width: 460px;
        }
        p {
            line-height: 1.5;
            color: var(--light-text);
            max-width: 410px;
            &:first-of-type {
                margin-bottom: 20px;
            }
            &:last-of-type {
                margin-bottom: 40px;
            }
        }
        button {
            width: auto;
            height: 60px;
            img {
                max-width: 40px;
                border-radius: 20px;
                transition: .4s linear infinite;
                &:nth-child(2) {
                    transform: translateX(-10px);
                }
                &:last-child {
                    transform: translateX(-20px);
                }
            }
        }
    }
    .items {
        display: grid;
        grid-template-columns: minmax(320px, auto) minmax(280px, auto);
        gap: 20px;
        width: 100%;
        img {
            min-height: 460px;
            max-height: 510px;
            height: 100%;
            object-fit: cover;
            border-radius: 30px;
        }
        div {
            border-radius: 30px;
        }
        .desc {
            padding: 30px 20px;
            background: var(--light);
            border: 1px solid var(--green);
            display: flex;
            align-items: center;
            ul {
                gap: 30px;
                li {
                    display: grid;
                    grid-template-columns: auto 1fr;
                    font-weight: 700;
                    &::before {
                        align-self: center;
                        grid-row: span 2;
                    }
                    span {
                        display: block;
                        font-weight: 400;
                        color: var(--light-text);
                    }
                }
            }
        }
        .start {
            height: 160px;    
            padding: 25px 40px;
            background: linear-gradient(45deg, rgba(66,143,57,1) 0%, rgba(117,185,109,1) 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            h2 {
                font-size: 20px;
                color: var(--light);
                font-family: Nunito;
                font-weight: 700;
                &::after {
                    content: none;
                }
            }
            p {
                color: var(--light);
                text-align: center;
            }
            a {
                max-width: 100px;
                color: var(--dark);
                box-shadow: var(--shadow-1);
                margin-top: auto;
                margin-bottom: 0;
            }
        }
    }
}
.content {
    margin-bottom: 60px;
    width: 100%;
    .wrapper {
        display: flex;
        gap: 40px;
        align-items: center;  
        p {
            font-size: 20px;
            max-width: fit-content;
            &::after {
                content: none;
            }
        }
        .items {
            display: flex;
            gap: 10px;
            span {
                border: 1px solid var(--green);
                padding: 10px 25px;
                cursor: pointer;
                &.active {
                    background: var(--light-blue);
                }
            }
        }
    }
    &.active {
        position: fixed;
        top: 0;
        padding: 20px 0;
        background: var(--light);
        z-index: 99;
        ~.catalog {
            .head {
                padding-top: 103.5px;
            }
        }
    }
}
.infoblock {
    display: flex;
    gap: 40px;
    flex-direction: column;
    .head {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: 40px;
        h2 {
            justify-self: end;
            text-align: right;
            &::after {
                content: '';
            }
        }
    }
    > .items {
        display: flex;
        gap: 40px;
        align-items: start;
        .images {
            display: flex;
            width: 100%;
            align-items: center;
            align-self: center;
            position: relative;
            img {
                &:nth-child(1) {
                    max-width: 430px;
                    max-height: 430px;
                    border-radius: 30px;
                }
                &:nth-child(2) {
                    max-width: 300px;
                    max-height: 300px;
                    position: absolute;
                    right: 0;
                    border-radius: 20px;
                    border: 10px solid var(--light);
                    box-shadow: var(--shadow-1);
                }
            }
            video {
                object-fit: cover;
                aspect-ratio: 1 / 1;
                border-radius: 30px;
                &:nth-child(1) {
                    max-width: 430px;
                    max-height: 430px;
                }
                &:nth-child(2) {
                    max-width: 300px;
                    max-height: 300px;
                    position: absolute;
                    right: 0;
                    border-radius: 20px;
                    border: 10px solid var(--light);
                    box-shadow: var(--shadow-1);
                }
            }
        }
        .text {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 40px;
            ul {
                gap: 20px;
                li {
                    display: flex;
                    &::before {
                        grid-row: span 2;
                    }
                }
                &::after {
                    content: '';
                    display: block;
                    width: 100%;
                    height: 1px;
                    background: var(--green);
                }
            }
            .actions {
                display: flex;
                gap: 20px;
                align-items: center;
                > a {
                    padding: 10px 50px;
                }
                .contacts {
                    & > span:first-child {
                        color: var(--dark);
                        display: flex;
                        align-items: center;
                        &::before {
                            font-family: icon;
                            content: '\e903';
                            font-size: 22px;
                            padding: 8px;
                            color: var(--dark);
                            border: 1px solid var(--dark);
                            display: flex;
                        }
                    }
                }
            }
        }
    }
}
.textblock {
    display: flex;
    gap: 40px;
    flex-direction: column;
    .head {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: 40px;
        h2 {
            justify-self: end;
            text-align: right;
            &::after {
                content: '';
            }
        }
    }
    .items {
        display: flex;
        gap: 40px;
        > div {
            display: flex;
            flex-direction: column;
            gap: 20px;
            width: 50%;
        }
    }
}
.maps {
    .inner {
        /* max-width: 800px; */
        > h2 {
            max-width: 660px;
            width: calc(50% - 20px);
            text-align: right;
            margin-bottom: 40px;
        }
        > p {
            width: calc(50% - 20px);
            text-align: justify;
            margin-bottom: 20px;
        }
        .locality {
            width: 100%;
            margin-top: 40px;
            .address-select {
                display: flex;
                justify-content: space-between;
                position: relative;
                padding-bottom: 5px;
                align-items: center;
                max-width: 380px;
                button {
                    padding: 5px 5px;
                    font-family: 'Yanone', sans-serif;
                    font-size: 20px;
                    font-weight: 300;
                    &.active {
                        color: var(--accent);
                    }
                }
                &::before {
                    font-family: icon;
                    font-size: 20px;
                    color: var(--accent);
                    content: '\e90b';
                    margin-right: 10px;
                }
                &::after {
                    content: '';
                    width: 100%;
                    height: 1px;
                    background: var(--accent);
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    border-radius: 1px;
                }
            }
            .info {
                margin-top: 20px;
                gap: 5px;
                .map-container {
                    margin-top: 20px;
                    width: 100%;
                    height: 500px;
                    border-radius: 20px;
                    overflow: hidden;
                    iframe {
                        width: 100%;
                        height: 100%;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .promo {
        flex-direction: column;
        .left {
            align-self: start;
            p {
                max-width: 550px;
                &:last-of-type {
                    margin-bottom: 40px;
                }
            }
        }
    }
    .infoblock {
        .head {
            display: flex;
            flex-direction: column;
            gap: 20px;
            h2 {
                text-align: left;
                max-width: fit-content;
                &::after {
                    align-self: start;
                }
            }
        }
        > .items {
            flex-direction: column;
            .text {
                max-width: unset;
            }
            .images {
                gap: 20px;
                max-width: unset;
                img {
                    &:nth-child(1) {
                        max-width: unset;
                        max-height: unset;
                        width: calc(50% - 10px);
                    }
                    &:nth-child(2) {
                        max-width: unset;
                        max-height: unset;
                        width: calc(50% - 10px);
                        position: static;
                        border: none;
                        box-shadow: none;
                    }
                }
                video {
                    &:nth-child(1) {
                        max-width: unset;
                        max-height: unset;
                        width: calc(50% - 10px);
                    }
                    &:nth-child(2) {
                        max-width: unset;
                        max-height: unset;
                        width: calc(50% - 10px);
                        position: static;
                        border: none;
                        box-shadow: none;
                    }
                }
            }
        }
    }
    .textblock {
        .head {
            display: flex;
            flex-direction: column;
            gap: 20px;
            h2 {
                text-align: left;
                &::after {
                    align-self: start;
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .promo {
        .items {
            display: flex;
            flex-direction: column;
            height: auto;
        }
        .left {
            button {
                img {
                    display: none;
                }
            }
        }
    } 
    .textblock {
        .items {
            flex-direction: column;
            > div {
                width: 100%;
            }
        }
    }
    .maps {
        .inner {
            max-width: unset;
            > h2 {
                width: 100%;
            }
            > p {
                width: 100%;
            }
            .locality {
                .address-select {
                    button {
                        font-size: 18px;
                    }
                }
            }
        }
    }
}
@media screen and (max-width: 479px) {
    .infoblock {
        > .items {
            .images {
                gap: 20px;
                flex-direction: column;
                img {
                    &:nth-child(1), &:nth-child(2) {
                        width: 100%;
                    }
                }
                video {
                    &:nth-child(1), &:nth-child(2) {
                        width: 100%;
                    }
                }
            }
            .text {
                .actions {
                    flex-direction: column;
                    .contacts {
                        width: 100%;
                        display: flex;
                        justify-content: center;
                        .items {
                            left: 0;
                        }
                    }
                }
            }
        }
    }
}