/* ===== Базовые сбросы и переменные ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --red: #E30613;
    --red-dark: #B7050F;
    --red-soft: #FDECEE;
    --black: #111111;
    --gray-900: #1A1A1A;
    --gray-700: #4A4A4A;
    --gray-500: #7A7A7A;
    --gray-300: #D8D8D8;
    --gray-100: #F4F4F4;
    --white: #FFFFFF;
    --container: 1200px;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(17, 17, 17, 0.06);
    --shadow-hover: 0 14px 40px rgba(227, 6, 19, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root[data-theme="dark"] {
    --bg: #0F172A;
    --fg: #F1F5F9;
    --card-bg: #1E293B;
    --muted-fg: #94A3B8;
    --border: #334155;
    --border-light: #1E293B;
    --input-bg: #1E293B;
    --shadow-color: 0, 0, 0;
    --red-soft: #450A0A;
    --gray-100: #1E293B;
    --gray-300: #334155;
    --gray-500: #94A3B8;
    --gray-700: #CBD5E1;
    --black: #F1F5F9;
    --white: #0F172A;
}

body[data-theme="dark"], html[data-theme="dark"] body {
    background: var(--bg);
    color: var(--fg);
}

/* Тёмная тема: основные секции */
:root[data-theme="dark"] body { background: var(--bg); color: var(--fg); }
:root[data-theme="dark"] .header { background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] .header__phone-number,
:root[data-theme="dark"] .header__phone-label { color: var(--fg); }
:root[data-theme="dark"] .hero { color: var(--fg); }
:root[data-theme="dark"] .hero__title,
:root[data-theme="dark"] .section__title,
:root[data-theme="dark"] .h2 { color: var(--fg); }
:root[data-theme="dark"] .section--alt { background: #131C2F; }
:root[data-theme="dark"] .stat,
:root[data-theme="dark"] .feature,
:root[data-theme="dark"] .contact-card { background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] .stat__num { color: var(--red); }
:root[data-theme="dark"] .faq__item { background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] .form__input { background: var(--input-bg); color: var(--fg); border-color: var(--border); }
:root[data-theme="dark"] .form,
:root[data-theme="dark"] .form__row label { color: var(--fg); }
:root[data-theme="dark"] .footer { background: var(--card-bg); border-color: var(--border); color: var(--fg); }
:root[data-theme="dark"] .footer a { color: var(--gray-300); }
:root[data-theme="dark"] .footer__legal { border-color: var(--border); color: var(--muted-fg); }
:root[data-theme="dark"] .footer__bottom { color: var(--muted-fg); }
:root[data-theme="dark"] .scheme__stage { background: var(--card-bg); border-color: var(--border); }
:root[data-theme="dark"] #schemeSvg { background: #131C2F; }
:root[data-theme="dark"] .scheme__summary { background: var(--card-bg); border-color: var(--red); }
:root[data-theme="dark"] .scheme__summary h3,
:root[data-theme="dark"] .scheme__stat .v,
:root[data-theme="dark"] .scheme__obj-title { color: var(--fg); }
:root[data-theme="dark"] .scheme__stat { background: #131C2F; border-color: var(--border); }
:root[data-theme="dark"] .scheme__floor,
:root[data-theme="dark"] .scheme__building-btn { background: var(--card-bg); border-color: var(--border); color: var(--fg); }
:root[data-theme="dark"] .scheme__building-btn { background: #422006; border-color: #92400E; color: #FCD34D; }
:root[data-theme="dark"] .building2 { background: linear-gradient(135deg, #422006 0%, #78350F 100%); border-color: #92400E; }
:root[data-theme="dark"] .building2 h3 { color: #FCD34D; }
:root[data-theme="dark"] .building2 p { color: #FED7AA; }
:root[data-theme="dark"] .building2__back { background: rgba(255,255,255,.1); border-color: #FCD34D; color: #FED7AA; }
:root[data-theme="dark"] .scheme__legend .l-sanuzel { background: #1E3A8A; border-color: #3B82F6; }
:root[data-theme="dark"] .addr { background: var(--card-bg); border-color: var(--border); color: var(--fg); }
:root[data-theme="dark"] .addr b { color: var(--fg); }
:root[data-theme="dark"] .nav a { color: var(--gray-700); }
:root[data-theme="dark"] .nav a:hover { color: var(--red); }
:root[data-theme="dark"] .btn--outline { border-color: var(--border); color: var(--fg); }
:root[data-theme="dark"] .theme-toggle { background: var(--card-bg); border-color: var(--border); color: var(--fg); }

/* Кнопка переключения темы */
.theme-toggle {
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    color: var(--gray-700);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .15s;
    border-radius: 12px;
}
.theme-toggle:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }


html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* ===== Кастомный scrollbar ===== */
html {
    /* Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(227, 6, 19, 0.55) transparent;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0;
}

::-webkit-scrollbar-thumb {
    background: rgba(227, 6, 19, 0.45);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(227, 6, 19, 0.75);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(183, 5, 15, 0.9);
    background-clip: padding-box;
}

/* Тонкий scrollbar внутри карты и формы */
.map iframe,
.form,
.form__textarea {
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 122, 122, 0.5) transparent;
}

.map iframe::-webkit-scrollbar,
.form::-webkit-scrollbar,
.form__textarea::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.map iframe::-webkit-scrollbar-thumb,
.form::-webkit-scrollbar-thumb,
.form__textarea::-webkit-scrollbar-thumb {
    background: rgba(122, 122, 122, 0.5);
}

.map iframe::-webkit-scrollbar-thumb:hover,
.form::-webkit-scrollbar-thumb:hover,
.form__textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 74, 74, 0.8);
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--red); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.accent { color: var(--red); }

/* ===== Шапка ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-100);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--black);
}

.logo__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    transform: rotate(-6deg);
    box-shadow: 0 4px 14px rgba(227, 6, 19, 0.3);
}

.logo__mark--img {
    background: transparent;
    box-shadow: none;
    transform: none;
    border-radius: 6px;
    object-fit: contain;
}

.logo__text {
    font-size: 13px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo__sub {
    font-size: 10px;
    color: var(--gray-500);
    letter-spacing: 0.18em;
}

.nav {
    display: flex;
    gap: 28px;
    font-weight: 500;
    font-size: 15px;
}

.nav a {
    color: var(--gray-700);
    position: relative;
}

.nav a:hover { color: var(--red); }

/* ===== Кнопки ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn--primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(227, 6, 19, 0.25);
}

.btn--primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(227, 6, 19, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-300);
}

.btn--outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn--ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn--ghost:hover {
    color: var(--red);
}

.btn--block { width: 100%; }
.btn--small { padding: 10px 18px; font-size: 14px; }

/* ===== Герой ===== */
.hero {
    padding: 56px 0 64px;
    background:
        radial-gradient(ellipse at top right, var(--red-soft) 0%, transparent 50%),
        var(--white);
    overflow: hidden;
}

.hero--bg {
    position: relative;
    min-height: 88vh;
    padding: 160px 0 140px;
    display: flex;
    align-items: center;
    background: #000 url('images/building-user.webp') center/cover no-repeat;
    isolation: isolate;
}

.hero--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.25) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.35) 100%);
    z-index: -1;
}

.hero--bg .hero__inner { grid-template-columns: 1fr; }
.hero--bg .hero__content { max-width: 760px; }
.hero--bg .hero__tag { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(4px); }
.hero--bg .hero__title { color: #fff; font-size: clamp(40px, 6vw, 64px); }
.hero--bg .hero__title .accent { color: #ff4d57; }
.hero--bg .hero__lead { color: rgba(255,255,255,0.88); font-size: 19px; max-width: 600px; }

.btn--ghost-light { color: rgba(255,255,255,0.9); }
.btn--ghost-light:hover { color: #fff; }

.hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero__tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--red-soft);
    color: var(--red-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 800;
    color: var(--black);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.hero__lead {
    font-size: 18px;
    color: var(--gray-700);
    margin: 0 0 36px;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== Сегментация в hero ===== */
.hero__segments {
    margin-top: 36px;
}

.hero__segments-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.hero__segments-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.segment-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: #fff;
    transition: all 0.2s ease;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.segment-chip:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-1px);
    color: #fff;
}

.segment-chip__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.segment-chip__sub {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    line-height: 1.3;
}

/* ===== Кнопка «Позвонить» в шапке ===== */
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
    color: var(--black);
    font-weight: 600;
}

.header__phone:hover {
    background: var(--red-soft);
    color: var(--red-dark);
}

.header__phone-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--red);
}

.header__phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header__phone-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.header__phone-number {
    font-size: 14px;
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
}

.faq__item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq__item[open] {
    border-color: var(--red);
    box-shadow: var(--shadow);
}

.faq__item:hover {
    border-color: var(--gray-300);
}

.faq__q {
    cursor: pointer;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--red);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq__item[open] .faq__q::after { content: "−"; }

.faq__a {
    padding: 0 22px 18px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

.faq__a p { margin: 0; }

/* ===== Юр. информация в футере ===== */
.footer__legal {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

.footer__legal p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

/* ===== Сегментация в hero ===== */
.hero__segments {
    margin-top: 36px;
}

.hero__segments-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.hero__segments-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.segment-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #fff;
    transition: all 0.2s ease;
    text-align: left;
    cursor: pointer;
}

.segment-chip:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.segment-chip__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.segment-chip__sub {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.3;
}

/* ===== Кнопка «Позвонить» в шапке ===== */
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
    color: var(--black);
    font-weight: 600;
}

.header__phone:hover {
    background: var(--red-soft);
    color: var(--red-dark);
}

.header__phone-icon {
    font-size: 18px;
    line-height: 1;
    color: var(--red);
}

.header__phone-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header__phone-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.header__phone-number {
    font-size: 14px;
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
}

.faq__item {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq__item[open] {
    border-color: var(--red);
    box-shadow: var(--shadow);
}

.faq__item:hover {
    border-color: var(--gray-300);
}

.faq__q {
    cursor: pointer;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--red);
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq__item[open] .faq__q::after {
    content: "−";
}

.faq__a {
    padding: 0 22px 18px;
    color: var(--gray-700);
    font-size: 15px;
    line-height: 1.6;
}

.faq__a p { margin: 0; }

/* ===== Расшифровка телефонов ===== */
.contact-card__hint {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-top: 2px;
}

.contact-card__hint--sub {
    margin-top: 8px;
}

/* ===== Юр. информация в футере ===== */
.footer__legal {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
}

.footer__legal p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
}

.footer__hint {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 400;
}

.hero__image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(17, 17, 17, 0.12);
}

/* ===== О нас с фото ===== */
.about {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

/* ===== Секции ===== */
.section {
    padding: 50px 0;
}

.section--alt {
    background: var(--gray-100);
}

.section__title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--black);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.section__title--light { color: var(--white); }

.section__lead {
    font-size: 17px;
    color: var(--gray-700);
    max-width: 720px;
    margin: 0 0 56px;
}

.section__lead--light { color: rgba(255, 255, 255, 0.85); }

/* ===== Статистика ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat {
    padding: 28px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border-top: 3px solid var(--red);
    box-shadow: var(--shadow);
}

.stat__num {
    font-size: 36px;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 14px;
    color: var(--gray-700);
}

/* ===== Возможности ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all 0.25s ease;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}

.feature__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: var(--red-soft);
    color: var(--red);
    font-size: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1;
}

.feature h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--black);
}

.feature p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
}

/* ===== Галерея (не используется, оставлено на всякий случай) ===== */
.gallery { display: none; }
/* ===== Заявка ===== */
.section--request {
    background:
        linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
}

.request {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.request__list {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
}

.form {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    color: var(--gray-900);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form__optional {
    color: var(--gray-500);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--gray-900);
    background: var(--gray-100);
    border: 1.5px solid transparent;
    border-radius: 10px;
    transition: all 0.2s ease;
    resize: vertical;
}

.form__input:focus {
    outline: none;
    background: var(--white);
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft);
}

.form__textarea { min-height: 80px; }

.form__hint {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    text-align: center;
}

.form__success {
    display: none;
    padding: 14px 16px;
    background: var(--red-soft);
    color: var(--red-dark);
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    font-size: 14px;
}

.form__success.is-visible { display: block; }

.form__error {
    display: none;
    padding: 12px 16px;
    background: #fff0f0;
    color: #a30000;
    border: 1px solid #f3b3b3;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    font-size: 14px;
}

.form__error.is-visible { display: block; }

/* honeypot — реально существует, но визуально спрятан */
.hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ===== Контакты ===== */
.contacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.contact-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--red);
}

.contact-card--primary {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.contact-card--primary .contact-card__icon { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.contact-card--primary .contact-card__label { color: rgba(255, 255, 255, 0.85); }
.contact-card--primary .contact-card__value { color: var(--white); }
.contact-card--primary .contact-card__value--sub { color: rgba(255, 255, 255, 0.8); }

.contact-card__icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--red-soft);
    color: var(--red);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-card__value {
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
    word-break: break-word;
}

.contact-card__value--sub {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-top: -4px;
}

.contact-card .btn { margin-top: 8px; align-self: flex-start; }

.map {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--gray-100);
    min-height: 420px;
}

.map iframe { border: 0; }

/* ===== Подвал ===== */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.logo--footer { color: var(--white); margin-bottom: 16px; }

.footer__desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    max-width: 360px;
    margin: 0;
}

.footer__title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--white);
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
}

.footer__col a {
    color: rgba(255, 255, 255, 0.65);
}

.footer__col a:hover { color: var(--red); }

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; gap: 40px; }
    .hero__image img { height: 320px; }
    .hero { padding: 60px 0 80px; }
    .hero--bg { min-height: auto; padding: 110px 0 100px; }
    .about { grid-template-columns: 1fr; gap: 32px; }
    .about__image img { height: 260px; }
    .section { padding: 50px 0; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .contacts { grid-template-columns: repeat(2, 1fr); }
    .request { grid-template-columns: 1fr; gap: 40px; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nav { display: none; }
    .header__btn { display: none; }
    .hero__segments-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .features { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .contacts { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; grid-template-rows: 220px 200px 200px; }
    .gallery__item--big { grid-row: auto; }
    .form { padding: 24px; }
    .hero__title { font-size: 34px; }
    .hero__segments-list { grid-template-columns: 1fr 1fr; }
    .header__phone-text { display: none; }
    .header__phone { padding: 8px 10px; }
}

@media (max-width: 380px) {
    .hero__segments-list { grid-template-columns: 1fr; }
}
