:root {
    --sizesText: 18px;
    --brandColor: rgb(19, 139, 238);
    --bgColor: #F1F6F9;
    --brandColortwo: #8FC42A;
    --brandColorLight: #EEF7FF;
    --font: "Montserrat", sans-serif;
    --color3: #333333;
    --size20: 20px;
    --size32: 32px;
    --size36: 36px;
    --whatsapp: #2BB741;
    --telegram: #229ED9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

html {
    scroll-behavior: smooth;
}

a {
    display: inline-block
}

img {
    max-width: 100%;
    height: auto
}

.container {
    width: 90%;
    margin: 0 auto
}

.size-title {
    font-size: var(--size36);
    font-weight: 600;
     margin: 0 0 10px 0;
}



label {
    display: inline-block;
    background-color: var(--brandColor);
    align-self: flex-start;
    padding: 5px;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

input[type="text"] {
    background-color: #fff;
    height: 56px;
    padding: 10px;
    border: 2px solid var(--brandColor);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 30px;
}

.input-wrapper label {
    position: absolute;
    left: 10px;
    top: -20px;
}

.section {
    padding: 50px 0;
}

.header-top {
    padding: 20px 0
}

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

.logo-desc {
    line-height: 1.1
}

.logo-image,
.location-image,
.contacts-image {
    margin-right: 20px
}

.location {
    margin-right: 50px
}

.logo-brand {
    color: var(--brandColor);
    font-size: var(--size32);
    font-weight: 600
}

.logo-description {
    font-size: 15px;
    color: var(--color3);
    font-weight: 400
}

.location-wrapper {
    display: flex
}

.area {
    font-size: 22px;
    font-weight: 600
}

.city {
    font-size: 15px;
    font-weight: 400
}

.phone a {
    color: var(--color3);
    font-size: 25px
}

.mode {
    font-size: 15px
}

.header-wrapper {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center
}

.address-wrapper {
    display: flex
}

.navigation {
    background-color: var(--brandColorLight)
}

.navigation a {
    color: var(--brandColor);
    font-weight: 400;
    padding: 20px
}

.navigation a:last-child {
    margin-right: 0
}

/* Мобильное меню */

.phone-icon {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

.mobile-menu {
    display: none;
    background-color: var(--brandColorLight);
    width: 100%;
}

.mobile-menu .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.mobile-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.social {
    margin-right: auto;
}

.mobile-phone, .social, .burger-icon {
    display: inline-block;
}

.social img {
    width: 40px;
    height: auto;
    gap: 10px;
}

.burger-icon {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.burger-icon .line {
    width: 100%;
    height: 3px;
    background-color: var(--brandColor);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-icon.change .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-icon.change .line2 {
    opacity: 0;
}

.burger-icon.change .line3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
    align-items: center;
    font-size: 20px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    background-color: var(--brandColorLight);
    justify-content: flex-start;
    height: 100vh;
}

.mobile-nav.show {
    display: flex;
    max-height: 100vh;
    opacity: 1;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 100vh;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 100vh;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}

.mobile-nav a {
    color: var(--brandColor);
}






/* Конец */

.one-screen {
    background-image: url(../images/condition-screen.png);
    background-repeat: no-repeat;
    background-position: 90% 50%;
    padding-top: 100px;
}

h1.page-title {
    font-weight: 700;
    font-size: 40px;
    max-width: 746px;
    margin-bottom: 30px
}

.color {
    color: var(--brandColortwo)
}

.bg-color {
    background: rgba(143, 196, 42, 0.2) !important;
}

.button {
    background-color: var(--brandColor);
    color: #fff;
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px
}

.list-advantages {
    line-height: 1.7;
    background-color: #fff;
    display: inline-block;
}

.list-advantages li {
    background-image: url(../images/2-chech.png);
    padding-left: 40px;
    background-position: 0 50%;
    background-repeat: no-repeat;
    max-width: 360px;
    margin-bottom: 20px
}

.one-screen .button {
    margin-bottom: 70px
}

.preview-block__btn {
    max-width: 250px;
    margin-bottom: 30px;
}

.custom-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-flow: row nowrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    width: 100%;
    height: 58px;
    padding-top: 2px;
    border: none;
    position: relative;
    font-size: 16px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    background: var(--brandColor);
    -webkit-transition: ease .3s;
    transition: ease .3s;
    -moz-transition: ease .3s;
    -ms-transition: ease .3s;
    -o-transition: ease .3s;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.custom-btn:after {
    content: "";
    display: block;
    width: 30px;
    height: 300px;
    margin-left: 60px;
    background: #fff;
    background: -moz-linear-gradient(top, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, .7) 100%);
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, .7) 100%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, .7) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3ffffff', endColorstr='#b3ffffff', GradientType=0);
    position: absolute;
    left: -40px;
    top: -150px;
    z-index: 1;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transition: all .1s;
    transition: all .1s;
    -webkit-animation-name: slideme;
    animation-name: slideme;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-delay: .05s;
    animation-delay: .05s;
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}

@-webkit-keyframes slideme {
    0% {
        left: -30px;
        margin-left: 0
    }

    30% {
        left: 110%;
        margin-left: 80px
    }

    100% {
        left: 110%;
        margin-left: 80px
    }
}

.button-scroll {
    border: 1px solid rgb(19, 139, 238, .3);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    position: relative;
    margin: 10px auto 0;
    padding: 10px;
    animation: moveUpDown 2s infinite;
    -webkit-animation: moveUpDown 2s infinite;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

@keyframes moveUpDown {
    0% {
        transform: translateY(0);
    }

    /* Начало: без смещения */
    50% {
        transform: translateY(-20px);
        -webkit-transform: translateY(-20px);
        -moz-transform: translateY(-20px);
        -ms-transform: translateY(-20px);
        -o-transform: translateY(-20px);
    }

    /* Середина: смещение вверх на 10 пикселей */
    100% {
        transform: translateY(0);
    }

    /* Конец: возвращение в исходное положение */
}

.company-wrapper {
    display: grid;
    grid-template-columns: 627px 1fr;
    gap: 60px;
}

.section-company {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 100px 0;
}

.section-company::after {
    content: '';
    background-color: rgba(19, 139, 238, 0.05);
    width: 100%;
    height: 680px;
    position: absolute;
    top: 28px;
    left: 150px;
    padding-bottom: 20px;
    z-index: -1;
    border-radius: 50px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    -ms-border-radius: 50px;
    -o-border-radius: 50px;
}

.company-info {
    padding: 0 20px;
}

.info-title {
    margin-bottom: 30px;
    line-height: 1.1;
}

.info-text {
    max-width: 700px;
    line-height: 1.5;
}

.info-text span {
    font-weight: 600;
}

.info-title span {
    color: var(--brandColortwo);
}

.info-text li {
    margin-bottom: 30px;
}

/* TODO Наши услуги */
.services {
    background-image: url('/images/listya.png');
    background-repeat: no-repeat;
}

.services-desk {
    color: #505050;
    margin-bottom: 50px;
}

.services-title,
.services-desk {
    text-align: center;
}

.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    padding: 30px;
    background-color: #f9f9f9;
    border: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    height: 100%;
}

.card-title {
    font-size: 20px;
    text-align: center;
    width: 240px;
    margin-bottom: 30px;
    font-weight: 500;
}

.card-image {
    margin-bottom: 30px;
}

.card .preview-block__btn {
    margin-bottom: 0;
}

.card-image {
    width: 82px;
    height: 82px;
    background-repeat: no-repeat;
}

.ustanovka {
    background-image: url(/images/ustanovka-condicionera.png);
}

.profilaktika {
    background-image: url(/images/profilaktika-condicionera.png);
}

.remont {
    background-image: url(/images/remont-condicionera.png);
}

.cost-servises {
    background-image: url(/images/cost-bg.png);
    background-repeat: no-repeat;
    background-position: 110% 0;
}

.cost-desk,
.malfunctions-desk {
    color: #505050;
}

.cost-title,
.cost-desk,
.malfunctions-title,
.malfunctions-desk {
    text-align: center;
}

.cost-table {
    display: grid;
    gap: 20px;
    grid-template-columns: 6fr 2fr 2fr;
    background-color: #F1F6F9;
    padding: 20px 40px;
    margin-bottom: 5px;
    max-width: 80%;
    margin: auto auto 5px auto;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.cost-wrapper {
    margin-bottom: 50px;
}

.table-cost,
.table-order {
    text-align: right;
}

.order-link {
    color: var(--brandColor);
}

.call-master {
    background-image: url('/images/call-master-bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    margin: 50px 0;
}


.call {
    color: #fff;
}

.call-title {
    font-size: 64px;
    font-weight: 600;
    max-width: 550px;
    line-height: 0.9;
    margin-bottom: 20px;
}

.call-info {
    font-weight: 400;
    font-size: 18px;
    max-width: 420px;
    margin-bottom: 30px;
}

.button-wrapper {
    display: grid;
    grid-template-columns: 270px 270px;
    grid-template-rows: 60px 60px;
    gap: 10px;
    max-width: 80%;
}

.whatsapp {
    background-color: var(--whatsapp);
    background-image: url('/images/whatsapp.png');
    padding-left: 30px;
}

.telegram {
    background-color: var(--telegram);
    background-image: url('/images/telegram.png');
    padding-left: 10px;
}

.button-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    background-repeat: no-repeat;
    background-position: 10px 50%;
}

.call-wrapper {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-height: 600px;
    justify-items: center;
}

.call-form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
}

.form-title {
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 50px;
}

.form-submit {
    background-color: var(--brandColor);
    color: #fff;
    width: 200px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
}

.conf {
    grid-column-start: 2;
    background-image: url('/images/lock.png');
    padding-left: 40px;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
}

 .success-message {
            display: none;
            color: green;
            margin-top: 10px;
        }

.malfunctions-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    justify-content: space-between;
    justify-items: center;
    padding: 50px 0;
}

.malfunctions-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 450px;
    height: 211px;
    background-color: #F1F6F9;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    position: relative;
}
.malfunctions-card img {
    position: absolute;
    left: -40px;
    top: 25%;
}

.card-name {
    font-weight: bold;
    padding-bottom: 20px;
}

.card-wrapper {
    padding-left: 40px;
}

.card-btn {
    margin: 0 auto;
}

.questions {
    background-color: var(--bgColor);
}

.questions-img {
    max-width: 100%;
}

.questions-img img {
    width: 100%;
    height: auto;
}

.questions-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-evenly;
}

.questions-text p {
    text-align: center;
}

.questions-text p+p {
    margin-bottom: 20px;
}

.questions-wrapper .button-wrapper {
    grid-template-rows: 60px 60px;
    padding-top: 10px;
}

.contacts-footer {
    display: grid;
    grid-template-columns: 1fr 3fr;
}

.footer .section {
    padding-bottom: 0;
}

.contacts-text {
    display: grid;
    gap: 10px;
    justify-content: center;
    padding: 20px;
}

.footer .contacts-wrapper {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
}

.footer .contacts-wrapper img {
    padding-right: 10px;
}

.contacts-mail a {
    color: var(--color3);
}

.copyright {
    background-color: var(--telegram);
    height: 70px;
    color: var(--brandColorLight);
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
  	border-radius: 20px;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 46px;
    font-weight: 700;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.input-wrapper {
    margin-bottom: 30px;
}

.input-wrapper:last-child {
    margin-bottom: 10px;
}

.input-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.input-wrapper input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.modal-content h2 {
    font-weight: 500;
    font-size: 32px;
    margin-bottom: 50px;
}