/* ============================================
   front-page.css — секции главной страницы
   ============================================ */

/* ============================================
   HERO — ФИНАЛЬНАЯ ВЕРСИЯ (параллакс + индикатор)
   ============================================ */

.front-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;   /* параллакс на десктопе */
    /* overflow: hidden; УБИРАЕМ, чтобы не ломался параллакс */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.40) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
}

.hero-copy {
    color: #ffffff;
    align-self: flex-start;
    max-width: 620px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    margin: 0 0 15px 0;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    color: rgba(255,255,255,0.85);
    margin-bottom: 15px;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    line-height: 1.6;
}

.hero-cta-box {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    align-self: flex-start;
    width: 100%;
    max-width: 400px;
}

.hero-cta-label {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Кнопка */
.hero-cta-btn {
    display: inline-block;
    width: 85%;
    max-width: 280px;
    min-width: 180px;
    margin: 0 auto 10px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff !important;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    cursor: pointer;
    animation: heroPulse 2.5s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-cta-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    animation: none;
}

@keyframes heroPulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.hero-cta-consent {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 15px;
}
.hero-cta-consent a {
    color: rgba(255,255,255,0.7);
    text-decoration: underline;
}

/* Индикатор прокрутки (теперь прямой потомок .front-hero) */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0.7;
    cursor: pointer;
    z-index: 3;
}
.scroll-indicator:hover {
    opacity: 1;
}

.scroll-mouse {
    display: block;
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}
.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 4px;
    animation: scrollBounce 2s infinite;
}
.scroll-arrow {
    font-size: 20px;
    animation: scrollBounce 2s infinite 0.5s;
}
.scroll-text {
    font-size: 12px;
    letter-spacing: 1px;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* Адаптив */
@media (max-width: 900px) {
    .front-hero {
        background-attachment: scroll; /* отключаем параллакс на мобильных */
    }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 40px 20px;
    }
    .hero-copy {
        align-self: center;
        text-align: center;
        max-width: 100%;
    }
    .hero-cta-box {
        align-self: center;
        width: 90%;
        max-width: 400px;
    }
    .hero-cta-btn {
        width: 80%;
        white-space: normal;
        padding: 14px 12px;
        font-size: 0.9rem;
    }
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta-box {
        padding: 20px;
    }
    .hero-cta-btn {
        width: 90%;
        font-size: 0.85rem;
        padding: 12px 10px;
    }
}

/* ─── КНОПКА С ПЕРЕЛИВОМ (общая) ─── */

.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #fff;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-shimmer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 70%);
    animation: shimmer 3s infinite linear;
}
@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(25deg); }
    100% { transform: translateX(100%) rotate(25deg); }
}
.btn-shimmer:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}


/* ─── ПОПАП СОГЛАСИЯ (HERO) ───
   Показывает текст со страницы "Согласие на обработку персональных данных"
   без перехода со страницы. Использует те же приёмы, что и .custom-cta-modal:
   opacity + visibility вместо display:none — так можно анимировать открытие/закрытие
   ─────────────────────────────────────────────────────────────── */

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

/* класс .is-open навешивается через JS в hero.php при клике на "согласие" */
.consent-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* затемнение фона под попапом */
.consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
}

/* сама карточка с текстом */
.consent-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(92vw, 720px);
    max-height: 82vh;
    margin: 7vh auto 0;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

/* крестик закрытия — тот же стиль, что у custom-cta-modal__close */
.consent-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #111111;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.consent-modal__close:hover {
    color: #d88a06;
}

/* сам текст страницы согласия, подтянутый через get_post_field() в hero.php */
.consent-modal__content {
    padding-right: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #333333;
}

.consent-modal__content h1,
.consent-modal__content h2 {
    margin-top: 22px;
    margin-bottom: 12px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #111111;
}

.consent-modal__content p {
    margin: 0 0 14px;
}

/* блокируем скролл страницы, когда попап открыт (класс навешивается на <body> через JS) */
body.consent-modal-locked {
    overflow: hidden;
}

/* адаптив */
@media (max-width: 991px) {
    .consent-modal__dialog {
        margin-top: 5vh;
        max-height: 86vh;
        padding: 28px 24px 24px;
    }
}

@media (max-width: 575px) {
    .consent-modal__dialog {
        width: 94vw;
        border-radius: 14px;
        padding: 24px 18px 20px;
    }

    .consent-modal__content {
        font-size: 0.9rem;
        line-height: 1.65;
    }
}

/* ─── ТИПОВЫЕ ПРОЕКТЫ ─── */

.projects-grid--typical {
    grid-template-columns: repeat(3, 1fr);
}
.typical-offer {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin: 25px 0 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ─── СВОЙ ПРОЕКТ НА РАСЧЁТ ─── */

.front-send-project {
    position: relative;
    padding: 90px 0;
    background: #0f0f0f;
    overflow: hidden;
}

.front-send-project::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(8, 8, 8, 0.82), rgba(8, 8, 8, 0.82)),
        var(--send-project-bg, none) center center / cover no-repeat;
    z-index: 0;
}

.front-send-project .container {
    position: relative;
    z-index: 1;
}

.front-send-project .send-project-wrapper {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(340px, 500px);
    align-items: center;
    gap: 70px;
    min-height: 400px;
}

.front-send-project .send-project-content {
    max-width: 520px;
    color: #fff;
    padding-top: 8px;
}

.front-send-project .send-project-line {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.front-send-project .send-project-line span {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.26);
}

.front-send-project .send-project-line i {
    flex-shrink: 0;
    color: #ffffff;
    font-size: 34px;
}

.front-send-project .send-project-title {
    max-width: 430px;
    margin: 0 0 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    line-height: 1.18;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #ffffff;
}

.front-send-project .send-project-subtitle {
    max-width: 390px;
    font-size: 0.95rem;
    line-height: 1.78;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.82);
}

/* форма */

.front-send-project .send-project-form {
    width: 100%;
    max-width: 500px;
    margin-left: auto;
}

.front-send-project .send-project-form .wpcf7 {
    width: 100%;
}

.front-send-project .send-project-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.front-send-project .send-project-form p {
    margin: 0;
}

/* убрать текст над формой */
.front-send-project .prod_form_h {
    display: none;
}

.front-send-project .wpcf7-form-control-wrap {
    display: block;
}

.front-send-project .wpcf7 input[type="text"],
.front-send-project .wpcf7 input[type="email"],
.front-send-project .wpcf7 input[type="tel"],
.front-send-project .wpcf7 textarea {
    width: 100%;
    border: none;
    border-radius: 4px;
    background: #ffffff;
    color: #1b1b1b;
    padding: 13px 16px;
    font-size: 14px;
    line-height: 1.35;
    box-shadow: none;
    transition: box-shadow .2s ease;
}

.front-send-project .wpcf7 textarea {
    min-height: 104px;
    resize: vertical;
    padding-top: 14px;
    padding-bottom: 14px;
}

.front-send-project .wpcf7 input:focus,
.front-send-project .wpcf7 textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(216, 138, 6, 0.45);
}

.front-send-project .wpcf7 input::placeholder,
.front-send-project .wpcf7 textarea::placeholder {
    color: #9a9a9a;
}

/* file */

.front-send-project .wpcf7 input[type="file"] {
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 2px;
}

.front-send-project .wpcf7 input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 2px;
    background: #d88a06;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease;
}

.front-send-project .wpcf7 input[type="file"]::file-selector-button:hover {
    background: #b87304;
}

/* acceptance */

.front-send-project .sp-agree {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88) !important;
}

.front-send-project .sp-agree .wpcf7-list-item {
    margin: 0;
    color: rgba(255, 255, 255, 0.88) !important;
}

.front-send-project .sp-agree .wpcf7-list-item-label {
    color: rgba(255, 255, 255, 0.88) !important;
}

.front-send-project .sp-agree input[type="checkbox"] {
    margin-right: 8px;
    transform: translateY(1px);
}

/* submit */

.front-send-project .wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 180px;
    border: none;
    border-radius: 2px;
    background: #d88a06;
    color: #fff;
    padding: 13px 20px;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.front-send-project .wpcf7 .wpcf7-submit:hover {
    background: #b87304;
    transform: translateY(-1px);
}

.front-send-project .wpcf7-spinner {
    margin: 8px 0 0;
}

.front-send-project .wpcf7-response-output {
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
}

.front-send-project .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 11px;
    color: #ffb3b3;
}

/* адаптив */

@media (max-width: 991px) {
    .front-send-project {
        padding: 64px 0;
    }

    .front-send-project .send-project-wrapper {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .front-send-project .send-project-content,
    .front-send-project .send-project-form {
        max-width: 100%;
    }

    .front-send-project .send-project-form {
        margin-left: 0;
    }

    .front-send-project .send-project-title {
        font-size: 2.35rem;
        line-height: 1.16;
    }
}

@media (max-width: 575px) {
    .front-send-project {
        padding: 48px 0;
    }

    .front-send-project .send-project-line {
        gap: 12px;
        margin-bottom: 18px;
    }

    .front-send-project .send-project-line i {
        font-size: 26px;
    }

    .front-send-project .send-project-title {
        font-size: 1.9rem;
        line-height: 1.18;
    }

    .front-send-project .send-project-subtitle {
        font-size: 0.92rem;
        line-height: 1.7;
    }

    .front-send-project .wpcf7 input[type="text"],
    .front-send-project .wpcf7 input[type="email"],
    .front-send-project .wpcf7 input[type="tel"],
    .front-send-project .wpcf7 textarea {
        padding: 12px 14px;
    }

    .front-send-project .wpcf7 textarea {
        min-height: 96px;
    }

    .front-send-project .wpcf7 .wpcf7-submit {
        width: 100%;
    }
}


/* ─── ИНДИВИДУАЛЬНЫЙ ПРОЕКТ ─── */

.front-custom-cta {
    position: relative;
    padding: 80px 0 40px;
    background-color: #f8f6f1;
    background-image: var(--custom-cta-pattern);
    background-repeat: repeat;
    background-position: center center;
    overflow: hidden;
}

.front-custom-cta .custom-cta-block {
    position: relative;
}

.front-custom-cta .custom-cta-head {
    text-align: center;
    margin-bottom: 48px;
}

.front-custom-cta .custom-cta-title {
    margin: 0 0 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 3.2rem;
    line-height: 1.05;
    font-weight: 500;
    text-transform: uppercase;
    color: #111111;
}

.front-custom-cta .custom-cta-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 400;
    text-transform: uppercase;
    color: #111111;
}

.front-custom-cta .custom-cta-body {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 520px);
    gap: 56px;
    align-items: start;
}

.front-custom-cta .custom-cta-left {
    padding-top: 10px;
}

.front-custom-cta .custom-cta-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.front-custom-cta .custom-cta-list li {
    position: relative;
    margin-bottom: 24px;
    padding-left: 32px;
    font-size: 1rem;
    line-height: 1.35;
    color: #222222;
}

.front-custom-cta .custom-cta-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: #222222;
}

.front-custom-cta .custom-cta-right {
    text-align: left;
}

.front-custom-cta .custom-cta-action-title {
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.4;
    color: #222222;
}

.front-custom-cta .custom-cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    min-height: 56px;
    padding: 16px 34px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #d99218 0%, #f1b548 50%, #d99218 100%);
    background-size: 200% 100%;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(217, 146, 24, 0.22);
    transition: transform .2s ease, box-shadow .2s ease;
    animation: customCtaGradient 4s linear infinite, customCtaPulse 2.8s ease-in-out infinite;
    overflow: hidden;
}

.front-custom-cta .custom-cta-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -35%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
    transform: skewX(-24deg);
    animation: customCtaShine 3.2s ease-in-out infinite;
}

.front-custom-cta .custom-cta-button span {
    position: relative;
    z-index: 2;
}

.front-custom-cta .custom-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(217, 146, 24, 0.28);
}

.front-custom-cta .custom-cta-consent {
    margin-top: 18px;
    font-size: 12px;
    line-height: 1.5;
    color: #6a6a6a;
}

.front-custom-cta .custom-cta-house {
    margin-top: 28px;
    max-width: 520px;
}

.front-custom-cta .custom-cta-house img {
    display: block;
    width: 100%;
    height: auto;
}

/* popup */

.front-custom-cta .custom-cta-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.front-custom-cta .custom-cta-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.front-custom-cta .custom-cta-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.56);
}

.front-custom-cta .custom-cta-modal__dialog {
    position: relative;
    width: min(92vw, 560px);
    margin: 7vh auto 0;
    background: #ffffff;
    border-radius: 20px;
    padding: 34px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
    z-index: 2;
}

.front-custom-cta .custom-cta-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    color: #111111;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.front-custom-cta .custom-cta-modal__title {
    margin: 0 0 18px;
    padding-right: 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.9rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #111111;
}

.front-custom-cta .custom-cta-modal .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.front-custom-cta .custom-cta-modal p {
    margin: 0;
}

.front-custom-cta .custom-cta-modal input[type="text"],
.front-custom-cta .custom-cta-modal input[type="email"],
.front-custom-cta .custom-cta-modal input[type="tel"],
.front-custom-cta .custom-cta-modal textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 14px;
}

.front-custom-cta .custom-cta-modal textarea {
    min-height: 110px;
    resize: vertical;
}

.front-custom-cta .custom-cta-modal input[type="file"] {
    font-size: 12px;
}

.front-custom-cta .custom-cta-modal input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #d99218 0%, #f1b548 50%, #d99218 100%);
    background-size: 200% 100%;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    animation: customCtaGradient 4s linear infinite;
}

.front-custom-cta .custom-cta-modal .wpcf7-spinner {
    margin: 8px 0 0;
}

.front-custom-cta .custom-cta-modal .wpcf7-response-output {
    margin: 10px 0 0 !important;
    padding: 10px 12px !important;
    border-radius: 8px;
    font-size: 13px;
}

/* animation */

@keyframes customCtaGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes customCtaPulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(217, 146, 24, 0.22); }
    50% { box-shadow: 0 14px 32px rgba(217, 146, 24, 0.34); }
}

@keyframes customCtaShine {
    0% { left: -40%; }
    55% { left: 120%; }
    100% { left: 120%; }
}

@media (max-width: 991px) {
    .front-custom-cta {
        padding: 64px 0 28px;
    }

    .front-custom-cta .custom-cta-head {
        margin-bottom: 36px;
    }

    .front-custom-cta .custom-cta-title {
        font-size: 2.5rem;
    }

    .front-custom-cta .custom-cta-subtitle {
        font-size: 1.8rem;
    }

    .front-custom-cta .custom-cta-body {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .front-custom-cta .custom-cta-right {
        max-width: 520px;
    }
}

@media (max-width: 575px) {
    .front-custom-cta .custom-cta-title {
        font-size: 1.9rem;
    }

    .front-custom-cta .custom-cta-subtitle {
        font-size: 1.35rem;
    }

    .front-custom-cta .custom-cta-list li {
        padding-left: 24px;
        margin-bottom: 18px;
        font-size: 0.95rem;
    }

    .front-custom-cta .custom-cta-button {
        width: 100%;
        min-width: 100%;
    }

    .front-custom-cta .custom-cta-modal__dialog {
        padding: 28px 18px 22px;
    }

    .front-custom-cta .custom-cta-modal__title {
        font-size: 1.45rem;
    }
}


/* ─── ОБЪЕКТЫ (3 колонки) ─── */

.objects-grid--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.object-card {
    border: 1px solid #e0e0e0;
    border-radius: 0;
    transition: 0.2s;
}
.object-card:hover {
    z-index: 2;
    border-color: #f39c12;
}
.object-card-image {
    height: 200px;
    overflow: hidden;
}
.object-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.object-card-body {
    padding: 15px;
    text-align: center;
}
.object-card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
}
.object-card-location {
    font-size: 0.85rem;
    color: #777;
}


/* ─── НАШИ ТЕХНОЛОГИИ СТРОИТЕЛЬСТВА ─── */

.front-technologies {
    padding: 72px 0 84px;
    background: #d8cfb2;
}

.front-technologies .section-title {
    margin: 0 0 18px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 500;
    text-transform: uppercase;
    color: #111111;
}

.front-technologies .section-description {
    max-width: 860px;
    margin: 0 auto 44px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.65;
    color: #3f3a32;
}

.front-technologies .tech-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px;
    align-items: stretch;
}

.front-technologies .tech-card {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #8e8b86;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.front-technologies .tech-card-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.front-technologies .tech-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s ease;
    transform: scale(1);
}

.front-technologies .tech-card:hover .tech-card-media img {
    transform: scale(1.08);
}

.front-technologies .tech-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(28, 28, 28, 0.28), rgba(28, 28, 28, 0.38)),
        rgba(120, 120, 120, 0.18);
    z-index: 1;
}

.front-technologies .tech-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 34px 42px 42px;
    color: #ffffff;
    text-align: center;
}

.front-technologies .tech-icon {
    margin: 0 0 74px;
    font-size: 3rem;
    line-height: 1;
    color: #ffffff;
}

.front-technologies .tech-title {
    margin: 0 0 26px;
    font-family: 'Oswald', sans-serif;
    font-size: 2.1rem;
    line-height: 1.08;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
}

.front-technologies .tech-divider {
    width: 66%;
    height: 2px;
    margin: 0 auto 28px;
    background: rgba(255, 255, 255, 0.9);
}

.front-technologies .tech-text {
    max-width: 470px;
    margin: 0 auto;
    font-family: 'Oswald', sans-serif;
    font-size: 1.7rem;
    line-height: 1.18;
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
}

/* адаптив */

@media (max-width: 1199px) {
    .front-technologies .tech-card {
        min-height: 540px;
    }

    .front-technologies .tech-title {
        font-size: 1.8rem;
    }

    .front-technologies .tech-text {
        font-size: 1.45rem;
    }
}

@media (max-width: 991px) {
    .front-technologies {
        padding: 60px 0 70px;
    }

    .front-technologies .section-title {
        font-size: 2.35rem;
    }

    .front-technologies .tech-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .front-technologies .tech-card {
        min-height: 500px;
    }
}

@media (max-width: 575px) {
    .front-technologies {
        padding: 48px 0 56px;
    }

    .front-technologies .section-title {
        font-size: 1.8rem;
    }

    .front-technologies .section-description {
        margin-bottom: 30px;
        font-size: 0.95rem;
    }

    .front-technologies .tech-card {
        min-height: 420px;
    }

    .front-technologies .tech-card-content {
        padding: 24px 22px 28px;
    }

    .front-technologies .tech-icon {
        margin-bottom: 40px;
        font-size: 2.3rem;
    }

    .front-technologies .tech-title {
        margin-bottom: 18px;
        font-size: 1.35rem;
    }

    .front-technologies .tech-divider {
        width: 72%;
        margin-bottom: 18px;
    }

    .front-technologies .tech-text {
        font-size: 1.08rem;
        line-height: 1.22;
    }
}


/* ─── ПРЕИМУЩЕСТВА ─── */

.front-advantages {
    padding: 72px 0 68px;
    background-color: #f7f5ef;
    background-image: var(--advantages-pattern);
    background-repeat: repeat;
    background-position: center center;
}

.front-advantages .advantages-head {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.front-advantages .section-title {
    margin: 0 0 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 2.55rem;
    line-height: 1.08;
    font-weight: 500;
    text-transform: uppercase;
    color: #181818;
}

.front-advantages .section-subtitle {
    margin-bottom: 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    line-height: 1.08;
    font-weight: 500;
    text-transform: uppercase;
    color: #181818;
}

.front-advantages .advantages-divider {
    width: 330px;
    max-width: 100%;
    height: 2px;
    margin: 0 auto 16px;
    background: rgba(24, 24, 24, 0.7);
}

.front-advantages .section-description {
    font-family: 'Oswald', sans-serif;
    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 500;
    text-transform: uppercase;
    color: #181818;
}

.front-advantages .advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.front-advantages .advantage-card {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    background: #c8c8c8;
}

.front-advantages .advantage-card-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.front-advantages .advantage-card-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.front-advantages .advantage-card:hover .advantage-card-bg img {
    transform: scale(1.08);
}

.front-advantages .advantage-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.38);
}

.front-advantages .advantage-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 22px 20px 20px;
}

.front-advantages .advantage-card-icon {
    position: absolute;
    top: 16px;
    left: 16px;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1;
}

.front-advantages .advantage-title {
    margin: 0 0 14px;
    max-width: 90%;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    line-height: 1.16;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
}

.front-advantages .advantage-line {
    width: 72%;
    height: 2px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.front-advantages .advantage-desc {
    margin: 0;
    max-width: 92%;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    line-height: 1.16;
    font-weight: 300;
    text-transform: uppercase;
    color: #ffffff;
}

@media (max-width: 991px) {
    .front-advantages {
        padding: 60px 0;
    }

    .front-advantages .section-title {
        font-size: 2.1rem;
    }

    .front-advantages .section-subtitle {
        font-size: 1.65rem;
    }

    .front-advantages .section-description {
        font-size: 1.2rem;
    }

    .front-advantages .advantages-grid {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .front-advantages .advantages-grid {
        grid-template-columns: 1fr;
    }

    .front-advantages .advantage-card {
        min-height: 230px;
    }
}

@media (max-width: 575px) {
    .front-advantages {
        padding: 46px 0 48px;
    }

    .front-advantages .advantages-head {
        margin-bottom: 26px;
    }

    .front-advantages .section-title {
        font-size: 1.6rem;
    }

    .front-advantages .section-subtitle {
        font-size: 1.25rem;
    }

    .front-advantages .section-description {
        font-size: 1rem;
    }

    .front-advantages .advantages-divider {
        margin-bottom: 12px;
    }

    .front-advantages .advantage-card {
        min-height: 210px;
    }

    .front-advantages .advantage-card-content {
        padding: 20px 16px 16px;
    }

    .front-advantages .advantage-card-icon {
        top: 14px;
        left: 14px;
        font-size: 1.35rem;
    }

    .front-advantages .advantage-title {
        margin-bottom: 12px;
        font-size: 0.98rem;
    }

    .front-advantages .advantage-line {
        margin-bottom: 12px;
    }

    .front-advantages .advantage-desc {
        font-size: 0.9rem;
    }
}


/* ─── ЭКСТРА-СЕРВИС ─── */

.front-extra-services {
    background: #ffffff;
}

.front-extra-services .extra-services-top {
    background: #ffffff;
    padding: 34px 0 0;
}

.front-extra-services .extra-services-top-inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: end;
    gap: 36px;
    max-width: 980px;
    margin: 0 auto;
}

.front-extra-services .extra-services-person {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.front-extra-services .extra-services-person img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

.front-extra-services .extra-services-heading {
    padding-bottom: 44px;
}

.front-extra-services .section-title {
    margin: 0;
    max-width: 420px;
    font-family: 'Open Sans', sans-serif;
    font-size: 3rem;
    line-height: 1.18;
    font-weight: 400;
    color: #181818;
}

.front-extra-services .extra-services-bottom {
    position: relative;
    padding: 58px 0 54px;
    background-color: #1f1f1f;
    overflow: hidden;
}

.front-extra-services .extra-services-bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(16, 16, 16, 0.58), rgba(16, 16, 16, 0.58)),
        var(--extra-services-bg) center center / cover no-repeat;
    z-index: 0;
}

.front-extra-services .extra-services-bottom .container {
    position: relative;
    z-index: 1;
}

.front-extra-services .extra-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
    max-width: 980px;
    margin: 0 auto;
}

.front-extra-services .extra-service-item {
    color: #ffffff;
}

.front-extra-services .extra-service-title {
    margin: 0 0 18px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 400;
    text-transform: uppercase;
    color: #ffffff;
}

.front-extra-services .extra-service-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.front-extra-services .extra-service-list li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 28px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #ffffff;
}

.front-extra-services .extra-service-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .front-extra-services .extra-services-top-inner,
    .front-extra-services .extra-services-grid {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .front-extra-services .extra-services-top-inner {
        grid-template-columns: 260px 1fr;
        gap: 24px;
    }

    .front-extra-services .section-title {
        font-size: 2.3rem;
    }

    .front-extra-services .extra-services-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .front-extra-services .extra-services-bottom {
        padding: 44px 0 42px;
    }
}

@media (max-width: 767px) {
    .front-extra-services .extra-services-top {
        padding-top: 24px;
    }

    .front-extra-services .extra-services-top-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .front-extra-services .extra-services-person img {
        max-height: 220px;
    }

    .front-extra-services .extra-services-heading {
        padding-bottom: 26px;
    }

    .front-extra-services .section-title {
        max-width: 100%;
        margin: 0 auto;
        font-size: 1.95rem;
    }
}

@media (max-width: 575px) {
    .front-extra-services .section-title {
        font-size: 1.6rem;
        line-height: 1.24;
    }

    .front-extra-services .extra-services-bottom {
        padding: 34px 0 30px;
    }

    .front-extra-services .extra-service-title {
        margin-bottom: 14px;
        font-size: 1rem;
    }

    .front-extra-services .extra-service-list li {
        margin-bottom: 10px;
        padding-left: 24px;
        font-size: 0.92rem;
        line-height: 1.55;
    }
}


/* ─── ФОТООТЧЕТ ─── */

.front-photo-report {
    padding: 54px 0 0;
    background-color: #f7f5ef;
    background-image: var(--photo-report-pattern);
    background-repeat: repeat;
    background-position: center center;
}

.photo-report-block {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(360px, 1fr);
    gap: 34px;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.photo-report-text {
    padding: 0 0 40px;
}

.photo-report-title {
    margin: 0 0 24px;
    max-width: 520px;
    font-family: 'Oswald', sans-serif;
    font-size: 3.15rem;
    line-height: 1.02;
    font-weight: 500;
    text-transform: uppercase;
    color: #161616;
}

.photo-report-desc {
    max-width: 520px;
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.02rem;
    line-height: 1.9;
    color: #222222;
}

.photo-report-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 620px;
}

.photo-report-device-image {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.14));
}

.photo-report-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    min-height: 520px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ececec, #dcdcdc);
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    color: #555555;
}

@media (max-width: 1199px) {
    .photo-report-title {
        font-size: 2.7rem;
    }

    .photo-report-visual {
        min-height: 560px;
    }

    .photo-report-device-image {
        max-width: 540px;
    }
}

@media (max-width: 991px) {
    .front-photo-report {
        padding-top: 46px;
    }

    .photo-report-block {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .photo-report-text {
        padding-bottom: 0;
        text-align: center;
    }

    .photo-report-title,
    .photo-report-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .photo-report-title {
        font-size: 2.3rem;
    }

    .photo-report-visual {
        min-height: auto;
        padding-top: 8px;
    }

    .photo-report-device-image {
        max-width: 500px;
    }
}

@media (max-width: 575px) {
    .front-photo-report {
        padding-top: 38px;
    }

    .photo-report-title {
        font-size: 1.85rem;
        line-height: 1.06;
    }

    .photo-report-desc {
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .photo-report-device-image {
        max-width: 360px;
    }

    .photo-report-placeholder {
        width: 100%;
        min-height: 360px;
        font-size: 1.2rem;
    }
}


/* ─── ФИНАЛЬНЫЙ CTA ─── */

.front-final-cta {
    background: #f7f7f7;
}
.final-cta-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.final-cta-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
}
.final-cta-btn {
    display: inline-block;
}


/* ─── АДАПТИВ ─── */

@media (max-width: 1024px) {
    .hero-inner {
        gap: 30px;
        padding-block: 60px;
    }
    .projects-grid--typical,
    .objects-grid--three,
    .extra-services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .hero-copy {
        align-self: center;
        text-align: center;
    }
    .hero-cta-box {
        align-self: center;
        width: 90%;
        max-width: 400px;
    }
    .hero-cta-btn {
        width: 80%;
    }
    .front-hero {
        background-attachment: scroll;   /* отключаем параллакс на мобильных */
    }
    .custom-cta-block,
    .photo-report-block {
        grid-template-columns: 1fr;
    }
    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta-box {
        padding: 20px;
    }
    .projects-grid--typical,
    .objects-grid--three,
    .extra-services-grid {
        grid-template-columns: 1fr;
    }
    .tech-grid {
        grid-template-columns: 1fr;
    }
}