/* ========== ГЛОБАЛЬНО ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0c0f;
    --bg-panel: #101318;
    --neon-cyan: #00f7ff;
    --neon-magenta: #ff00c1;
    --neon-green: #00ff9d;
    --text-dim: #b5e5ff;
    --glow-1: rgba(0, 255, 255, 0.5);
    --glow-2: rgba(255, 0, 200, 0.4);
    --scanline: rgba(0, 255, 255, 0.03);
}

body {
    background-color: var(--bg-dark);
    font-family: 'Roboto Flex', 'Segoe UI', system-ui, sans-serif;
    color: #d0f0ff;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* ========== МАТРИЧНЫЙ ДОЖДЬ ========== */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #0f0;
    text-shadow: 0 0 8px #0f0, 0 0 16px #0f0;
    white-space: nowrap;
    overflow: hidden;
}

.matrix-column {
    display: flex;
    flex-direction: column;
    animation: matrix-fall 14s linear infinite;
    animation-delay: calc(var(--delay) * 1s);
    transform: translateY(-100%);
    line-height: 1.4;
    filter: drop-shadow(0 0 2px #00ffb3);
}

@keyframes matrix-fall {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* ========== ORBITRON ДЛЯ ВСЕХ ВАЖНЫХ ЭЛЕМЕНТОВ ========== */
h1, h2, h3, .glow-text,
.btn, .nav-link, .logo,
.network-link, .cyber-label, .cyber-value,
.cyber-status, .footer, .ticker span,
.input-group label, .hint, .lang-switch,
.modal-content h3, .modal-content p,
.cookie-banner-left p, .cookie-links a,
.footer-policy-links a, .back-link,
.policy-content h1, .policy-content h2,
.checkbox-label, .checkbox-link,
.policy-popup-header h3, .policy-popup-content p, .policy-popup-content h2 {
    font-family: 'Orbitron', sans-serif;
}

/* неоновые заголовки */
h1, h2, h3, .glow-text {
    text-transform: uppercase;
    letter-spacing: 3px;
}

h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 30px var(--neon-cyan), 0 0 60px var(--neon-magenta);
    -webkit-text-stroke: 1px rgba(0, 255, 255, 0.3);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-left: 6px solid var(--neon-cyan);
    padding-left: 25px;
    margin: 120px 0 30px;
    filter: drop-shadow(0 0 8px var(--glow-1));
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 5;
}

/* сетка-сканирование */
.grid-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(var(--scanline) 1px, transparent 1px),
        linear-gradient(90deg, var(--scanline) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 2;
}

/* ========== СТИЛЬ КНОПОК ========== */
.btn {
    display: inline-block;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 2.2rem;
    background: transparent;
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.2s;
    box-shadow: 0 0 15px var(--neon-green), inset 0 0 8px var(--neon-green);
    backdrop-filter: blur(5px);
    cursor: pointer;
    border-radius: 0;
}

.btn:hover:not(:disabled) {
    background: var(--neon-green);
    color: black;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--outline {
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
    box-shadow: 0 0 15px var(--neon-magenta), inset 0 0 8px var(--neon-magenta);
}

.btn--outline:hover:not(:disabled) {
    background: var(--neon-magenta);
    color: black;
    border-color: var(--neon-cyan);
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 20px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
    margin-bottom: 40px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(45deg, #00ffea, #ff66ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px cyan, 0 0 40px magenta;
    letter-spacing: 6px;
    cursor: help;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: #aaccff;
    border: 1px solid #4f7f9f;
    padding: 8px 16px;
    transition: 0.2s;
    background: transparent;
    cursor: pointer;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: var(--neon-cyan);
}

.lang-switch {
    border-color: #cf9f4a !important;
    color: #ffd966 !important;
}

.lang-switch:hover {
    background: rgba(255, 220, 100, 0.1) !important;
    border-color: var(--neon-cyan) !important;
    color: white !important;
}

/* ========== ГЕРОЙ ========== */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text {
    font-size: 1.5rem;
    max-width: 700px;
    text-shadow: 0 0 7px cyan;
    color: #bbfffc;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

/* ========== СТИЛИ ДЛЯ КАРТОЧЕК ПРОЕКТОВ ========== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    margin: 50px 0;
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: translateY(-5px);
}

.project-link:hover .project-card {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px var(--neon-cyan), inset 0 0 20px rgba(0,247,255,0.2);
}

.project-card {
    background: rgba(10, 20, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 255, 0.25);
    padding: 30px 25px;
    box-shadow: 0 0 30px rgba(0, 255, 200, 0.2), inset 0 0 20px rgba(255, 0, 255, 0.1);
    transition: 0.25s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.project-card::before {
    content: "";
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-magenta), var(--neon-cyan));
    opacity: 0;
    transition: 0.4s;
    z-index: -1;
}

.project-card:hover::before {
    opacity: 0.3;
}

.project-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 8px magenta);
    margin-bottom: 20px;
}

.project-icon i {
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan));
    font-size: 3rem;
}

.project-card h3 {
    font-size: 1.9rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px cyan;
    letter-spacing: 2px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.project-tags span {
    border: 1px solid var(--neon-magenta);
    padding: 5px 14px;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #ffb6ff;
    background: rgba(255,0,255,0.05);
    font-family: 'Orbitron', sans-serif;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px dashed cyan;
    padding-top: 20px;
    margin-top: auto;
    color: #85ffff;
}

/* ========== КИБЕР-ФОРМА ========== */
.form-section {
    background: rgba(5, 15, 25, 0.7);
    backdrop-filter: blur(16px);
    border: 2px solid var(--neon-cyan);
    padding: 60px;
    margin: 60px 0;
    box-shadow: 0 0 60px rgba(0, 247, 255, 0.2), inset 0 0 50px rgba(255, 0, 255, 0.2);
    position: relative;
}

.network-link {
    position: absolute;
    bottom: -15px;
    right: 40px;
    font-size: 0.8rem;
    padding: 8px 25px;
    background: var(--bg-dark);
    color: var(--neon-green);
    border: 2px solid var(--neon-green);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px var(--neon-green), inset 0 0 8px var(--neon-green);
    transition: 0.2s;
    z-index: 10;
}

.network-link:hover {
    background: var(--neon-green);
    color: black;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px var(--neon-cyan);
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    letter-spacing: 2px;
    color: var(--neon-cyan);
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.input-group input,
.input-group textarea,
.cyber-select {
    width: 100%;
    background: rgba(0, 15, 30, 0.7);
    border: 1px solid #1f6f8f;
    padding: 16px 24px;
    font-family: 'Roboto Flex', monospace;
    font-size: 1.1rem;
    color: #c0ffff;
    outline: none;
    transition: 0.2s;
}

.cyber-select {
    font-family: 'Orbitron', monospace;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300f7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.input-group input:focus,
.input-group textarea:focus,
.cyber-select:focus {
    border-color: var(--neon-magenta);
    box-shadow: 0 0 30px var(--neon-magenta), inset 0 0 20px black;
    background: #00101f;
}

.cyber-select option {
    background: #0a1a2a;
    color: #c0ffff;
    font-family: 'Orbitron', monospace;
    padding: 10px;
}

/* Чекбокс */
.checkbox-group {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--neon-cyan);
    background: rgba(0, 15, 30, 0.7);
    border: 1px solid var(--neon-cyan);
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background-color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.checkbox-label {
    color: #b5e5ff;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-link {
    color: var(--neon-cyan);
    text-decoration: none;
    border-bottom: 1px dashed var(--neon-cyan);
    transition: 0.2s;
    cursor: pointer;
}

.checkbox-link:hover {
    color: var(--neon-magenta);
    border-bottom-color: var(--neon-magenta);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hint {
    color: #b0bfff;
    border-left: 3px solid magenta;
    padding-left: 15px;
    font-size: 0.8rem;
}

/* ========== КИБЕР-СЕТКА КОНТАКТОВ ========== */
.cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.cyber-card {
    background: rgba(5, 15, 25, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 30px 20px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
}

.cyber-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transition: 0.5s;
}

.cyber-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-magenta), transparent);
    transition: 0.5s;
}

.cyber-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 40px var(--neon-cyan), inset 0 0 20px rgba(0, 247, 255, 0.2);
}

.cyber-card:hover::before {
    left: 100%;
}

.cyber-card:hover::after {
    right: 100%;
}

.cyber-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--neon-cyan);
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.cyber-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--neon-magenta);
    margin-bottom: 10px;
}

.cyber-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    word-break: break-word;
}

.cyber-accent {
    color: var(--neon-cyan);
    font-weight: 900;
}

.cyber-status {
    font-size: 0.7rem;
    color: #7f9fbf;
    letter-spacing: 1px;
    border-top: 1px dashed rgba(0, 255, 255, 0.3);
    padding-top: 8px;
    width: 100%;
}

/* ========== СТИЛИ ДЛЯ ПОЛИТИК ========== */
.policy-content {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background: rgba(5, 15, 25, 0.9);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 40px rgba(0, 247, 255, 0.2), inset 0 0 30px rgba(255, 0, 193, 0.1);
    backdrop-filter: blur(10px);
}

.policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-left: 6px solid var(--neon-magenta);
    padding-left: 25px;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--neon-magenta);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}

.policy-content p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
    color: #b5e5ff;
    font-family: 'Roboto Flex', sans-serif;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    color: #b5e5ff;
}

.policy-content li {
    margin-bottom: 0.5rem;
    font-family: 'Roboto Flex', sans-serif;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--neon-cyan);
    padding: 0.8rem 2rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    transition: 0.2s;
}

.back-link:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 30px var(--neon-cyan);
}

/* ========== СТИЛИ ДЛЯ ПОПАПА ПОЛИТИКИ ========== */
.policy-popup {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.policy-popup-content {
    background: #0a0c0f;
    margin: 5% auto;
    padding: 0;
    border: 3px solid var(--neon-cyan);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    position: relative;
    box-shadow: 0 0 50px var(--neon-cyan);
    animation: popupSlideDown 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes popupSlideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.policy-popup-header {
    background: linear-gradient(135deg, #0a0c0f 0%, #1a1f2a 100%);
    border-bottom: 2px solid var(--neon-magenta);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.policy-popup-header h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    font-size: 1.3rem;
    margin: 0;
    letter-spacing: 3px;
}

.policy-popup-close {
    color: #7f9fbf;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.policy-popup-close:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px var(--neon-magenta);
}

.policy-popup-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.policy-popup-body h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--neon-magenta);
    border-left: none;
    padding-left: 0;
}

.policy-popup-body h2:first-of-type {
    margin-top: 0;
}

.policy-popup-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #b5e5ff;
    font-size: 0.95rem;
}

.policy-popup-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #b5e5ff;
}

.policy-popup-body li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.policy-popup-footer {
    border-top: 1px solid rgba(0, 247, 255, 0.3);
    padding: 20px 30px;
    text-align: right;
    flex-shrink: 0;
}

.policy-popup-footer .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

/* ========== СТИЛИ ДЛЯ COOKIE БАННЕРА ========== */
.cookie-banner-left {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--neon-cyan);
    padding: 15px 45px 15px 25px;
    z-index: 999;
    max-width: 340px;
    width: calc(100% - 40px);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.3);
    animation: slideInLeft 0.5s ease;
    display: none;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.cookie-banner-left p {
    color: #b5e5ff;
    font-size: 0.9rem;
    margin-bottom: 15px;
    padding-right: 10px;
    font-family: 'Orbitron', sans-serif;
}

.cookie-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.cookie-links a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
    border-bottom: 1px dashed var(--neon-cyan);
    padding-bottom: 2px;
}

.cookie-links a:hover {
    color: var(--neon-magenta);
    border-bottom-color: var(--neon-magenta);
}

.cookie-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #7f9fbf;
    cursor: pointer;
    font-size: 1rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #7f9fbf;
    border-radius: 50%;
    transition: 0.2s;
}

.cookie-close:hover {
    color: var(--neon-magenta);
    border-color: var(--neon-magenta);
    background: rgba(255, 0, 193, 0.1);
}

/* ========== ССЫЛКИ НА ПОЛИТИКИ ПЕРЕД ФУТЕРОМ ========== */
.footer-policy-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.footer-policy-links a {
    color: #5699aa;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px dotted #5699aa;
    padding-bottom: 2px;
    transition: 0.2s;
}

.footer-policy-links a:hover {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
}

/* ========== ФУТЕР ========== */
.footer {
    border-top: 1px solid #00b8b0;
    padding: 40px 0;
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    color: #5699aa;
    font-size: 0.8rem;
}

.footer div:first-child {
    cursor: help;
    border-bottom: 1px dashed #5699aa;
}

.footer-code {
    letter-spacing: 4px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* ========== ТИКЕР ========== */
.ticker {
    background: #000c17;
    border: 1px solid cyan;
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    margin: 30px 0;
}

.ticker span {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 35s linear infinite;
    color: #00ffff;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.ticker a {
    color: #00ffff;
    text-decoration: none;
    transition: 0.2s;
    padding: 0 5px;
}

.ticker a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px magenta;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ========== КНОПКА НАВЕРХ ========== */
#scrollTopBtn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 2rem;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    z-index: 1000;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
}

#scrollTopBtn:hover {
    background: var(--neon-cyan);
    color: black;
    border-color: var(--neon-magenta);
    box-shadow: 0 0 40px var(--neon-magenta), inset 0 0 20px var(--neon-magenta);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #0a0c0f;
    margin: 15% auto;
    padding: 40px;
    border: 3px solid var(--neon-cyan);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px var(--neon-cyan);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-icon {
    font-size: 4rem;
    color: var(--neon-green);
    text-shadow: 0 0 20px var(--neon-green);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 15px;
}

.modal-content p {
    color: #b5e5ff;
    margin-bottom: 25px;
    font-size: 1rem;
}

.modal-btn {
    background: transparent;
    color: var(--neon-magenta);
    border: 2px solid var(--neon-magenta);
    padding: 10px 30px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
}

.modal-btn:hover {
    background: var(--neon-magenta);
    color: black;
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 700px) {
    .container { padding: 0 15px; }

    h1 { font-size: 2.2rem; line-height: 1.2; }
    h2 { font-size: 1.6rem; margin: 60px 0 25px; padding-left: 15px; }

    .navbar { flex-direction: column; gap: 15px; }
    .logo { font-size: 1.8rem; }
    .nav-links { justify-content: center; }
    .nav-links a { font-size: 0.8rem; padding: 6px 10px; }

    .hero { min-height: auto; padding: 40px 0; }
    .hero-text { font-size: 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    .ticker span { font-size: 0.8rem; animation-duration: 25s; }

    .project-grid { grid-template-columns: 1fr; gap: 20px; }
    .project-card { padding: 20px; }

    .form-section { padding: 30px; }
    .network-link { position: static; display: inline-block; margin-bottom: 20px; }

    .cyber-grid { grid-template-columns: 1fr; }

    .footer { flex-direction: column; align-items: center; gap: 10px; text-align: center; }

    /* Скрываем кнопку наверх на мобильных */
    #scrollTopBtn { display: none; }

    .modal-content { margin: 30% auto; padding: 25px; }

    .cookie-banner-left {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .footer-policy-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .policy-content {
        padding: 1.5rem;
        margin: 2rem auto;
    }

    .policy-content h1 {
        font-size: 1.8rem;
        padding-left: 15px;
    }

    .policy-content h2 {
        font-size: 1.2rem;
    }

    /* Чекбокс на мобильных - текст рядом с чекбоксом */
    .checkbox-group {
        flex-wrap: nowrap;
        align-items: flex-start;
        gap: 10px;
    }

    .checkbox-group input[type="checkbox"] {
        margin-top: 2px;
    }

    .checkbox-label {
        font-size: 0.75rem;
        line-height: 1.3;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        gap: 8px;
    }

    .checkbox-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    h1 { font-size: 1.8rem; }
    .logo { font-size: 1.5rem; }
    .hero-text { font-size: 0.9rem; }

    .checkbox-group {
        gap: 6px;
    }

    .checkbox-label {
        font-size: 0.65rem;
    }
}
