/* ==================== Design tokens ==================== */
:root {
    --ink: #1b1f27;
    --muted: #5b6472;
    --muted-soft: #8790a0;
    --paper: #f6f4ef;
    --panel: #ffffff;
    --line: #e6e2d8;
    --steel: #123a5c;
    --steel-2: #0f2f49;
    --steel-3: #081b2c;
    --steel-soft: #e7edf2;
    --amber: #c2620a;
    --amber-soft: #fbe9d3;
    --amber-line: #e0a35c;
    --good: #2e7d32;
    --good-soft: #e8f5e9;
    --warn: #ed6c02;
    --warn-soft: #fff3e0;
    --info: #0288d1;
    --info-soft: #e3f2fd;
    --hold: #7b1fa2;
    --hold-soft: #f3e5f5;
    --off: #64748b;
    --off-soft: #f1f5f9;
    --bad: #c62828;
    --bad-soft: #ffebee;
    --radius-lg: 32px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-pop: 0 20px 45px -20px rgba(15, 31, 45, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }
.section-title { font-size: 30px; font-weight: 650; margin: 0 0 12px; text-align: center; letter-spacing: -0.01em; }
.section-subtitle { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; font-size: 15.5px; }
.section-head { text-align: center; margin-bottom: 8px; }

/* eyebrow label — replaces the old pill-badge .section-tag, no chrome/background */
.eyebrow { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin: 0 0 16px; }
.eyebrow.on-dark { color: var(--amber-line); }

/* ==================== Header ==================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 47, 73, 0.97);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; }
.site-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.site-logo i { color: var(--amber); }
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.site-nav a { color: #aebccb; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown-panel {
    position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-pop);
    padding: 10px; min-width: 280px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    opacity: 0; visibility: hidden; transition: all 0.2s;
}
.nav-dropdown:hover .nav-dropdown-panel { opacity: 1; visibility: visible; top: 100%; }
.nav-dropdown-panel a {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--ink); font-size: 13px; white-space: nowrap;
}
.nav-dropdown-panel a:hover { background: #fbfaf7; color: var(--steel); }
.nav-dropdown-panel a i { color: var(--steel); width: 16px; text-align: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 24px; border-radius: 999px; font-size: 14px; font-weight: 700;
    text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.btn-primary, .btn-amber { background: var(--amber); color: #241300; }
.btn-primary:hover, .btn-amber:hover { background: #a8540a; }
.btn-ghost, .btn-ghost-dark { background: transparent; color: #e9edf1; border-color: rgba(255, 255, 255, 0.3); }
.btn-ghost:hover, .btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.btn-outline { background: transparent; color: var(--steel); border-color: var(--steel); }
.btn-outline:hover { background: var(--steel); color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 15px; }

/* ==================== Hero: technical grid, no gradient mesh ==================== */
.hero {
    position: relative; overflow: hidden;
    background: var(--steel-2);
    color: white;
    padding: 96px 0 88px;
    text-align: center;
}
.hero::before {
    content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 44px; font-weight: 650; margin: 0 0 18px; letter-spacing: -0.02em; line-height: 1.15; }
.hero p.lead { font-size: 18px; color: #b6c2cd; max-width: 640px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Big-number stat bar — sits directly under the hero, hairline dividers instead of chips */
.stat-row-wrap { background: var(--panel); padding: 44px 0; border-bottom: 1px solid var(--line); }
.stat-row { display: grid; grid-template-columns: repeat(var(--stat-cols, 4), 1fr); text-align: center; }
.stat-row > div { padding: 0 28px; border-left: 1px solid var(--line); }
.stat-row > div:first-child { padding-left: 0; border-left: none; }
.stat-row .num { font-size: 36px; font-weight: 300; color: var(--steel-2); letter-spacing: -0.02em; line-height: 1; }
.stat-row .label { font-size: 13px; color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: 1fr 1fr; row-gap: 24px; } .stat-row > div:nth-child(3) { border-left: none; } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } .stat-row > div { border-left: none; padding: 16px 0 0; border-top: 1px solid var(--line); } .stat-row > div:first-child { border-top: none; padding-top: 0; } }

.page-hero {
    position: relative; overflow: hidden;
    background: var(--steel-2); color: white; padding: 64px 0; text-align: center;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: #8ea1b3; margin-bottom: 18px; }
.breadcrumb a { color: #8ea1b3; text-decoration: none; }
.breadcrumb a:hover { color: white; }
.page-hero h1 { font-size: 34px; font-weight: 650; margin: 0 0 12px; letter-spacing: -0.01em; }
.page-hero p { color: #b6c2cd; max-width: 620px; margin: 0 auto; font-size: 16px; }
.page-hero-icon {
    width: 68px; height: 68px; border-radius: var(--radius-md); margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center; font-size: 28px;
    background: rgba(255, 255, 255, 0.08); color: var(--amber-line);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ==================== Cards ==================== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
    transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: #d8d3c5; }

.service-card { padding: 28px; text-decoration: none; color: inherit; display: block; }
.service-icon {
    width: 48px; height: 48px; border-radius: var(--radius-sm); margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--steel);
    background: var(--steel-soft);
}
.service-card h3 { font-size: 17px; margin: 0 0 8px; }
.service-card p { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.service-card .more { font-size: 13px; font-weight: 700; color: var(--amber); display: inline-flex; align-items: center; gap: 6px; }
.service-card:hover .more { gap: 10px; }

/* Услуги на главной — тёмные steel-карточки на светлой секции (см.
   mockups/hero-dark-portfolio-mockup.html: .split-strip), эхо hero-фона.
   Секция сама остаётся светлой — card-only акцент, не сплошной тёмный блок
   (тот уже занят следующей секцией "Принципы"). */
.block-services-grid .service-card {
    background: linear-gradient(165deg, var(--steel-2), var(--steel-3));
    border-color: rgba(255, 255, 255, 0.08);
}
.block-services-grid .service-card:hover { border-color: rgba(255, 255, 255, 0.22); }
.block-services-grid .service-icon { background: rgba(255, 255, 255, 0.08); color: var(--amber-line); }
.block-services-grid .service-card h3 {
    color: #fff; font-size: 15px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.02em;
}
.block-services-grid .service-card .more { color: var(--amber-line); }

/* Portfolio / News image placeholder — flat icon-on-tile block, no diagonal stripes */
.media-frame {
    position: relative; overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0;
    height: 190px; display: flex; align-items: center; justify-content: center;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-placeholder {
    width: 100%; height: 100%;
    background:
        repeating-linear-gradient(135deg, rgba(18, 58, 92, 0.07) 0 1px, transparent 1px 22px),
        var(--steel-soft);
    display: flex; align-items: center; justify-content: center;
    color: var(--steel); font-size: 36px;
}
.media-placeholder.alt {
    background:
        repeating-linear-gradient(135deg, rgba(194, 98, 10, 0.09) 0 1px, transparent 1px 22px),
        var(--amber-soft);
    color: var(--amber);
}

.portfolio-card .body, .news-card .body { padding: 22px; }
.portfolio-card h3, .news-card h3 { font-size: 16px; margin: 0 0 8px; }
.portfolio-card p, .news-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.news-card .date { font-size: 12px; color: var(--amber); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; display: block; }
.news-card { text-decoration: none; color: inherit; display: block; }

.empty-block { text-align: center; padding: 60px 20px; color: var(--muted-soft); grid-column: 1 / -1; }
.empty-block i { font-size: 34px; margin-bottom: 12px; display: block; }

/* ==================== Service detail page ==================== */
.service-detail { padding: 70px 0; }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.feature-list { list-style: none; padding: 0; margin: 24px 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.feature-list li:last-child { border-bottom: none; }
.feature-list i { color: var(--steel); margin-top: 3px; }
.cta-card {
    background: var(--steel-2); border: 1px solid rgba(255, 255, 255, 0.08);
    color: white; border-radius: var(--radius-md); padding: 32px; position: sticky; top: 100px;
}
.cta-card h3 { margin: 0 0 10px; font-size: 19px; }
.cta-card p { color: #b6c2cd; font-size: 14px; margin: 0 0 20px; }
.cta-card .btn { width: 100%; }
.other-services { margin-top: 20px; }
.other-services a {
    display: flex; align-items: center; gap: 10px; padding: 12px 0; text-decoration: none;
    color: #8ea1b3; font-size: 13px; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.other-services a:hover { color: white; }

/* ==================== News post ==================== */
.post-content { max-width: 760px; margin: 0 auto; padding: 60px 24px; font-size: 16px; line-height: 1.8; color: var(--ink); }
.post-content h1 { font-size: 32px; color: var(--ink); margin-bottom: 8px; }
.post-meta { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.post-content .post-image { border-radius: var(--radius-md); margin-bottom: 32px; overflow: hidden; border: 1px solid var(--line); }
.post-content p { margin: 0 0 18px; }

/* ==================== Contacts ==================== */
.contacts-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact-card { padding: 26px; text-align: center; }
.contact-card i {
    width: 44px; height: 44px; border-radius: var(--radius-sm); margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--steel);
    background: var(--steel-soft);
}
.contact-card a { text-decoration: none; font-weight: 700; color: var(--ink); }
.contact-card a:hover { color: var(--steel); }

/* ==================== Footer ==================== */
.site-footer { background: var(--steel-2); color: #aebccb; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: white; font-size: 13px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #aebccb; text-decoration: none; font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 24px; text-align: center; font-size: 13px; }
.footer-bottom a { color: #aebccb; margin: 0 8px; text-decoration: none; }

/* ==================== "Как это работает" — превью личного кабинета ==================== */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.flow-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.flow-steps li { position: relative; padding: 0 0 28px 50px; counter-increment: step; }
.flow-steps li::before {
    content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px;
    border-radius: var(--radius-sm); background: var(--steel); color: #fff; font-weight: 800; font-size: 13px;
    display: flex; align-items: center; justify-content: center; font-family: ui-monospace, monospace;
}
.flow-steps li:not(:last-child)::after {
    content: ''; position: absolute; left: 16px; top: 32px; width: 1px; height: calc(100% - 32px); background: var(--line);
}
.flow-steps h4 { margin: 4px 0 6px; font-size: 16px; }
.flow-steps p { margin: 0; color: var(--muted); font-size: 14px; }
.flow-note {
    margin-top: 20px; display: flex; gap: 10px; align-items: flex-start;
    background: var(--amber-soft); border: 1px solid var(--amber-line); padding: 14px 16px;
    border-radius: var(--radius-md); font-size: 13px; color: #6b3e0a;
}
.flow-note i { margin-top: 2px; }

.panel-wrap { position: relative; }
.panel-frame {
    background: var(--steel-2); border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-pop); overflow: hidden;
}
.panel-titlebar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.panel-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.panel-titlebar .url {
    margin-left: 10px; font-size: 11.5px; color: #8ea1b3; font-family: ui-monospace, monospace;
    background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: var(--radius-sm);
}
.panel-body { background: #fff; padding: 18px; color: var(--ink); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h4 { margin: 0; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.panel-filters { display: flex; gap: 6px; }
.pf-btn { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: default; }
.pf-btn.active { background: var(--steel); border-color: var(--steel); color: #fff; }
table.req-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.req-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-soft); padding: 8px; border-bottom: 1px solid var(--line); }
.req-table td { padding: 10px 8px; border-bottom: 1px solid #f1efe9; vertical-align: middle; }
.req-table tr:last-child td { border-bottom: none; }
.req-num { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--steel); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-new { background: var(--info-soft); color: var(--info); }
.pill-progress { background: var(--warn-soft); color: var(--warn); }
.pill-done { background: var(--good-soft); color: var(--good); }
.pill-hold { background: var(--hold-soft); color: var(--hold); }
.pill-low { background: var(--good-soft); color: var(--good); }
.pill-med { background: var(--warn-soft); color: var(--warn); }
.pill-high { background: var(--bad-soft); color: var(--bad); }
.pill-crit { background: #ffcdd2; color: #b71c1c; }

.float-toast {
    position: absolute; top: -54px; right: -10px; max-width: 220px; background: var(--steel-2);
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-md); padding: 14px 16px;
    box-shadow: var(--shadow-pop); z-index: 2;
}
.float-toast .row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.float-toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.float-toast .id { font-size: 10.5px; letter-spacing: 0.06em; color: #8ea1b3; }
.float-toast .body { font-size: 12.5px; color: #e9edf1; }
.float-toast .time { font-size: 10.5px; color: #6b7c8c; margin-top: 5px; }
@media (max-width: 900px) {
    .flow { grid-template-columns: 1fr; }
    .float-toast { display: none; }
}

/* ==================== Витрина услуг и цен (prices.php) ==================== */
.price-card {
    position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-md);
    padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.price-card.is-featured { border-color: var(--amber-line); box-shadow: 0 0 0 1px var(--amber-line); }
.price-card-badge {
    position: absolute; top: -11px; right: 18px; background: var(--amber); color: #241300;
    font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { font-size: 16.5px; margin: 0; padding-right: 10px; }
.price-card .price-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin: 0; flex-grow: 1; }
.price-card .price-card-note { font-size: 12px; color: var(--muted-soft); margin: 0; }
.price-card-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.price-card-price { font-size: 20px; font-weight: 800; color: var(--steel-2); }
.price-card-old-price { font-size: 14px; color: var(--muted-soft); text-decoration: line-through; }
.price-card-unit { font-size: 12.5px; color: var(--muted); }

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .service-detail-grid { grid-template-columns: 1fr; }
    .cta-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .site-nav { display: none; }
    .hero h1 { font-size: 32px; }
    .page-hero h1 { font-size: 27px; }
    .footer-grid { grid-template-columns: 1fr; }
    section { padding: 56px 0; }
}

/* ==================== Forms (login/register) ==================== */
.auth-section { padding: 0 0 72px; }
.auth-card {
    max-width: 400px; margin: -56px auto 0; position: relative; z-index: 2;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop); padding: 36px;
}
.auth-card.auth-card-wide { max-width: 480px; }
.auth-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-card .required { color: var(--bad); }
.auth-card .form-group { margin-bottom: 16px; }
.auth-card .form-group label {
    display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.auth-card .form-group input {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; background: #fbfaf7; color: var(--ink);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.auth-card .form-group input:focus { outline: none; border-color: var(--steel); background: #fff; box-shadow: 0 0 0 3px var(--steel-soft); }
.auth-card .form-error {
    display: flex; align-items: center; gap: 8px; background: var(--bad-soft); color: var(--bad);
    padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13px; font-weight: 600;
}
.auth-card .form-success {
    display: flex; align-items: center; gap: 8px; background: var(--good-soft); color: var(--good);
    padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13px; font-weight: 600;
}
.auth-card button.btn { width: 100%; }
.auth-footer { text-align: center; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--steel); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ==================== Lead modal (попап формы заявки) ==================== */
.lead-modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(15, 30, 45, 0.6);
    z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
.lead-modal-overlay.is-open { display: flex; }
.lead-modal {
    position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
    background: var(--panel); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 32px;
}
.lead-modal h3 { margin: 0 0 20px; padding-right: 24px; }
.lead-modal-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: none; background: none;
    font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm);
}
.lead-modal-close:hover { background: var(--steel-soft); color: var(--ink); }
.lead-modal .required { color: var(--bad); }
.lead-modal .form-group { margin-bottom: 16px; }
.lead-modal .form-group label {
    display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.lead-modal .form-group input, .lead-modal .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit; background: #fbfaf7; color: var(--ink);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lead-modal .form-group textarea { resize: vertical; }
.lead-modal .form-group input:focus, .lead-modal .form-group textarea:focus { outline: none; border-color: var(--steel); background: #fff; box-shadow: 0 0 0 3px var(--steel-soft); }
.lead-modal .form-error {
    display: flex; align-items: center; gap: 8px; background: var(--bad-soft); color: var(--bad);
    padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13px; font-weight: 600;
}
.lead-modal .form-success {
    display: flex; align-items: center; gap: 8px; background: var(--good-soft); color: var(--good);
    padding: 11px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 13px; font-weight: 600;
}

/* ---------- Блок «Карусель» ---------- */
.carousel { position: relative; }
.carousel-track {
    display: flex; overflow: hidden; border-radius: var(--radius-md); background: var(--panel);
    border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.carousel-slide {
    flex: 0 0 100%; display: none; position: relative;
}
.carousel-slide.active { display: block; }
.carousel-media { width: 100%; aspect-ratio: 16 / 7; overflow: hidden; background: var(--steel-soft); }
.carousel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 28px;
    background: linear-gradient(180deg, rgba(15,47,73,0) 0%, rgba(15,47,73,0.82) 100%); color: #fff;
}
.carousel-caption h3 { font-size: 20px; margin: 0 0 6px; color: #fff; }
.carousel-caption p { font-size: 14px; margin: 0; color: #e7edf2; max-width: 640px; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); color: var(--steel); box-shadow: var(--shadow-pop);
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s, color 0.15s;
    z-index: 2;
}
.carousel-arrow:hover { background: var(--steel); color: #fff; }
.carousel-prev { left: 14px; }
.carousel-next { right: 14px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--steel-soft); cursor: pointer;
    padding: 0; transition: background 0.15s, transform 0.15s;
}
.carousel-dot.active { background: var(--steel); transform: scale(1.2); }
@media (max-width: 640px) {
    .carousel-media { aspect-ratio: 4 / 3; }
    .carousel-caption { padding: 16px 18px; }
    .carousel-arrow { width: 36px; height: 36px; }
}
.lead-modal button.btn { width: 100%; }
