:root {
    --color-teal: #1b7480;
    --color-teal-light: #2d98a8;
    --color-purple: #3a1c5c;
    --color-purple-light: #522a7a;
    --color-blue-grey: #6b7593;
    --color-bg: #f4f7f9;
    --color-sidebar: #1c2230;
    --color-sidebar-hover: #262d3f;
    --color-heading: #1c2230;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: #1c2b39;
    background: var(--color-bg);
}

/* ===== Общий каркас ===== */

.layout {
    min-height: 100vh;
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* центрируем контент по горизонтали */
    min-height: 100vh;
    padding-top: 90px; /* чтобы контент не прятался под бургер-кнопкой */
    width: 100%;
}

/* ===== Бургер-кнопка ===== */

.menu-burger {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--color-sidebar);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.burger-line {
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.menu-burger.burger-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-burger.burger-open .burger-line:nth-child(2) {
    opacity: 0;
}
.menu-burger.burger-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Затемнение фона ===== */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.overlay-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ===== Сайдбар: выезжает слева ===== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    background: var(--color-sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 90px 20px 30px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.35);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar.sidebar-open {
    transform: translateX(0);
}

.sidebar-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 40px;
    padding: 16px 12px;
    background: #f4f7f9;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.logo-img {
    display: block;
    width: 85%;
    max-width: 220px;
    height: auto;
    margin: 0 auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav a {
    color: #fff;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 15px;
    transition: background 0.2s ease;
}

.sidebar-nav a:hover {
    background: var(--color-sidebar-hover);
    border-left: 3px solid var(--color-teal-light);
    padding-left: 11px;
}

@media (max-width: 480px) {
    .sidebar {
        width: 240px;
    }
}

/* ===== Полноэкранная 3D-заставка ===== */

.page-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
    width: 100%;
}

/* ===== Главная: фон-фото и карточки разделов ===== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 82vh;
    min-height: 620px;
    overflow: hidden;
    width: 100%;
    background-image: url('/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
}

.hero-inner {
    max-width: 760px;
    width: 100%;
    text-align: center;
    color: #fff;
    background: rgba(10,12,20,0.45);
    border-radius: 16px;
    padding: 40px 32px;
    backdrop-filter: blur(2px);
}

.hero-inner h1 {
    font-size: 36px;
    margin-bottom: 16px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-tagline {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.hero-section-card {
    display: block;
    padding: 22px 18px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-section-card:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-2px);
}

.hero-sections a:nth-child(5) {
    grid-column: 1 / -1;
}

@media (max-width: 560px) {
    .hero-sections {
        grid-template-columns: 1fr;
    }
}

/* ===== Обычные страницы (Контакты, Клиенты, Проекты) ===== */

.content-block {
    max-width: 900px;
    width: 100%;
    margin-top: 90px;
    padding: 0 20px 40px;
}

.content-block h1 {
    margin-bottom: 20px;
    color: var(--color-heading);
}

.client-card, .project-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid var(--color-teal);
}

/* ===== Подвал ===== */

.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--color-blue-grey);
    font-size: 13px;
    margin-top: auto;
    width: 100%;
}

/* ===== Контакты: список с иконками ===== */

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 30px 0 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 13px;
    color: var(--color-blue-grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 17px;
    color: #1c2b39;
}

/* ===== Карта на странице контактов ===== */

.map-heading {
    margin: 10px 0 16px;
    color: var(--color-heading);
    font-size: 22px;
}

.contacts-map {
    height: 420px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    margin-bottom: 20px;
}
/* ===== Вводный текст раздела ===== */

.section-intro {
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 17px;
    line-height: 1.6;
    color: #34495e;
}
/* ===== Аккордеон в сайдбаре ===== */

.sidebar-nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    color: #fff;
    text-align: left;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease;
}
.sidebar-nav-toggle:hover {
    background: var(--color-sidebar-hover);
    border-left: 3px solid var(--color-teal-light);
    padding-left: 11px;
}

.toggle-arrow {
    transition: transform 0.25s ease;
    font-size: 12px;
}

.sidebar-nav-toggle.toggle-open .toggle-arrow {
    transform: rotate(180deg);
}

.sidebar-submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease;
    padding-left: 12px;
}

.sidebar-submenu.submenu-open {
    max-height: 300px;
}

.sidebar-submenu a {
    color: var(--color-teal-light);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s ease;
}

.sidebar-submenu a:hover {
    background: var(--color-sidebar-hover);
    color: #fff;
}
/* ===== Тизер "Преимущества" на главной ===== */

/* ===== Тизер "Преимущества" на главной ===== */

.advantages-teaser {
    background: linear-gradient(to bottom, #1c1430 0%, var(--color-bg) 55%);
    padding: 0 20px 70px;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    align-self: stretch;
}

.advantages-teaser-inner {
    max-width: 820px;
    width: 100%;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    padding: 50px 32px;
    margin-top: -70px;
    position: relative;
    z-index: 2;
}

.advantages-teaser-inner h2 {
    font-size: 26px;
    color: var(--color-heading);
    margin-bottom: 16px;
}

.advantages-teaser-text {
    font-size: 16px;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 36px;
}

.advantages-teaser-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
    text-align: left;
}

.teaser-point {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: #1c2b39;
}

.teaser-point-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--color-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.teaser-point-icon svg {
    width: 20px;
    height: 20px;
}

.teaser-button {
    display: inline-block;
    background: var(--color-purple);
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.25s ease;
}

.teaser-button:hover {
    background: var(--color-purple-light);
}

@media (max-width: 560px) {
    .advantages-teaser-points {
        grid-template-columns: 1fr;
    }
}
/* ===== Реквизиты ===== */

.requisites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.requisites-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border-left: 4px solid var(--color-teal);
}

.requisites-card h3 {
    color: var(--color-heading);
    margin-bottom: 14px;
    font-size: 18px;
}

.requisites-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #1c2b39;
}

@media (max-width: 700px) {
    .requisites-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== Витринные проекты на страницах разделов ===== */

.showcase-projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 30px;
}

.objects-empty {
    text-align: center;
    color: var(--color-blue-grey);
    font-size: 15px;
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .showcase-projects {
        grid-template-columns: 1fr;
    }
}
/* ===== Легенда на карте ===== */

.map-wrapper {
    position: relative;
}

.map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255,255,255,0.92);
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-sidebar);
    z-index: 10;
    pointer-events: none;
}

/* ===== Кнопка "наверх" ===== */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--color-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
    z-index: 900;
}

.back-to-top.back-to-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-teal-light);
}

@media (max-width: 480px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ===== Блок "Нам доверяют" — горизонтальная лента ===== */

.trust-section {
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
}

.trust-heading {
    font-size: 22px;
    color: var(--color-heading);
    margin-bottom: 20px;
}

.trust-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.trust-scroll::-webkit-scrollbar {
    height: 6px;
}

.trust-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.trust-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 3px;
}

.trust-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 200px;
    height: 90px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.trust-chip:hover {
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.trust-chip span {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-heading);
    line-height: 1.35;
}

@media (max-width: 480px) {
    .trust-chip {
        width: 170px;
        height: 85px;
        padding: 12px;
    }

    .trust-chip span {
        font-size: 13px;
    }
}
/* ===== Секции главной страницы (якоря) ===== */

.section {
    width: 100%;
    scroll-margin-top: 100px;
}

.section-inner {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 70px 20px;
}

.section-heading {
    text-align: center;
    font-size: 28px;
    color: var(--color-heading);
    margin-bottom: 40px;
}

.section-heading span {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--color-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ===== "О компании" на главной ===== */

.about-section {
    background: #fff;
}

.about-section .section-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #34495e;
    margin-bottom: 24px;
}

.about-points {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 760px) {
    .about-section .section-inner {
        grid-template-columns: 1fr;
    }
}

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

.services-section {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-card-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 18px;
    color: var(--color-heading);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-blue-grey);
    flex-grow: 1;
}

.service-card-more {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-teal);
}

@media (max-width: 900px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .services-grid { grid-template-columns: 1fr; }
}

/* ===== "Нам доверяют" на главной ===== */

.trust-home {
    background: #fff;
    display: flex;
    justify-content: center;
}

.trust-home .trust-section {
    max-width: 1000px;
}

/* ===== Контакты внизу главной ===== */

.contacts-bottom {
    background: var(--color-sidebar);
    color: #fff;
}

.contacts-bottom .section-heading { color: #fff; }
.contacts-bottom .section-heading span { color: var(--color-teal-light); }

.contacts-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contacts-bottom .contact-list { margin: 0; }
.contacts-bottom .contact-value { color: #fff; }
.contacts-bottom .contact-icon { background: var(--color-teal-light); }

.contacts-bottom-cta-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 760px) {
    .contacts-bottom-grid { grid-template-columns: 1fr; }
}

/* ===== Всплывающее окно "Оставить заявку" ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,12,20,0.55);
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.modal-visible {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    padding: 36px 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translateY(16px);
    transition: transform 0.25s ease;
}

.modal-overlay.modal-visible .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue-grey);
    font-size: 16px;
    line-height: 1;
}

.modal-close:hover { background: #e6ebee; }

.modal-title {
    font-size: 20px;
    color: var(--color-heading);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-blue-grey);
    line-height: 1.5;
    margin-bottom: 22px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.modal-form input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe2e6;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: #1c2b39;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--color-teal);
}

.modal-submit {
    margin-top: 6px;
    background: var(--color-purple);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease;
}

.modal-submit:hover { background: var(--color-purple-light); }

.modal-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-blue-grey);
}

/* ===== Карта в тёмном блоке контактов на главной ===== */

.contacts-map-home {
    height: 100%;
    min-height: 300px;
    margin-bottom: 0;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}

/* =========================================================
   Появление блоков главной страницы при скролле (как на сайте-образце)
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(48px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Каскадное появление карточек внутри блока — по очереди */

@keyframes revealChild {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-visible .service-card,
.reveal-visible .trust-chip,
.reveal-visible .about-points .teaser-point,
.reveal-visible .contacts-bottom-grid .contact-item {
    opacity: 0;
    animation: revealChild 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-visible .service-card:nth-child(1) { animation-delay: 0.05s; }
.reveal-visible .service-card:nth-child(2) { animation-delay: 0.15s; }
.reveal-visible .service-card:nth-child(3) { animation-delay: 0.25s; }
.reveal-visible .service-card:nth-child(4) { animation-delay: 0.35s; }
.reveal-visible .service-card:nth-child(5) { animation-delay: 0.45s; }
.reveal-visible .service-card:nth-child(6) { animation-delay: 0.55s; }

.reveal-visible .about-points .teaser-point:nth-child(1) { animation-delay: 0.05s; }
.reveal-visible .about-points .teaser-point:nth-child(2) { animation-delay: 0.15s; }
.reveal-visible .about-points .teaser-point:nth-child(3) { animation-delay: 0.25s; }
.reveal-visible .about-points .teaser-point:nth-child(4) { animation-delay: 0.35s; }
.reveal-visible .about-points .teaser-point:nth-child(5) { animation-delay: 0.45s; }

.reveal-visible .trust-chip:nth-child(1) { animation-delay: 0.04s; }
.reveal-visible .trust-chip:nth-child(2) { animation-delay: 0.10s; }
.reveal-visible .trust-chip:nth-child(3) { animation-delay: 0.16s; }
.reveal-visible .trust-chip:nth-child(4) { animation-delay: 0.22s; }
.reveal-visible .trust-chip:nth-child(5) { animation-delay: 0.28s; }
.reveal-visible .trust-chip:nth-child(6) { animation-delay: 0.34s; }
.reveal-visible .trust-chip:nth-child(7) { animation-delay: 0.40s; }
.reveal-visible .trust-chip:nth-child(8) { animation-delay: 0.46s; }
.reveal-visible .trust-chip:nth-child(9) { animation-delay: 0.52s; }
.reveal-visible .trust-chip:nth-child(10) { animation-delay: 0.58s; }

.reveal-visible .contacts-bottom-grid .contact-item:nth-child(1) { animation-delay: 0.05s; }
.reveal-visible .contacts-bottom-grid .contact-item:nth-child(2) { animation-delay: 0.17s; }
.reveal-visible .contacts-bottom-grid .contact-item:nth-child(3) { animation-delay: 0.29s; }
.reveal-visible .contacts-bottom-grid .contact-item:nth-child(4) { animation-delay: 0.41s; }

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-visible .service-card,
    .reveal-visible .trust-chip,
    .reveal-visible .about-points .teaser-point,
    .reveal-visible .contacts-bottom-grid .contact-item {
        opacity: 1;
        transform: none;
        animation: none;
        transition: none;
    }
}
/* ===== Прелоадер логотипа (главная страница) ===== */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff; /* фон самого logo.png белый — важно совпадение */
    animation: preloaderFadeOut 0.5s ease 1.9s forwards;
}

.preloader-logo {
    position: relative;
    width: clamp(140px, 22vw, 220px);
    aspect-ratio: 1 / 1;
    opacity: 0;
    transform: scale(0.72);
    animation: preloaderLogoIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}

.preloader-logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Прямоугольник, накрывающий полосу с текстом на логотипе.
   top/height подобраны по пропорциям исходного файла —
   если после проверки в браузере текст будет чуть виден по краям
   или маска чуть велика, подправь top и height на 1-2%. */
.preloader-logo-mask {
    position: absolute;
    left: 0;
    right: 0;
    top: 43.5%;
    height: 13%;
    background: #ffffff;
    animation: preloaderMaskOut 0.5s ease 1.05s forwards;
}

@keyframes preloaderLogoIn {
    from { opacity: 0; transform: scale(0.72); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes preloaderMaskOut {
    from { opacity: 1; }
    to   { opacity: 0; visibility: hidden; }
}

@keyframes preloaderFadeOut {
    from { opacity: 1; visibility: visible; }
    to   { opacity: 0; visibility: hidden; pointer-events: none; }
}

body.preloader-active {
    overflow: hidden;
}
.modal-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.modal-form-status {
    margin-top: 8px;
    font-size: 14px;
}

.modal-form-status.status-success {
    color: var(--color-teal);
}

.modal-form-status.status-error {
    color: #c0392b;
}
/* ============================================================
   Фоновые фото-блоки на страницах услуг (кроме теплоснабжения)
   ============================================================ */

.page-hero-photo {
    position: relative;
    padding: 64px 40px;
    margin-bottom: 32px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.page-hero-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(28, 34, 48, 0.8), rgba(27, 116, 128, 0.55));
    z-index: 0;
}

.page-hero-photo > * {
    position: relative;
    z-index: 1;
}

.page-hero-photo h1 {
    color: #fff;
}

.page-hero-photo .section-intro {
    color: rgba(255, 255, 255, 0.92);
    max-width: 760px;
}

.showcase-photo-bg {
    position: relative;
    padding: 48px 32px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    isolation: isolate;
}

.showcase-photo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 30, 0.68);
    z-index: 0;
}

.showcase-photo-bg .showcase-projects {
    position: relative;
    z-index: 1;
}

.showcase-photo-bg .project-card {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .page-hero-photo,
    .showcase-photo-bg {
        padding: 40px 20px;
    }
}
/* ============================================================
   Полупрозрачное фото на фон всей страницы услуги
   ============================================================ */

.page-content.page-photo-bg {
    position: relative;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    border-radius: 18px;
}

.page-content.page-photo-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(244, 247, 249, 0.72);
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.page-content.page-photo-bg > * {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-content.page-photo-bg {
        background-attachment: scroll;
    }
}
.footer-legal {
    margin-top: 8px;
    font-size: 0.85rem;
}

.footer-legal a {
    color: inherit;
    opacity: 0.75;
    text-decoration: underline;
}

.footer-legal a:hover {
    opacity: 1;
}

.modal-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 4px 0 12px;
    cursor: pointer;
}

.modal-consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--color-teal);
}

.modal-consent a {
    color: var(--color-teal);
    text-decoration: underline;
}

.modal-consent a:hover {
    color: var(--color-teal-light);
}

