@media (min-width: 992px) {


    #block143 div.head h1,
    #block143 div.head h2 {
        font-size: 48px !important;
        line-height: 52px !important;
    }

    #block143 div.head .descrip,
    #first_slider_143 div.head .subtitle {
        font-size: 24px !important;
        line-height: 36px !important;
    }
}


@media (max-width: 991px) {

    #block143 div.head h1,
    #block143 div.head h2 {
        font-size: 36px !important;
        line-height: 32px !important;
    }

    #block143 div.head .descrip,
    #first_slider_143 div.head .subtitle {
        font-size: 18px !important;
        line-height: 24px !important;
    }
}

@media (min-width: 768px) {
    #block143 {
        padding-top: 120px !important;
        padding-bottom: 120px !important;
    }
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.calculator {
    position: relative;
    margin: 0 auto;
    box-sizing: border-box;
}

.calculator__wrapper {
    display: flex;
    flex-flow: row nowrap;
    margin: 0 0 20px 0;
}

.calculator__image {
    position: relative;
    display: flex;
    align-items: start;
    width: 100%;
    padding: 0;
    margin: 0 20px 0 0;
    /* background: #f9f8f6; */
    max-width: 700px;
}

.calculator__status {
    display: block;
    position: absolute;
    top: 45%;
    left: 20%;
    right: 20%;
    color: rgba(119, 60, 60, 0.96);
    text-align: center;
    text-transform: uppercase;
}

.calculator__svg {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    transition: all ease-in 0.2s;
    /* background: white; */
}

.calculator__svg-path {
    fill: transparent;
    transition: all ease-in 0.2s;
}

.calculator__svg-path--active {
    transition: all ease-in 0.2s;
}

.calculator__pattern {
    font-size: 42px;
    margin: 0 0 20px 0;
    display: inline-block;
    width: 100%;
    text-align: left;
    transition: background-color ease-in 0.3s;
    font-family: "Podkova", serif;
}

.calculator__divider {
    width: 25%;
    height: 1px;
    margin: 0 0 20px 0;
    background: black;
}

.calculator__properties {
    overflow-x: auto;
}

.calculator__patterns {
    display: flex;
    flex-flow: nowrap;
    box-sizing: border-box;
    margin: 0 !important;
    min-width: 500px;
}

.calculator__patterns-item {
    margin: 0 20px 0 0;
}

.calculator__patterns-item:last-child {
    margin: 0;
}

.calculator__patterns-image--active {
    opacity: .3;
}

.calculator__patterns-image {
    width: 100%;
    transition: opacity ease-in 0.3s;
}

.calculator__patterns-image--active {
    opacity: 0.3;
}

.calculator__patterns-image:hover {
    opacity: 0.3;
    cursor: pointer;
}

.calculator__part {
    position: relative;
    display: none;
    background: white;
    padding: 15px 20px;
    border: inset 1px black;
    font-family: "Raleway", "Roboto", sans-serif;
    font-size: 18px;
    margin: 0 0 20px 0;
}

.calculator__checker {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: black;
}

.calculator__parts {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
}

.calculator__parts-name {
    padding: 6px 10px;
    background: white;
    margin: 0 10px 10px 0;
    transition: background-color ease-in 0.3s;

}

.calculator__parts-name:last-child {
    margin-right: 0;
    align-self: flex-start;
}

.calculator__parts-name:hover {
    cursor: pointer;
    background-color: wheat;
}

.calculator__parts-name--active {
    background: wheat;
}

.calculator__palette {
    display: flex;
    flex-flow: row wrap;
    margin: 0 0 24px 0;
}

.calculator__palette-color {
    position: relative;
    width: 20%;
    height: 30px;
    transition: box-shadow ease-in 0.3s, opacity ease-in 0.3s;
    margin: 3px 1%;
    border-radius: 10px;
    overflow: hidden;

    &.is-active::after {
        content: '✔';
        position: absolute;
        width: 100%;
        height: 100%;
        backdrop-filter: blur(10px);
        border-radius: 10px;
        color: green;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.calculator__palette-color:first-child {
    box-shadow: inset 1px 1px 0px gray;
}

.calculator__palette-color:hover {
    cursor: pointer;
    opacity: 0.7;
    box-shadow: inset 1px 1px 0px gray;
    transition: box-shadow ease-in 0.3s, opacity ease-in 0.3s;
}

.calculator__palette-checker {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 10px;
    height: 10px;
    background: wheat;
}

/*Colors*/
.calculator__palette-color--color-0 {
    background-color: none;
    border-left: inset 1px #f0f0f0;
    border-top: inset 1px #f0f0f0;
    box-sizing: border-box;
}

.calculator__palette-color--color-1 {
    background-color: black;
}

.calculator__palette-color--color-2 {
    background-color: white;
}

.calculator__palette-color--color-3 {
    background-color: #8b4513;
}

.calculator__palette-color--color-4 {
    background-color: #2f4f4f;
}

.calculator__palette-color--color-5 {
    background-color: #6b8e23;
}

.calculator__palette-color--color-6 {
    background-color: #b22222;
}

.calculator__palette-color--color-7 {
    background-color: #6495ed;
}

.calculator__palette-color--color-8 {
    background-color: #f0e68c;
}

.calculator__palette-color--color-9 {
    background-color: #800080;
}

.calculator__palette-color--color-10 {
    background-color: #ff4500;
}

.calculator__palette-color--color-11 {
    background-color: #464fd9;
}

.color-list-item:last-child {
    margin: 0;
}

.calculator__buttons {
    display: flex;
}

.calculator__buttons-item {
    width: 100%;
}


.calculator__buttons-view {
    width: 98%;
    border-radius: 10px;
}

.calculator__buttons-pdf {
    width: 98%;
    border-radius: 10px;
}

.calculator__view {
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: white;
    display: flex;
    flex-flow: row wrap;
    box-sizing: border-box;
    transition: opacity ease-in .3s;
}

.calculator__view--hidden {
    display: none;
}

.calculator__view-tile {
    width: 12.5%;
    box-sizing: border-box;
    overflow: hidden;
}

.calculator__view-svg {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.button {
    font-family: inherit;
    font-size: 1em;
    padding: 0.5em 2em;
    border: none;
    transition: opacity ease-in 0.3s;
}

.button--active {
    background: #f5deb3;
}

.button--red {
    background: #f79a9a;
}

.button:hover {
    cursor: pointer;
    opacity: 0.75;
    transition: opacity ease-in 0.3s;
}

@media (max-width:1139px) {

    .calculator {
        width: auto;
        /* background: wheat; */
    }

    .calculator__pattern {
        font-size: 36px;
        margin: 0 0 10px 0;
    }

}

@media (max-width:767px) {

    .calculator {
        width: auto;
        /* background: wheat; */
    }

    .calculator__pattern {
        font-size: 28px;
        margin: 0 0 10px 0;
    }

    .calculator__palette {
        display: flex;
        flex-flow: row wrap;
    }

    .calculator__palette-color {
        width: 33%;
        height: 30px;
    }

}

@media (max-width:1100px) {

    .calculator {
        width: auto;
    }

    .calculator__wrapper {
        display: flex;
        flex-flow: column nowrap;
    }

    .calculator__image {
        display: flex;
        align-items: start;
        width: 75%;
        padding: 0;
        margin: 0 auto 20px 0;
        background: #f9f8f6;
    }

    .calculator__pattern {
        font-size: 28px;
        margin: 0 0 10px 0;
    }

    .calculator__palette {
        display: flex;
        flex-flow: row wrap;
    }

    .calculator__palette-color {
        width: 31%;
        height: 30px;
    }

}

@media (max-width:689px) {

    .calculator {
        width: auto;
    }

    .calculator__wrapper {
        display: flex;
        flex-flow: column nowrap;
    }

    .calculator__image {
        display: flex;
        align-items: start;
        width: 75%;
        padding: 0;
        margin: 0 auto 20px 0;
        background: #f9f8f6;
    }

    .calculator__pattern {
        font-size: 28px;
        margin: 0 0 10px 0;
    }

    .calculator__parts {
        margin: 0 0 10px 0;
    }

    .calculator__parts-name {
        margin: 0;
        width: 33%;
        box-sizing: border-box;
    }

    .calculator__palette {
        display: flex;
        flex-flow: row wrap;
    }

    .calculator__palette-color {
        width: 31%;
        height: 30px;
    }

}

@media (max-width:479px) {

    .calculator {
        width: auto;
    }

    .calculator__wrapper {
        display: flex;
        flex-flow: column nowrap;
    }

    .calculator__image {
        display: flex;
        align-items: start;
        width: 100%;
        padding: 0;
        margin: 0 auto 20px 0;
        background: #f9f8f6;
    }

    .calculator__pattern {
        font-size: 28px;
        margin: 0 0 10px 0;
    }

    .calculator__divider {
        width: 25%;
        height: 1px;
        margin: 0 0 20px 0;
        background: black;
    }

    .calculator__patterns-item {
        margin: 0 10px 0 0;
    }

    .calculator__parts {
        margin: 0 0 10px 0;
    }

    .calculator__parts-name {
        padding: 10px;
        background: white;
        margin: 0;
        transition: background-color ease-in 0.3s;
        flex: auto;
        width: 33%;
        box-sizing: border-box;
    }

    .calculator__palette {
        display: flex;
        flex-flow: row wrap;
    }

    .calculator__palette-color {
        width: 31%;
        height: 30px;
        box-sizing: border-box;
    }

}

@keyframes partsList {
    from {
        opacity: 0;
    }

    to {
        height: 1;
    }
}

#calculator-color-saturation-number {
    border: none;

    &:focus {
        outline: none;
    }
}

.section-img-box {
    display: flex;
    flex-wrap: wrap;

    & .img-item {
        width: 25%;
        padding: 10px;

        & img {
            width: 100%;
        }
    }
}

@media (max-width:1200px) {
    .section-img-box {

        & .img-item {
            width: calc(100% / 3);
        }
    }
}

@media (max-width:700px) {
    .section-img-box {

        & .img-item {
            width: calc(100% / 2);
            padding: 5px;
        }

        & b {
            font-size: 11px;
        }
    }
}


.order-section {
    width: min(2200px, 80%);
    margin: 0 auto;
    padding: 40px 20px;
}

.order-title {
    text-align: center;
    margin-bottom: 30px;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 500;
}

input,
select,
textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

select[multiple] {
    min-height: 100px;
}

.radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.radio input {
    accent-color: #000;
}

small {
    font-size: 12px;
    color: #666;
}

.btn-submit {
    padding: 12px 18px;
    background: var(--accent);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: 0.15s;
    width: max-content;
}


.btn-submit:hover {
    opacity: 0.85;
}

.hidden {
    display: none;
}

.h2-center {
    text-align: center;
}

.order:not(.is-active) {
    display: none;
}

.section-text img {
    width: 50%;
    padding: 10px;
    border-radius: 15px;
}

.flex-galery {
    display: flex;
    flex-wrap: wrap;

    &>img,
    .tiles-item {
        width: 25%;
        padding: 10px;
    }
}

.tiles-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    & img {
        width: 100%;
        padding: 0;
    }

    & h4 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.2;
        text-decoration: none;
        margin: 10px 0;
    }
}

.tiles-info {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tiles-Specifications-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--accent);
    gap: 10px;
}

.tiles-Specifications-item-value {
    text-align: end;
}

@media (max-width:1000px) {
    .flex-galery {

        &>img,
        .tiles-item {
            width: 50%;
            padding: 5px;
        }
    }
}

@media (max-width: 700px) {
    .section-text img {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .tiles-Specifications {
        font-size: 10px;
    }

    .tiles-title {
        font-size: 12px !important;
    }

    .tiles-info-title {
        font-size: 11px;
    }

    .calculator__patterns-item {
        & p {
            font-size: 10px;
        }
    }

    .flex-galery {

        &>img,
        .tiles-item {
            width: 100%;
        }
    }
}

.calculator__patterns-item {
    display: flex;
    flex-direction: column;
    justify-content: space-around;

    & p {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

.section-img-box-title {
    font-size: 24px;
    border-bottom: 1px solid var(--accent);
}

[data-js-big-img] {
    cursor: zoom-in;
    transition: .3s;

    &:hover {
        scale: 1.03;
    }
}

.tiles-info-price {
    margin: 10px 0;
}

.tiles-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--price);
}

.tiles-info-title{
    cursor: pointer;

    & i:not(:nth-child(1)) {
        opacity: 0;
        transition: .3s;
        margin-left: 10px;
    }

    &:hover i:not(:nth-child(1)){
        opacity: 1;
        transform: rotate(90deg);
    }
}

@media (max-width: 1400px) {
    .table-wrapper {
        overflow-x: auto;
        width: 100%;
    }
}