.product {
    h1.title {
        width: fit-content;
        margin-bottom: 40px;
        &::after {
            display: none;
        }
    }
    .product-box {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr auto;
        gap: 10px;
    }
    .slider {
        position: relative;
        border-radius: 30px;
        grid-row: 1/3;
        aspect-ratio: 1;
        .img {
            border-radius: inherit;
            overflow: hidden;
            width: 100%;
            height: 100%;
        }
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .add-compare {
            position: absolute;
            top: 10px;
            right: 10px;
            opacity: 1;
            background-color: var(--white-grey);
            &.compared {
                background-color: var(--ff-2-f-00);
            }
        }
    }
    .product-info {
        display: flex;
        flex-direction: column;
        border-radius: 30px;
        background: var(--white);
        padding: 20px;
        .code,
        .code + p {
            color: var(--black-grey);
            font-size: 14px;
            line-height: 125%;
            font-weight: 200;
        }
        h2 {
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            color: var(--black-grey);
            font-size: 20px;
            font-weight: 600;
            line-height: 125%;
            margin-top: 10px;
        }
        .price {
            margin: auto 0 8px;
            span {
                font-size: 28px;
                + span {
                    font-size: 14px;
                }
            }
        }
        .basket-form {
            fieldset {
                height: 50px;
                button {
                    width: 40px;
                }
            }
            .btn {
                height: 50px;
                padding: 0 39px;
            }
        }
        .delivery {
            margin-bottom: 20px;
            h3 {
                color: var(--black-grey);
                font-size: 20px;
                font-weight: 600;
                line-height: 125%;
                margin-bottom: 10px;
            }
            h4 {
                font-weight: 700;
                letter-spacing: 0.16px;
                margin-bottom: 10px;
            }
            p {
                position: relative;
                letter-spacing: 0.16px;
                line-height: 1.45;
                margin-left: 35px;
                &:not(:last-child) {
                    margin-bottom: 8px;
                }
                &::before {
                    position: absolute;
                    top: 2px;
                    right: calc(100% + 10px);
                    font: 100 20px/1 'icon';
                }
                &.courier::before {
                    content: '\e913';
                }
                &.point::before {
                    content: '\e914';
                }
                b {
                    font-weight: 700;
                    letter-spacing: inherit;
                    font-size: inherit;
                }
            }
        }
        .payment {
            h3 {
                color: var(--black-grey);
                font-size: 20px;
                font-weight: 600;
                line-height: 125%;
                margin-bottom: 10px;
            }
            > p {
                font-weight: 700;
                letter-spacing: 0.16px;
                margin-bottom: 10px;
                span {
                    letter-spacing: inherit;
                }
            }
            .installment {
                overflow: hidden;
                margin: 23px 0 10px;
                display: flex;
                align-items: center;
                background: url(../images/product/installment.webp) right center/ cover;
                border-radius: 10px;
                height: 54px;
                > p {
                    color: var(--white);
                    font-size: 71px;
                    font-weight: 700;
                    letter-spacing: 0.71px;
                    mix-blend-mode: soft-light;
                }
                .text {
                    color: var(--white-grey);
                    font-size: 20px;
                    font-weight: 700;
                    letter-spacing: 0.2px;
                    flex-wrap: wrap;
                    max-width: 156px;
                    line-height: 0.9;
                    margin-top: 4px;
                    b {
                        font-size: inherit;
                        letter-spacing: inherit;
                        font-weight: inherit;
                        color: var(--ff-2-f-00);
                    }
                    span {
                        display: inline-block;
                        color: inherit;
                        font-size: 24px;
                        font-weight: inherit;
                        letter-spacing: 0.246px;
                        margin-top: -6px;
                    }
                }
            }
            .warning {
                color: var(--black-grey);
                font-size: 14px;
                font-weight: 200;
                line-height: 125%;
            }
        }
    }
    .descriptions {
        margin: 40px 0 50px;
        grid-column: 1/-1;
        .tab-box {
            padding: 3px;
            border-radius: 12px;
            background: var(--white);
            display: flex;
            gap: 3px;
            margin-bottom: 2px;
            button {
                font-size: 14px;
                font-weight: 600;
                letter-spacing: 0.14px;
                text-transform: uppercase;
                padding: 14px;
                border-radius: 10px;
                background-color: var(--white);
                &.active {
                    border-radius: 10px;
                    background: var(--white-grey);
                }
            }
        }
        .bottom {
            position: relative;
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 30px;
            background: var(--white);
            padding: 30px;
            border-radius: 12px;
            .parameters {
                display: grid;
                .tab {
                    display: none;
                    flex-direction: column;
                    &.active {
                        display: flex;
                    }
                    .content {
                        color: var(--grey-dark);
                        letter-spacing: 0.16px;
                        strong {
                            font-weight: 700;
                        }
                    }
                    &.specification {
                        flex-direction: column;
                        gap: 20px;
                        .table {
                            width: 100%;
                            * {
                                letter-spacing: 0.16px;
                            }
                            .thead {
                                font-weight: 700;
                                text-align: left;
                                display: flex;
                                align-items: center;
                                gap: 10px;
                                margin-bottom: 10px;
                                &::before {
                                    content: '\e915';
                                    font: 100 14px/1 'icon';
                                    width: 20px;
                                    display: flex;
                                    align-items: center;
                                    justify-content: center;
                                    aspect-ratio: 1;
                                    flex-shrink: 0;
                                    border-radius: 4px;
                                    background: var(--white-grey);

                                }
                                &.sizes::before {
                                    content: '\e90f';
                                }
                            }
                            .tbody > div {
                                display: grid;
                                grid-template-columns: repeat(2, 1fr);
                                gap: 10px;
                                padding: 8px 10px;
                                &:nth-child(odd) {
                                    border-radius: 6px;
                                    background: var(--white-grey);
                                }
                            }
                        }
                    }
                }
            }
            .consultation {
                width: 100%;
                position: sticky;
                top: 10px;
                display: flex;
                flex-direction: column;
                align-items: center;
                align-self: start;
                padding: 20px 44px;
                border-radius: 12px;
                background: var(--white-grey);
                .heading {
                    color: var(--black-grey);
                    text-align: center;
                    font-size: 20px;
                    font-weight: 600;
                    line-height: 125%;
                    padding: 0 30px;
                }
                p {
                    color: var(--black-grey);
                    text-align: center;
                    font-size: 14px;
                    font-weight: 200;
                    line-height: 125%;
                    margin: 10px 0 30px;
                }
                button {
                    height: 50px;
                    border-radius: 14px;
                    width: 100%;
                    font-size: 16px;
                }
            }
        }
    }
    + section {
        background-color: var(--grey-1);
    }
}
.sections {
    margin-bottom: 100px;
    .heading {
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.14px;
        text-transform: uppercase;
        margin-bottom: 10px;
    }
    .items {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        > * {
            display: flex;
            align-items: center;
            gap: 4px;
            border-radius: 14px;
            background: var(--white);
            padding: 8px 14px;
            &::after {
                content: '\e903';
                font: 100 1cap/1 'icon';
                color: inherit;
            }
        }
    }
    + .goods {
        background: var(--grey-1);
    }
}
footer {
    margin-top: 100px;
}
@media screen and (max-width: 1440px) {
    .product .product-info {
        .delivery {
            margin-bottom: 10px;
            h4 {
                margin-bottom: 6px;
            }
            p {
                font-size: 14px;
                letter-spacing: 0.14px;
                &:not(:last-child) {
                    margin-bottom: 4px;
                }
                &::before {
                    font-size: 18px;
                }
            }
        }
        .payment {
            h3 {
                margin-bottom: 6px;
            }
            > p {
                font-size: 14px;
                letter-spacing: 0.14px;
            }
            .installment > p {
                font-size: 45px;
                letter-spacing: 0.45px;
            }
        }
    }
}
@media screen and (max-width: 1152px) {
    .product {
        container: product-container / inline-size;
        h1.title {
            margin-bottom: 20px;
        }
        .product-box {
            grid-template-columns: 40% 60%;
            grid-template-rows: initial;
        }
        .slider {
            grid-row: 2/3;
        }
        .product-info {
            &:has(.price) {
                grid-column: 1/3;
                grid-row: 1/2;
                .price {
                    margin-top: 50px;
                }
            }
            .payment .installment {
                padding-left: 30px;
                margin-top: 20px;
                > p {
                    display: none;
                }
            }
        }
        .descriptions {
            margin: 10px 0 30px;
            .bottom {
                grid-template-columns: 1fr 300px;
                gap: 20px;
                padding: 10px;
                .consultation {
                    padding: 20px;
                }
            }
        }
    }
}
@container product-container (width < 800px) {
    .product {
        .product-box,
        .descriptions .bottom {
            display: flex;
            flex-direction: column;
        }
        .slider {
            max-width: 600px;
            .img {
                aspect-ratio: 1;
            }
        }
        .descriptions .bottom {
            gap: 40px;
        }
    }
}
@media screen and (max-width: 768px) {
    .product {
        h1.title {
            margin-bottom: 10px;
            padding-left: 0;
        }
        .slider {
            border-radius: 20px;
        }
        .product-info .basket-form .btn {
            padding: 0;
            width: 50px;
            span {
                display: none;
            }
        }
        .descriptions .bottom .consultation {
            padding: 20px 44px;
        }
    }
}