header .wrapper > .logo,
header .location,
main * {
    color: var(--text-color);
}
body {
    position: relative;
}
header {
    background: var(--White);
    &::before {
        height: calc(100% + 20px);
    }
    .location::before {
        background: var(--dark);
    }
    .wrapper {
        height: initial;
        > .buttons svg {
            fill: var(--text-color);
        }
    }
}
.vertical header .wrapper > .logo {
    border-color: var(--dark) !important;
    &::before {
        border-color: var(--dark) !important;
    }
    span {
        color: var(--text-color) !important;
    }
}
main {
    display: block;
    padding-top: 180px;
}
h1 {
    display: block;
    color: #2D2F2E;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 26px;
}
@keyframes show-feedback {
    0% {
        top: -420px;
    }
    100% {
        top: calc(50% - 210px);
    }
}
.purchase-modal {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(24, 23, 28, 0.4);
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: none;
    &.active {
        display: flex;
    }
    .window-body {
        width: calc(100% - 40px);
        max-width: 520px;
        background: var(--White);
        position: absolute;
        top: -420px;
        padding: 30px 30px 51px 30px;
        animation: show-feedback 0.5s forwards;
        *:not(.dark-btn) {
            color: var(--text-color);
        }
        .top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            border-bottom: none;
            margin-bottom: 20px;
            h2 {
                font-size: 18px;
            }
            .close {
                background: none;
                outline: none;
                border: none;
                &::before {
                    content: '\e909';
                    font-family: icon;
                    line-height: 1;
                    font-weight: 100;
                    font-size: 20px;
                    transition: color 0.2s linear;
                }
            }
        }
        p {
            color: var(--text-color);
            font-size: 14px;
            line-height: 120%;
            margin-bottom: 15px;
        }
        a {
            color: var(--text-color);
            font-size: 16px;
            text-decoration: underline;
            line-height: 133%;
        }
    }
}
form,
.container {
    width: calc(100% - 20px);
}
form {
    max-width: 500px;
    margin: 0 auto 40px;
    p {
        color: rgba(45, 47, 46, 0.73);
        font-size: 13px;
        margin: 30px 0 6px;
    }
    .top {
        display: grid;
        grid-template-columns: 1fr 40px;
        margin-bottom: 20px;
        border-radius: 3px;
        overflow: hidden;
        input {
            background: #FFF;
            color: rgba(45, 47, 46, 0.73);
            border-right: 1px solid #EFEFEF;
            font-size: 16px;
            line-height: 1;
            height: 40px;
            padding: 0 16px;
            text-align: left;
            &:focus {
                border-right-color: #fff;
                + button {
                    background-color: var(--hover);
                }
            }
        }
        button {
            width: 100%;
            aspect-ratio: 1;
            position: relative;
            background-color: #fff;
            border: 1px solid #fff;
            &::before {
                content: '\e91b';
                font-family: icon;
                line-height: 1;
                font-weight: 100;
                font-size: 22px;
                transition: color .2s linear;
                color: rgba(45, 47, 46, 0.73);
            }
        }
    }
    .bottom {
        display: flex;
        align-items: center;
        gap: 20px;
        input {
            display: none;
        }
        b {
            color: rgba(45, 47, 46, 0.73);
            font-size: 14px;
            font-weight: 700;
            margin-right: -10px;
        }
        label {
            display: flex;
            align-items: center;
            gap: 4px;
            color: rgba(45, 47, 46, 0.73);
            font-size: 14px;
            user-select: none;
            cursor: pointer;
            transition: color .2s linear;
            &::before {
                content: '\e91c';
                font-family: icon;
                line-height: 1;
                font-weight: 100;
                color: transparent;
                width: 16px;
                aspect-ratio: 1;
                font-size: 12px;
                border-radius: 4px;
                border: 1px solid #fff;
                background: #fff;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
            }
            &:has(input:checked)::before {
                color: rgba(45, 47, 46, 0.73);
                border-color: rgba(45, 47, 46, 0.73);
            }
        }
    }
}
.container {
    padding: 20px;
    border-radius: 3px;
    background: #EFEFEF;
    max-width: 620px;
    margin: 0 auto 13px;
    > p {
        background: #FFF;
        padding: 4px 10px;
        color: rgba(45, 47, 46, 0.73);
        font-size: 14px;
        font-weight: 700;
        line-height: normal;
        width: max-content;
        margin-bottom: 20px;
    }
    .items {
        display: flex;
        flex-direction: column;
        gap: 20px;
        .item.blog {
            padding: 20px 16px;
            border-radius: 3px;
            background: #FFF;
            box-shadow: 0px 6px 10px 0px rgba(45, 47, 46, 0.10);
            display: grid;
            grid-template-columns: 96px auto;
            gap: 10px;
            h2 {
                color: #2D2F2E;
                font-size: 20px;
                line-height: 120%;
                grid-area: 1/1/2/3;
            }
            img {
                width: 100%;
                object-fit: cover;
            }
            p {
                padding-top: 10px;
                margin-bottom: 20px;
            }
            a {
                display: flex;
                color: rgba(45, 47, 46, 0.73);
                font-size: 14px;
                text-transform: lowercase;
                align-items: center;
                justify-content: flex-end;
                gap: 4px;
                margin-left: auto;
                &::after {
                    content: '\e90e';
                    font-family: 'icon';
                    font-size: 16px;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    transform: rotate(180deg);
                    width: 24px;
                    height: 24px;
                }
            }
        }
        .item.product {
            position: relative;
            padding: 20px 16px;
            border-radius: 3px;
            background: #FFF;
            display: grid;
            grid-template-columns: 160px auto;
            gap: 10px;
            img {
                width: 100%;
                aspect-ratio: 16/17;
                object-fit: cover;
                object-position: bottom;
            }
            > div {
                display: flex;
                flex-direction: column;
                gap: 4px;
                > *:not(.bottom),
                .bottom > * {
                    position: relative;
                    z-index: 1;
                }
                h2 {
                    line-height: 1.2;
                }
                .bottom {
                    margin-top: auto;
                    display: grid;
                    grid-template-columns: auto 187px;
                    justify-content: space-between;
                    gap: 20px;
                    button {
                        font-size: 12px;
                        padding: 10px 25px;
                        font-family: lato;
                    }
                }
            }
            > a {
                position: absolute;
                inset: 0;
            }
        }
        .item.services {
            padding: 20px 16px;
            border-radius: 3px;
            background: #FFF;
            h2 {
                font-size: 20px;
            }
            .content {
                display: -webkit-box;
                overflow: hidden;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                line-clamp: 2;
                margin: 24px 0 20px;
                * {
                    display: contents;
                }
            }
            .bottom {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 20px;
                a:not(.transparent-btn) {
                    font-size: 14px;
                    text-transform: lowercase;
                    display: flex;
                    align-items: center;
                    gap: 4px;
                    &::after {
                        content: '\e90e';
                        font-family: icon;
                        line-height: 1;
                        font-weight: 100;
                        font-size: 16px;
                        color: inherit;
                        transform: scaleX(-1);
                    }
                }
                .transparent-btn {
                    border-color: var(--dark);
                    padding: 10px 25px;
                }
            }
        }
    }
}
.products {
    border-radius: 3px;
    background: #EFEFEF;
    padding: 20px 0;
    margin-bottom: 13px;
    > p {
        margin-bottom: 20px;
        span {
            background: #FFF;
            padding: 4px 10px;
            color: rgba(45, 47, 46, 0.73);
            font-size: 14px;
            font-weight: 700;
            line-height: normal;
            width: max-content;
        }
    }
    .items {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(353px, 1fr));
        gap: 10px;
        grid-auto-rows: 1fr;
        .product-item {
            aspect-ratio: 237 / 270;
        }
    }
}
span.no-more-results {
    display: block;
    max-width: 600px;
    margin: 0 auto 65px;
    padding-left: 20px;
    color: rgba(45, 47, 46, 0.73);
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    &.wrapper {
        max-width: 100%;
        margin-bottom: 65px;
        padding-left: 0px;
    }
}
footer {
    display: none;
}
@media screen and (max-width: 767px) {
    .container {
        padding: 20px 10px;
        .items {
            gap: 10px;
            .item.product {
                grid-template-columns: 80px 1fr;
                > div {
                    * {
                        font-size: 12px;
                    }
                    h2 {
                        font-size: 14px;
                    }
                    .bottom {
                        display: flex;
                        flex-direction: column;
                        gap: 10px;
                    }
                }
            }
            .item.services {
                h2 {
                    font-size: 14px;
                }
                .content {
                    font-size: 12px;
                    margin: 15px 0 10px;
                }
                .bottom a:not(.transparent-btn) {
                    font-size: 12px;
                    &::after {
                        font-size: 14px;
                    }
                }
            }
        }
    }
    .products .items {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
@media screen and (hover: hover) {
    .container .items .item.services .bottom a:not(.transparent-btn):hover,
    .container .items .item.blog a:hover::after,
    .container .items .item.blog a:hover {
        color: var(--hover);
    }
}