/* ============================================
   МОЛНИЕЗАЩИТА — Основные стили
   ============================================ */

:root {
    --primary: #1a2744;
    --primary-dark: #0f1a33;
    --accent: #f5a623;
    --accent-dark: #e09410;
    --text: #1a1a1a;
    --text-light: #4a4a4a;
    --bg-light: #f4f6fb;
    --white: #fff;
    --border: #d8dde8;
    --success: #28a745;
    --shadow: 0 4px 24px rgba(26,39,68,0.10);
    --shadow-lg: 0 8px 40px rgba(26,39,68,0.16);
    --radius: 8px;
    --radius-lg: 16px;
    /* Текст на тёмном фоне */
    --on-dark: #ffffff;
    --on-dark-muted: rgba(255,255,255,0.85);
    --on-dark-subtle: rgba(255,255,255,0.7);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ============ HEADER ============ */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.header-top {
    background: var(--primary-dark);
    padding: 6px 0;
    font-size: 13px;
    color: var(--on-dark-muted);
}

.header-top a {
    color: var(--on-dark);
    transition: color 0.2s;
}
.header-top a:hover { color: var(--accent); }

/* Выбор города */
.city-selector-wrap { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.city-btn {
    color: var(--on-dark-muted) !important;
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.city-btn:hover {
    color: var(--on-dark) !important;
    background: rgba(255,255,255,0.1);
}

.city-btn.active {
    color: var(--accent) !important;
    font-weight: 600;
    background: rgba(245,166,35,0.12);
}

.city-sep {
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    user-select: none;
}

.header-main {
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white) !important;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.logo-text span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--on-dark-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

.header-contacts {
    text-align: right;
}

.header-phone {
    font-size: 22px;
    font-weight: 700;
    color: var(--white) !important;
    display: block;
    line-height: 1;
}

.header-phone:hover { color: var(--accent) !important; }

.header-work-hours {
    font-size: 12px;
    color: var(--on-dark-muted);
}

/* NAVBAR */
.site-nav {
    background: rgba(255,255,255,0.06);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.site-nav .nav-link {
    color: var(--on-dark) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px !important;
    transition: all 0.2s;
    position: relative;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
    color: var(--accent) !important;
}

.site-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 16px; right: 16px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}

.btn-nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    padding: 8px 20px !important;
    margin-left: 8px;
    transition: background 0.2s, transform 0.1s;
}

.btn-nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero {
    background-color: var(--primary-dark);
    min-height: 580px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(to right, rgba(15,26,51,0.80) 0%, rgba(15,26,51,0.55) 55%, rgba(15,26,51,0.30) 100%),
        radial-gradient(ellipse at 70% 50%, rgba(245,166,35,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-lightning {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.07;
    font-size: 280px;
    color: var(--accent);
    pointer-events: none;
    line-height: 1;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--accent);
}

.hero .lead {
    font-size: 18px;
    color: var(--on-dark-muted);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--on-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-badge i { color: var(--accent); }

.btn-primary-custom {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-custom:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-custom:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(245,166,35,0.08);
}

/* ============ STATS BAR ============ */
.stats-bar {
    background: var(--accent);
    padding: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 8px 16px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--primary); color: var(--white); }

.section-title {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-dark .section-title { color: var(--white); }

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 600px;
}

.section-dark .section-subtitle { color: var(--on-dark-muted); }

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 16px;
}

/* ============ SERVICE CARDS ============ */
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 100%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform 0.3s;
    transform-origin: bottom;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, #2a3d6e 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s;
}

.service-link:hover {
    color: var(--accent);
    gap: 10px;
}

/* ============ PROJECT CARDS ============ */
.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--white);
    transition: all 0.3s;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #2a3d6e 100%);
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.project-card:hover .project-card-img img {
    transform: scale(1.05);
}

.project-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255,255,255,0.2);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-card-body {
    padding: 20px;
}

.project-card-body h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.project-card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.project-meta i { color: var(--accent); }

/* ============ FEATURES ============ */
.feature-item {
    display: flex;
    gap: 18px;
    margin-bottom: 28px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(245,166,35,0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
}

.feature-item h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
    line-height: 1.5;
}

/* ============ REVIEWS ============ */
.review-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
}

.review-stars {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 12px;
}

.review-text {
    font-size: 15px;
    color: #2a2a2a;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 46px;
    height: 46px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.review-author-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    display: block;
}

.review-author-company {
    font-size: 13px;
    color: #555;
}

/* ============ ARTICLE CARDS ============ */
.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-card-img {
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, #2a3d6e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255,255,255,0.15);
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card-body {
    padding: 20px;
}

.article-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.article-card-body p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

/* ============ CTA SECTION ============ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2a3d6e 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,0.12) 0%, transparent 70%);
    pointer-events: none;
}

/* ============ CALLBACK FORM ============ */
.callback-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}

.callback-card h3 {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 8px;
}

/* ============ CALCULATOR ============ */
.calculator-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.calc-result {
    background: linear-gradient(135deg, var(--primary) 0%, #2a3d6e 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: var(--white);
}

.calc-result-price {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.calc-param {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 15px;
}

.calc-param:last-child { border-bottom: none; }
.calc-param-label { color: var(--on-dark-muted); }
.calc-param-value { font-weight: 700; color: var(--on-dark); }

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: var(--accent);
}

.page-header h1 {
    color: var(--white);
    font-weight: 800;
    font-size: clamp(26px, 3.5vw, 44px);
    margin-bottom: 8px;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item a { color: var(--on-dark-muted); }
.page-header .breadcrumb-item.active { color: var(--accent); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.5); }

/* ============ CONTACT INFO ============ */
.contact-info-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: var(--on-dark);
    height: 100%;
}

.contact-info-card h3 { color: var(--on-dark); margin-bottom: 24px; font-weight: 700; }

.contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 42px;
    height: 42px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item-text a {
    color: var(--on-dark);
    font-size: 18px;
    font-weight: 600;
    display: block;
}

.contact-item-text a:hover { color: var(--accent); }

.contact-item-label {
    font-size: 12px;
    color: var(--on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--on-dark-muted);
}

.footer-heading {
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--on-dark-muted);
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover { color: var(--accent); }
.footer-links a i { font-size: 11px; }

.footer-phone {
    font-size: 20px;
    font-weight: 700;
    color: var(--white) !important;
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
    color: var(--on-dark-muted);
}

/* ============ FORMS ============ */
.form-control, .form-select {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
    outline: none;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}

.btn-primary-dark {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary-dark:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-1px);
}

/* ============ MODAL ============ */
.modal-callback .modal-header {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px 12px 0 0;
}

.modal-callback .modal-title { color: var(--white); font-weight: 700; }
.modal-callback .btn-close { filter: invert(1); }

/* ============ PROCESS STEPS ============ */
.process-step {
    text-align: center;
    padding: 24px 16px;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 16px;
}

.process-step h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

.process-connector {
    position: absolute;
    top: 28px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

/* ============ CATEGORY FILTER ============ */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 2px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* ============ ALERTS ============ */
.alert-success-custom {
    background: rgba(40,167,69,0.1);
    border: 1px solid rgba(40,167,69,0.3);
    color: #155724;
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

/* ============ FLOAT WIDGET ============ */
.float-widget {
    position: fixed;
    bottom: 28px;
    right: 84px; /* отступ от кнопки "наверх" */
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.float-widget-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
}

.float-widget-links.open {
    pointer-events: all;
    opacity: 1;
    transform: translateY(0);
}

.float-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 14px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    transition: transform 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}

.float-link:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.float-link i { font-size: 18px; flex-shrink: 0; }

.float-wa   { background: #25D366; }
.float-tg   { background: #229ED9; }
.float-phone { background: var(--primary); }

.float-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    border: none;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(245,166,35,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.float-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(245,166,35,0.55);
}

.float-toggle.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,39,68,0.35);
}

/* Пульсирующий эффект при первом появлении */
.float-toggle.pulse {
    animation: floatPulse 1.8s ease-in-out 3;
}

@keyframes floatPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(245,166,35,0.45); }
    50% { box-shadow: 0 4px 28px rgba(245,166,35,0.85), 0 0 0 8px rgba(245,166,35,0.15); }
}

@media (max-width: 767px) {
    .float-widget { bottom: 20px; right: 72px; }
    .float-link span { display: none; }
    .float-link { padding: 11px; border-radius: 50%; }
    .float-toggle { width: 46px; height: 46px; font-size: 20px; }
}

/* ============ PROMO MODAL ============ */
.promo-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.promo-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 1;
    filter: invert(1);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-modal-left {
    background: linear-gradient(160deg, var(--primary-dark) 0%, #1e3060 100%);
    flex-direction: column;
    justify-content: center;
    padding: 40px 28px;
    position: relative;
    overflow: hidden;
}

.promo-modal-left::before {
    content: '';
    position: absolute;
    bottom: -40px; right: -40px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.promo-modal-left-inner { position: relative; z-index: 1; }

.promo-modal-icon {
    width: 68px; height: 68px;
    background: var(--accent);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
}

.promo-modal-left h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.35;
}

.promo-modal-list {
    list-style: none;
    padding: 0; margin: 0;
}

.promo-modal-list li {
    color: rgba(255,255,255,0.92);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-modal-list li i {
    color: var(--accent);
    font-size: 15px;
    flex-shrink: 0;
}

.promo-modal-right {
    background: #fff;
    padding: 36px 32px 32px;
    position: relative;
}

.promo-modal-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.promo-modal-title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.promo-modal-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}

.promo-modal-btn {
    font-size: 15px;
    padding: 14px !important;
}

@media (max-width: 767px) {
    .promo-modal-right { padding: 28px 20px 24px; }
    .promo-modal-title { font-size: 20px; }
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
    border: none;
    box-shadow: var(--shadow);
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .hero { min-height: 460px; }
    .hero-lightning { display: none; }
    .section { padding: 56px 0; }
    .site-nav .nav-link.active::after { display: none; }
}

@media (max-width: 767px) {
    .hero { padding: 48px 0; }
    .header-contacts { display: none; }
    .stats-bar .stat-item { padding: 8px; }
    .stat-number { font-size: 24px; }
    .callback-card, .calculator-form { padding: 24px 16px; }
    .contact-info-card { padding: 24px 16px; }
    .footer-logo-icon { display: none; }
}

/* ============ UTILITIES ============ */
.text-accent { color: var(--accent) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.fw-800 { font-weight: 800; }
.rounded-custom { border-radius: var(--radius-lg); }
