/* =========================================================
   Базис Аэро — резервная официальная страница
   Фирменные цвета: #0e3672 (основной), #306173 (вторичный)
   Градиент: linear-gradient(133.16deg,#0e725a 14.5%,#304273 58.76%)
   Шрифт: Dopis (400/700/900)
   ========================================================= */

/* ---------- Шрифты (локальные) ---------- */
@font-face {
    font-family: "Dopis";
    src: url("../assets/fonts/Dopis-Regular.woff2") format("woff2");
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Dopis";
    src: url("../assets/fonts/Dopis-Bold.woff2") format("woff2");
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: "Dopis";
    src: url("../assets/fonts/Dopis-Black.woff2") format("woff2");
    font-weight: 900; font-style: normal; font-display: swap;
}

/* ---------- Токены ---------- */
:root {
    --c-primary: #0e3672;
    --c-secondary: #306173;
    --c-text: #333;
    --c-muted: #6b7280;
    --c-line: #e0e0e0;
    --c-bg: #ffffff;
    --grad: linear-gradient(133.16deg, #0e725a 14.5%, #304273 58.76%);
    --grad-blue: linear-gradient(133deg, #0e3672 15%, #306173 58%);
    --radius: 16px;
    --maxw: 1440px;
    --header-h: 132px;
}

/* ---------- Базовое ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: hidden; }
body {
    margin: 0;
    font-family: "Dopis", "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: break-word;
}
img, video, svg { max-width: 100%; display: block; }
/* <picture> — только контейнер для выбора формата/размера; на раскладку не влияет */
picture { display: contents; }
a { color: var(--c-primary); text-decoration: none; }
h1, h2, h3 { margin: 0; }

.inner {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: opacity .25s ease, transform .25s ease, background-color .25s ease, color .25s ease;
    color: #fff;
    background: var(--grad-blue);
}
.btn:hover { opacity: .92; }
.btn--small { padding: 14px 28px; font-size: 15px; }
.btn--grey { color: var(--c-primary); background: #d4dce4; }
.btn--white { color: #333; background: #fff; }
.btn--gradient { color: #fff; background-image: var(--grad); }

/* ---------- Соцсети ---------- */
.social-item { display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; transition: transform .2s ease; }
.social-item:last-child { margin-right: 0; }
.social-item:hover { transform: translateY(-2px); }

/* ---------- Знак официального сайта ---------- */
.official-mark {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--c-primary);
    background: #eef1f5;
    border: 1px solid #d4dce4;
    border-radius: 999px;
    padding: 6px 14px;
    line-height: 1.3;
}
.official-mark--footer {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    font-size: 13px;
    color: var(--c-muted);
    background: none;
    border: none;
    padding: 0;
}
.official-mark--footer a { color: var(--c-primary); text-decoration: underline; }

/* =========================================================
   ИНФОРМАЦИОННЫЙ БАННЕР (легко удаляется целиком)
   ========================================================= */
.backup-banner {
    position: relative;
    color: #fff;
    background: var(--grad-blue);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.1);
}
.backup-banner__inner {
    position: relative;
    padding-top: 22px;
    padding-bottom: 24px;
}
.backup-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 14px;
}
.backup-banner__badge-icon { width: 18px; height: 18px; color: #fff; flex: 0 0 auto; }
.backup-banner__title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}
.backup-banner__text { max-width: 900px; font-size: 15px; }
.backup-banner__text p { margin: 0 0 8px; }
.backup-banner__text p:last-child { margin-bottom: 0; }
.backup-banner__text a { color: #fff; text-decoration: underline; font-weight: 700; }
.backup-banner__close {
    position: absolute;
    top: 18px; right: 24px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; line-height: 1;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease;
}
.backup-banner__close:hover { background: rgba(255,255,255,.25); }

/* =========================================================
   ШАПКА
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--c-primary);
    color: #fff;
    box-shadow: 0 2px 14px rgba(14,54,114,.15);
}
.site-header__row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
    min-height: 84px;
}
.site-header__logo { flex: 0 0 auto; }
.site-header__logo img { width: 88px; height: auto; }
.site-header__official { flex: 0 0 auto; }
.site-header__official .official-mark {
    color: #fff;
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
}
.site-header__contacts {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-left: auto;
}
.site-header__text-block { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.9); }
.site-header__social { display: flex; align-items: center; }
.site-header__social .social-item { filter: brightness(0) invert(1); }
.site-header__phone { color: #fff; font-weight: 900; font-size: 18px; white-space: nowrap; }
.site-header__phone:hover { opacity: .85; }

/* Навигация */
.main-nav { border-top: 1px solid rgba(255,255,255,.12); }
.main-nav__list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav__item { position: relative; }
.main-nav__link {
    display: block;
    padding: 16px 0;
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
    transition: opacity .2s ease;
}
.main-nav__link:hover { opacity: .8; }
.main-nav__item--has-sub > .main-nav__link::after {
    content: "";
    display: inline-block;
    width: 7px; height: 7px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .7;
}
.main-nav__sub {
    position: absolute;
    top: 100%;
    left: -16px;
    min-width: 240px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(14,54,114,.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .22s ease;
    z-index: 20;
}
.main-nav__item--has-sub:hover .main-nav__sub,
.main-nav__item--has-sub:focus-within .main-nav__sub {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.main-nav__sub a {
    display: block;
    padding: 9px 20px;
    color: var(--c-text);
    font-size: 14px;
    transition: background-color .15s ease, color .15s ease;
}
.main-nav__sub a:hover { background: #eef1f5; color: var(--c-primary); }

/* Гамбургер */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    margin-left: auto;
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
.hamburger__line { display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; transition: transform .25s ease, opacity .2s ease; }
.hamburger.is-active .hamburger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger__line:nth-child(2) { opacity: 0; }
.hamburger.is-active .hamburger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.dropdown-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(360px, 88vw);
    height: 100%;
    background: var(--c-primary);
    color: #fff;
    z-index: 60;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 90px 0 24px;
}
.dropdown-menu.is-open { transform: translateX(0); box-shadow: -14px 0 40px rgba(0,0,0,.3); }
.dropdown-menu__list { list-style: none; margin: 0; padding: 0; }
.dropdown-menu__list a {
    display: block;
    padding: 14px 28px;
    color: #fff;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.dropdown-menu__list a:hover { background: rgba(255,255,255,.08); }
.dropdown-menu__sub { list-style: none; margin: 0; padding: 0; }
.dropdown-menu__list .dropdown-menu__sub a { padding: 10px 28px 10px 44px; font-size: 15px; color: rgba(255,255,255,.82); }
.dropdown-menu__footer { margin-top: auto; padding: 24px 28px 0; font-size: 14px; color: rgba(255,255,255,.85); }
.dropdown-menu__footer > * { margin-bottom: 14px; }
.dropdown-menu__email, .dropdown-menu__phone { display: block; color: #fff; }
.dropdown-menu__phone { font-weight: 900; font-size: 18px; }
.dropdown-menu__social { display: flex; }
.dropdown-menu__social .social-item { filter: brightness(0) invert(1); margin-right: 16px; }
.menu-backdrop {
    position: fixed; inset: 0;
    background: rgba(5,18,40,.5);
    z-index: 55;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease;
}
.menu-backdrop.is-open { opacity: 1; visibility: visible; }

/* =========================================================
   HERO (слайдер)
   ========================================================= */
.hero {
    position: relative;
    min-height: 72vh;
    color: #fff;
    overflow: hidden;
    background: var(--c-primary);
}
.hero__slides { position: relative; min-height: 72vh; }
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
    display: flex;
    align-items: center;
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(14,54,114,.55), rgba(14,54,114,.7));
}
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
    margin: 0 auto;
}
.hero__title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero__text { max-width: 640px; margin: 0 auto 28px; font-size: clamp(15px, 1.4vw, 18px); color: rgba(255,255,255,.92); }
.hero__controls {
    position: absolute;
    left: 0; right: 0; bottom: 32px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 16px;
    pointer-events: none;
}
.hero__ctrl { background: none; border: none; padding: 0; cursor: pointer; pointer-events: auto; opacity: .8; transition: opacity .2s ease; }
.hero__ctrl:hover { opacity: 1; }
.hero__ctrl--prev svg { transform: scaleX(-1); }

/* =========================================================
   ПРОДУКЦИЯ
   ========================================================= */
.products { padding-top: 80px; }
.products__title { text-align: center; margin-bottom: 20px; }
.products__title h2 {
    font-size: clamp(30px, 4vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    background: var(--grad-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--c-primary);
    display: inline-block;
}
.products__title { margin-bottom: 40px; }

/* Каталог: по одной группе на категорию — шапка (фото, описание, общие характеристики)
   и компактный список вариантов исполнения без отдельных карточек */
.products__groups { display: flex; flex-direction: column; gap: 24px; }
.product-group {
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}
.product-group__head {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 28px;
}
.product-group--noimg .product-group__head { grid-template-columns: minmax(0, 1fr); }
.product-group__image {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f6fa;
}
.product-group__image img { width: 100%; height: 100%; object-fit: contain; }
.product-group__title { font-size: 22px; font-weight: 900; line-height: 1.25; color: var(--c-primary); }
.product-group__desc { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: rgba(51,51,51,.85); max-width: 820px; }
.product-group__specs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 24px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px dashed var(--c-line);
}
.product-group__specs dt { font-size: 12px; color: var(--c-muted); }
.product-group__specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.4; }
.product-group__actions { margin-top: 20px; }

/* Список вариантов */
.variant-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); background: #fafbfd; }
.variant {
    display: flex;
    align-items: center;
    gap: 12px 24px;
    padding: 14px 28px;
    border-top: 1px solid var(--c-line);
    transition: background-color .2s ease;
}
.variant:first-child { border-top: 0; }
.variant:hover { background: #f1f4f9; }
.variant__main { flex: 1 1 auto; min-width: 0; }
.variant__name { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.35; }
.variant__note { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--c-muted); }
.variant__actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.variant__actions .btn { padding: 10px 18px; font-size: 14px; }

.btn--outline { color: var(--c-primary); background: transparent; box-shadow: inset 0 0 0 1px var(--c-primary); }
.btn--outline:hover { color: #fff; background: var(--c-primary); opacity: 1; }

.link-button {
    padding: 0; border: 0; background: none;
    font: inherit; color: var(--c-primary); text-decoration: underline; cursor: pointer;
}
.link-button:hover { opacity: .8; }

/* =========================================================
   ОБЩИЕ СЕКЦИИ
   ========================================================= */
[id] { scroll-margin-top: 150px; }
.section { padding: 80px 0; }
.section--grey { background: #f4f6fa; }
.section__title {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 900;
    line-height: 1.2;
    color: var(--c-primary);
    margin-bottom: 20px;
}
.section__lead { max-width: 900px; margin: 0 0 36px; color: rgba(51,51,51,.85); }
.text-content h3 { font-size: 20px; font-weight: 900; color: var(--c-primary); margin: 24px 0 10px; }
.text-content h4 { font-size: 16px; font-weight: 900; margin: 20px 0 8px; }
.text-content p { margin: 0 0 12px; }
.text-content ul { margin: 0 0 12px; padding-left: 20px; }
.text-content li { margin-bottom: 6px; }
.text-content > :first-child { margin-top: 0; }
.text-content--columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.text-content--columns > div > :first-child { margin-top: 0; }

/* Услуги */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { padding: 32px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.service-card__title { font-size: 22px; font-weight: 900; line-height: 1.25; color: var(--c-primary); margin-bottom: 16px; }

/* Проекты */
.projects-table__wrap { background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); overflow-x: auto; }
.projects-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.projects-table th { text-align: left; padding: 16px 20px; font-size: 13px; color: #fff; background: var(--c-primary); }
.projects-table th:nth-child(1) { width: 24%; }
.projects-table th:nth-child(2) { width: 76px; }
.projects-table th:nth-child(3) { width: 15%; }
.projects-table td { padding: 14px 20px; border-top: 1px solid var(--c-line); vertical-align: top; }
.projects-table td:first-child { font-weight: 700; }
.projects-table tbody tr:hover { background: #f8fafc; }

/* О компании */
.about__headline { font-size: clamp(18px, 2vw, 22px); line-height: 1.4; max-width: 900px; margin: 0 0 32px; }

/* Оплата и гарантии */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--c-line); }
.info-card__title { font-size: 20px; font-weight: 900; color: var(--c-primary); margin-bottom: 12px; }
.info-card p { margin: 0 0 10px; }
.info-card ul { margin: 0 0 10px; padding-left: 20px; }

/* FAQ */
.faq { max-width: 960px; }
.faq__item { border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 12px; background: #fff; }
.faq__item summary { position: relative; padding: 18px 56px 18px 22px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--c-primary); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0; padding: 0 22px 20px; color: rgba(51,51,51,.9); }

/* Новости */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; border: 1px solid var(--c-line); border-top: 4px solid var(--c-primary); border-radius: var(--radius); overflow: hidden; background: #fff; }
.news-card__body { padding: 22px; font-size: 14px; }
.news-card__body p { margin: 0 0 10px; }
.news-card__date { font-size: 13px; color: var(--c-muted); }
.news-card__title { font-size: 18px; font-weight: 900; line-height: 1.3; color: var(--c-primary); margin: 4px 0 12px; }

/* Контакты */

/* Попап товара */
.modal__dialog.modal__dialog--wide { max-width: 920px; }
.pd__cat { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; padding-right: 40px; }
.pd__title { font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--c-primary); margin-bottom: 12px; padding-right: 40px; overflow-wrap: anywhere; }
.pd__lead { margin: 0 0 16px; font-size: 14px; color: rgba(51,51,51,.9); }
.pd__h { font-size: 16px; font-weight: 900; margin: 20px 0 8px; }
.pd__body p { font-size: 14px; margin: 0 0 10px; }
.pd__specs { margin: 0; font-size: 14px; }
.spec-row { display: grid; grid-template-columns: minmax(120px, 42%) minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.spec-row dt { color: var(--c-muted); }
.spec-row dd { margin: 0; font-weight: 700; }
.spec-row--single { grid-template-columns: 1fr; }
.spec-row--single dt { color: var(--c-text); }
.spec-group { margin-top: 10px; }
.spec-group__title { font-weight: 900; color: var(--c-primary); padding: 6px 0; }
.pd__list { margin: 0; padding-left: 18px; font-size: 14px; }
.pd__list li { margin-bottom: 4px; }

/* Политика */
.policy-text { font-size: 14px; line-height: 1.6; }
.policy-text h3 { font-size: 16px; font-weight: 900; color: var(--c-primary); margin: 18px 0 8px; }
.policy-text p { margin: 0 0 6px; }

/* =========================================================
   ПРЕИМУЩЕСТВА
   ========================================================= */
.advantages {
    position: relative;
    margin-top: 80px;
    padding: 120px 0;
    color: #fff;
    overflow: hidden;
    background: var(--c-primary);
}
.advantages__bg { position: absolute; inset: 0; z-index: 0; }
.advantages__bg-img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.advantages::after {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(14,54,114,.82), rgba(48,66,115,.82));
}
.advantages .inner { position: relative; z-index: 2; }
.advantages__content { max-width: 960px; margin: 0 auto; }
.advantages__title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.2; text-align: center; margin-bottom: 56px; }
.advantages__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 48px 40px;
}
.advantages__item { width: 160px; text-align: center; }
.advantages__icon { width: 48px; height: 48px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.advantages__icon img { width: 44px; height: 44px; object-fit: contain; }
.advantages__label { font-size: 14px; line-height: 1.5; }

/* =========================================================
   КЛИЕНТЫ
   ========================================================= */
.clients { padding: 72px 0; }
.clients__title { font-size: clamp(24px, 3vw, 32px); color: var(--c-text); font-weight: 900; line-height: 1.2; text-align: center; margin-bottom: 36px; }
.clients__list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
}
.clients__image { display: flex; align-items: center; justify-content: center; padding: 16px; }
.clients__image img { max-height: 90px; width: auto; object-fit: contain; filter: grayscale(100%); opacity: .75; transition: filter .3s ease, opacity .3s ease; }
.clients__image img:hover { filter: grayscale(0); opacity: 1; }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-footer { padding: 72px 0 36px; background: #fff; }
.site-footer__wrapper { display: flex; flex-direction: column; gap: 32px; }
.site-footer__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.site-footer__title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; line-height: 1.2; color: var(--c-primary); }
.site-footer__contacts { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 28px 32px; }
.footer-item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-item__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 4px; }
.footer-item__big { font-size: 20px; font-weight: 900; line-height: 1.3; color: var(--c-primary); white-space: nowrap; }
.footer-item__big:hover { opacity: .8; }
.footer-item__text { font-size: 15px; line-height: 1.6; font-style: normal; }
.footer-item__note { font-size: 13px; color: var(--c-muted); margin-top: 4px; }
.site-footer__social { display: flex; }
/* Иконки мессенджеров белые — на светлом фоне подкладываем фирменный круг */
.site-footer__social .social-item {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-blue);
}
.site-footer__social .social-item img { width: 20px; height: 20px; }
.site-footer__row--official { padding-top: 24px; border-top: 1px solid rgba(51,51,51,.12); }
.site-footer__offer { font-size: 12px; color: var(--c-muted); }
.site-footer__offer a { color: var(--c-primary); text-decoration: underline; }
.site-footer__offer .link-button { font-size: 12px; }

/* =========================================================
   МОДАЛЬНОЕ ОКНО
   ========================================================= */
.modal {
    position: fixed; inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.is-open { display: flex; }
/* Без JavaScript попапы открываются по якорной ссылке (#id) через :target */
html:not(.js) .modal:target { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(5,18,40,.6); }
/* Диалог: шапка/крестик и нижняя панель неподвижны, прокручивается только .modal__scroll */
.modal__dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.modal__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 36px 40px;
}
.modal__header {
    flex: 0 0 auto;
    padding: 30px 72px 14px 40px;
    border-bottom: 1px solid var(--c-line);
}
.modal__header .modal__title { margin-bottom: 0; }
.modal__header + .modal__scroll { padding-top: 16px; }
.modal__footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 40px;
    border-top: 1px solid var(--c-line);
    background: #fff;
}
.modal__close {
    position: absolute; top: 16px; right: 16px;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    width: 36px; height: 36px;
    font-size: 26px; line-height: 1;
    color: var(--c-muted);
    background: #eef1f5; border: none; border-radius: 50%;
    cursor: pointer; transition: background-color .2s ease;
}
.modal__close:hover { background: #d4dce4; }
.modal__title { font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--c-primary); margin-bottom: 8px; padding-right: 36px; }
.modal__header .modal__title { padding-right: 0; }
.modal__subtitle { font-size: 14px; color: var(--c-muted); margin-bottom: 22px; }
.common-form__input { margin-bottom: 16px; }
.common-form__input label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--c-text); }
.common-form__input input,
.common-form__input textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    padding: 12px 14px;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    background: #fff;
    color: var(--c-text);
    transition: border-color .2s ease;
}
.common-form__input input:focus,
.common-form__input textarea:focus { outline: none; border-color: var(--c-primary); }
.common-form__input textarea { min-height: 96px; resize: vertical; }
.common-form__submit { width: 100%; margin-top: 6px; }
.common-form__legal { font-size: 12px; color: var(--c-muted); margin: 14px 0 0; }
.common-form__legal a { color: var(--c-primary); text-decoration: underline; }
.common-form__fallback { font-size: 13px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--c-line); }
.common-form__fallback a { color: var(--c-primary); text-decoration: underline; font-weight: 700; }

/* ---------- Кнопка "наверх" ---------- */
.to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 48px; height: 48px;
    z-index: 40;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: var(--grad-blue);
    border: none; border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(14,54,114,.35);
    opacity: 0; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */
@media (max-width: 1420px) {
    .site-header__text-block { display: none; }
}
@media (max-width: 1200px) {
    .site-header__social { display: none; }
    .site-header__official { display: none; }
}
@media (max-width: 1200px) {
    .info-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
    /* Каталог на планшете */
    .product-group__head { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; padding: 24px; }
    .variant { padding: 14px 24px; }
    .services { grid-template-columns: 1fr; }
    .text-content--columns { grid-template-columns: 1fr; gap: 0; }
    .text-content--columns > div + div > :first-child { margin-top: 24px; }
    .site-footer__contacts { grid-template-columns: 1fr 1fr; }
    /* Таблица проектов на планшете — компактнее */
    .projects-table { font-size: 13px; }
    .projects-table th, .projects-table td { padding: 12px 14px; }
    .projects-table th:nth-child(1) { width: 26%; }
    .projects-table th:nth-child(2) { width: 64px; }
    .projects-table th:nth-child(3) { width: 17%; }
    /* Попапы */
    .modal__scroll { padding: 30px 32px; }
    .modal__header { padding: 26px 68px 12px 32px; }
    .modal__footer { padding: 12px 32px; }
    .pd__title { font-size: 22px; }
    .clients__list { grid-template-columns: repeat(4, 1fr); }
    .hero__content { padding-top: 60px; padding-bottom: 90px; }
}
@media (max-width: 900px) {
    /* Переходим на мобильную шапку */
    .main-nav { display: none; }
    .site-header__contacts { display: none; }
    .hamburger { display: flex; }
    .site-header__row { min-height: 68px; }
    .site-header__logo img { width: 72px; }
    .site-header__official { display: block; margin-left: auto; }
    [id] { scroll-margin-top: 84px; }
}
@media (max-width: 768px) {
    .inner { padding-left: 16px; padding-right: 16px; }
    .clients__list { grid-template-columns: repeat(3, 1fr); }
    .backup-banner__title { font-size: 22px; }
    .backup-banner__text { font-size: 14px; }
    .advantages { padding: 80px 0; margin-top: 56px; }
    .advantages__list { gap: 36px 28px; }
    .hero { min-height: 60vh; }
    .hero__slides { min-height: 60vh; }
    .section { padding: 56px 0; }
    .service-card, .info-card { padding: 22px; }
    .info-cards, .news-list { grid-template-columns: 1fr; }
    .site-footer { padding: 56px 0 88px; } /* снизу — место под кнопку «Наверх» */
    /* Таблица проектов → карточки */
    .projects-table__wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
    .projects-table { table-layout: auto; font-size: 14px; }
    .projects-table thead { display: none; }
    .projects-table, .projects-table tbody, .projects-table tr, .projects-table td { display: block; width: 100%; }
    .projects-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2px 16px;
        background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
        padding: 14px 16px; margin-bottom: 12px;
    }
    .projects-table tbody tr:hover { background: #fff; }
    .projects-table td { border: 0; padding: 0; }
    /* Организация и год — в первой строке, город и описание — ниже */
    .projects-table td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 15px; }
    .projects-table td:nth-child(2) { grid-column: 2; grid-row: 1; font-weight: 700; color: var(--c-primary); text-align: right; }
    .projects-table td:nth-child(3) { grid-column: 1 / -1; font-size: 13px; color: var(--c-muted); }
    .projects-table td:nth-child(4) { grid-column: 1 / -1; margin-top: 6px; }
    .pd__title { font-size: 20px; }
    .spec-row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 600px) {
    .site-header__official { display: none; }
    /* Каталог на телефоне: маленькое фото рядом с названием, остальное — на всю ширину */
    .products__groups { gap: 16px; }
    .product-group__head { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px; }
    .product-group__info { display: contents; }
    .product-group__image { grid-column: 1; grid-row: 1; border-radius: 10px; }
    .product-group__title { grid-column: 2; grid-row: 1; align-self: center; font-size: 18px; }
    .product-group--noimg .product-group__title { grid-column: 1; }
    .product-group__desc, .product-group__specs, .product-group__actions { grid-column: 1 / -1; margin-top: 0; }
    .product-group__specs { grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 14px; }
    .variant { flex-wrap: wrap; padding: 14px 18px; }
    .variant__actions { width: 100%; }
    .variant__actions .btn { flex: 1 1 0; }
    /* Попапы на телефоне: «шторка» снизу, широкие — на весь экран */
    .modal { padding: 0; align-items: flex-end; }
    .modal__dialog {
        max-width: none;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .modal__dialog.modal__dialog--wide {
        max-width: none;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }
    .modal__scroll { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
    .modal__header { padding: 20px 64px 12px 20px; }
    .modal__header + .modal__scroll { padding-top: 14px; }
    .modal__footer { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
    .modal__footer .btn { width: 100%; }
    .modal__close { top: 12px; right: 12px; }
    .modal__title { font-size: 20px; }
    .policy-text { font-size: 13px; }
    .common-form__input input, .common-form__input textarea { font-size: 16px; }
}
/* Низкие экраны (телефон в альбомной ориентации) */
@media (max-height: 520px) {
    .modal { padding: 0; align-items: stretch; }
    .modal__dialog, .modal__dialog.modal__dialog--wide {
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }
    .modal__scroll { padding-top: 20px; padding-bottom: 20px; }
}
@media (max-width: 480px) {
    .site-footer__contacts { grid-template-columns: 1fr; gap: 22px; }
    .site-footer__head .btn { width: 100%; }
    .clients__list { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .backup-banner__inner { padding-top: 18px; padding-bottom: 20px; }
    .backup-banner__close { top: 14px; right: 16px; width: 30px; height: 30px; font-size: 22px; }
    .backup-banner__badge { font-size: 11px; padding: 6px 12px; }
    .backup-banner__title { font-size: 19px; }
    .hero__content { padding-top: 48px; padding-bottom: 80px; }
    .advantages__item { width: 130px; }
}
@media (max-width: 380px) {
    .clients__list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Доступность / анимации ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
