/* */

:root {
    /*  --main-color: #1A3278; */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", sans-serif;
    /* YOU CAN CHANGE */
    font-size: normal;
}

.container-local {
    width: 100%;
    max-width: 1140px;
    /* YOU CAN CHANGE */
    padding-right: 16px;
    padding-left: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-bottom: 0;
}

a {
    text-decoration: none !important;
}

.text--main-color {
    color: var(--main-color);
}

.text--bold {
    font-weight: 700;
}

.text--uppercase {
    text-transform: uppercase;
}

/* USE TEXT HIGHLIGHT WITH INLINE ELEMENTS */

.text--highlight {
    text-decoration: none;
    background: linear-gradient(0deg, rgb(205, 90, 90), rgb(205, 155, 90), rgb(205, 197, 90), rgb(94, 205, 90), rgb(90, 182, 205), rgb(90, 92, 205), rgb(149, 90, 205)) no-repeat right bottom / 0 var(--bg-h);
    transition: background-size 350ms;
    --bg-h: 100%;
}

.text--highlight:where(:hover, :focus-visible) {
    background-size: 100% var(--bg-h);
    background-position-x: left;
}

/* MENU-POPUP */

.menu-popup {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 20px;
    z-index: 101;
    height: 400px;
    width: 400px;
    background-color: #fff;
    -webkit-box-shadow: 0px 0px 10px 1px var(--main-color);
    -moz-box-shadow: 0px 0px 10px 1px var(--main-color);
    box-shadow: 0px 0px 10px 1px var(--main-color);
}

.menu-popup__upper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px solid var(--main-color);
}

.menu-popup__logo {
    margin-left: 16px;
    max-width: 160px;
    height: auto;
}

.menu-popup__closer {
    margin-top: 16px;
    font-size: 32px;
    font-weight: 700;
    color: var(--main-color);
    cursor: pointer;
    margin-right: 16px;
}

.menu-popup__links {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.menu-popup__link {
    position: relative;
    margin-top: 40px;
    font-size: 24px;
    line-height: 27px;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 700;
}

.menu-popup__link:hover {
    color: rgba(0, 0, 0, 0.55);
}

.menu-popup__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.55);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease-in-out;
}

.menu-popup__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* HEADER */

.header {
    display: flex;
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    width: 155px;
    height: auto;
}

.header__nav {
    display: flex;
}

.header__nav-link {
    position: relative;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.55);
    margin-right: 15px;
}

.header__nav-link:hover {
    color: rgba(0, 0, 0, 0.55);
}

.header__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: rgba(0, 0, 0, 0.55);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease-in-out;
}

.header__nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* MAIN */

.main {
    display: flex;
    justify-content: center;
    position: relative;
    background-color: #000;
    width: 100%;
    height: 450px;
    overflow-clip-margin: content-box;
    overflow: clip;
}

.iframe-holder {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(75%);
    width: 100%;
    height: 100%;
}

iframe {
    width: 100%;
    height: 400%;
}

.main__container {
    z-index: 2;
}

.main__title {
    margin-top: 80px;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 40px;
    max-width: 500px;
    color: #fff;
}

.main__title-color1 {
    color: #ff0;
    font-size: 38px;
    text-shadow: 2px 2px #000;
}

.main__title-color2 {
    color: #9f0;
    font-size: 42px;
    text-shadow: 2px 2px #000;
}

/* SECOND */

.second {
    display: flex;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-image: url("../img/bg1.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.second__container {
    display: flex;
    justify-content: space-between;
}

.second__col1 {
    display: flex;
    align-items: center;
}

.second__form {
    background-color: #fff;
    padding: 25px 15px;
    max-width: 400px;
    width: 100%;
}

.second__col2 {
    max-width: 563px;
    width: 100%;
}

.second__title {
    color: #fff;
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 40px;
}

.second__line {
    height: 3px;
    width: 15%;
    background: #e60004;
}

.second__text {
    color: #fff;
    font-weight: 300;
    font-size: 16px;
}

.second__text1 {
    margin-top: 35px;
}

.second__text2 {
    margin-top: 50px;
}

/* CALCULATOR */

.calculator {
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.calculator__block {
    position: relative;
    border-color: #8b0000 !important;
    border: 2px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
    padding: 48px;
}

.calculator__title {
    font-size: 36px;
    color: #343a40;
    font-weight: 700;
    text-align: center;
}

.calculator__range-input {
    width: 100%;
    display: flex;
    justify-content: center;
    color: #8b0000;
    font-weight: 700;
    font-size: 36px;
}

.calculator__range {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 8px;
}

.calculator__range-numbers {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.calculator__range-number {
    color: #6c757d !important;
}

.calculator__output-holder {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: -43px;
    left: 0;
    width: 100%;
}

.calculator__output-block {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(102deg, #dc3545 0, #8b0000 100%);
    border-radius: 10px;
    height: 85px;
    width: 185px;
}

.calculator__output-name {
    font-size: 15px;
}

.calculator__output-number {
    font-size: 34px;
    font-weight: 700;
}

/* LOCATIONS */

.locations {
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding-bottom: 23px;
}

.locations__cards {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.locations__title {
    margin-top: 73px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}

.locations__card {
    width: 100%;
    max-width: 266px;
    height: 410px;
    box-shadow: 2px 2px 15px 0 #000;
    border-radius: 0.25rem;
}

.locations__card1 {
    background: url("../img/loc1.webp") no-repeat center/cover;
}

.locations__card2 {
    background: url("../img/loc2.webp") no-repeat center/cover;
}

.locations__card3 {
    background: url("../img/loc3.webp") no-repeat center/cover;
}

.locations__card4 {
    background: url("../img/loc4.webp") no-repeat center/cover;
}

.locations__card-content {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 30px;
    transition: 0.3s linear;
}

.locations__card-title {
    color: #fff;
    font-size: 24px;
    font-weight: 500;
}

.locations__card-line {
    height: 2px;
    width: 60px;
    background: #e60004;
    margin-top: 10px;
}

.locations__card-text {
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin-top: 30px;
    display: none;
}

.locations__card-content:hover {
    background: rgba(6, 30, 82, 0.75);
    justify-content: center;
}

.locations__card-content:hover .locations__card-text {
    display: block;
}

/* ADVANTAGES */

.advantages {
    display: flex;
    justify-content: center;
    height: 650px;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.advantages__container {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.advantages1 {
    background-image: url("../img/adv1.webp");
}

.advantages2 {
    background-image: url("../img/adv2.webp");
}

.advantages3 {
    background-image: url("../img/adv3.webp");
}

.advantages__content {
    max-width: 450px;
}

.advantages__title {
    font-size: 34px;
    line-height: 38px;
    margin-bottom: 30px;
    font-weight: 700;
    color: #000;
}

.advantages__text {
    font-weight: 300;
    font-size: 24px;
    line-height: 28px;
    margin: 10px 0;
}

.advantages__line {
    height: 3px;
    width: 150px;
    background: #e60004;
    margin-top: 35px;
}

.owl-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    font-size: 64px;
    color: #7f7f7f;
    position: absolute;
    top: 0;
}

.owl-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.owl-dots {
    width: 100%;
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 30px;
}

/* PREFOOTER */

.prefooter {
    display: flex;
    justify-content: center;
    background: #33363a;
    padding: 40px 0 50px;
}

.prefooter__container {
    display: flex;
    justify-content: space-between;
}

.prefooter__col1 {
    display: flex;
    align-items: center;
}

.prefooter__col2 {
    display: flex;
    align-items: center;
}

.prefooter__form {
    max-width: 400px;
    background-color: #fff;
    padding: 25px 15px;
}

/* FOOTER */

.footer {
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background: #262a2e;
}

.footer__container {
    display: flex;
    justify-content: space-between;
}

.footer__year {
    color: #6c757d;
}

.footer__privacy {
    color: #6c757d;
}

/* ADAPTIVE */

.header__burger {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-top: -5px;
    cursor: pointer;
    width: 30px;
}

.header__burger-line {
    width: 100%;
    margin-top: 5px;
    height: 4px;
    background-color: #6c757d;
    border-radius: 4px;
}

.locations__cards--mobile {
    display: none;
}

.locations__card-row {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media screen and (max-width: 1366px) {
    .prefooter__container {
        justify-content: space-around;
    }
}

@media screen and (max-width: 1130px) {
    .locations__cards--mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .locations__card-row2 {
        margin-top: 20px;
    }
    .locations__cards--desktop {
        display: none;
    }
    iframe {}
    .main__container {
        background-color: rgba(0, 0, 0, 0.2);
    }
}

@media screen and (max-width: 1024px) {
    .second__container {
        flex-direction: column;
        align-items: center;
    }
    .second__form {
        max-width: 600px;
    }
    .second__col2 {
        margin-top: 20px;
    }
    .second__title {
        margin-bottom: 20px;
    }
    .second__text {
        margin-top: 20px;
    }
}

@media screen and (max-width: 800px) {
    .iframe-holder {
        width: 150%;
        height: 150%;
        top: -25%;
    }
    iframe {
        height: 600% !important;
        width: 600% !important;
    }
    .main__container {
        background-color: rgba(0, 0, 0, 0.5);
    }
}

@media screen and (max-width: 768px) {
    .header__burger {
        display: flex;
    }
    .header__nav {
        display: none;
    }
    .calculator__title {
        font-size: 28px;
    }
    .advantages {
        background-position: 20%;
    }
    .advantages1 {
        background-position: 0%;
    }
    .advantages {
        height: 550px;
    }
    .advantages__title {
        font-size: 20px;
    }
    .advantages__text {
        font-size: 18px;
    }
    .prefooter__container {
        flex-direction: column;
        align-items: center;
    }
    .prefooter__col2 {
        margin-top: 20px;
    }
    .footer__container {
        flex-direction: column;
        align-items: center;
    }
    .footer__privacy {
        margin-top: 15px;
    }
}

@media screen and (max-width: 600px) {
    .locations__cards--desktop {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .locations__cards--mobile {
        display: none;
    }
    .locations__card {
        margin-bottom: 20px;
    }
    .advantages__container {
        padding-left: 30px;
        padding-right: 30px;
    }
    .iframe-holder {
        width: 200%;
        height: 200%;
        top: -50%;
    }
}

@media screen and (max-width: 430px) {
    .menu-popup {
        width: 100%;
        right: 0;
    }
    .calculator__title {
        font-size: 24px;
    }
    .iframe-holder {
        width: 300%;
        height: 300%;
        top: -100%;
    }
}

@media screen and (max-height: 800px) {
    .advantages {
        height: 550px;
    }
}

@media screen and (max-height: 768px) {
    .advantages {
        height: 500px;
    }
}

.btn {
    box-sizing: border-box;
    margin: 0;
    display: inline-block;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    font-family: var(--bs-btn-font-family);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    user-select: none;
    border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
    border-radius: var(--bs-btn-border-radius);
    transition: none;
    cursor: pointer;
    width: 100%;
    height: 60px;
    font-size: 16px;
    line-height: 25px;
    text-transform: uppercase;
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
    border-bottom: 5px solid #8b0000;
    font-weight: 700;
    transition: 0.3s;
}

.btn:hover {
    background-color: #be2c3a;
    border-color: #dc3545;
    color: #fff;
    border-bottom: 5px solid #8b0000;
}

.commonInputDiv {
    margin-bottom: 10px;
}

.commonInputDiv input:focus {
    outline: none;
}

.formHeader {
    margin-bottom: 20px;
}

#phone-error,
#name-error,
#last-error,
#email-error {
    display: none !important;
}

.error {
    border: 1px solid red;
}

.valid {
    border: 1px solid green;
}