/* =========================================================
   АэроБин — общие улучшения поверх стилей страниц
   (мобильное меню, доступность, формы, подвал)
   ========================================================= */

/* --- Доступность: видимый фокус с клавиатуры --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 1000;
    padding: 10px 18px;
    border-radius: 30px;
    background: #38bdf8;
    color: #020306;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* --- Активный пункт меню --- */
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: #7dd3fc;
}

/* --- Бургер-меню (только на мобильных) --- */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    background: rgba(15, 25, 40, 0.55);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
    content: "";
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -6px; left: 0; margin-left: 0; }
.nav-toggle span::after  { top:  6px; left: 0; margin-left: 0; }
.navbar.is-open .nav-toggle span { background: transparent; }
.navbar.is-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.navbar.is-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 768px) {
    .navbar {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 12px !important;
    }
    .nav-toggle { display: block; }
    .navbar .nav-links,
    .navbar .tech-badge {
        display: none !important;
    }
    .navbar.is-open .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important;
        width: 100%;
        margin: 8px 0 0 !important;
        padding: 8px;
        border: 1px solid rgba(56, 189, 248, 0.2);
        border-radius: 18px;
        background: rgba(5, 10, 18, 0.92);
        backdrop-filter: blur(12px);
        order: 3;
    }
    .navbar.is-open .nav-links a {
        display: block;
        padding: 12px 14px;
        border-radius: 12px;
        font-size: 1.05rem;
    }
    .navbar.is-open .nav-links a:hover,
    .navbar.is-open .nav-links a.active {
        background: rgba(56, 189, 248, 0.12);
    }
    .navbar.is-open .tech-badge {
        display: block !important;
        width: 100%;
        text-align: center;
        order: 4;
    }
}

/* --- Подвал: кликабельные контакты и юридические ссылки --- */
.footer a.footer-contact {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.footer a.footer-contact:hover { color: #7dd3fc; }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 16px;
}
.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-legal a:hover { color: #7dd3fc; }

/* --- Формы: статус отправки и защита от спама --- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-status {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.45;
    display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}
.form-status.is-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
}
form button[type="submit"][disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* --- Уважение к настройке «уменьшить движение» --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Мелочи --- */
img { max-width: 100%; }
html { scroll-behavior: smooth; }

/* =========================================================
   Логотип, медиа-блоки, видео, таблицы характеристик
   ========================================================= */
.logo-img { display: block; height: 40px; width: auto; }
.footer-logo { display: block; height: 44px; width: auto; margin-bottom: 16px; }
@media (max-width: 768px) { .logo-img { height: 34px; } }

.ext-section { padding: 72px 0; position: relative; }
.ext-section.glass {
    background: rgba(5, 10, 18, 0.45);
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}
.section-head { text-align: center; max-width: 820px; margin: 0 auto 40px; }
.section-head .lead { margin-top: 12px; font-size: 1.05rem; color: rgba(255,255,255,0.75); }
.ext-section h2.ext-title {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(26px, 3.4vw, 38px);
    letter-spacing: -0.01em;
    color: rgba(255,255,255,0.92);
    margin-top: 10px;
}
.ext-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #7dd3fc;
    font-size: 0.85rem;
    font-weight: 600;
}

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.media-grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.media-card {
    background: rgba(15, 25, 40, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.media-card img, .media-card video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}
.media-card.dark-img img { background: radial-gradient(circle at 50% 40%, rgba(56,189,248,0.10), transparent 70%); }
.media-card h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
}
.media-card p { font-size: 0.95rem; line-height: 1.5; color: rgba(255,255,255,0.75); }
.media-card .portrait { max-height: 460px; object-fit: cover; }

.video-frame {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: #000;
    max-width: 960px;
    margin: 0 auto;
}
.video-frame video { width: 100%; height: auto; display: block; }

.spec-card {
    background: rgba(15, 25, 40, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 24px;
    padding: 24px 28px;
}
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list .label { color: rgba(255, 255, 255, 0.65); }
.spec-list .value { color: rgba(255, 255, 255, 0.92); text-align: right; }
@media (max-width: 640px) {
    .spec-list li { flex-direction: column; gap: 2px; }
    .spec-list .value { text-align: left; }
}

.feature-band {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 56px 40px;
    background: linear-gradient(90deg, rgba(2,3,6,0.92) 0%, rgba(2,3,6,0.75) 55%, rgba(2,3,6,0.35) 100%),
                url('../img/tunnel.webp') center / cover no-repeat;
}
.feature-band .ext-title { max-width: 620px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: 620px; }
.feature-list li { padding: 8px 0 8px 26px; position: relative; color: rgba(255,255,255,0.85); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
@media (max-width: 640px) { .feature-band { padding: 36px 22px; } }
