.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;
                &:nth-of-type(2) {
                    height: 280px;
                    grid-row: auto;
                    min-height: unset;
                }
            }
            .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 {
        position: relative;
        display: flex;
        padding: 5px 20px;
        align-items: center;
        background: var(--light-green);
        border-radius: 20px;
        margin-bottom: 80px;
        transition: .2s linear;
        max-height: 360px;
        p {
            font-weight: 700;
            margin-right: 20px;
            white-space: nowrap;
        }
        .items {
            display: flex;
            flex-wrap: wrap;
            span {
                color: var(--light-text);
                font-weight: 400;
                padding: 5px 10px;
                cursor: pointer;
                word-wrap: break-word;
                &.active {
                    text-decoration: underline;
                }
            }
        }
        > .hide {
            position: absolute;
            right: 20px;
            top: 20px;
            transform: rotate(-90deg);
            transition: .2s linear;
            cursor: pointer;
            display: none;
            &::before {
                font-family: icon;
                font-size: 16px;
                color: var(--green);
                content: '\e909';
            }
        }
    }
    &.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;
        }
    }
    &.hide {
        .wrapper {
            max-height: 60px;
            overflow: hidden;
            > .hide {
                transform: rotate(90deg);
            }
        }
    }
}
.catalog-items {
    display: flex;
    width: calc(100% - 100px);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    gap: 20px;
    .goods {
        overflow: hidden;
        width: 100%;
        position: relative;
        .slides {
            display: flex;
            gap: 20px;
            transition: ease .3s linear;
            user-select: none;
            height: 100%;
            .item {
                flex: 0 0 auto;
                width: calc((100% / 4) - 15px);
                border: 1px solid var(--light-text);
                border-radius: 30px;
                /* width: 100%; */
                /* min-width: 310px; */
                height: fit-content;
                display: flex;
                flex-direction: column;
                position: relative;
                overflow: hidden;
                transition: .2s linear;
                cursor: pointer;
                img {
                    max-height: 170px;
                    height: 100%;
                    object-fit: contain;
                }
                .info {
                    padding: 20px;
                    display: flex;
                    flex-direction: column;
                    height: 100%;
                    h3 {
                        font-family: Nunito, sans-serif;
                        font-weight: 700;
                        font-size: 18px;
                        display: block;
                        display: flex;
                        flex-wrap: wrap;
                        gap: 0 5px;
                    }
                    > span {
                        color: var(--accent);
                        font-size: 14px;
                        display: flex;
                        gap: 5px;
                        align-items: center;
                        &::before {
                            font-family: icon;
                            font-size: 14px;
                            content: '\e902';
                        }
                    }
                    p {
                        &.price {
                            padding-top: 20px;
                            color: var(--green);
                        }
                    }
                    .btn {
                        width: 100%;
                        margin-top: 20px;
                        max-width: unset;
                    }
                }
                > a {
                    position: absolute;
                    width: 100%;
                    height: 100%;
                }
                &.show-all {
                    height: 100%;
                    padding: 0;
                    justify-content: space-between;
                    position: relative;
                    width: 300px;
                    border: none;
                    img {
                        width: 100%;
                        height: 100%;
                        max-height: unset;
                        object-fit: cover;
                        position: absolute;
                        left: 0;
                        top: 0;
                        transition: .2s linear;
                    }
                    .content {
                        padding: 20px;
                        position: absolute;
                        left: 20px;
                        bottom: 40px;
                        width: calc(100% - 40px);
                        background: rgba(255, 255, 255, .7);
                        border-radius: 20px;
                        h3 {
                            font-family: nunito, sans-serif;
                            font-size: 16px;
                        }
                    }
                    a {
                        position: absolute;
                        width: 100%;
                        height: 100%;
                        background: none;
                        border: none;
                        top: 0;
                        left: 0;
                        padding: 0;
                        z-index: 99;
                        border-radius: 0;
                        max-width: unset;
                    }
                }
            }
        }
    }
    .btn.move {
        min-width: 40px;
        padding: 0;
        width: 40px;
        height: 40px;
        background: var(--green);
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--light);
        transition: .2s linear;
        align-self: center;
        &::before {
            font-family: icon;
            font-size: 12px;
            color: var(--light);
            content: '\e900';
        }
        &.prev {
            &::before {
                transform: rotate(180deg);
            }
        }
    }
}
.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: 50%;
                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 {
                border-radius: 20px;
            }
            div {
                display: flex;
                flex-direction: column;
                gap: 20px;
                h3, h4 {
                    margin-top: 20px;
                }
                ul {
                    li {
                        display: block;
                        color: var(--light-text);
                    }
                }
            }
        }
        aside {
            display: flex;
            flex-direction: column;
            max-width: 460px;
            width: 100%;
            gap: 10px;
            padding: 40px;
            background: var(--light-green);
            border: 1px solid var(--green);
            border-radius: 30px;
            height: fit-content;
            position: sticky;
            top: 20px;
            .mb {
                margin-bottom: 30px;
            }
            h3 {
                font-family: nunito, sans-serif;
                font-size: 16px;
                font-weight: 700;
                line-height: 26px;
            }
            ol {
                display: flex;
                flex-direction: column;
                gap: 10px;
            }
            p, li {
                margin-left: 20px;
                font-size: 15px;
                color: var(--light-text);
            }
            li {
                cursor: pointer;
                transition: color .2s linear;
            }
            > 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);
            }
        }
    }
}
.faq {
    .items {
        .questions {
            width: 100%;
        }
        .partnership {
            width: 100%;
            max-width: 460px;
        }
    }
}
@media screen and (max-width: 1600px) {
    .catalog-items {
        .goods {
            .slides {
                .item {
                    width: calc((100% / 3) - (20px - 20px / 3));
                }
            }
        }
    }
}
@media screen and (max-width: 1279px) {
    .promo {
        flex-direction: column;
        .left {
            align-self: start;
            p {
                max-width: 550px;
                &:last-of-type {
                    margin-bottom: 40px;
                }
            }
        }
    }
    .catalog-items {
        .goods {
            .slides {
                .item {
                    width: calc((100% / 2) - (20px - 20px / 2));
                }
            }
        }
    }
    .content {
        &.blog {
            > .items {
                grid-template-columns: repeat(2, 1fr);
            }
        }
    }
    .content {
        &.post {
            flex-direction: column-reverse;
            aside {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                max-width: unset;
                position: static;
                .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: 10px;
            align-items: start;
            padding: 20px;
            p {
                margin-left: 10px;
            }
            > .hide {
                display: block;
            }
        }
    }
    .catalog-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: calc(100% - 40px);
        .goods {
            grid-column: span 2;
            .slides {
                .item {
                    width: 100%;
                }
            }
        }
        .btn {
            grid-row: 2;
            &.prev {
                justify-self: end;
            }
        }
    }
    .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;
                h3 {
                    font-size: 18px;
                    font-weight: 400;
                    line-height: 22px;
                }
                .mb {
                    margin-bottom: 20px;
                }
                p, li {
                    margin-left: 10px;
                }
            }
        }
    }
}
@media screen and (hover: hover) {
    .content {
        &.post {
            aside {
                > div {
                    &.bg {
                        .item {
                            a:hover {
                                color: var(--accent);
                            }
                        }
                    }
                }
                li:hover {
                    color: var(--accent);
                }
            }
        }
    }
    .catalog-items {
        .goods {
            .slides {
                .item {
                    &:hover {
                        .info {
                            .cart-btn {
                                background: #fff;
                                color: var(--accent);
                                outline: 1px solid var(--accent);
                            }
                        }
                    }
                    &.show-all {
                        &:hover {
                            img {
                                transform: scale(1.1);
                            }
                            a {
                                outline: none;
                            }
                        }
                    }
                }
            }
        }
    }
}