/* уменьшаем сайт для ноутбуков */
@media (min-width: 992px) and (max-width: 1700px) {
    body {
        transform: scale(0.8);
        transform-origin: top left;
        width: 125%; /* компенсируем уменьшение масштаба */
    }
}

html {
    position: relative;
    max-height: 100%;
}

body {
    margin: 0;
}


a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

a:hover {
    color: inherit;
}

a:active {
    color: inherit;
}


.container {
    max-width: 1445px;
    width: 100%;
    margin: 0 auto;
    padding-top: 50px;
}

.main-banner {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 50px;
    
}



.banner-slide {
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    width: 100%;
    min-height: 520px;
}

.swiper-slide {
    width: 100%;
    flex-shrink: 0;
}
.banner-content {
    color: #222222;
    max-width: 363px;
    padding-left: 90px;
}

.banner-content .bold {
    color: #222222;
    font-size: 64px;
    font-weight: 900 !important;
    line-height: 58px;
}
.banner-content .bold span{
    color: #FF7F00;
}


.banner-content .sub {
    font-weight: 400;
    font-style: Regular;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #222222;
    margin-top: 10px;
}


.banner-content .note {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #222222;
}

.banner-btn {
    background-color: #fb842f;
    border: none;
    padding: 12px 26px;
    border-radius: 25px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
    height: 50px;
    width: 182px;
    box-sizing: border-box;
}

.banner-btn:hover {
    background-color: #e96e1e;
}

/* Пагинация */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ddd;
    opacity: 1;
    margin: 0 6px !important;
    border-radius: 50%;
    transition: 0.3s;
}

.swiper-pagination-bullet-active {
    background: #fb842f;
}

.custom-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    content: none !important;
    display: none !important;
}





/* Услуги на главной */ 

.uslugi-section {
}

.uslugi-section .container {
    max-width: 1445px;
    margin: 0 auto;
}

.uslugi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    gap: 30px;
}

.usluga-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.usluga-image img {
    width: 100%;
    height: 164px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
}

.usluga-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.usluga-content h3 {
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #222;
    margin-bottom: -5px;
}

.usluga-content p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #444444;
}

.usluga-btn {
    display: inline-block;
    margin-top: 5px;
    background-color: #F0F0F0;
    color: #444444;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    align-self: flex-start;
    width: 96px;
    height: 28px;
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    padding-top: 5px;
}

.usluga-btn:hover {
    background-color: #e67116;
    color: white;
}




/* Этапы работы */

.stages-section {
    background: #fff;
    text-align: center;
}

.stages-section .container {
    max-width: 1445px;
    margin: 0 auto;
}

.stages-title {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 42px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #222222;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 35px;
    justify-content: center;
    margin-top: 50px;
}

.stage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    margin: 0 auto;
}

.stage-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.stage-item h3 {
    font-family: Inter;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 22px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #222;
    margin-bottom: 5px;
}

.stage-item p {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    color: #444444;
}



/* ФОС НА ГЛАВНОЙ */ 
.calc-form-section {
    width: 100%;
    background-size: contain;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.calc-form-container {
    background: url('/wp-content/uploads/2025/07/Frame-21.png') no-repeat right center;
    width: 1445px;
    height: 330px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-sizing: border-box;
}

.calc-cf7 {
    max-width: 725px;
    width: 100%;
    padding-top: 30px;
}

.calc-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    max-height: 70px;
}

.form-col {
    width: 100%;
    width: 350px;
}

.form-input {
    width: 350px !important;
    height: 56px;
    border-radius: 8px !important;
    padding: 0 16px;
    font-size: 16px;
    background: #fff;
    border: none;
    color: #000;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    transition: box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.form-submit {
    width: 100%;
    height: 56px;
    border-radius: 8px !important;
    border: none;
    background: #222222 !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.form-submit:hover {
    background: #333;
    transform: translateY(-1px);
}

.checkbox-wrap {
    display: flex;
    align-items: center !important;
    font-size: 14px;
    color: #fff;
    gap: 5px;
    max-height: 20px;
}

.checkbox-wrap input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #000;
    border-radius: 5px !important;
}

.privacy-text{
    color: white !important;
    margin-top: -50px;
}
.privacy-text a {
    text-decoration: underline;
}

select.form-input {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000" height="16" viewBox="0 0 24 24" width="16" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}



:root { --field-h: 52px; --radius: 10px; }

.area-group{
    position: relative;
}

.area-group .form-input{
    width: 100%;
    height: var(--field-h);
    border-radius: var(--radius);
    padding-right: 84px; 
}


.area-group .form-units{
    position: absolute;
    bottom: 38px;
    left: 272px;
    height: calc(var(--field-h) - 4px);
    width: 78px;
    min-width: 78px;
    border-left: 1px solid rgba(0,0,0,.1);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0 28px 0 10px;
    background: #fff;
    appearance: none;
    line-height: 1;
    cursor: pointer;
}


.area-group .form-units{
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}


.area-group .form-input, .area-group .form-units{
    border: 1px solid rgba(0,0,0,.15);
}


.area-group .form-input:focus,
.area-group .form-units:focus{
    outline: none;
    border-color: rgba(0,0,0,.3);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}


@media (max-width: 480px){
    :root { --field-h: 48px; }
    .area-group .form-units{ width: 72px; min-width:72px; }
    .area-group .form-input{ padding-right: 78px; }
}

/* Мобильный адаптив */
@media (max-width: 768px) {
    .calc-form-container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }

    .calc-cf7 {
        max-width: 100%;
    }

    .calc-title {
        font-size: 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-col {
        max-width: 100%;
    }
}



/* Наши готовые работы */ 
.completed-works-slider {
    width: 100%;
}

.completed-works-slider .container {
    width: 1445px;
    margin: 0 auto;
}

.completed-works-slider h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
}

.completedSwiper {
    position: relative;
}

.completedSwiper .swiper-wrapper {
    display: flex;
}

.completedSwiper .swiper-wrapper{
    gap: 50px;
}

.work-card {
    width: 698px;
    height: 460px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    display: flex;
    align-items: flex-end;
}

.work-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 60%);
    z-index: 1;
}


.work-card__content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #fff;
    z-index: 2;
}

.work-card__content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.work-card__content p {
    font-size: 14px;
    line-height: 1.4;
}

.swiper-slide {
    flex-shrink: 0;

}

.custom-arrow {
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 8px;
}

.completed-button-prev {
    left: 10px;
    background-image: url('/wp-content/uploads/2025/07/Vector-9.png'); 
}

.completed-button-next {
    right: 10px;
    background-image: url('/wp-content/uploads/2025/07/Vector-10.png'); 
}


@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 20px;
    }

    .banner-slide {
        position: relative;
        padding: 40px 0;
    }

    /* Полупрозрачный градиент поверх баннера */
    .banner-slide::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(240,240,240,0.7) 0%, rgba(250,250,250,0.9) 100%);
        z-index: 1;
    }

    .banner-content {
        position: relative;
        z-index: 2;
        padding-left: 0;
        max-width: 90%;
        text-align: left;
    }

    .banner-content .bold {
        font-size: 32px;
        line-height: 1.2;
        text-align: left;
    }

    .banner-content .sub {
        font-size: 20px;
        margin-top: 8px;
    }

    .banner-content .note {
        font-size: 14px;
        margin-top: 12px;
        line-height: 1.4;
    }

    .banner-btn {
        width: 150px;
        height: 44px;
        font-size: 14px;
        padding: 10px 0;
        margin-top: 20px;
    }

    .custom-arrow {
        display: none;
    }

    .swiper-pagination {
        bottom: 12px;
    }
}

/* Десктопная сетка */
.uslugi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 30px;
}

/* Мобильный слайдер */
@media (max-width: 768px) {
  .uslugi-slider-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-left: 16px;
    margin-left: -16px;
    width: 360px;
    margin: 0 auto;
  }

  .uslugi-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding: 10px 0;
  }

  .usluga-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    min-width: 360px !important;
  }

  .usluga-image img {
    height: 180px;
    object-fit: cover;
  }

  .usluga-content {
    padding: 10px;
  }

  .usluga-content h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .usluga-content p {
    font-size: 14px;
    line-height: 1.4;
  }

  .usluga-btn {
    width: 96px;
    height: 28px;
    font-size: 13px;
  }
}


/* ФОС АДАПТИВ */
@media (max-width: 768px) {
  .calc-form-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    padding: 30px 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fb842f 0%, #ffb067 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  }

  .calc-cf7 {
    width: 100%;
    padding-top: 0;
  }

  .calc-title {
    font-size: 28px;
    text-align: left;
    margin-bottom: 16px;
    color: #fff;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
    max-height: none;
    width: 100%;
  }

  .form-col {
    width: 100% !important;
  }

  .form-input {
    width: 100% !important;
    font-size: 15px;
    height: 52px;
  }

  .form-submit {
    width: 100% !important;
    font-size: 15px;
    height: 52px;
    background: #222 !important;
  }

  .checkbox-wrap {
    margin-top: 20px;
    align-items: flex-start;
    max-height: none;
    line-height: 1.4;
  }

  .privacy-text {
    margin-top: 0;
    font-size: 13px;
    color: #fff !important;
  }
}


@media (max-width: 768px) {
  .completed-works-slider {
    padding: 0 16px;
  }

  .completed-works-slider h2 {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: left;
  }

  .completedSwiper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    position: relative;
  }

  .completedSwiper .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-left: 4px;
  }

  .completedSwiper .swiper-slide {
    scroll-snap-align: center;
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0; /* отключаем фиксированный отступ */
  }

  .work-card {
    height: 360px;
  }

  .work-card__content h3 {
    font-size: 18px;
  }

  .work-card__content p {
    font-size: 13px;
  }

  .custom-arrow {
    display: none;
  }
}






/* МОДАЛЬНОЕ ОКНО НА БАННЕРЕ */

.modal{position:fixed;inset:0;display:none;z-index:1000;}
.modal.is-open{display:block;}
.modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.5);}
.modal__dialog{
    position:relative;max-width:400px;margin:6vh auto;background:#fff;border-radius:14px;
    padding:28px 24px;box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.modal__close{
    position:absolute;top:10px;right:12px;width:36px;height:36px;border:0;background:transparent;
    font-size:28px;line-height:1;cursor:pointer;opacity:.6;
}
.modal__close:hover{opacity:1;}
.modal__title{margin:0 0 16px;font-size:22px;font-weight:700;}
.modal__form{margin-top:8px;}





@media (min-width: 1024px) {
  /* Белый текст только на втором слайде баннера */
  .main-banner .swiper-slide:nth-child(2) .banner-content,
  .main-banner .swiper-slide:nth-child(2) .banner-content .bold,
  .main-banner .swiper-slide:nth-child(2) .banner-content .sub,
  .main-banner .swiper-slide:nth-child(2) .banner-content .note {
      color: #fff;
  }

  .main-banner .swiper-slide:nth-child(2) {
      background-color: rgba(255, 255, 255, 0.25);
      border: 1px solid #fff;
      color: #fff;
  }

  .main-banner .swiper-slide:nth-child(2) .banner-btn:hover {
      background-color: #fff;
      color: #222;
  }
}
