/* Electrical Installation – Landing Page Styles */
/* Адаптивный дизайн для мобильных и десктопов */

:root {
    /* Цветовая палитра */
    --color-primary: #0066FF;
    --color-accent: #00C853;
    --color-dark: #0D1117;
    --color-light: #FFFFFF;
    --color-gray: #F0F2F5;
    --color-text: #1A1D23;
    --color-muted: #6B7280;

    /* Тени и границы */
    --shadow-sm: 0 1px 2px rgba(13, 17, 23, 0.05);
    --shadow-md: 0 4px 6px rgba(13, 17, 23, 0.1);
    --shadow-lg: 0 10px 15px rgba(13, 17, 23, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease, opacity 0.2s linear;

    /* Типография */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Сброс и базовые стили */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* === GLOBAL OVERFLOW FIX (чтобы ничего не вылезало на мобильных) === */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Карта и iframe внутри сайта — не должны вызывать горизонтальный скролл */
iframe {
    max-width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: 12px;
    color: var(--color-muted);
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

input, select, textarea, button {
    font: inherit;
}

/* Buttons */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn--primary {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    color: var(--color-light);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn__subtext {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

.btn--secondary {
    background: var(--color-gray);
    color: var(--color-text);
}

.btn--secondary:hover {
    background: #e5e7eb;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--color-light);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text);
}

.logo__lightning {
    font-size: 1.5rem;
}

.logo__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.logo__tagline {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 400;
    display: block;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav__link {
    color: var(--color-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link::after {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(90deg, rgba(0, 102, 255, 0.03), rgba(0, 200, 83, 0.03));
}

.hero__container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero__title {
    margin-bottom: 16px;
}

.hero__title-main {
    font-size: 2.25rem;
    color: var(--color-text);
}

.hero__title-sub {
    font-size: 1.25rem;
    color: var(--color-muted);
    display: block;
    margin-top: 8px;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--color-muted);
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.hero__location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--color-muted);
}

.hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.hero__phone-number {
    font-weight: 600;
    color: var(--color-primary);
}

/* Section Base */
.section {
    padding: 80px 0;
}

.section--light {
    background: var(--color-gray);
}

.section--accent {
    background: linear-gradient(180deg, var(--color-gray) 0%, var(--color-light) 100%);
}

.section__title {
    text-align: center;
    margin-bottom: 48px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--color-light);
    border-radius: var(--border-radius);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.service-card__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.service-card__desc {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* Brands Grid */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.brand-item {
    padding: 12px 20px;
    background: var(--color-dark);
    color: var(--color-light);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Prices Section */
.prices-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.price-card {
    background: var(--color-light);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-card--highlight {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.price-card__title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.price-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.price-card__desc {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.price-card--highlight .price-card__price {
    color: var(--color-accent);
}

.price-cta {
    text-align: center;
    margin-top: 32px;
    padding: 20px;
    background: var(--color-gray);
    border-radius: var(--border-radius);
}

.price-promo {
    color: var(--color-accent);
    font-weight: 600;
    margin-top: 8px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 20px;
}

.process-step__number {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: var(--color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.process-step h3 {
    margin-bottom: 8px;
    display: inline;
}

/* FAQ */
.faq-item {
    margin-bottom: 16px;
}

.faq-item summary {
    font-weight: 600;
    padding: 16px 20px;
    background: var(--color-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    position: relative;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--color-primary);
}

.faq-item summary:hover {
    background: var(--color-gray);
}

.faq-item p {
    margin-top: -8px;
    margin-bottom: 0;
    padding: 0 20px 16px;
    color: var(--color-text);
}

/* Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.review-card {
    background: var(--color-light);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    background: var(--color-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.review-card__name {
    font-weight: 600;
}

.review-card__text {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: var(--color-muted);
}

.review-card__rating {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeater(2, 1fr);
    gap: 40px;
    margin-top: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.contact-item__icon {
    font-size: 1.25rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--color-light);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-primary);
    border-color: var(--color-primary);
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: var(--color-light);
    padding: 48px 0 24px;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__brand .logo {
    color: var(--color-light);
}

.footer__brand .logo__lightning {
    color: var(--color-accent);
}

.footer__copyright {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.footer__links,
.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: var(--color-muted);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-light);
}

.footer__phone {
    color: var(--color-accent);
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (min-width: 768px) {
    .header__container {
        flex-direction: row;
    }

    .hero {
        padding: 120px 0 140px;
    }

    .hero__title-main {
        font-size: 2.75rem;
    }

    .hero__actions {
        flex-direction: row;
        gap: 16px;
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: repeater(2, 1fr);
    }

    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }

    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }

    .section {
        padding: 120px 0;
    }

    .section__title {
        margin-bottom: 64px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero__title-main {
        font-size: 1.75rem;
    }

    .nav {
        gap: 16px;
    }

    .nav__link {
        font-size: 0.9rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .prices-table,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations (simple Fade) */
@media (prefers-reduced-motion: no-preference) {
    .section {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    .section.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    color: var(--color-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background: var(--color-accent);
}

/* ============================================
   HERO VIDEO BACKGROUND
   ============================================ */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--color-light);
    padding: 120px 0 140px;
}

.hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.85) 0%, rgba(0, 102, 255, 0.5) 100%);
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__title-main,
.hero__title-sub {
    color: var(--color-light);
}

.hero__title-sub {
    color: rgba(255, 255, 255, 0.85);
}

.hero__subtitle,
.hero__location,
.hero__cta {
    color: rgba(255, 255, 255, 0.9);
}

.hero__phone-number {
    color: var(--color-accent);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(8px);
}

.modal__dialog {
    position: relative;
    background: var(--color-light);
    border-radius: 20px;
    padding: 40px 32px;
    max-width: 440px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px); /* dynamic viewport для мобильных */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: auto; /* Центрирование через flex родителя */
    box-sizing: border-box;
    /* Жёсткие границы, чтобы ничего не вылезало */
    min-width: 0;
    left: 0;
    right: 0;
}

/* Кастомный скроллбар внутри модалки */
.modal__dialog::-webkit-scrollbar {
    width: 6px;
}

.modal__dialog::-webkit-scrollbar-track {
    background: transparent;
}

.modal__dialog::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.modal__dialog::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.modal--open .modal__dialog {
    transform: scale(1) translateY(0);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--color-gray);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal__close:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: rotate(90deg);
}

.modal__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.modal__subtitle {
    text-align: center;
    color: var(--color-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal__form input,
.modal__form select {
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 0.95rem;
    background: var(--color-light);
    transition: var(--transition);
}

.modal__form input:focus,
.modal__form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.modal__form button {
    margin-top: 8px;
    padding: 16px;
}

.modal__privacy {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-align: center;
    margin: 0;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-dark);
    color: var(--color-light);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: calc(100% - 32px);
    text-align: center;
    font-size: 0.95rem;
}

.toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast--success {
    background: linear-gradient(135deg, var(--color-accent), #00a040);
}

.toast--error {
    background: linear-gradient(135deg, #ff4444, #cc0000);
}

.toast--info {
    background: linear-gradient(135deg, var(--color-primary), #0052cc);
}

/* ============================================
   CALCULATOR
   ============================================ */
.section__subtitle {
    text-align: center;
    color: var(--color-muted);
    font-size: 1.05rem;
    margin-top: -32px;
    margin-bottom: 48px;
}

.calculator {
    background: var(--color-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
}

.calculator__step {
    margin-bottom: 24px;
}

.calculator__label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--color-text);
}

.calculator__options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.calc-option {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: var(--color-light);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.calc-option:hover {
    border-color: var(--color-primary);
    background: rgba(0, 102, 255, 0.05);
}

.calc-option--active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-light);
    border-color: var(--color-primary);
    transform: scale(1.02);
    box-shadow: var(--shadow-sm);
}

.calculator__range {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-top: 8px;
}

.calculator__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
    transition: var(--transition);
}

.calculator__range::-webkit-slider-thumb:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.calculator__range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.4);
}

.calculator__result {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--color-primary);
}

.calculator__result-label {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.calculator__result-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.calculator__result-note {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 20px;
}

.calculator__result .btn {
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .calculator {
        padding: 20px;
    }
    .calculator__result-price {
        font-size: 1.75rem;
    }
    .calculator__options {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   STICKY HEADER SHADOW
   ============================================ */
.header {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header--scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.98);
}

/* ============================================
   BURGER MENU
   ============================================ */
.burger {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 200;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.burger--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger--active span:nth-child(2) {
    opacity: 0;
}

.burger--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
    .burger {
        display: block;
    }

    .header__phone {
        display: none;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-light);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 150;
        overflow-y: auto;
    }

    .nav--open {
        transform: translateX(0);
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 16px 0;
        width: 100%;
        border-bottom: 1px solid var(--color-gray);
    }

    .nav__link::after {
        display: none;
    }

    /* Backdrop для мобильного меню */
    .nav--open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(13, 17, 23, 0.5);
        z-index: -1;
    }
}

@media (max-width: 480px) {
    .header__container {
        padding: 12px 0;
    }
    .logo__tagline {
        display: none;
    }
    .logo__name {
        font-size: 1rem;
    }
}

/* ============================================
   ЯНДЕКС.КАРТА
   ============================================ */
.section--map {
    background: var(--color-gray);
}

.map-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
}

.map-wrapper::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-cities {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.map-city {
    background: var(--color-light);
    padding: 10px 18px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.map-city:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-2px);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

.whatsapp-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 24px;
        left: 24px;
        width: 56px;
        height: 56px;
    }
    #scrollTopBtn {
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   CONSENT CHECKBOX (152-ФЗ)
   ============================================ */
.modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-muted);
    cursor: pointer;
    user-select: none;
    line-height: 1.4;
}

.modal__consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.modal__consent a {
    color: var(--color-primary);
    text-decoration: underline;
}

.modal__consent a:hover {
    color: var(--color-accent);
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    color: var(--color-light);
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner--show {
    transform: translateY(0);
}

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner__content p {
    flex: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    min-width: 280px;
}

.cookie-banner__content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-banner__content a:hover {
    color: var(--color-primary);
}

.cookie-banner__buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner__buttons .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.cookie-banner__buttons .btn--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__buttons .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner__buttons {
        flex-direction: column;
        width: 100%;
    }
    .cookie-banner__buttons .btn {
        width: 100%;
    }
}

/* ==========================================================================
   MOBILE MODAL FIX (вылезание за границы)
   ========================================================================== */
@media (max-width: 768px) {
    .modal {
        align-items: flex-end; /* Прижимаем к низу, как bottom-sheet */
    }

    .modal__dialog {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        max-height: 90dvh;
        border-radius: 20px 20px 0 0;
        margin: 0 auto; /* По центру горизонтально, без боковых safe-area */
        padding: 28px 18px;
        /* Safe-area только сверху/снизу (для iPhone с "чёлкой" и home-bar) */
        padding-top: max(24px, env(safe-area-inset-top, 0));
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0));
        /* Жёсткое ограничение по горизонтали */
        left: 0;
        right: 0;
        animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-sizing: border-box;
    }

    .modal--open .modal__dialog {
        transform: scale(1) translateY(0);
    }

    .modal__close {
        top: max(8px, env(safe-area-inset-top, 0));
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
        z-index: 2;
    }

    .modal__title {
        font-size: 1.2rem;
        padding-right: 36px; /* Чтобы текст не залезал под крестик */
        line-height: 1.3;
    }

    .modal__subtitle {
        font-size: 0.88rem;
        margin-bottom: 18px;
        line-height: 1.4;
    }

    .modal__form input,
    .modal__form select {
        padding: 12px 14px;
        font-size: 16px; /* Предотвращает зум на iOS */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .modal__form button {
        padding: 14px;
        width: 100%;
    }

    .modal__consent {
        font-size: 0.72rem;
        line-height: 1.4;
        flex-wrap: wrap;
    }

    .modal__consent input[type="checkbox"] {
        margin-top: 1px;
    }
}

@media (max-width: 380px) {
    .modal__dialog {
        padding: 24px 14px;
        padding-top: max(22px, env(safe-area-inset-top, 0));
        padding-bottom: max(22px, env(safe-area-inset-bottom, 0));
    }
    .modal__title {
        font-size: 1.05rem;
    }
    .modal__subtitle {
        font-size: 0.82rem;
    }
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ==========================================================================
   HERO CALL BUTTON (вторая кнопка в hero)
   ========================================================================== */
.hero__call-btn {
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.hero__call-btn .btn__subtext {
    opacity: 0.8;
    font-weight: 500;
}

/* На очень маленьких экранах скрываем подпись под кнопкой звонка */
@media (max-width: 380px) {
    .hero__actions .btn__subtext {
        display: none;
    }
}