:root{
    --primary: #272323;
    --secondary: #EA953B;
    --white: #FFF;
    --green: #37CC84;
    --black: #000;
    --gray: #7E868E;
    --blue: #0075FF;
    --transition: .3s all ease;
}

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

body{
    font-family: Oswald;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--white);
    background-color: var(--primary);
}
.wrapper{
    overflow: hidden;
}
form *{
    font-family: inherit;
}
input, textarea{
    outline: none;
}
button{
    cursor: pointer;
    border: none;
}
a{
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
ul{
    list-style: none;
}

header{
    background-color: var(--primary);
}
.container{
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.header-row{
    display: flex;
    align-items: center;
}
.header-top .header-row{
    justify-content: space-between;
    padding: 39px 0;
}
.main-title{
    font-size: 40px;
    font-weight: 500;
    line-height: 48px;
}
.btn-catalog{
    font-family: "PT Sans Narrow";
    font-size: 15px;
    line-height: 100%;
    padding: 15.5px 76px;
    border-radius: 3px;
    background: var(--secondary);
    transition: var(--transition);
}
.btn-catalog:hover{
    box-shadow: 0 4px 10px 0 #F2994A;
}
.work-time{
    font-size: 16px;
    line-height: 100%;
}
.phone-block{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}
.phone-link{
    font-size: 22px;
    line-height: 24px;
    text-align: right;
}
.link-callback{
    text-align: right;
    font-size: 14px;
    line-height: 100%;
    color: var(--secondary);
    border-bottom: 1px dashed;
}
.header-socials{
    display: flex;
    gap: 20px;
}
.header-socials a{
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background-color: var(--white);
    transition: var(--transition);
}
.header-socials a:hover{
    box-shadow: 0 6px 10px 0 rgba(201, 210, 234, 0.40);
}

.header-mid{
    border-top: 1px solid rgba(255, 255, 255, 0.30);
    border-bottom: 1px solid rgba(255, 255, 255, 0.30);
}
.header-links{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 17.5px 0;
}
.header-links a{
    display: inline-flex;
    font-size: 17px;
    line-height: 100%;
    padding: 5px 0;
    transition: var(--transition);
}
.header-links a:hover{
    color: var(--secondary);
}

.breadcrumb{
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Montserrat;
    font-size: 12px;
    line-height: 20px;
    padding: 20px 0;
}
.breadcrumb span{
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--green);
}


/*  */

.hero{
    position: relative;
    z-index: 1;
    padding: 180px 0 110px 0;
}
.hero::before{
    position: absolute;
    content: '';
    inset: 0;
    background: linear-gradient(90deg, rgba(141, 127, 127, 0.00) 0%, rgba(39, 35, 35, 0.48) 46.63%, rgba(141, 127, 127, 0.00) 100%);
    z-index: -1;
}
.hero-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}
.hero-overlay{
    width: 100%;
    display: flex;
    flex-direction: column;
}
.hero-title{
    text-align: center;
    font-size: 55px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 3.12px;
    text-transform: uppercase;
    text-shadow: 0 0 3.8px rgba(0, 0, 0, 0.25);
    margin: 0 0 50px 0;
}
.hero-desc{
    text-align: center;
    font-size: 28px;
    line-height: 37px;
    text-shadow: 0 0 3.8px rgba(0, 0, 0, 0.25);
    margin: 0 0 50px 0;
}
.hero-actions{
    display: flex;
    justify-content: center;
    gap: 40px;
}
.btn-hero{
    width: 317px;
    font-size: 28px;
    line-height: 37px;
    text-shadow: 0 0 3.8px rgba(0, 0, 0, 0.25);
    padding: 16px 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 3px;
    border: 4px solid var(--secondary);
    box-shadow: 0 4px 10px 0 var(--secondary);
    transition: var(--transition);
}
.btn-hero:hover{
    background: var(--secondary);
}


/* calculator */
.calculator{
    position: relative;
    z-index: 1;
    padding: 100px;
}
.calculator::before{
    position: absolute;
    content: '';
    inset: 0;
    background: linear-gradient(299deg, rgba(39, 35, 35, 0.74) 27.14%, rgba(234, 149, 59, 0.50) 97.23%);
    z-index: -1;
}
.calc-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}
.sectitle{
    font-size: 48px;
    font-weight: 700;
    line-height: 120%;
    margin: 0 0 60px 0;
}
.sectitle span{
    font-weight: 400;
}
.secdesc{
    font-size: 28px;
    line-height: 100%;
}
.calculator .secdesc{
    margin: 0 0 60px 0;
}

.calc-block{
    max-width: 1108px;
    width: 100%;
    margin: 0 auto;
    border-radius: 25px;
    background: var(--primary);
    box-shadow: 0 0 19.4px 11px var(--secondary);
    padding: 60px 50px 120px 60px;
}
.calc-title{
    font-size: 40px;
    line-height: 100%;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 60px 0;
}
.calc-row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 140px;
}
.range-slider{
    width: 350px;
}
.calc-texts .area{
    font-size: 28px;
    line-height: 100%;
    margin: 0 0 30px 0;
}
.total-price{
    font-size: 50px;
    line-height: 100%;
    letter-spacing: 1.44px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}
.calc-btn{
    font-family: Oswald;
    font-size: 28px;
    line-height: 37px;
    border-radius: 3px;
    background: var(--secondary);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 78px;
    transition: var(--transition);
    cursor: pointer;
}
.calc-btn:hover{
    box-shadow: 0 4px 10px 0 var(--secondary);
}
.irs--flat .irs-line{
    height: 24px;
    border-radius: 39px;
    background: rgba(233, 233, 233, 0.16);
}
.irs--flat .irs-bar{
    height: 24px;
    border-radius: 39px;
    background-color: var(--secondary);
}
.irs--flat .irs-handle{
    top: -10px;
    width: 71px;
    height: 71px;
    aspect-ratio: 1/1;
    background-image: url(./img/icon/favicon.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    transform: translateX(-20px);
    cursor: grab;
}
.irs--flat .irs-min,
.irs--flat .irs-max
.irs--flat .irs-from,
.irs--flat .irs-to,
.irs--flat .irs-single,
.irs-min, .irs-max,
.irs--flat .irs-handle>i,
.irs--flat .irs-handle>i:first-child{
    display: none;
}


/* price */
.price{
    padding: 100px 0;
}
.price .sectitle{
    color: var(--secondary);
    margin: 0 0 50px 0;
}
.price .secdesc{
    margin: 0 0 40px 0;
}
.price-table{
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--white);
    margin: 0 0 70px 0;
}
.price-table th{
    background-color: var(--secondary);
    border-bottom: 1px solid var(--white);
    border-right: 1px solid var(--white);
}
.price-table td{
    border-bottom: 1px solid var(--white);
    border-right: 1px solid var(--white);
}
.price-table th:last-child,
.price-table td:last-child{
    border-right: none;
}
.price-table tr:last-child td{
    border-bottom: none;
}
.price-table tbody tr:nth-child(even) td{
    background-color: #5D5959;
}
.price-table td,
.price-table th{
    height: 66px;
}
.price-table th{
    text-align: center;
    font-size: 28px;
    line-height: 37px;
}
.price-table td{
    font-size: 28px;
    line-height: 37px;
    padding: 0 0 0 20px;
}
.price-table td:last-child{
    text-align: center;
}

.read-more{
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-family: Montserrat;
    font-size: 18px;
    line-height: 20px;
    text-transform: uppercase;
    color: var(--secondary);
}


/* service */
.service{
    padding: 60px 0 85px 0;
}
.service .sectitle{
    color: var(--secondary);
    margin: 0 0 30px 0;
}
.service .secdesc{
    margin: 0 0 20px 0;
}
.service-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 75px;
}
.service-item{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.service-top{
    position: relative;
    padding: 16px;
    border-radius: 16px;
    background: var(--primary);
    box-shadow: 0 2px 10px 0 var(--secondary);
}
.service-img{
    width: 100%;
    height: auto;
    object-fit: cover;
    padding: 10px;
    border-radius: 16px;
    background: var(--primary);
    box-shadow: 0 2px 10px 0 var(--secondary);
}
.service-price{
    position: absolute;
    width: 172px;
    bottom: 31px;
    right: 26px;
    font-size: 28px;
    line-height: 100%;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 16px 0;
    background: rgba(235, 150, 60, 0.59);
}
.service-title{
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 1.44px;
    padding: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* form-section */
.form-section{
    padding: 120px 0;
    position: relative;
    z-index: 1;
}
.form-section::before{
    position: absolute;
    content: '';
    inset: 0;
    background: linear-gradient(90deg, rgba(39, 35, 35, 0.48) 99.84%, rgba(141, 127, 127, 0.00) 100%, rgba(141, 127, 127, 0.00) 100%);
    z-index: -1;
}
.form-section_bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    z-index: -2;
}
.section-overlay{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-left{
    margin: 0 0 0 120px;
    width: 580px;
}
.form-section .sectitle{
    color: var(--secondary);
    margin: 0 0 32px 0;
    text-transform: uppercase;
}
.form-section .secdesc{
    font-family: Montserrat;
    line-height: 40px;
    margin: 0 0 40px 0;
    max-width: 434px;
}
.form-inputs{
    display: flex;
    gap: 20px;
    margin: 0 0 20px 0;
}
.form-inputs input{
    font-family: Montserrat;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--black);
    background-position: center left 26px;
    background-repeat: no-repeat;
    background-size: 17px;
    height: 66px;
    padding: 0 3px 0 51px;
    border-radius: 10px;
    border: 1px solid #BAC2CA;
    background-color: #FFF;
    width: -webkit-fill-available;
}
.form-inputs .form-field:nth-child(1) input {
    background-image: url(./img/icon/mail.svg);
}
.form-inputs .form-field:nth-child(2) input {
    background-image: url(./img/icon/phone.svg);
}
.form-inputs input::placeholder{
    color: var(--gray);
}
.submit-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    font-family: "PT Sans Narrow";
    font-size: 18px;
    font-weight: 700;
    line-height: 29.7px;
    text-transform: uppercase;
    color: var(--white);
    border-radius: 3px;
    background: var(--secondary);
    transition: var(--transition);
    padding: 18px 0;
    margin: 0 0 20px 0;
}
.submit-btn:hover{
    box-shadow: 0 4px 10px 0 var(--secondary);
}
.agree{
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.agree input{
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.checkmark{
    font-size: 12px;
    width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--blue);
}
.checkmark::before{
    content: '✔';
    opacity: 0;
    visibility: hidden;
    transition: .3s all ease;
    
}
.agree:has(input:checked) .checkmark::before{
    opacity: 1;
    visibility: visible;
}
.agree p{
    font-family: Montserrat;
    font-size: 11px;
    line-height: 18.15px;
    color: var(--white);
}
.agree p a{
    text-decoration: underline;
}


/* types */
.types{
    padding: 90px 0;
}
.types .sectitle{
    color: var(--secondary);
    margin: 0 0 100px 0;
    text-transform: uppercase;
}
.types-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 0 42px 0;
}
.type-item{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 42px;
}
.type-img{
    max-width: 100%;
    height: auto;
    object-fit: cover;
}
.type-title{
    font-size: 30px;
    font-weight: 700;
    line-height: 37px;
    text-align: center;
}
.types-subtitle{
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 37px;
    margin: 0 0 35px 0;
}
.types-text{
    font-size: 28px;
    line-height: 37px;
}
.types-text span{
    color: var(--secondary);
}
.schema-item + .schema-item{
    margin: 34px 0 0 0;
}
.schema-item:first-child{
    margin: 35px 0 0 0;
}
.schema-row{
    display: flex;
    gap: 10px;
}
.schema-row + .types-text{
    margin: 10px 0 0 0;
}
.schema-row > div{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: auto;
}
.schema-title{
    font-size: 28px;
    line-height: 37px;
}
.schema-title span{
    font-weight: 700;
    color: var(--secondary);
}
.schema-item ol{
    margin: 0 0 0 25px;
}
.schema-item ol li::marker,
.schema-item li span{
    color: var(--secondary);
}

.schema-flex{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 80px 0 0 0;
}
.schema-item2{
    width: 513px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.schema-item2 .schema-title{
    text-align: center;
}

/* advantage */
.advantage{
    padding: 50px 0 100px 0;
}
.advantage .sectitle{
    color: var(--secondary);
    text-transform: uppercase;
}
.advantage-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.advantage-item{
    padding: 40px 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    transition: var(--transition);
}
.advantage-item:hover{
    background-color: var(--secondary);
}
.adv-title{
    font-size: 30px;
    font-weight: 700;
    line-height: 37px;
}
.adv-desc{
    font-size: 28px;
    line-height: 37px;
}
.advantage-item ul{
    margin: 0 0 0 25px;
    list-style: disc;
}
.advantage-item li{
    font-size: 28px;
    line-height: 50px;
}

/* system */
.system{
    padding: 100px 0;
}
.system .sectitle{
    color: var(--secondary);
    margin: 0 0 50px 0;
    text-transform: uppercase;
}
.system .secdesc{
    margin: 0 0 100px 0;
}

.system-grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.system-item{
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.system-img{
    width: 250px;
}
.system-item .adv-title{
    margin: 0 0 20px 0;
}

/* floor */
.floor{
    padding: 100px 0;
}
.floor .sectitle{
    color: var(--secondary);
    margin: 0 0 80px 0;
    text-transform: uppercase;
}
.floor .secdesc{
    margin: 0 0 80px 0;
    max-width: 81%;
}
.floor-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.floor-item{
    padding: 70px 15px;
    background: rgba(119, 119, 119, 0.47);
    border-right: 1px solid var(--white);
}
.floor-item:last-child{
    border: none;
}
.floor-title{
    font-size: 30px;
    font-weight: 700;
    line-height: 37px;
    margin: 0 0 60px 0;
}
.floor-desc{
    font-size: 28px;
    line-height: 37px;
}

/*  */
.cta {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 70px 0;
    overflow: hidden;
}

.cta__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(39, 35, 35, 0.39) 44.71%, rgba(234, 149, 59, 0.39) 93.27%),
        url("./img/cta-bg.png");
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.cta__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 60% 330px;
    gap: 70px;
    align-items: center;
}

.cta .sectitle {
    margin: 0 0 25px 0;
}

.cta__card {
    background: var(--primary);
    padding: 10px;
    border-radius: 20px;
    background: #393633;
    box-shadow: 0 2px 10px 0 #E88D2C;
}
.cta__card-wrap{
    border-radius: 20px;
    background: #282726;
    box-shadow: 0 2px 10px 0 #EA953B;
    padding: 42px 40px 26px 40px;
}

.cta__card-title {
    font-size: 24px;
    line-height: 36px;
    text-align: center;
    margin: 0 0 22px 0;
}

.form {
    display: grid;
}
.form__field + .form__field{
    margin: 27px 0 0 0;
}
.form__input {
    width: 100%;
    padding: 14px 14px;
    border-radius: 6px;
    border: none;
    outline: none;
    background: rgba(201, 210, 234, 0.10);
    font-family: Oswald;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--white);
}

.form__input::placeholder {
    color: rgba(255, 255, 255, .72)
}

.form__input:focus {
    box-shadow: 0 4px 4px 0 #EA953B inset;
}

.form__btn {
    margin: 14px 0 20px 0;
    width: 100%;
    padding: 10px 16px;
    border: none;
    color: #fff;
    font-family: "PT Sans Narrow";
    font-size: 18px;
    font-weight: 700;
    line-height: 29.7px;
    cursor: pointer;
    border-radius: 3px;
    background: #E98D2C;
    transition: var(--transition);
}

.form__btn:hover {
    box-shadow: 0 4px 10px 0 #EA953B;
}
.form__btn:active {
    transform: translateY(1px)
}

.cta__card .agree p{
    font-size: 12px;
    line-height: 17px;
    text-align: center;
}

/* ===== Footer (Bottom section) ===== */
.footer {
    background: var(--primary);
    color: #fff;
}

.footer__grid {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 260px 160px 260px 1fr 260px;
    gap: 26px;
    align-items: start;
}

.footer__brand-title {
    margin: 0 0 28px;
    font-size: 25px;
    font-style: normal;
    font-weight: 500;
    line-height: 29.7px;
}

.footer__rating {
    max-width: 150px;
}
.footer__navs-group {
    display: contents;
}
.footer__rating-mobile {
    display: none;
}
.footer__nav {
    display: grid;
    gap: 0px
}

.footer__link {
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 40px;
    text-transform: uppercase;
    color: var(--white);
}

a.footer__link:hover {
    color: var(--secondary);
}

.footer__btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    padding: 0 14px;
    font-family: "PT Sans Narrow";
    font-size: 15px;
    line-height: 46px;
    text-transform: uppercase;
    border-radius: 3px;
    background: #E98D2C;
    transition: var(--transition);
}
.footer__btn:hover{
    box-shadow: 0 4px 10px 0 #EA953B;
}
.footer__muted {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
}

.footer__contacts {
    display: grid;
    gap: 10px;
    justify-items: start;
    text-align: left;
    max-width: 184px;
    justify-self: flex-end;
}

.footer__hours {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.footer__phone {
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.footer__mail {
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; 
    border-bottom: 1px dashed rgba(255, 255, 255, .35);
}

.footer__bottom {
    padding: 14px 0;
    background-color: #333134;
}

.footer__bottom-inner {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.footer__policy {
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-decoration: underline;
}

/* Form Validation Styles */
.form-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.error-text {
    color: #ff4d4d;
    font-family: Montserrat;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    text-align: left;
}

input.error {
    border-color: #ff4d4d !important;
}

.form__field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

/* Helper classes for visibility toggles */
.mobile-show {
    display: none !important;
}
.mobile-show-inline {
    display: none !important;
}
.mobile-hide {
    display: block !important;
}

/* --- RESPONSIVE WORK FOR HEADER & HERO --- */

/* Default styles for new elements */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 46px;
    height: 46px;
    padding: 12px;
    border-radius: 4px;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle:hover {
    box-shadow: 0 6px 15px rgba(234, 149, 59, 0.3);
}

.btn-hero-mobile {
    display: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(39, 35, 35, 0.98);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
    padding: 60px 20px 40px;
}

.menu-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.menu-close:hover {
    color: var(--secondary);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.mobile-links a {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 500;
}

.mobile-menu .btn-catalog {
    width: 100%;
    text-align: center;
}

.mobile-menu .phone-block {
    align-items: center;
}

/* Media Queries */
@media (max-width: 1400px) {
    .main-title {
        font-size: 32px;
        font-weight: 500;
        line-height: 36px;
        max-width: 230px;
    }
    .btn-catalog{
        padding: 15.5px 30px;
    }
    .type-title {
        font-size: 26px;
        line-height: 1.2;
    }
    .sectitle {
        font-size: 44px;
        margin: 0 0 40px 0;
    }
    .secdesc {
        font-size: 24px;
    }
    .system .secdesc {
        margin: 0 0 80px 0;
    }
    .floor-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 40px;
    }
    .floor-desc {
        font-size: 22px;
        line-height: 1.3;
    }
}

@media (max-width: 1200px){
    .section-left{
        margin: 0;
        width: 100%;
        max-width: 60%;
    }
    .form-inputs{
        flex-wrap: wrap;
    }
    .prize-img{
        max-width: 35%;
        height: auto;
        object-fit: cover;
    }
    .type-title {
        font-size: 22px;
        line-height: 1.2;
    }
    .adv-title{
        font-size: 24px;
        line-height: 28px;
    }
    .adv-desc {
        font-size: 22px;
        line-height: 25px;
    }
    .advantage-item li {
        font-size: 20px;
        line-height: 30px;
    }
    .sectitle {
        font-size: 38px;
    }
    .secdesc {
        font-size: 20px;
    }
    .system .secdesc {
        margin: 0 0 60px 0;
    }
    .floor-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 30px;
    }
    .floor-desc {
        font-size: 18px;
        line-height: 1.35;
    }
    .cta__grid {
        grid-template-columns: 1fr 330px;
        gap: 40px;
    }
    .footer__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}
/* Tablet & Smaller Screens (max-width: 1024px) */
@media (max-width: 1024px) {
    .header-top .header-row {
        padding: 25px 0;
    }
    
    .main-title {
        font-size: 30px;
        line-height: 36px;
    }

    .header-top .btn-catalog,
    .header-top .work-time,
    .header-top .phone-block {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
    
    .header-links {
        gap: 30px;
    }
    
    .header-links a {
        font-size: 15px;
    }

    /* Hero section adjustments */
    .hero {
        padding: 120px 0 80px 0;
    }

    .hero-title {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .hero-desc {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 40px;
    }

    .btn-hero {
        width: 260px;
        font-size: 22px;
        line-height: 30px;
    }
    .phone-block{
        gap: 10px;
    }
    .calculator {
        padding: 60px 0;
    }
    .calc-block {
        padding: 40px 30px;
    }
    .calc-row {
        gap: 60px;
    }
    .type-title {
        font-size: 18px;
        line-height: 1.2;
    }
    .system-grid {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .floor-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 25px;
    }
    .floor-desc {
        font-size: 16px;
        line-height: 1.4;
    }
    .floor-item {
        padding: 40px 15px;
    }
    .floor .sectitle {
        font-size: 34px;
        margin-bottom: 40px;
    }
    .floor .secdesc {
        margin-bottom: 40px;
    }
    .cta {
        padding: 60px 0;
    }
    .cta__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .cta__card {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    .main-title {
        font-size: 24px;
        line-height: 30px;
        max-width: 60%;
    }
    
    /* Header layout changes */
    .header-top .logo {
        display: none; /* Hide desktop logo image, main-title is text logo */
    }

    .header-row {
        justify-content: space-between;
    }

    .header-socials {
        gap: 10px;
    }

    .header-socials a {
        width: 46px;
        height: 46px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    /* Sub-nav horizontal scroll */
    .header-mid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .header-mid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .header-links {
        width: max-content;
        padding: 15px 0;
        gap: 25px;
    }

    .header-links a {
        font-size: 15px;
        white-space: nowrap;
    }

    /* Breadcrumbs styling for mobile */
    .breadcrumb {
        padding: 15px 0;
    }

    /* Hero mobile responsive styling */
    .hero {
        padding: 90px 0 70px 0;
        text-align: center;
    }

    .hero-overlay {
        align-items: center;
    }

    .hero-title {
        font-size: 32px;
        line-height: 1.1;
        letter-spacing: 1px;
        margin-bottom: 25px;
        font-weight: 700;
    }

    .hero-title br {
        display: none; /* allow text wrapping naturally */
    }

    .hero-desc {
        font-size: 18px;
        line-height: 1.4;
        margin-bottom: 35px;
        max-width: 100%;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }

    .hero-actions {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-hero {
        display: none;
    }

    /* The orange RASSCHITATЬ STOIMOSTЬ button */
    .btn-hero-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 350px;
        padding: 18px 24px;
        background-color: var(--secondary);
        color: var(--white);
        font-family: Oswald, sans-serif;
        font-size: 20px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(234, 149, 59, 0.4);
        transition: var(--transition);
        text-align: left;
    }

    .btn-hero-mobile:hover {
        box-shadow: 0 6px 20px rgba(234, 149, 59, 0.6);
        transform: translateY(-2px);
    }

    .btn-hero-mobile .dots-arrow {
        font-size: 22px;
        line-height: 1;
        margin-left: auto;
        letter-spacing: 0.5px;
        display: inline-flex;
        align-items: center;
    }

    /* Visibility helper overrides */
    .mobile-show {
        display: block !important;
    }
    .mobile-hide {
        display: none !important;
    }

    /* Calculator Section Mobile */
    .calculator {
        padding: 40px 0;
    }
    .calc-block {
        padding: 40px 20px;
        border-radius: 20px;
        box-shadow: 0 0 20px 5px var(--secondary);
    }
    .calc-block .sectitle.mobile-show {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 12px;
        color: var(--white);
        text-transform: uppercase;
        font-weight: 700;
        text-align: left;
    }
    .calc-block .secdesc.mobile-show {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 30px;
        color: var(--white);
        text-align: left;
    }
    .calc-row {
        flex-direction: column;
        gap: 30px;
        align-items: stretch;
    }
    .range-slider {
        width: 100%;
        padding: 0 10px;
    }
    .irs--flat .irs-handle {
        width: 50px;
        height: 50px;
        top: 4px;
    }
    .calc-texts {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    .calc-texts .area {
        grid-column: span 2;
        font-size: 18px;
        margin: 0;
        line-height: 1.4;
        text-align: left;
    }
    .total-price {
        grid-column: 1;
        font-size: 32px;
        margin: 0;
        line-height: 1;
        text-align: left;
        font-weight: 700;
    }
    .calc-btn {
        grid-column: 2;
        font-size: 18px;
        padding: 12px 15px;
        line-height: 1.2;
        text-align: center;
        justify-self: end;
        width: 100%;
        max-width: 160px;
    }

    /* Visibility helper overrides */
    .mobile-show-inline {
        display: inline !important;
    }

    /* Price Section Mobile */
    .price {
        padding: 40px 0;
    }
    .price .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .price .secdesc {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 30px;
    }
    .price-table {
        margin-bottom: 35px;
    }
    .price-table th {
        font-size: 16px;
        line-height: 1.2;
        height: auto;
        padding: 15px 10px;
    }
    .price-table td {
        font-size: 16px;
        line-height: 1.3;
        height: auto;
        padding: 12px 10px;
    }
    .price-table th:first-child,
    .price-table td:first-child {
        width: 75%;
    }
    .price-table th:last-child,
    .price-table td:last-child {
        width: 25%;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    .read-more {
        display: flex;
        justify-content: center;
        margin: 0 auto;
        width: fit-content;
    }

    /* Service Section Mobile */
    .service {
        padding: 40px 0;
    }
    .service .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .service .secdesc {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 35px;
    }
    .service-row {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    .service-item {
        max-width: 420px;
        margin: 0 auto;
    }
    .service-top {
        padding: 12px;
        border-radius: 12px;
    }
    .service-img {
        padding: 8px;
        border-radius: 12px;
        width: 100%;
        height: auto;
        display: block;
    }
    .service-price {
        font-size: 20px;
        width: 130px;
        padding: 10px 0;
        bottom: 25px;
        right: 25px;
        border-radius: 12px 0;
    }
    .service-title {
        font-size: 20px;
        line-height: 1.2;
    }

    /* Form Section Mobile */
    .form-section {
        padding: 50px 0;
    }
    .form-section .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 20px;
        text-align: left;
    }
    .form-section .secdesc {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 30px;
        max-width: 100%;
        text-align: left;
    }
    .section-overlay {
        flex-direction: column;
        align-items: stretch;
    }
    .section-left {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    .section-overlay > img {
        display: none;
    }
    .form-inputs {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
    .form-inputs input {
        height: 60px;
        font-size: 15px;
        border-radius: 8px;
    }
    .submit-btn {
        padding: 16px 0;
        font-size: 16px;
        margin-bottom: 15px;
    }

    /* Types Section Mobile */
    .types {
        padding: 40px 0;
    }
    .types .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 30px;
    }
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    .type-item {
        gap: 15px;
    }
    .type-title {
        font-size: 16px;
        line-height: 1.2;
    }
    .types-subtitle {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    .types-text {
        font-size: 14px;
        line-height: 1.4;
    }
    .schema-title {
        font-size: 14px;
        line-height: 1.4;
    }
    .schema-row img {
        max-width: 175px;
        height: auto;
        object-fit: contain;
        align-self: flex-start;
    }
    .schema-flex {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
        align-items: center;
    }
    .schema-item2 {
        width: 100%;
        max-width: 400px;
    }
    .schema-item2 img {
        width: 100%;
        height: auto;
    }

    /* Advantage Section Mobile */
    .advantage {
        padding: 40px 0;
    }
    .advantage .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 30px;
    }
    .advantage-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: 25px;
    }
    .advantage-item {
        padding: 25px 20px;
        gap: 15px;
    }
    .advantage-item:nth-child(1) {
        background-color: var(--secondary);
    }
    .adv-title {
        font-size: 22px;
        line-height: 1.2;
    }
    .adv-desc {
        font-size: 14px;
        line-height: 1.4;
    }
    .advantage-item ul {
        margin-left: 20px;
    }
    .advantage-item li {
        font-size: 14px;
        line-height: 1.6;
    }

    /* System Section Mobile */
    .system {
        padding: 40px 0;
    }
    .system .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 25px;
    }
    .system .secdesc {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 35px;
    }
    .system-item {
        display: block; /* Disable flex for float wraps */
        overflow: hidden;
        width: 100%;
    }
    .system-item:nth-child(1) .system-img {
        float: left;
        margin: 0 15px 10px 0;
        width: 160px;
        height: auto;
    }
    .system-item:nth-child(2) .system-img {
        float: right;
        margin: 0 0 10px 15px;
        width: 160px;
        height: auto;
    }
    .system-item:nth-child(2) {
        text-align: right;
    }
    .system-item .adv-title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 12px;
        font-weight: 700;
    }
    .system-item .adv-desc {
        font-size: 14px;
        line-height: 1.4;
    }

    /* Floor Section Mobile */
    .floor {
        padding: 40px 0;
    }
    .floor .sectitle {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    .floor .secdesc {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 35px;
        max-width: 100%;
    }
    .floor-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .floor-item {
        padding: 30px 15px;
        border-right: none;
        border-bottom: 1px solid var(--white);
    }
    .floor-item:last-child {
        border-bottom: none;
    }
    .floor-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 25px;
    }
    .floor-desc {
        font-size: 14px;
        line-height: 1.4;
    }

    /* CTA Section Mobile */
    .cta {
        padding: 50px 0;
        min-height: auto;
    }
    .cta__grid {
        grid-template-columns: 1fr;
        gap: 40px;
        justify-items: center;
    }
    .cta__content {
        text-align: center;
    }
    .cta__card {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }
    .cta__card-wrap {
        padding: 30px 20px;
    }
    .cta__card-title {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    .form__input {
        font-size: 15px;
        padding: 12px 14px;
    }
    .form__btn {
        font-size: 16px;
        padding: 12px 16px;
        margin: 10px 0 15px 0;
    }

    /* Footer Section Mobile */
    .footer__brand.mobile-hide {
        display: none !important;
    }
    .footer__grid {
        padding: 40px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    .footer__navs-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px 40px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .footer__navs-group .footer__nav {
        display: contents;
    }
    .footer__navs-group .footer__nav:nth-of-type(1) .footer__link:nth-child(1) { /* ГЛАВНАЯ */
        grid-row: 1;
        grid-column: 1;
    }
    .footer__navs-group .footer__nav:nth-of-type(1) .footer__link:nth-child(3) { /* МОНТАЖ */
        grid-row: 1;
        grid-column: 2;
    }
    .footer__navs-group .footer__nav:nth-of-type(1) .footer__link:nth-child(2) { /* ДОСТАВКА */
        grid-row: 2;
        grid-column: 1;
    }
    .footer__navs-group .footer__nav:nth-of-type(2) .footer__link:nth-child(3) { /* КОНТАКТЫ */
        grid-row: 2;
        grid-column: 2;
    }
    .footer__navs-group .footer__nav:nth-of-type(2) .footer__link:nth-child(1) { /* ГОТОВЫЕ КОМПЛЕКТЫ ДЫМОХОДА */
        grid-row: 3;
        grid-column: 1;
    }
    .footer__navs-group .footer__nav:nth-of-type(2) .footer__link:nth-child(2) { /* УСТАНОВКА ПЕЧЕЙ И ДЫМОХОДОВ */
        grid-row: 3;
        grid-column: 2;
    }
    .footer__navs-group .footer__btn { /* КАТАЛОГ button */
        grid-row: 4;
        grid-column: 1 / span 2;
        justify-self: center;
        margin-top: 15px;
        box-shadow: 0 4px 15px rgba(234, 149, 59, 0.5);
    }
    .footer__link {
        font-size: 15px;
        line-height: 1.3 !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding-bottom: 10px;
        width: 100%;
        text-transform: uppercase;
        display: block;
    }
    .footer__company {
        text-align: center;
        display: grid;
        gap: 8px;
    }
    .footer__company .footer__link {
        border-bottom: none;
        padding-bottom: 0;
        line-height: 1.2 !important;
    }
    .footer__contacts {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        max-width: 100%;
    }
    .footer__social-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 25px;
        width: 100%;
    }
    .footer__social-row .footer__rating-mobile {
        display: block;
        max-width: 150px;
    }
    .footer__bottom-inner {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
}

/* Extra small mobile screens (max-width: 576px) */
@media (max-width: 576px) {
    .main-title {
        font-size: 20px;
        line-height: 24px;
        max-width: 50%;
    }

    .header-socials a,
    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .header-socials a img {
        max-width: 18px;
    }

    .menu-toggle {
        padding: 10px 8px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-desc {
        font-size: 16px;
    }

    .btn-hero-mobile {
        font-size: 18px;
        padding: 15px 20px;
    }

    /* Extra small calculator overrides */
    .calc-block {
        padding: 30px 15px;
    }
    .calc-block .sectitle.mobile-show {
        font-size: 20px;
    }
    .calc-block .secdesc.mobile-show {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .total-price {
        font-size: 26px;
    }
    .calc-btn {
        font-size: 16px;
        padding: 10px 12px;
        max-width: 135px;
    }

    /* Extra small price overrides */
    .price .sectitle {
        font-size: 22px;
    }
    .price-table th {
        font-size: 14px;
        padding: 12px 8px;
    }
    .price-table td {
        font-size: 13px;
        padding: 10px 8px;
    }

    /* Extra small service overrides */
    .service-price {
        font-size: 18px;
        width: 120px;
    }
    .service-title {
        font-size: 18px;
    }

    /* Extra small form-section overrides */
    .form-section .sectitle {
        font-size: 24px;
    }
    .form-section .secdesc {
        font-size: 14px;
        line-height: 1.3;
    }
    .form-inputs input {
        height: 54px;
        font-size: 14px;
        background-position: center left 18px;
        padding-left: 42px;
    }
    .submit-btn {
        padding: 14px 0;
        font-size: 15px;
    }

    /* Extra small types overrides */
    .types .sectitle {
        font-size: 22px;
    }
    .type-title {
        font-size: 14px;
    }
    .types-subtitle {
        font-size: 15px;
    }
    .types-text,
    .schema-title,
    .schema-item ol li {
        font-size: 13px;
        line-height: 1.35;
    }

    /* Extra small advantage overrides */
    .advantage .sectitle {
        font-size: 22px;
    }
    .adv-title {
        font-size: 18px;
    }
    .adv-desc,
    .advantage-item li {
        font-size: 13px;
        line-height: 1.35;
    }

    /* Extra small system overrides */
    .system .sectitle {
        font-size: 22px;
    }
    .system .secdesc {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 25px;
    }
    .system-item:nth-child(1) .system-img {
        width: 140px;
        margin: 0 12px 8px 0;
    }
    .system-item:nth-child(2) .system-img {
        width: 140px;
        margin: 0 0 8px 12px;
    }
    .system-item .adv-title {
        font-size: 16px;
    }
    .system-item .adv-desc {
        font-size: 13px;
        line-height: 1.35;
    }

    /* Extra small floor overrides */
    .floor .sectitle {
        font-size: 22px;
    }
    .floor .secdesc {
        font-size: 14px;
        line-height: 1.35;
        margin-bottom: 25px;
    }
    .floor-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    .floor-desc {
        font-size: 13px;
        line-height: 1.35;
    }

    /* Extra small CTA overrides */
    .cta {
        padding: 40px 0;
    }
    .cta .sectitle {
        font-size: 24px;
    }
    .cta .secdesc {
        font-size: 14px;
        line-height: 1.35;
    }
    .cta__card-wrap {
        padding: 25px 15px;
    }
    .cta__card-title {
        font-size: 20px;
    }
    .form__field + .form__field {
        margin-top: 20px;
    }
    .cta__card .agree p {
        font-size: 11px;
        line-height: 1.4;
    }

    /* Extra small footer overrides */
    .footer__navs-group {
        gap: 12px 20px;
    }
    .footer__link {
        font-size: 13px;
        line-height: 1.3 !important;
        padding-bottom: 8px;
    }
    .footer__company .footer__link {
        line-height: 1.2 !important;
    }
    .footer__btn {
        margin-top: 10px;
        width: 180px;
        line-height: 40px;
        font-size: 14px;
    }
    .footer__muted {
        font-size: 13px;
        line-height: 22px;
    }
    .footer__hours {
        font-size: 13px;
        line-height: 18px;
    }
    .footer__phone {
        font-size: 18px;
        line-height: 18px;
    }
    .footer__mail {
        font-size: 15px;
        line-height: 18px;
    }
    .footer__social-row {
        gap: 15px;
        margin-top: 15px;
    }
}