/* ============================================
   HEADER STYLES
   ============================================ */

/* Основные стили header */
.header {
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    font-weight: 700;
    order: 1;
}

.navbar-brand img {
    margin-right: 0.5rem;
}

/* Навигационные ссылки */
.nav-link {
    color: #333 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #0d6efd !important;
}

/* Dropdown меню */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

/* Кнопки контактов и поиска (без границ) */
.btn-search,
.btn-contact,
.btn-social,
.btn-callback,
.btn-mobile-phone {
    background: none;
    border: none;
    color: #333;
    padding: 0.1rem 0.2rem;
    transition: all 0.3s ease;
}

.btn-search:hover,
.btn-contact:hover,
.btn-social:hover,
.btn-callback:hover,
.btn-mobile-phone:hover {
    background: none;
    border: none;
    color: #0d6efd;
}

.btn-callback {
    background-color: #333;
    color: #fff;
    border-radius: 0.375rem;
    padding: 0.5rem 1.5rem;
}

.btn-callback:hover {
    background-color: #555;
    color: #fff;
}

/* ============================================
   АДАПТИВНОСТЬ (Мобильные устройства)
   ============================================ */
.container-fluid.px-5 {
    padding-left: 10% !important;
    padding-right: 10% !important;
}

@media (max-width: 1491.98px) {
    .container-fluid.px-5 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 1220.98px) {
    .container-fluid.px-5 {
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
    }

    .navbar-nav {
    / / border-top: 1 px solid #e9ecef;
    / / padding-top: 1 rem;
    / / margin-top: 1 rem;
    }

    .nav-link {
    / / padding: 0.75 rem 0 !important;
    }

    .dropdown-menu {
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ============================================ */

/* Отступы и промежутки */
.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 1rem;
}

/* Плавные переходы */
.transition-all {
    transition: all 0.3s ease;
}

.dropdown-toggle::after {
    display: none !important;
}

/* Навигационные ссылки - убираем синий при hover */
.nav-link:hover {
    color: #666 !important; /* Серый вместо синего */
}

/* Dropdown элементы - убираем синий при hover */
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #666 !important; /* Серый вместо синего */
}

/* Кнопки контактов и поиска - убираем синий при hover */
.btn-search:hover,
.btn-contact:hover,
.btn-social:hover,
.btn-mobile-phone:hover {
    background: none;
    border: none;
    color: #666; /* Серый вместо синего */
}


/* ============================================
   BANNER STYLES
   ============================================ */


.banner {
    width: 100%;
    background-color: #f8f9fa;
}

.banner__container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 75px);
    width: 100%;
    position: relative;
    font-family: Manrope;
}

.banner__main {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.banner__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner__image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.5) 0%, /* Чёрный у левого края (почти непрозрачный) */ rgba(0, 0, 0, 0.35) 20%, /* постепенно... */ rgba(0, 0, 0, 0.2) 50%,
            rgba(0, 0, 0, 0) 80% /* Полностью прозрачный у правого края */
    );
    pointer-events: none; /* Чтобы клики проходили сквозь затемнение */
}

.banner__image img {
    object-fit: cover;
    object-position: center;

}

.banner__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Информационный блок */
.banner__info-block {
    position: absolute;
    z-index: 10;
    color: white;
    bottom: 40px;
    left: 110px;
}

.banner__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 600px;
    padding-bottom: 40px;
}

.banner__title {
    font-size: 72px;
    color: #FFF;
    font-style: normal;
    font-weight: 600;
    line-height: 100%;
}

.banner__subtitle {
    font-size: 20px;
    color: #FFF;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    opacity: 0.9;
}

/* Слайдер */

.banner__slider .swiper-wrapper {
    display: flex;
    transition-timing-function: ease-out;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box;
}

.swiper-android .swiper-slide, .swiper-ios .swiper-slide, .swiper-wrapper {
    transform: translate3d(0px, 0, 0);
}

.banner__slider-container--desktop {
    width: 533px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner__slider.swiper-fade .swiper-slide {
    transition-duration: 400ms !important;
}

.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-horizontal {
    touch-action: pan-y;
}

.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: visible !important;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}

.banner__slider {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(16px);
    cursor: pointer;
}

.banner__slider .swiper-slide {
    display: flex !important;
    flex-direction: row-reverse;
    width: 100%;
    padding: 8px 8px 8px 20px;
    gap: 20px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
}

.banner__slider .slider__image {
    width: 165px;
    height: 165px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.banner__slider .slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.banner__slider .slider__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 4px 0;
    justify-content: space-between;
}

.banner__slider .slider__text {
    display: flex;
    flex-direction: column;
}

.banner__slider .slider__title {
    font-size: 24px;
}

.banner__slider .slider__title {
    color: white;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 4px;
}

.banner__slider .slider__subtitle {
    font-size: 18px;
}

.banner__slider .slider__subtitle {
    color: white;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    opacity: 0.8;
}

.banner__slider .slider__button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    text-decoration: none;
}

.banner__slider .slider__icon {
    width: 24px;
    height: 24px;
    fill: white;
}


/* Пагинация */
.banner__slider-pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    width: 24px;
    border-radius: 5px;
}

/* Основная кнопка */
.banner__button {
    position: absolute;
    z-index: 10;
    bottom: 62px;
    right: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #555;
    gap: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Преимущества */
.banner__attributes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 60px 0;
    border-top: 1px solid #e9ecef;
}

.attributes__block {
    display: flex;
    gap: 20px;
}

.attributes__icon-block {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    color: #333;
}

.attributes__icon {
    width: 28px;
    height: 28px;
}

.attributes__text {
    flex: 1;
}

.attributes__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.attributes__subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.banner__slider-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: white;
    opacity: 0.3;
    border-radius: 50%;
    margin: 0 !important;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.banner__slider-pagination {
    position: relative;
    margin-top: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    gap: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 12px;
    max-width: 70px !important;
}

.banner__slider {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

.banner__slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
}

.banner__slider-pagination {
    left: auto !important;
    bottom: -30px !important;
}

/* ============================================
   АДАПТИВНОСТЬ БАНЕРА
   ============================================ */

.banner__info-block {
    position: absolute;
    left: clamp(16px, 4vw, 110px);
    right: clamp(16px, 4vw, 110px);
    bottom: clamp(24px, 6vh, 60px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
    flex-direction: column;
    gap: 32px;
}

.banner__text {
    max-width: 620px;
    padding-bottom: 0;
}

.banner__title {
    font-size: clamp(2rem, 5vw, 4.5rem);
}

.banner__subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
}

.banner__slider-container--desktop {
    width: min(533px, 100%);
    flex-shrink: 0;
}

.banner__button {
    position: absolute;
    right: clamp(16px, 4vw, 110px);
    bottom: clamp(24px, 6vh, 62px);
}

/* Большие десктопы */
@media (min-width: 1600px) {
    .banner__title {
        font-size: 72px;
    }
}

/* Ноутбуки и небольшие десктопы */
@media (max-width: 1491.98px) {
    .banner__slider {
        height: auto;
    }

    .banner__slider .slider__image {
        width: 140px;
        height: 140px;
    }

    .banner__slider .slider__title {
        font-size: 20px;
    }

    .banner__slider .slider__subtitle {
        font-size: 16px;
    }
}

/* Планшеты: слайдер под текстом, без наложения */
@media (max-width: 1220.98px) {
    .banner__container {
        height: auto;
        min-height: calc(100vh - 75px);
    }

    .banner__main {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        min-height: 640px;
        padding: 48px 0 32px;
    }

    .banner__info-block {
        position: relative;
        inset: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 0;
    }

    .banner__text {
        max-width: 100%;
    }

    .banner__slider-container--desktop {
        width: 100%;
        max-width: 640px;
    }

    .banner__slider {
        height: auto;
        margin-bottom: 0;
    }

    .banner__slider .swiper-slide {
        flex-direction: row-reverse;
        padding: 12px;
        gap: 16px;
    }

    .banner__slider .slider__image {
        width: 120px;
        height: 120px;
    }

    .banner__button {
        position: relative;
        inset: auto;
        margin-top: 24px;
        align-items: flex-start;
    }

    .banner__attributes {
        gap: 28px;
        padding: 40px 0;
    }
}

/* Малые планшеты / большие телефоны */
@media (max-width: 767.98px) {
    .banner__main {
        min-height: 560px;
        padding: 32px 0 24px;
    }

    .banner__title {
        font-size: clamp(1.75rem, 7vw, 2.25rem);
    }

    .banner__slider .swiper-slide {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .banner__slider .slider__image {
        width: 100%;
        height: 180px;
    }

    .banner__slider .slider__info {
        padding: 4px 4px 8px;
    }

    .banner__attributes {
        gap: 20px;
        padding: 32px 0;
    }
}

/* Мобильные */
@media (max-width: 576px) {
    .banner__container {
        height: auto;
    }

    .banner__main {
        min-height: 100svh;
        padding: 28px 0 20px;
    }

    .banner__text {
        max-width: 100%;
    }

    .banner__slider-container--desktop {
        width: 100%;
    }

    .banner__slider .slider__image {
        height: 160px;
    }

    .banner__slider .slider__title {
        font-size: 1.1rem;
    }

    .banner__slider .slider__subtitle {
        font-size: 0.95rem;
    }

    .banner__button .btn {
        width: 100%;
        justify-content: center;
    }

    .attributes__block {
        gap: 12px;
    }

    .attributes__icon-block {
        width: 48px;
        height: 48px;
    }
}


/*
*
* ПОПУЛЯРНЫЕ ПРОЕКТЫ
*
*/


.pp-h2 {
    color: #333;
    font-weight: 600;
}

.pp-all-projects {
    color: #333;
}

.pp-all-projects a svg {
    width: 24px;
    height: 24px;
}

.pp-all-projects a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.pop-projects {
    --color-text-default: black;
    font-family: Manrope, Roboto, "sans-serif";
}

.navs-right-text {
    opacity: 0.9;
    font-size: 14px;
}

.nav-buttons {
    background-color: rgba(30, 107, 79, 0.08);
    --nav-link-color: rgba(0, 0, 0, 0.5);
    --nav-pills-hover-bg: rgba(255, 255, 255, 0.7);
    --nav-pills-active-color: black;
    --nav-pills-active-bg: white;
    --nav-pills-active-hover-bg: rgba(255, 255, 255, 0.98);
    flex-wrap: nowrap;
    margin-bottom: 16px;
    min-height: 43px;
    padding: 4px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    width: fit-content;
}

.nav-links {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 9999px;
    text-decoration: none;
    color: #333;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.nav-links:hover {
    background-color: var(--nav-pills-hover-bg);
}

.nav-links.active {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 4px 0px;
    color: var(--nav-pills-active-color);
    background-color: var(--nav-pills-active-bg);
}

.pp-project__image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    max-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;

}

.pp-project__image-wrapper img {
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.pp-element-picture {
    display: block;
    position: relative;
    width: 100%;
    margin-bottom: 16px;
    text-decoration: none;
    color: black;
}

.pp-element-name {
    flex-basis: 100%;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.pp-element-space img {
    height: 1rem;
}

.pp-element-spaces img {
    height: 1rem;
}

.pp-element-about {
    white-space: nowrap;
    width: 100%;
    font-size: 12px;
    line-height: 1.2;
    gap: 16px;
}

.pp-element-price {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
}


.services {
    margin: 0 auto;
    background: #F0F5F1;
}

/* Секция строительных услуг по этапам */
.services-stages {
    padding: 80px 24px 100px;
}

/* Заголовок и описание */
.services-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 64px auto;
}

.services-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1e293b;
    margin-bottom: 16px;
}

.services-header p {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.5;
}

/* Сетка этапов — адаптивная (4 колонки → планшет → мобила) */
.services-stages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

/* Карточка этапа */
.services-stage-card {
    background: #f8fafc;
    border-radius: 28px;
    padding: 28px 20px 32px 20px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-stage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
    background-color: #ffffff;
}

/* Шапка карточки: номер этапа + иконка */
.services-stage-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.services-stage-number {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b45336; /* терракотовый акцент, как на GWD */
    background: rgba(180, 83, 54, 0.08);
    padding: 5px 12px;
    border-radius: 40px;
    display: inline-block;
}

.services-stage-icon {
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 12px -8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9edf2;
    flex-shrink: 0;
}

/* Название этапа */
.services-stage-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 20px;
    line-height: 1.3;
    border-left: 3px solid #b45336;
    padding-left: 14px;
}

/* Список работ (как на сайте) */
.services-stage-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-stage-list li {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.4;
    padding-left: 20px;
    position: relative;
}

.services-stage-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #b45336;
    font-weight: 500;
}

/* Адаптивность: планшеты и большие телефоны */
@media (max-width: 1024px) {
    .services-stages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .services-header h2 {
        font-size: 2rem;
    }

    .services-stages {
        padding: 60px 20px 80px;
    }
}

/* Мобильные устройства */
@media (max-width: 640px) {
    .services-stages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-header h2 {
        font-size: 1.75rem;
    }

    .services-header p {
        font-size: 1rem;
    }

    .services-stage-title {
        font-size: 1.25rem;
    }

    .services-stages {
        padding: 48px 16px 64px;
    }

    .services-stage-card {
        padding: 24px 18px 28px;
    }
}

/* Доп. мелкие штрихи: акцент для иконок (SVG-стили) */
.services-stage-icon svg {
    width: 28px;
    height: 28px;
    stroke: #b45336;
    stroke-width: 1.5;
    fill: none;
}

.feedback {
    background: #F0F5F1;
    padding-bottom: 64px;
}

.feedback-block {
    margin: 0 140px;
    gap: 24px;
}

@media (max-width: 992px) {
    .feedback-block {
        flex-wrap: wrap;
        margin: 0 10px;
    }

}

.feedback-element {
    border-radius: 12px;
    background-color: #ffffff;
}

.feedback-element-inner {
    padding: 64px 40px;

}

.feedback-element-title {
    color: black;
    font-size: 40px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    margin-bottom: 22px;
}

.feedback-element-subtitle {
    color: black;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 40px;
    opacity: 0.8;
}

.feddback-rightblock {
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('/upload/images/ofis_fon_kvadrat.jpg'); /* HE-TASK17: было img-feedback.jpg (чужое стоковое фото) */
    background-position: center;
    display: flex;
    flex-direction: column;
    padding: 64px 40px;
    justify-content: flex-end;
    border-radius: 12px;
    height: 100%;
    color: #ffffff;
}

.callback-card {
    max-width: 480px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.callback-form {
    padding: 36px 32px 40px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 32px;
    border-left: 3px solid #b45336;
    padding-left: 14px;
    line-height: 1.4;
}

.field-group {
    margin-bottom: 24px;
}

.field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

/* Контейнер с префиксом +7 */
.phone-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    transition: all 0.2s;
    overflow: hidden;
}

.phone-wrapper:focus-within {
    border-color: #b45336;
    box-shadow: 0 0 0 3px rgba(180, 83, 54, 0.1);
}

.phone-prefix {
    background: #f8fafc;
    padding: 14px 8px 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: #1e293b;
    border-right: 1px solid #e2e8f0;
    white-space: nowrap;
}

.phone-field {
    flex: 1;
    padding: 14px 16px;
    font-size: 1rem;
    font-family: monospace;
    border: none;
    outline: none;
    background: transparent;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.phone-field::placeholder {
    color: #94a3b8;
    font-size: 0.9rem;
    font-family: system-ui;
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 28px 0 32px;
}

.consent-group input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #b45336;
    flex-shrink: 0;
}

.consent-group label {
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.45;
    cursor: pointer;
}

.consent-group a {
    color: #b45336;
    text-decoration: none;
    font-weight: 500;
}

.consent-group a:hover {
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    background: #b45336;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.submit-button:hover {
    background: #9c3f25;
    transform: scale(1.01);
    box-shadow: 0 8px 18px rgba(180, 83, 54, 0.25);
}

.submit-button:active {
    transform: scale(0.98);
}

.error-msg {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-msg::before {
    content: "⚠️";
    font-size: 0.7rem;
}

.success-toast {
    background: #e6f4ea;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #2e6b3e;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #2e7d32;
}

.success-toast.show {
    display: flex;
    animation: fadeSlide 0.3s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 520px) {
    .callback-form {
        padding: 28px 20px 32px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .phone-prefix {
        padding: 12px 8px 12px 14px;
    }

    .phone-field {
        padding: 12px 14px;
    }

    .submit-button {
        padding: 14px 18px;
    }
}


.form__button-block .btn {
    flex: 0 0 200px;
    justify-content: center;
    border-radius: 999px;
    padding: 0.8rem 1.6rem;
}

.btn svg:first-child {
    margin-left: -4px;
}

.btn svg {
    width: 1.8rem;
    height: 1.8rem;
    transition: fill 0.15s ease-in-out, background-color 0.15s ease-in-out, stroke 0.15s ease-in-out;
}

.btn.btn-white {
    background-color: #ffffff;
}

.form__button-text {
    color: rgb(56, 103, 83);
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    white-space: nowrap;
}


.footer {
    padding: 64px 0;
    background: #223E32;
    font-family: Manrope;
    color: white;
    position: relative;
    overflow: hidden;
}

.footer-start {
    margin: 0 140px;
    
}

.footer-link{
    color:white;
    text-decoration: none;
}

.footer-link:hover{
    color:#666;
}

@media (max-width: 992px) {
    .footer-start {
        margin: 0 20px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .footer_link-container {
        flex-wrap: wrap;
        flex-direction: column !important;
        row-gap: 24px;
        padding-top: 24px;
    }

    .footer__copyright {
        margin: 20px 20px !important;
        flex-wrap: wrap !important;
        row-gap: 24px;
    }
}

.footer__link-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer__menu-block-header {
    margin: 0;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.footer-monochrome__menu {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__link-section {
    .footer-monochrome__menu {
        align-items: flex-start;
        gap: 16px;
    }
}

.footer-monochrome__menu-link {
    color: white;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
}

.footer__link-section {
    & .footer-monochrome__menu {
        .footer-monochrome__menu-link {
            color: rgba(255, 255, 255, 0.60);
            font-size: 16px;
        }
    }
}

.footer_link-container {
    justify-content: space-between;
    flex-direction: row;
}

.footer__link-section {
    & .footer-monochrome__menu {
        .footer-monochrome__menu-link:hover {
            color: #DBEFE1;
        }
    }
}

.footer__copyright {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.50);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin: 40px 140px;
}

.footer-logo {
    letter-spacing: 2.5px;
}

.footer-logo img {
    filter: invert(100%);
}

.footer__info-block {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer__info-address {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.footer-monochrome__phone {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 768px) {
    .d-md-inline {
        display: inline !important;
    }
}

@media (hover: hover) {
    .footer-monochrome__phone__link:hover, .footer-monochrome__email__link:hover {
        color: #DBEFE1;
    }
}

.footer-monochrome__phone__link, .footer-monochrome__email__link {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}


.footer-monochrome__menu {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-monochrome__menu-link {
    color: white;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
}

.footer__copyright-text {
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: white;
    opacity: 0.6;
}

.footer__info-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__copyright-right-block {
    filter: invert(100%);
}

.price-block {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 20px;
    padding: 16px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

/* Текущая цена */
.current-price {
    font-size: 32px;
    font-weight: 700;
    color: #1a1e2b;
    letter-spacing: -0.5px;
}

.current-price .currency {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

/* Старая цена (перечёркнута) */
.old-price {
    font-size: 18px;
    color: #8b96a8;
    text-decoration: line-through;
    font-weight: 400;
}

/* Скидка (процент) */
.discount-badge {
    background: #ff4d4f;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    margin-left: 4px;
    white-space: nowrap;
}

/* Кнопка "В корзину" */
.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a1e2b;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    margin-top: 6px;
    align-self: flex-start; /* не растягивается на всю ширину */
}

.btn-add-to-cart:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.btn-add-to-cart:active {
    transform: scale(0.97);
}

/* === Адаптивность для планшетов и телефонов === */
@media (max-width: 700px) {
    .product-card {
        flex-direction: column;   /* картинка сверху, контент снизу */
        max-width: 440px;
    }

    .product-image {
        flex: 0 0 auto;
        padding: 20px;
    }

    .product-image img {
        max-height: 260px;
        width: auto;
    }

    .product-info {
        padding: 24px 20px 28px;
    }

    .product-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 28px;
    }

    .btn-add-to-cart {
        width: 100%;
        justify-content: center;
        align-self: stretch;
    }
}

@media (max-width: 480px) {
    .product-info {
        padding: 18px 16px 22px;
    }

    .price-block {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .current-price {
        font-size: 24px;
    }

    .old-price {
        font-size: 16px;
    }

    .discount-badge {
        font-size: 12px;
        padding: 2px 10px;
    }

    .btn-add-to-cart {
        padding: 12px 20px;
        font-size: 14px;
    }
}

.product-properties {
    display: flex;
    flex-direction: column;
    gap: 6px 12px;
    margin: 14px 0 18px;
    padding: 12px 0;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
}

.property-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    line-height: 1.5;
}

.property-name {
    color: #5b677b;
    font-weight: 400;
}

.property-value {
    color: #1a1e2b;
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}



/* Адаптив для мобильных */
@media (max-width: 700px) {
    .property-item {
        font-size: 13px;
    }
    .property-value {
        max-width: 55%;
    }
}


.uslugi-top {
    background-color: #f8faf9;
    font-size: 16px;
    --h1-size: 20px;
    --h1-mb: 4px;
    --header-weight: 700;
    border-radius: 24px;
    padding: 24px;
    height: 363px;
}

@media (min-width: 440px) {

    .uslugi-top {
        --h1-size: 24px;
        font-size: 16px;
        padding: 27px;
    }
}

@media (min-width: 768px) {
    .uslugi-top {
        --h1-size: 38px;
        --h1-mb: 22px;
        --h1-lh: 1.1;
        font-size: 20px;
        font-weight: 500;
        padding: 32px;
    }
}

@media (min-width: 992px) {
    .uslugi-top {
        font-size: 32px;
        --h1-size: 40px;
        --h1-mb: 24px;
        padding-left: 78px;
        padding-right: 78px;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: flex-start;
    }
}


@media (min-width: 768px) {
    .uslugi-top-image {
        background-color: #f8faf9;
        background-image: url('/upload/images/img3.jpg');
        background-size: cover;
        background-position: bottom center;
        background-repeat: no-repeat;
        border-radius: 24px;
        height: 360px;
    }
}

.roadmap {
    --h2-size: 20px;
    --h2-mb: 14px;
    margin-top: 44px;
    margin-bottom: 100px;
    counter-reset: section-counter;
    position: relative;
}

@media (min-width: 992px) {
    .roadmap {
        --h2-size: 32px;
        --h2-mb: 32px;
        margin-top: 91px;
        margin-bottom: 200px;
    }
}


.roadmap-section {
    --header-weight: 600;
    counter-increment: section-counter;
    padding-left: 46.2px;
    position: relative;
}

.roadmap-section h2 {
    margin-bottom: 32px;
}

@media (min-width: 992px) {
    .roadmap-section {
        padding-left: 143px;
        padding-right: 0;
    }
}


.roadmap-line {
    --offset: 29px;
    position: absolute;
    height: 100%;
    width: 3px;
    top: 0;
    left: calc(var(--offset) + 15px);
    border-radius: 999px;
    background-color: #AFC8B6;
    overflow: hidden;
}

@media (min-width: 992px) {
    .roadmap-line {
        --offset: 103px;
    }
}
@media (min-width: 768px) {
    .roadmap-line {
        width: 6px;
        --offset: 54px;
    }
}

.roadmap-section::before {
    display: block;
    content: '0' counter(section-counter);
    position: absolute;
    left: 2px;
    top: 2.5px;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    color: #0e5137;
}

.roadmap-item {
    background: #f8faf9;
    border-radius: 12px;
    padding: 10px 20px 10px 30px;
    min-height: 60px;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    position: relative;
    color: var(--color-text-default);
    text-decoration: none;
}

.roadmap-item::before {
    --size: 8px;
    content: '';
    display: block;
    background-color: #95b69e;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    position: absolute;
    top: calc(50% - var(--size) / 2);
    left: 12px;
}

@media (min-width: 768px) {
    .roadmap-item::before {
        --size: 15px;
        left: 34px;
    }
}

@media (min-width: 768px) {
    .roadmap-item + .roadmap-item {
        margin-top: 14px;
    }
}

    @media (min-width: 992px) {
        .roadmap-item {
            padding: 28px 32px 28px 68px;
        }
    }
    @media (min-width: 768px) {
        .roadmap-item {
            min-height: 100px;
            font-size: 18px;
            border-radius: 24px;
            padding: 32px 32px 32px 68px;
        }
    }


.roadmap-line__fill {
    width: 100%;
    height: 100%;
    position: absolute;
    top: -100%;
    left: 0;
    background-color: #0e5137;
    border-radius: 999px;
    transition: transform 0.3s;
}

/* ===== Hermes: тап-зоны под палец на телефоне. Добавлено 16.10.2026 =====
   Правило: не менять внешний вид, только расширить область нажатия до 44×44.
   Сделано через псевдоэлемент ::after, поэтому вёрстка не сдвигается.
   Если разработчик правит файл — этот блок можно удалить целиком, ничего не сломается. */
@media (max-width: 991.98px) {
  .footer-link,
  .footer-monochrome__phone__link,
  .footer-monochrome__email__link,
  .footer-monochrome__menu-link,
  .cool-houses-contact-card__value,
  .slider__button,
  .navbar-brand,
  .navbar-toggler {
    position: relative;
  }

  .footer-link::after,
  .footer-monochrome__phone__link::after,
  .footer-monochrome__email__link::after,
  .footer-monochrome__menu-link::after,
  .cool-houses-contact-card__value::after,
  .slider__button::after,
  .navbar-brand::after,
  .navbar-toggler::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 44px;
    transform: translateY(-50%);
  }
}

/* Hermes: добор тап-зон 16.10.2026 — кнопки, которые не растянулись псевдоэлементом
   (у них переполнение у родителя обрезает ::after). Тут увеличена сама кнопка. */
@media (max-width: 991.98px) {
  .slider__button,
  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }
}

/* Hermes: читаемость первого экрана на телефоне. 16.10.2026
   На широком экране затемнение идёт слева направо — там текст стоит слева.
   На телефоне текст ложится внизу на светлое небо, поэтому разворачиваем
   градиент снизу вверх и добавляем мягкую тень буквам. Фото почти не темнеет. */
@media (max-width: 991.98px) {
  .banner__image::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.18) 40%,
      rgba(0, 0, 0, 0.45) 72%,
      rgba(0, 0, 0, 0.62) 100%
    );
  }

  .banner__title,
  .banner__subtitle {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 4px 18px rgba(0, 0, 0, 0.6);
  }
}

/* Hermes: усиление затемнения под заголовком первого экрана. 16.10.2026
   Заголовок стоит в середине экрана, поэтому поднимаем плотность градиента. */
@media (max-width: 991.98px) {
  .banner__image::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.14) 0%,
      rgba(0, 0, 0, 0.34) 32%,
      rgba(0, 0, 0, 0.52) 62%,
      rgba(0, 0, 0, 0.68) 100%
    );
  }
}
