.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;
                    }
                }
            }
        }
    }
    &.post {
        .items {
            img {
                grid-row: span 2;
            }
            .desc {
                height: 280px;
            }
            .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;
                }
                button {
                    padding: 10px 50px;
                    margin-top: auto;
                    margin-bottom: 0;
                }
            }
        }
    }
}
.sections {
    width: 100%;
    .wrapper {
        display: flex;
        padding: 5px 20px;
        align-items: center;
        background: var(--light-green);
        border-radius: 20px;
        margin-bottom: 80px;
        p {
            font-weight: 700;
            margin-right: 20px;
            white-space: nowrap;
        }
        .items {
            display: flex;
            flex-wrap: wrap;
            overflow: auto;
            span {
                color: var(--light-text);
                font-weight: 400;
                padding: 5px 10px;
                cursor: pointer;
                &.active {
                    text-decoration: underline;
                }
            }
        }
    }
    &.active {
        position: fixed;
        top: 0;
        z-index: 99;
        .wrapper {
            box-shadow: var(--shadow-1);
            border-radius: 0 0 20px 20px;
            margin-bottom: 0;
        }
        ~.content {
            padding-top: 105px;
        }
    }
}
.content {
    display: flex;
    gap: 80px;
    position: relative;
    &.blog {
        flex-direction: column;
        form {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            grid-row: span 2;
            button {
                height: 40px;
                border: 1px solid var(--green);
                font-size: 15px;
                transition: .2s linear;
                padding: 10px 50px;
                white-space: nowrap;
                &.active {
                    background: var(--light-blue);
                }
            }
        }
        > .items {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
            .item {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                position: relative;
                box-shadow: var(--shadow-1);
                border-radius: 30px;
                width: auto;
                > a {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;
                }
                img {
                    height: 280px;
                    object-fit: cover;
                    border-radius: 30px;
                }
                .content {
                    flex: 1;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    padding: 20px;
                    gap: 10px;                  
                    .meta {
                        display: flex;
                        gap: 10px;
                        :is(time, p) {
                            color: var(--light-text);
                            font-size: 14px;
                            font-weight: 400;
                        }
                        time {
                            display: flex;
                            gap: 5px;
                            align-items: center;
                            height: fit-content;
                            &::before {
                                content: '\e911';
                                font-family: icon;
                                font-size: 14px;
                                color: var(--green);
                            }
                        }
                    }
                    h2 {
                        margin-bottom: 10px;
                        max-width: fit-content;
                        a {
                            font-size: 30px;
                            font-family: Yanone;
                            font-weight: 300;
                        }
                        &::after {
                            content: '';
                            display: block;
                            width: 40%;
                            height: 1px;
                            background: var(--accent);
                        }
                    }
                    p {
                        margin-bottom: 20px;
                    }
                    a.btn {
                        align-self: flex-start;
                        margin-top: auto; 
                    }
                }
            }
        }
        aside {
            padding: 20px;
            border: 1px solid var(--green);
            border-radius: 30px;
            position: sticky;
            top: 20px;
            max-height: fit-content;
            display: flex;
            flex-direction: column;
            gap: 30px;
            h2 {
                max-width: fit-content;
                &::after {
                    content: '';
                    display: block;
                    width: 40%;
                    height: 1px;
                    background: var(--accent);
                }
            }
            .items {
                display: flex;
                flex-direction: column;
                gap: 20px;
                p, a {
                    display: flex;
                    gap: 10px;
                    align-items: center;
                    color: var(--light-text);
                    &::before {
                        font-family: icon;
                        color: var(--green);
                    }
                    &.phone-item::before {
                        content: '\e903';
                    }
                    &.address-item::before {
                        content: '\e90b';
                    }
                    &.schedule::before {
                        content: '\e911';
                    }
                }
            }
            form {
                display: flex;
                flex-direction: column;
                gap: 10px;
                .box {
                    input {
                        display: none;
                        visibility: hidden;
                        &:checked {
                            &~label {
                                &::before {
                                    background: var(--green);
                                }
                            }
                        }
                    }
                    label {
                        display: flex;
                        align-items: center;
                        gap: 5px;
                        &::before {
                            content: '';
                            border-radius: 20px;
                            width: 10px;
                            height: 10px;
                            background: var(--light);
                            border: 2px solid var(--light);
                            outline: 1px solid var(--light-text);
                            transition: .2s linear;
                        }
                    }
                }
                button {
                    max-width: fit-content;
                    padding: 10px 20px;
                    background: var(--green);
                    color: var(--light);
                    margin-top: 20px;
                }
            }
        }
    }
    &.post {
        gap: 60px;
        article {
            display: flex;
            flex-direction: column;
            gap: 80px;
            width: 100%;
            h2 {
                margin-bottom: 20px;
                max-width: fit-content;
                font-size: 40px;
                width: 40%;
                text-align: right;
                align-items: end;
                display: flex;
                flex-direction: column;
                margin-left: auto;
                margin-right: 200px;
                &::after {
                    content: '';
                    display: flex;
                    width: 40%;
                    height: 1px;
                    background: var(--accent);
                }
            }
            img {
                width: 100px;
            }
            div {
                display: flex;
                flex-direction: column;
                gap: 20px;
                h3, h4 {
                    margin-top: 20px;
                }
            }
        }
        aside {
            display: flex;
            flex-direction: column;
            max-width: 300px;
            width: 100%;
            gap: 40px;
            > div {
                border-radius: 20px;
                padding: 20px;
                display: flex;
                flex-direction: column;
                h3 {
                    font-size: 40px;
                    font-weight: 300;
                }
                &.bg {
                    height: 380px;
                    justify-content: space-between;
                    h3 {
                        color: var(--light);
                    }
                    .item {
                        background: rgba(30, 43, 60, .7);
                        border-radius: 10px;
                        padding: 20px;
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                        a {
                            color: var(--light);
                            display: flex;
                        }
                    }
                    &.production {
                        background: url(../images/laser-red.webp) center / cover no-repeat;
                    }
                    &.supply {
                        background: url(../images/laser-yellow.webp) center / cover no-repeat;
                    }
                }
                &.partnership {
                    background: var(--light-green);
                    border: 1px solid var(--green);
                    gap: 20px;
                    justify-content: center;
                    position: sticky;
                    top: 70px;
                }
            }
        }
    }
    .pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border: 1px solid var(--green);
            border-radius: 20px;
            &.prev::before {
                font-family: icon;
                content: '\e90a';
                font-size: 12px;
            }
            &.next::before {
                font-family: icon;
                content: '\e909';
                font-size: 12px;
            }
            &.active {
                background: var(--light-green);
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .promo {
        flex-direction: column;
        .left {
            align-self: start;
            p {
                max-width: 550px;
                &:last-of-type {
                    margin-bottom: 40px;
                }
            }
        }
    }
    .content {
        &.blog {
            > .items {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    }
    .content {
        &.post {
            flex-direction: column;
            aside {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                max-width: unset;
                .partnership {
                    grid-column: span 2;
                }
            }
        }
    }
}
@media screen and (max-width: 767px) {
    .promo {
        .items {
            display: flex;
            flex-direction: column;
            height: auto;
        }
        .left {
            button {
                img {
                    display: none;
                }
            }
        }
    }
    .sections {
        .wrapper {
            flex-direction: column;
            gap: 5px;
            align-items: start;
            padding: 20px;
            p {
                margin-left: 10px;
            }
        }
    }
    .content {
        &.blog {
            form {
                position: relative;
                overflow-x: auto;
                justify-content: start;
            }
            > .items {
                grid-template-columns: 1fr;
            }
        }
        &.post {
            article {
                h2 {
                    margin-right: 0;
                    width: 100%;
                }
            }
            aside {
                display: flex;
            }
        }
    }
}
@media screen and (hover: hover) {
    .content {
        &.post {
            aside {
                > div {
                    &.bg {
                        .item {
                            a:hover {
                                color: var(--accent);
                            }
                        }
                    }
                }
            }
        }
    }
}