:root {
    --bg: #0c111d;
    --bg-2: #111a2b;
    --panel: #16203a;
    --light: #eef2f8;
    --light-2: #f4f7fb;
    --text: #1a2233;
    --text-light: #ffffff;
    --muted: #8a97ad;
    --muted-2: #64748b;
    --blue: #2563eb;
    --blue-bright: #3b82f6;
    --blue-deep: #1e3a8a;
    --red: #e11d2a;
    --red-dark: #b91520;
    --border: rgba(255, 255, 255, 0.08);
    /* Поверхность как у модалки услуг */
    --surface-start: #16224a;
    --surface-end: #0e1830;
    --surface-bg: linear-gradient(160deg, #16224a 0%, #0e1830 100%);
    --surface-border: rgba(59, 130, 246, 0.25);
    --surface-text: #ffffff;
    --surface-text-muted: #c8d2e6;
    --surface-text-soft: #d4ddee;
    --surface-panel: rgba(255, 255, 255, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --container: 1440px;
    --header-h: 110px;
    --shadow: 0 20px 60px rgba(8, 15, 30, 0.18);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --scrollbar-thumb: #2563eb;
    --scrollbar-size: 7px;
}

/* ===== Кастомные вертикальные скроллбары ===== */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}
*::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}
*::-webkit-scrollbar-track {
    background: transparent;
}
*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-corner {
    display: none;
    width: 0;
    height: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== Кнопки ===== */
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--red);
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    padding: 16px 32px;
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-accent:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(225, 29, 42, 0.35);
}
.btn-accent--wide { padding-left: 56px; padding-right: 56px; }
.btn-accent--block { width: 100%; }
.btn-accent--ghost { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-accent--ghost:hover { background: var(--red); color: #fff; }

/* ===== Eyebrow заголовок ===== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue);
    margin-bottom: 24px;
}
.section-eyebrow .dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--blue-bright);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

/* ============================================================
   ВЕРХНЯЯ ЛИНИЯ + ШАПКА (плавающая)
   ============================================================ */
.topline {
    background: var(--surface-bg);
    color: var(--surface-text-muted);
    font-size: 13px;
    border-bottom: 1px solid var(--surface-border);
    position: relative;
    z-index: 60;
}
.topline__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}
.topline__text { color: var(--blue-bright); font-weight: 500; }
.topline__contacts { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topline__contacts a { color: var(--surface-text-soft); transition: color 0.2s; }
.topline__contacts a:hover { color: var(--surface-text); }
.topline__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}
.topline__contact iconify-icon { color: var(--red); flex-shrink: 0; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.35s ease, background 0.35s ease;
}
.header.is-scrolled {
    --header-h: 65px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.96);
}
.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 56px;
    height: var(--header-h);
    transition: height 0.35s ease;
}
.header__end {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 0;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; margin-right: 0; }
.logo img {
    display: block;
    height: 48px;
    width: auto;
}
.header .logo img {
    height: 90px;
    transition: height 0.35s ease;
}
.header.is-scrolled .logo img {
    height: 50px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-width: 0;
    flex: 1;
    padding: 0 24px;
}
.nav__link {
    display: inline-flex;
    flex: 0 0 auto;
    text-decoration: none;
    color: inherit;
}
.nav__link .corner-frame,
.nav__link .corner-frame--nav {
    --cf-color: var(--text);
    width: auto;
    max-width: none;
}
.nav__link:hover .corner-frame,
.nav__link.is-active .corner-frame { --cf-color: var(--blue); }
.nav__link:hover .corner-frame__border,
.nav__link.is-active .corner-frame__border { opacity: 1; }

.nav__cta {
    padding: 0;
    color: inherit;
    flex-shrink: 0;
}
.nav__cta .corner-frame { --cf-color: var(--red); white-space: nowrap; }
.nav__cta:hover .corner-frame { --cf-color: var(--red-dark); }
.nav__cta:hover .corner-frame__border { opacity: 1; }

/* Меню и бренды: без уголков, рамка только при наведении */
.corner-frame--nav .corner-frame__c,
.corner-frame--trust .corner-frame__c,
.mobile-menu__link .corner-frame__c {
    display: none;
}
.corner-frame {
    --cf-color: currentColor;
    --cf-size: 9px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    min-height: 42px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 1.2;
    color: var(--cf-color);
    white-space: nowrap;
    transition: color 0.25s ease;
}
.corner-frame__text { position: relative; z-index: 2; }
.corner-frame__border {
    position: absolute;
    inset: 0;
    border: 1px solid var(--cf-color);
    opacity: 0;
    transition: opacity 0.22s ease;
    pointer-events: none;
    z-index: 1;
}
.corner-frame__c {
    position: absolute;
    width: var(--cf-size);
    height: var(--cf-size);
    border-color: var(--cf-color);
    border-style: solid;
    transition: opacity 0.22s ease, border-color 0.25s ease;
    pointer-events: none;
    z-index: 1;
}
.corner-frame__c--tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.corner-frame__c--tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.corner-frame__c--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.corner-frame__c--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.corner-frame:hover .corner-frame__border,
.corner-frame.is-active .corner-frame__border { opacity: 1; }
.corner-frame:hover .corner-frame__c,
.corner-frame.is-active .corner-frame__c { opacity: 0; }
.corner-frame--nav:hover .corner-frame__border,
.corner-frame--nav.is-active .corner-frame__border,
.corner-frame--trust:hover .corner-frame__border,
.corner-frame--trust.is-active .corner-frame__border,
.nav__link:hover .corner-frame__border,
.nav__link.is-active .corner-frame__border { opacity: 1; }
.corner-frame--accent { --cf-color: var(--red); }
.corner-frame--nav,
.nav__cta .corner-frame {
    padding: 7px 10px;
    min-height: 36px;
    font-size: 11px;
    letter-spacing: 0.03em;
}

.burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: calc(var(--header-h) + 40px);
    left: 0; right: 0;
    background: #fff;
    padding: 20px 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 45;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__link {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f6;
}
.mobile-menu__link .corner-frame { --cf-color: var(--text); width: 100%; justify-content: flex-start; }
.mobile-menu__cta {
    margin-top: 16px;
    padding: 0;
    width: 100%;
}
.mobile-menu__cta .corner-frame { --cf-color: var(--red); width: 100%; }
.mobile-menu__contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mobile-menu__contacts a { font-weight: 500; color: var(--blue); }

/* ============================================================
   HERO (светлый оверлей, типографика чёрный → синий)
   ============================================================ */
.hero { position: relative; width: 100%; }
.heroSwiper { width: 100%; height: clamp(520px, 78vh, 760px); }
.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center right;
    background-color: #e8eef6;
    background-image: linear-gradient(120deg, #f5f8fc 0%, #dbe5f2 45%, #9bb4d4 100%);
    display: flex;
    align-items: center;
}
.hero-slide__shade {
    position: absolute; inset: 0;
    background: linear-gradient(
        95deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.9) 28%,
        rgba(255, 255, 255, 0.55) 48%,
        rgba(255, 255, 255, 0.12) 72%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: var(--hero-shade, 1);
}
.hero-slide__inner { position: relative; z-index: 2; width: 100%; }
.hero-slide__content { max-width: 820px; }
.hero-slide__overline {
    display: block;
    color: #0f172a;
    font-weight: 700;
    font-size: clamp(12px, 1.1vw, 14px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero-slide__title {
    color: #1e4a8c;
    font-weight: 700;
    font-size: clamp(26px, 3.8vw, 42px);
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 20px;
}
.hero-slide__title-accent {
    display: block;
    color: #3b82f6;
    margin-top: 0.15em;
}
.hero-slide__subtitle {
    color: #0f172a;
    font-size: clamp(15px, 1.4vw, 18px);
    font-weight: 500;
    margin: 0 0 34px;
    max-width: 520px;
}
.hero-slide__btn {
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.heroSwiper__pagination { position: absolute; bottom: 28px !important; left: 0; width: 100%; text-align: center; z-index: 3; }
.heroSwiper__pagination .swiper-pagination-bullet {
    width: 36px; height: 4px; border-radius: 2px;
    background: #1e4a8c; opacity: 0.28; transition: opacity 0.2s;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.heroSwiper__pagination .swiper-pagination-bullet-active { opacity: 1; background: var(--red); }

.hero__nav { position: absolute; z-index: 4; right: 40px; bottom: 28px; display: flex; gap: 10px; }
.hero__arrow {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(30, 74, 140, 0.2);
    color: #1e4a8c;
    display: grid; place-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
}
.hero__arrow:hover { background: var(--red); border-color: var(--red); color: #fff; transform: scale(1.05); }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services { background: var(--light-2); padding: 90px 0; }
.services__top {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 44px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}
.services__intro-title {
    margin: 0 0 12px;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
}
.services__intro p {
    font-size: clamp(15px, 1.35vw, 17px);
    font-weight: 400;
    color: var(--text);
    margin: 0;
    line-height: 1.55;
}
.services__intro-list {
    margin: 14px 0 0;
    padding: 0 0 0 1.1em;
    list-style: disc;
}
.services__intro-list li {
    font-size: clamp(14px, 1.25vw, 15.5px);
    line-height: 1.5;
    color: var(--text);
    margin: 0 0 8px;
}
.services__intro-list li:last-child { margin-bottom: 0; }
.services__intro-advantage {
    margin-top: 14px !important;
    font-weight: 550 !important;
    color: var(--blue-deep) !important;
}

.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.counter {
    background: linear-gradient(160deg, #16203a 0%, #0e1729 100%);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    color: #fff;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.counter__num { display: block; font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1; color: #fff; }
.counter__label { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Таймлайн */
.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 64px 0 56px;
    padding: 0 10px;
    --timeline-accent-at: 71.43%;
}
.timeline::before {
    content: "";
    position: absolute;
    top: 9px; left: 5%; right: 5%;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--blue) 0%,
        var(--blue-bright) var(--timeline-accent-at),
        var(--red) var(--timeline-accent-at),
        #ef4444 100%
    );
    border-radius: 2px;
}
.timeline__step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; min-width: 0; }
.timeline__dot {
    position: relative;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--blue);
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
    cursor: default;
}
.timeline__step--accent .timeline__dot {
    background: var(--red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.28);
}
.timeline__step:hover .timeline__dot,
.timeline__step:focus-within .timeline__dot { transform: scale(1.25); background: var(--red); }
.timeline__tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(6px);
    min-width: 180px;
    max-width: 240px;
    padding: 10px 12px;
    background: #0f172a;
    color: #fff;
    font-size: 12.5px;
    font-weight: 450;
    line-height: 1.45;
    border-radius: 8px;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 20;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
}
.timeline__tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: #0f172a;
}
.timeline__step:hover .timeline__tooltip,
.timeline__step:focus-within .timeline__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.timeline__label { margin-top: 14px; font-size: 13px; font-weight: 500; color: var(--text); max-width: 110px; }
.timeline__step--accent .timeline__label { color: var(--red); font-weight: 600; }

/* Карточки направлений */
.directions-wrap { position: relative; }
.directionsSwiper { overflow: hidden; padding: 4px 2px 8px; }
.directionsSwiper .swiper-slide { height: auto; }
.directions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.direction {
    position: relative;
    width: 100%;
    height: 230px;
    border-radius: var(--radius);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--panel);
    text-align: left;
    transition: transform 0.4s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    border: 0;
    cursor: pointer;
}
.direction--heating { background-image: linear-gradient(160deg, #7f1d1d 0%, #b91c1c 100%); }
.direction--water { background-image: linear-gradient(160deg, #0c4a6e 0%, #0369a1 100%); }
.direction--ventilation { background-image: linear-gradient(160deg, #1e3a8a 0%, #2563eb 100%); }
.direction--conditioning { background-image: linear-gradient(160deg, #155e63 0%, #0e7490 100%); }
.direction--automation { background-image: linear-gradient(160deg, #312e81 0%, #4f46e5 100%); }
.directions__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.directions__arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid #dbe3f0;
    background: #fff;
    color: var(--text);
    display: grid; place-items: center;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
    cursor: pointer;
}
.directions__arrow:hover { background: var(--blue); color: #fff; }
.direction__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,28,0.15) 0%, rgba(8,14,28,0.85) 100%); transition: background 0.3s; }
.direction__name { position: relative; z-index: 2; color: #fff; font-weight: 500; font-size: 18px; line-height: 1.3; }
.direction__plus {
    position: absolute; z-index: 2; top: 16px; right: 18px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
    transition: background 0.25s;
}
.direction__plus iconify-icon { display: block; flex-shrink: 0; }
.direction:hover { transform: scale(1.04); box-shadow: var(--shadow); z-index: 3; }
.direction:hover .direction__shade { background: linear-gradient(180deg, rgba(30,58,138,0.45) 0%, rgba(8,14,28,0.9) 100%); }
.direction:hover .direction__plus { background: var(--red); }
.direction:hover .direction__plus iconify-icon { transform: rotate(90deg); transition: transform 0.25s; }

/* ===== Модалка услуг ===== */
.svc-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.svc-modal.is-open { display: flex; }
.svc-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 22, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.svc-modal__panel {
    position: relative;
    z-index: 2;
    width: min(1080px, 96vw);
    max-height: 88vh;
    overflow-y: auto;
    background: var(--surface-bg);
    color: var(--surface-text);
    border-radius: 20px;
    padding: 48px;
    border: 1px solid var(--surface-border);
    box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}
.svc-modal__close {
    position: absolute; top: 18px; right: 22px;
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff; font-size: 26px; line-height: 1;
    display: grid; place-items: center; transition: background 0.2s;
}
.svc-modal__close:hover { background: var(--red); }
.svc-modal__title { font-size: clamp(22px, 3vw, 32px); font-weight: 600; margin: 0 0 24px; color: var(--surface-text); padding-right: 50px; }
.svc-modal__lead { color: var(--surface-text-muted); margin: 0 0 16px; font-size: 16px; }
.svc-modal__subtitle { font-weight: 500; color: var(--blue-bright); margin: 24px 0 12px; font-size: 16px; }
.svc-modal__list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.svc-modal__list li { position: relative; padding-left: 26px; color: var(--surface-text-soft); }
.svc-modal__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }
.svc-modal__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-tag { background: rgba(59,130,246,0.16); border: 1px solid rgba(59,130,246,0.35); color: #cfe0ff; font-size: 13px; font-weight: 500; padding: 9px 14px; border-radius: 8px; }
.svc-modal__order { margin-top: 28px; }

/* ============================================================
   О КОМПАНИИ
   ============================================================ */
.about {
    background: var(--surface-bg);
    padding: 100px 0;
    color: var(--surface-text);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}
.about__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.about .section-eyebrow { color: var(--blue-bright); }
.about__title {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 500;
    line-height: 1.28;
    margin: 0 0 26px;
    color: var(--surface-text);
    background: none;
    -webkit-text-fill-color: unset;
}
.about__text { color: var(--surface-text-muted); font-size: 16px; margin: 0 0 18px; max-width: 560px; line-height: 1.7; }
.about__media { display: flex; flex-direction: column; gap: 24px; }
.about__photo {
    height: 280px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-start);
    background-image: linear-gradient(135deg, var(--surface-start) 0%, var(--surface-end) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--surface-border);
}
.about__triggers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about__trigger {
    background: var(--surface-panel);
    border-radius: var(--radius-sm);
    padding: 24px;
    border: 1px solid var(--surface-border);
}
.about__trigger .counter__num { color: #fff; }
.about__trigger .counter__label { color: var(--surface-text-soft); }

/* ============================================================
   ПРОЕКТЫ
   ============================================================ */
.projects { background: var(--light-2); padding: 90px 0; }
.projects__lead { color: var(--muted-2); font-size: 17px; max-width: 760px; margin: 0 0 44px; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 48px; }
.cat-card {
    background: #fff;
    border: 1px solid #e6ebf3;
    border-radius: var(--radius);
    padding: 34px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.cat-card__icon { color: var(--muted-2); transition: color 0.3s, transform 0.3s; }
.cat-card__name { font-weight: 500; font-size: 14px; color: var(--text); transition: color 0.3s; }
.cat-card:hover, .cat-card.is-active { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(37,99,235,0.4); }
.cat-card:hover .cat-card__icon, .cat-card.is-active .cat-card__icon { color: var(--blue); transform: scale(1.08); }
.cat-card:hover .cat-card__name, .cat-card.is-active .cat-card__name { color: var(--blue); }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.proj-grid--page { margin-top: 30px; }
.proj-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15,23,42,0.06);
    transition: transform 0.35s, box-shadow 0.35s;
    display: flex; flex-direction: column;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-card__link-wrap { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; height: 100%; }
.proj-card__link-wrap:hover { color: inherit; }
.proj-card__img { position: relative; height: 210px; background-size: cover; background-position: center; background-color: var(--panel); background-image: linear-gradient(135deg, #1b2a4d 0%, #2563eb 120%); }
.proj-card__img::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 14, 28, 0.72) 100%);
    pointer-events: none;
    z-index: 1;
}
.proj-card__badge { position: absolute; top: 14px; left: 14px; background: rgba(8,14,28,0.72); color: #fff; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 7px; backdrop-filter: blur(4px); z-index: 2; }
.proj-card__meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.proj-card__date { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.proj-card__address { font-size: 12.5px; font-weight: 450; opacity: 0.95; line-height: 1.35; }
.proj-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-card__title { font-size: 18px; font-weight: 600; margin: 0; color: var(--text); }
.proj-card__subtitle { color: var(--muted-2); font-size: 14.5px; margin: 0; flex: 1; }
.proj-card__link { color: var(--blue); font-weight: 500; font-size: 14px; transition: gap 0.2s; }
.proj-card__link:hover { color: var(--red); }

.proj-card.is-hidden { display: none; }
.projects__cta { display: flex; justify-content: center; margin-top: 48px; }
.proj-empty { text-align: center; color: var(--muted-2); padding: 40px 0; grid-column: 1 / -1; }

/* ===== Страница проектов ===== */
.page-projects { background: var(--light-2); }
.proj-hero { background: var(--bg); color: #fff; padding: 120px 0 70px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 30px; }
.breadcrumbs a { color: var(--muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs__sep { color: #475569; opacity: 0.7; }
.breadcrumbs__current { color: var(--blue-bright); font-weight: 500; }
.proj-hero__title { font-size: clamp(30px, 4vw, 48px); font-weight: 500; margin: 0 0 18px; }
.proj-hero__lead { color: var(--muted); max-width: 720px; font-size: 16px; margin: 0; }

.proj-list { padding: 50px 0 90px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.filter-btn {
    background: #fff;
    border: 1px solid #e2e8f2;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 30px;
    transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ===== Страница проекта (новый дизайн) ===== */
.page-project { background: var(--light-2); }
.project-hero {
    position: relative;
    min-height: clamp(320px, 48vh, 480px);
    display: flex;
    align-items: flex-end;
    background-color: #0b1120;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(120deg, #0f1b35 0%, #1e3a8a 100%);
}
.project-hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8,14,28,0.35) 0%, rgba(8,14,28,0.88) 100%);
}
.project-hero__inner { position: relative; z-index: 2; padding: 120px 0 56px; width: 100%; }
.breadcrumbs--light a { color: rgba(255,255,255,0.65); }
.breadcrumbs--light a:hover { color: #fff; }
.breadcrumbs--light .breadcrumbs__current { color: var(--blue-bright); }
.project-hero__badge {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.45);
    color: #cfe0ff;
    font-size: 12px; font-weight: 500;
    padding: 7px 14px; border-radius: 30px; margin-bottom: 18px;
}
.project-hero__title {
    color: #fff; font-size: clamp(28px, 4vw, 46px); font-weight: 500;
    line-height: 1.1; margin: 0 0 16px; max-width: 900px;
}
.project-hero__lead { color: #c4cee0; font-size: 18px; max-width: 720px; margin: 0; }

.project-body { padding: 56px 0; }
.project-body__grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }
.project-body__main {
    background: #fff; border-radius: var(--radius); padding: 36px 40px;
    box-shadow: 0 10px 40px rgba(15,23,42,0.06); border: 1px solid #e8edf5;
}
.project-body__content { color: var(--text); font-size: 16px; line-height: 1.75; }
.project-body__content p { margin: 0 0 16px; }
.project-info-card {
    background: var(--bg); color: #fff; border-radius: var(--radius);
    padding: 28px; border: 1px solid var(--border); position: sticky; top: calc(var(--header-h) + 24px);
}
.project-info-card__title { font-size: 18px; margin: 0 0 20px; font-weight: 600; }
.project-info-card__list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.project-info-card__list li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.project-info-card__list li span { font-size: 12px; color: var(--muted); }
.project-info-card__list li strong { font-size: 16px; color: #fff; }
.project-info-card .btn-accent { margin-bottom: 10px; }

.project-gallery { padding: 0 0 70px; }
.project-gallery__title { font-size: clamp(22px, 3vw, 32px); font-weight: 600; margin: 0 0 28px; color: var(--text); }
.project-gallery__slider-wrap { position: relative; padding: 0 40px; max-width: var(--container); margin: 0 auto; }
.projectGallerySwiper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.project-gallery__slide { height: auto; }
.project-gallery__img {
    height: clamp(260px, 42vw, 480px);
    background-size: cover; background-position: center;
    background-color: var(--panel);
}
.projectGallery__pagination { bottom: 14px !important; }
.project-gallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 46px; height: 46px; border-radius: 50%;
    background: #fff; color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: grid; place-items: center; transition: background 0.2s, color 0.2s;
}
.project-gallery__nav:hover { background: var(--blue); color: #fff; }
.projectGallery__prev { left: 0; }
.projectGallery__next { right: 0; }

.project-cta-band {
    background: linear-gradient(135deg, var(--bg) 0%, #16224a 100%);
    color: #fff; padding: 48px 0; margin-bottom: 0;
}
.project-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.project-cta-band h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); font-weight: 600; }
.project-cta-band p { margin: 0; color: var(--muted); font-size: 16px; }

/* Legacy project-single (fallback) */
.page-project .project-single { padding: 0 0 90px; }

/* ===== Юридические страницы ===== */
.page-legal { background: var(--light-2); }
.legal-page { padding: 120px 0 90px; background: #fff; }
.legal-page__title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 0 0 28px; color: var(--text); }
.legal-page__content { color: var(--muted-2); font-size: 16px; line-height: 1.75; max-width: 820px; }
.legal-page__content p { margin: 0 0 16px; }

.section-eyebrow--light { color: var(--blue-bright); }
.section-eyebrow--light .dot { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); }

/* ============================================================
   НАМ ДОВЕРЯЮТ
   ============================================================ */
.trust {
    background: var(--light-2);
    color: var(--text);
    padding: 80px 0;
    border-top: 1px solid #e6ebf3;
}
.trust__top {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}
.trust .section-eyebrow { color: var(--blue); }
.trust .section-eyebrow .dot { background: var(--blue-bright); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18); }
.trust__title {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 16px;
    color: var(--text);
    max-width: 520px;
}
.trust__line {
    display: block;
    width: 56px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 20px;
}
.trust__text {
    color: var(--muted-2);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
    max-width: 560px;
}
.trust__photo {
    height: clamp(220px, 28vw, 320px);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #e8edf5 0%, #dce4f0 100%);
    background-size: cover;
    background-position: center;
    border: 1px solid #e2e8f2;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}
.trust__slider-wrap { position: relative; }
.trustSwiper { overflow: hidden; padding: 6px 2px 10px; }
.trustSwiper .swiper-slide {
    width: 160px !important;
    height: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}
.trust-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 80px;
    flex-shrink: 0;
}
.corner-frame--trust {
    --cf-color: var(--text);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    width: 160px;
    height: 80px;
    min-height: 80px;
    max-height: 80px;
    font-size: 11px;
    padding: 10px 8px;
    box-sizing: border-box;
    flex-shrink: 0;
}
.corner-frame--trust .corner-frame__text {
    text-align: center;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    word-break: break-word;
}
.corner-frame--trust:hover { --cf-color: var(--blue); }
.trust__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.trust__arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f2;
    color: var(--text);
    display: grid; place-items: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.trust__arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ============================================================
   ЛИЦЕНЗИИ
   ============================================================ */
.licenses {
    background: #fff;
    color: var(--text);
    padding: 80px 0;
    border-top: 1px solid #e6ebf3;
}
.licenses__grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1.5fr;
    gap: 36px;
    align-items: start;
}
.licenses .section-eyebrow { color: var(--blue); }
.licenses .section-eyebrow .dot { background: var(--blue-bright); }
.licenses__title {
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 16px;
    max-width: 420px;
    color: var(--text);
}
.licenses__line {
    display: block;
    width: 56px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
    margin-bottom: 20px;
}
.licenses__text {
    color: var(--muted-2);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 14px;
    max-width: 480px;
}
.licenses__cards { position: relative; min-width: 0; }
.licensesSwiper { overflow: hidden; padding-bottom: 4px; }
.licensesSwiper .swiper-wrapper { align-items: stretch; }
.licensesSwiper .swiper-slide {
    height: auto;
    display: flex;
}
.license-card {
    background: var(--light-2);
    border: 1px solid #e6ebf3;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    min-height: 360px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s, transform 0.25s;
}
.license-card:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}
.license-card__img {
    height: 200px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #eef3fb 0%, #dce8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.license-card__img--empty::before {
    content: '';
    width: 48px;
    height: 48px;
    opacity: 0.25;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231a2233'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
}
.license-card__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    display: block;
}
.license-card__body {
    padding: 20px 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.license-card__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    line-height: 1.35;
    color: var(--text);
}
.license-card__desc {
    margin: 0;
    color: var(--muted-2);
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}
.licenses__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}
.licenses__arrow {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f2;
    color: var(--text);
    display: grid; place-items: center;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.licenses__arrow:hover { background: var(--blue); color: #fff; }
.licenses__notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid #e6ebf3;
}
.licenses__note {
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.65;
}
.licenses__note p { margin: 0; }
.licenses__note--accent {
    background: var(--light-2);
    border-left: 4px solid var(--red);
    color: var(--text);
}
.licenses__note--box {
    background: #fff;
    border: 1px solid #e2e8f2;
    color: var(--muted-2);
}

/* ============================================================
   БЛОК ФОРМЫ ПЕРЕД ПОДВАЛОМ
   ============================================================ */
.contact-block {
    position: relative;
    padding: 90px 0;
    overflow: hidden;
}
.contact-block__bg {
    position: absolute; inset: 0;
    background: linear-gradient(120deg, #0f1b35 0%, #16234a 55%, #1e3a8a 100%);
    background-size: cover;
    background-position: center;
}
.contact-block__shade {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(8,14,28,0.92) 0%, rgba(8,14,28,0.78) 45%, rgba(8,14,28,0.55) 100%);
}
.contact-block__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}
.contact-block__title {
    color: #fff;
    font-size: clamp(24px, 2.8vw, 34px);
    font-weight: 500;
    line-height: 1.28;
    margin: 0 0 28px;
    max-width: 560px;
}
.contact-block__info {
    background: rgba(8,14,28,0.55);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
    max-width: 520px;
}
.contact-block__info p {
    margin: 0;
    color: var(--surface-text-soft);
    font-size: 14px;
    line-height: 1.65;
}
.contact-block__form-wrap {
    background: rgba(14, 24, 48, 0.88);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ===== Общие стили форм ===== */
.site-form { display: flex; flex-direction: column; gap: 14px; }
.site-form__field { display: flex; flex-direction: column; gap: 6px; }
.site-form__label { font-size: 13px; font-weight: 600; color: var(--text); }
.site-form__field input,
.site-form__field textarea,
.site-form__field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.site-form__field input::placeholder,
.site-form__field textarea::placeholder { color: #8a97ad; }
.site-form__field input:focus,
.site-form__field textarea:focus,
.site-form__field select:focus {
    outline: none;
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18);
}
.site-form--order .site-form__field input,
.site-form--order .site-form__field textarea,
.site-form--order .site-form__field select {
    background: #fff;
    border-color: #e2e8f2;
    color: var(--text);
}
.site-form--order .site-form__field input::placeholder,
.site-form--order .site-form__field textarea::placeholder { color: #94a3b8; }
.site-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--surface-text-soft);
    cursor: pointer;
}
.site-form__consent input {
    margin-top: 3px;
    accent-color: var(--red);
    flex-shrink: 0;
}
.site-form__consent a { color: var(--blue-bright); text-decoration: underline; }
.site-form__msg { margin: 0; font-size: 14px; font-weight: 600; }
.site-form__msg.is-ok { color: #4ade80; }
.site-form__msg.is-err { color: #f87171; }

/* ===== Компактная модалка заявки ===== */
.contact-modal {
    position: fixed; inset: 0; z-index: 120;
    display: none; align-items: center; justify-content: center;
    padding: 20px;
}
.contact-modal.is-open { display: flex; }
.contact-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 12, 22, 0.65);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.contact-modal__panel {
    position: relative; z-index: 2;
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border-radius: 18px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}
.contact-modal__close {
    position: absolute; top: 12px; right: 14px; z-index: 3;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: #fff; font-size: 22px;
    display: grid; place-items: center; transition: background 0.2s;
}
.contact-modal__close:hover { background: var(--red); }
.contact-modal__head {
    padding: 24px 28px 0;
    background: linear-gradient(160deg, #16224a 0%, #0e1830 100%);
}
.contact-modal__logo { margin-bottom: 6px; }
.contact-modal__tagline {
    color: var(--surface-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}
.contact-modal__title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.25;
    padding-right: 36px;
}
.contact-modal__subtitle {
    color: var(--surface-text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 20px;
}
.contact-modal__body { padding: 22px 28px 28px; }
.contact-modal__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--surface-border);
}
.contact-modal__contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--surface-text-soft);
    font-size: 13px;
    transition: color 0.2s;
}
.contact-modal__contact:hover { color: #fff; }
.contact-modal__contact iconify-icon { color: var(--red); }

/* ===== Форма заказа услуги (компактная) ===== */
.order-modal { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; padding: 24px; }
.order-modal.is-open { display: flex; }
.order-modal__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 22, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.order-modal__panel {
    position: relative; z-index: 2;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 40px 90px rgba(0,0,0,0.25);
}
.order-modal__close { position: absolute; top: 14px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: #f1f5f9; color: var(--text); font-size: 24px; display: grid; place-items: center; transition: background 0.2s; }
.order-modal__close:hover { background: var(--red); color: #fff; }
.order-modal__title { font-size: 24px; font-weight: 600; margin: 0 0 8px; }
.order-modal__service { color: var(--blue); font-weight: 600; font-size: 14px; margin: 0 0 24px; }

/* ===== Iconify в шапке ===== */
.header__phone iconify-icon, .header__mail iconify-icon { color: var(--red); flex-shrink: 0; }
.cat-card__icon { display: flex; align-items: center; justify-content: center; color: var(--muted-2); transition: color 0.3s, transform 0.3s; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer {
    background: var(--surface-bg);
    color: var(--surface-text-muted);
    padding: 70px 0 30px;
    border-top: 1px solid var(--surface-border);
}
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--surface-border); }
.footer__tagline { margin: 18px 0 16px; max-width: 320px; font-size: 14.5px; color: var(--surface-text-soft); line-height: 1.6; }
.footer__ru { display: inline-block; color: var(--blue-bright); font-weight: 600; font-size: 14px; }
.footer__title { color: var(--surface-text); font-size: 15px; font-weight: 600; margin: 0 0 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--surface-text-soft); font-size: 14.5px; transition: color 0.2s; }
.footer__col a:hover { color: var(--blue-bright); }
.footer__col--contacts .footer__contact { display: inline-flex; align-items: flex-start; gap: 12px; }
.footer__contact-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer__map { color: var(--blue-bright) !important; font-weight: 600; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--surface-text-muted); align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a { color: var(--surface-text-soft); font-size: 13px; transition: color 0.2s; }
.footer__legal a:hover { color: var(--blue-bright); }

/* ===== Scroll-to-top ===== */
.scroll-top {
    position: fixed; right: 28px; bottom: 28px; z-index: 40;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(225,29,42,0.4);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.2s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--red-dark); }

/* ===== Reveal-анимации (fallback без JS) ===== */
.reveal { opacity: 1; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1366px) {
    .container { padding: 0 32px; }
    .header__inner { column-gap: 40px; }
    .nav { gap: 2px; padding: 0 20px; }
    .corner-frame:not(.corner-frame--nav):not(.corner-frame--trust) {
        padding: 10px 10px;
        font-size: 11px;
        min-height: 38px;
    }
    .corner-frame--nav,
    .nav__cta .corner-frame {
        padding: 7px 10px;
        min-height: 36px;
        font-size: 11px;
    }
    .trust__top,
    .licenses__grid,
    .contact-block__inner,
    .about__inner,
    .services__top { gap: 32px; }
    .trust__title,
    .licenses__title,
    .contact-block__title,
    .about__title { font-size: clamp(22px, 2.4vw, 30px); }
}

@media (max-width: 1199px) {
    .header__inner { grid-template-columns: 1fr auto; column-gap: 16px; gap: 16px; }
    .header__end { justify-self: end; }
    .nav { display: none; }
    .nav__cta { display: none; }
    .burger { display: flex; }
    .proj-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .trust__top { grid-template-columns: 1fr; }
    .licenses__grid { grid-template-columns: 1fr; }
    .contact-block__inner { grid-template-columns: 1fr; }
    .licenses__notes { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .hero-slide {background-position: center left;}
    .container { padding: 0 24px; }
    .services__top { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
    .about__inner { grid-template-columns: 1fr; gap: 36px; }
    .footer__top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .timeline { flex-wrap: wrap; gap: 22px 0; }
    .timeline::before { display: none; }
}

@media (max-width: 767px) {
    .topline__contacts { display: none; }
    .directions { grid-template-columns: 1fr; }
    .proj-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .counters { grid-template-columns: 1fr 1fr; }
    .hero__nav { right: 24px; }
    .svc-modal__panel { padding: 32px 22px; }
    .contact-modal__panel { max-height: calc(100vh - 24px); }
    .contact-modal__head,
    .contact-modal__body { padding-left: 20px; padding-right: 20px; }
    .contact-block__form-wrap { padding: 22px 18px; }
    .corner-frame--trust { min-height: 80px; max-height: 80px; height: 80px; font-size: 11px; }

    /* Таймлайн -> вертикальный степпер */
    .timeline { flex-direction: column; align-items: flex-start; gap: 0; padding-left: 14px; }
    .timeline::before {
        display: block;
        left: 23px;
        top: 10px;
        bottom: 10px;
        right: auto;
        width: 3px;
        height: auto;
        background: linear-gradient(
            180deg,
            var(--blue) 0%,
            var(--blue-bright) var(--timeline-accent-at),
            var(--red) var(--timeline-accent-at),
            #ef4444 100%
        );
    }
    .timeline__step { flex-direction: row; gap: 16px; text-align: left; padding: 12px 0; width: 100%; }
    .timeline__label { margin-top: 0; max-width: none; }
    .timeline__tooltip {
        left: calc(100% + 14px);
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) translateX(-6px);
        min-width: 200px;
        max-width: min(280px, calc(100vw - 80px));
    }
    .timeline__tooltip::after {
        top: 50%;
        left: auto;
        right: 100%;
        transform: translateY(-50%);
        border: 7px solid transparent;
        border-right-color: #0f172a;
        border-top-color: transparent;
    }
    .timeline__step:hover .timeline__tooltip,
    .timeline__step:focus-within .timeline__tooltip {
        transform: translateY(-50%) translateX(0);
    }

    .projects__cta .btn-accent { width: 100%; }
    .footer__top { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
    .project-body__grid { grid-template-columns: 1fr; }
    .project-info-card { position: static; }
    .project-gallery__slider-wrap { padding: 0 16px; }
    .project-gallery__nav { display: none; }
}

@media (max-width: 420px) {
    .container { padding: 0 16px; }
    .cat-grid { grid-template-columns: 1fr; }
    .counters { grid-template-columns: 1fr; }
}
