main {
    height: 100%;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.categories {
    display: flex;
    margin-top: 120px;
}

.category {
    width: 330px;
    height: 85px;
    border-radius: 10px;
    background-image: url('/img/slider/izdelia.jpg');
}

.head-text {
    text-align: center;
    font-size: 48px;
    color: white;
    font-weight: 700;
    margin-top: 75px;
    margin-bottom: 30px;
    line-height: normal;
    height: auto;
}

.head-text .calc {
    margin-top: 150px;
}

.metal {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.metal-text {
    font-size: 20px;
    font-weight: 600;
    word-wrap: break-word;
    color: white;
    line-height: 1.17;
    max-width: 900px;
}

.photo-bg {
    color: white;
    font-size: 23px;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    position: absolute;
    height: 290px;
    width: 237px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-align: center;
    line-height: normal;
}

#metal-2, #metal-3, #metal-4 {
    display: none;
}

.windows-category {
    display: flex;
    justify-content: space-between;
}

.card-window {
    width: 230px;
    height: 130px;
    background-color: #252525;
    border-radius: 15px;
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    cursor: pointer;
}

.card-window-drop-list {
    display: none;
    position: absolute;
    border-radius: 0 0 15px 15px;
    width: 230px;
    margin: 0 10px;
    background-color: #2F2F2F;
    z-index: 1;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.card-window-drop {
    margin: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.card-window-list:hover .card-window-drop-list {
    display: flex;
}

.card-window-list:hover .card-window {
    border-radius: 15px 15px 0 0;
}

.card-window:hover .card-window-img, .card-window-drop:hover .card-window-img {
    filter: grayscale(0%);
}

.card-window-img {
    height: 88px;
    filter: grayscale(100%);
    transition: .5s;
}

.card-window-text {
    color: white;
    font-weight: 700;
}

.card-window-text-dop i {
    position: relative;
    top: -1px;
    left: 5px;
}

.window-calc {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    margin-top: 50px;
    flex-wrap: wrap;
}

.window-size-container1 {
    display: flex;
    align-items: flex-end;
}

.range-height {
    width: 100px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.window-range-height-text, .window-range-width-text {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.window-range-height-size, .window-range-width-size {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin: 15px 0;
}

.window-range-height {
    appearance: slider-vertical;
    accent-color: #FDAC2E;
    width: 25px;
    height: 280px;
}

.window-size-container2 {
    margin-top: 30px;
    margin-left: 100px;
}

.range-width {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.window-range-width {
    accent-color: #FDAC2E;
    width: 100%;
    margin-bottom: 15px;
}

.window-img {
    height: 280px;
}

.window-result-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.window-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    max-width: 535px;
    height: 280px;
}

.window-title {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0;
    line-height: normal;
    text-align: center;
}

.window-price {
    font-size: 40px;
    font-weight: 700;
    margin: 20px 0;
    line-height: normal;
    text-align: center;
}

.window-result-button {
    width: 200px;
    height: 60px;
    border-radius: 15px;
    background: rgba(0,0,0,0);
    color: white;
    font-size: 20px;
    border: solid 3px #FDAC2E;
    transition: .3s;
}

.window-button {
    margin-top: 35px;
    margin-bottom: 26px;
}

.window-result-button:hover {
    background-color: #FDAC2E;
}

.vehicles {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.card {
    width: 340px;
    height: 480px;
    border-radius: 15px;
    position: relative;
    transition: all .5s;
    overflow: hidden;
    backface-visibility: hidden;
    background-color: #FDAC2E;
    color: black;
}

.card-img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-main {
    padding: 10px;
    height: 56%;
}

.card-text-container, .card-title {
    margin-bottom: 25px;
}

.card-text-container {
    line-height: 1;
}

.card-text {
    font-size: 26px;
    font-weight: 700;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
}

.card-text-dop {
    font-size: 20px;
}

.card-price {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 7px;
}

.card-price > span {
    font-size: 16px;
    font-weight: 300;
    color: white;
}

.card-button-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
}

.card-button {
    width: 140px;
    height: 45px;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0);
    border: 3px solid white;
    font-size: 16px;
    font-weight: 600;
    transition: .3s;
}

.card-button:hover {
    background-color: white;
}

.pop-up {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 300ms ease-in-out;
}

.pop-up-close {
    cursor: pointer;
}

.pop-up-close i {
    font-size: 50px;
    color: white;
    position: fixed;
    top: 10px;
    right: 10px;
}

.pop-up-body {
    width: 700px;
    height: 440px;
    border-radius: 15px;
    background-color: #1D1D1D;
}

.pop-up-header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    color: white;
    margin-top: 15px;
}

.pop-up-header-img {
    height: 150px;
}

.pop-up-header-text .text {
    font-size: 20px;
    font-weight: 600;
    width: 400px;
    text-align: center;
    line-height: normal;
}

.pop-up-header-text .text.vehicle {
    font-size: 30px;
}

.pop-up-header-text .price.vehicle {
    font-size: 20px;
}

.pop-up-header-text .price {
    font-size: 48px;
    font-weight: 600;
    width: 400px;
    text-align: center;
    margin-top: 20px;
    line-height: 1;
}

.pop-up-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.pop-up-main .text {
    color: white;
    font-size: 20px;
    font-weight: 600;
    width: 345px;
    margin-bottom: 10px;
}

.pop-up-main input {
    width: 350px;
    height: 40px;
    background-color: #141414;
    border: none;
    margin: 7px 0;
    color:  white;
    border-radius: 10px;
    padding: 0 10px;
}

.pop-up-main input:-webkit-autofill {
    background-color: #141414;
}

.pop-up-button {
    width: 145px;
    height: 45px;
    border-radius: 15px;
    background: rgba(0,0,0,0);
    color: white;
    font-size: 20px;
    border: solid 2px #FDAC2E;
    transition: .3s;
    margin-top: 15px;
}

.pop-up-button:hover {
    background-color: #FDAC2E;
}

@media (max-width: 1300px) {
    .container {
        width: auto;
        margin: 0 15px;
    }

    .metal-text {
        margin-right: 30px;
    }

    .windows-category {
        justify-content: center;
        flex-wrap: wrap;
    }

    .card-window {
        margin: 10px;
    }

    .window-calc {
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .window-size {
        margin-right: 100px;
    }

    .pop-up-header {
        flex-wrap: wrap;
    }

    .pop-up-header-img {
        margin-bottom: 20px;
        height: 140px;
    }

    .pop-up-body {
        max-width: 700px;
        height: auto;
        margin: 0 30px;
    }

    .pop-up-main {
        margin: 0 20px;
        margin-top: 60px;
    }

    .pop-up-main .text {
        width: 100%;
        max-width: 350px;
        margin: 0 5px;
        margin-bottom: 10px;
    }

    .pop-up-main input {
        width: 100%;
        max-width: 350px;
        padding: 0 10px;
    }

    .pop-up-header-text .text, .pop-up-header-text .price {
        width: auto;
    }

    .pop-up-button {
        margin-bottom: 15px;
    }
}

@media (max-width: 940px) {
    .metal {
        flex-wrap: wrap;
    }

    .metal-text {
        margin-bottom: 30px;
        margin-right: 0;
        text-align: center;
    }

    .card {
        transform: scale(0.8) !important;
    }

    .vehicles {
        gap: 0;
    }
}

@media (max-width: 720px) {
    .window-img, .window-range-height {
        height: 130px;
    }

    .card-window {
        width: 160px;
        height: 100px;
        margin: 5px;
        border-radius: 10px;
    }

    .card-window-drop-list {
        width: 160px;
        margin: 0 5px;
        margin-top: -5px;
    }

    .card-window-img {
        height: 60px;
    }

    .card-window-text {
        font-size: 13px;
    }

    .window-result {
        height: 160px;
    }
    
    .window-title {
        font-size: 16px;
    }

    .window-price {
        font-size: 27px;
    }

    .window-range-height-text, .window-range-width-text {
        font-size: 12px;
    }

    .window-range-height-size, .window-range-width-size {
        font-size: 18px;
        margin-top: 7px;
        margin-bottom: 15px;
    }

    .window-size {
        margin-right: 0;
    }

    .range-height {
        width: 70px;
    }

    .window-size-container2 {
        width: 100% !IMPORTANT;
        padding-left: 27px;
        margin: 0;
        margin-bottom: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 690px) {
    .head-text {
        font-size: 36px;
    }
}