:root {
    --primary: #0066ff;
    --cyan: #00f0ff;
    --text: #ffffff;
    --dark-bg: #050505;
}

html { scroll-behavior: smooth; }

/* --- БАЗОВЫЕ СТИЛИ --- */
body {
    margin: 0; padding: 0;
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background-color: var(--dark-bg);
}

/* --- ФОН И 3D --- */
#dynamic-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #0a1128 0%, #1c3b70 50%, #002b36 100%);
    background-size: 400% 400%;
    transition: background-position 1.5s ease;
}

#webgl {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; display: block;
}

/* --- HEADER --- */
header {
    position: fixed; top: 0; width: 100%; padding: 15px 50px;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(5, 5, 10, 0.9); backdrop-filter: blur(15px);
    z-index: 100; box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.logo-container { 
    display: flex; align-items: center; text-decoration: none; gap: 15px;
}

.logo-img {
    height: 50px; width: auto;
    filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.5));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: breathe 4s infinite ease-in-out;
}
@keyframes breathe {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.5)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 8px rgba(0, 102, 255, 0.6)); }
}

.logo-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.lt-title {
    color: #fff; font-weight: 800; font-size: 18px; text-transform: uppercase;
    letter-spacing: 1.5px; text-shadow: 0 0 10px rgba(0, 102, 255, 0.3); transition: 0.3s;
}
.lt-subtitle {
    color: var(--cyan); font-size: 10px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; opacity: 0.8; transition: 0.3s;
}

.logo-container:hover .logo-img {
    animation: none; transform: scale(1.1); filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8));
}
.logo-container:hover .lt-title { text-shadow: 0 0 15px rgba(255, 255, 255, 0.6); color: var(--cyan); }
.logo-container:hover .lt-subtitle { color: white; text-shadow: 0 0 8px var(--primary); opacity: 1; }

nav { display: flex; align-items: center; }
nav a {
    color: #bbb; text-decoration: none; margin-left: 30px;
    font-size: 13px; text-transform: uppercase; font-weight: 600;
    transition: 0.3s; letter-spacing: 1px; position: relative;
}
nav a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--cyan); transition: 0.3s; box-shadow: 0 0 8px var(--cyan);
}
nav a:hover { color: white; text-shadow: 0 0 8px rgba(0,240,255,0.5); }
nav a:hover::after { width: 100%; }

/* --- ОБЩИЕ СТИЛИ СЕКЦИЙ --- */
.section {
    min-height: 100vh; display: flex; align-items: center;
    padding: 0 10%; position: relative; box-sizing: border-box;
}

.btn {
    display: inline-block; padding: 15px 40px;
    background: transparent; color: var(--cyan);
    border: 1px solid var(--cyan); text-decoration: none;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s; cursor: pointer; text-align: center;
}
.btn:hover { background: var(--cyan); color: #000; box-shadow: 0 0 20px var(--cyan); }

/* --- HERO --- */
#sec-hero { justify-content: flex-start; }
.hero-content {
    max-width: 600px; z-index: 2;
    background: rgba(10, 15, 25, 0.65); padding: 40px;
    border-radius: 4px; border-left: 3px solid var(--primary);
    backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-content.visible { opacity: 1; transform: translateY(0); }

h1 { font-size: 50px; line-height: 1.1; margin-bottom: 20px; }
h1 span { color: var(--primary); }
p { font-size: 18px; line-height: 1.6; color: #ccc; margin-bottom: 30px; }


/* --- СЕКЦИЯ "О ЦЕНТРЕ" --- */
#sec-about { 
    justify-content: center; flex-direction: column; 
    padding: 120px 5% 80px 5%;
}

.about-wrapper {
    display: flex; align-items: flex-start; justify-content: space-between;
    width: 100%; 
    max-width: 1400px; 
    gap: 60px; z-index: 2;
}

/* Слайдер слева */
.slider-area {
    flex: 0 0 650px; 
    display: flex; justify-content: center; 
    position: sticky; top: 120px;
    opacity: 0; transform: translateX(-50px); transition: 0.8s ease;
}
.slider-area.visible { opacity: 1; transform: translateX(0); }

.slider-container { 
    width: 100%; 
    height: 750px; 
    position: relative; perspective: 1000px; 
}

.slide-item {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 10px; border: 2px solid rgba(0, 240, 255, 0.3);
    overflow: hidden; background: #050510;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: 0.5s ease-in-out; cursor: pointer;
    display: flex; justify-content: center; align-items: center;
}
.slide-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.slide-item:hover { border-color: var(--cyan); box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); }

.slide-item.active { z-index: 3; transform: translateX(0) scale(1); opacity: 1; pointer-events: auto; }
.slide-item.next { z-index: 2; transform: translateX(20px) scale(0.95) rotate(2deg); opacity: 0.6; filter: grayscale(100%); pointer-events: none; }
.slide-item.prev { z-index: 1; transform: translateX(40px) scale(0.9) rotate(4deg); opacity: 0.3; filter: grayscale(100%); pointer-events: none; }

.slider-controls {
    position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 20px;
}
.slider-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--cyan); background: rgba(0,0,0,0.8);
    color: var(--cyan); font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: 0.3s;
}
.slider-btn:hover { background: var(--cyan); color: #000; box-shadow: 0 0 15px var(--cyan); }

/* Контент справа */
.about-content {
    flex: 1; display: flex; flex-direction: column; gap: 30px;
    opacity: 0; transform: translateX(50px); transition: 0.8s ease;
    min-width: 0;
}
.about-content.visible { opacity: 1; transform: translateX(0); }

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--cyan), #fff);
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite; font-weight: 800; font-size: 40px;
}
@keyframes shine { to { background-position: 200% center; } }

.about-subtitle { color: #88aaff; font-size: 14px; margin-bottom: 10px; border-left: 3px solid var(--primary); padding-left: 15px; }

/* Статистика */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.stat-card {
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(0, 102, 255, 0.2);
    padding: 15px; border-radius: 8px; text-align: center; backdrop-filter: blur(5px); transition: 0.3s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--cyan); background: rgba(0, 240, 255, 0.05); }
.stat-number { font-size: 32px; font-weight: bold; color: var(--cyan); display: block; margin-bottom: 5px; }
.stat-label { font-size: 13px; color: #ccc; }

/* Инфо блок */
.info-block {
    background: rgba(10, 15, 25, 0.6); padding: 25px; border-radius: 12px; border-left: 2px solid var(--primary);
}
.info-block h3 { color: white; margin-top: 0; margin-bottom: 15px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 25px; margin-bottom: 10px; color: #bbb; font-size: 14px; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: bold; }

/* Начальник */
.chief-card {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(45deg, rgba(0, 50, 100, 0.3), rgba(0,0,0,0));
    border: 1px solid rgba(0, 102, 255, 0.3); padding: 20px; border-radius: 15px; margin-top: 10px;
}
.chief-photo {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--cyan); box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.chief-info h4 { margin: 0 0 5px 0; color: white; font-size: 18px; }
.chief-role { color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 10px; }
.chief-desc { font-size: 13px; color: #aaa; margin: 0; font-style: italic; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(5px);
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-img {
    max-width: 90%; max-height: 90%; border: 2px solid var(--cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5); border-radius: 5px;
    transform: scale(0.8); transition: 0.3s;
}
.lightbox-overlay.active .lightbox-img { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 20px; right: 30px; color: white;
    font-size: 40px; cursor: pointer; transition: 0.3s;
}
.lightbox-close:hover { color: var(--cyan); transform: rotate(90deg); }


/* --- КУРСЫ --- */
#sec-courses { flex-direction: column; align-items: center; justify-content: center; }
.courses-wrapper { width: 100%; max-width: 1200px; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.courses-wrapper h2 { text-align: center; margin-bottom: 60px; text-shadow: 0 0 20px rgba(0, 102, 255, 0.5); font-size: 40px; }
.cards-grid { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; width: 100%; }

/* СТИЛИ КАРТОЧЕК */
.stack-card { position: relative; width: 320px; height: 440px; cursor: pointer; perspective: 1000px; }
.card-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 20, 35, 0.9); border: 1px solid rgba(0, 102, 255, 0.5);
    border-radius: 15px; padding: 30px; box-sizing: border-box; z-index: 10;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex; flex-direction: column; align-items: flex-start;
    overflow: hidden; backdrop-filter: blur(10px);
}
.layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 15px; background: rgba(0, 102, 255, 0.15);
    border: 1px solid rgba(0, 102, 255, 0.2); transition: transform 0.4s ease, opacity 0.4s ease; z-index: 1;
}
.layer-1 { transform: translate(10px, 10px) rotate(2deg); z-index: 2; }
.layer-2 { transform: translate(20px, 20px) rotate(4deg); z-index: 1; opacity: 0.5; }

/* Desktop Hover */
@media (min-width: 1025px) {
    .stack-card:hover .card-content { transform: translateY(-15px); box-shadow: 0 15px 40px rgba(0, 102, 255, 0.3); border-color: var(--cyan); }
    .stack-card:hover .layer-1 { transform: translate(15px, 25px) rotate(-2deg); }
    .stack-card:hover .layer-2 { transform: translate(30px, 45px) rotate(-4deg); opacity: 0.8; }
    .stack-card:hover .hidden-list { opacity: 1; transform: translateY(0); }
    .stack-card:hover .card-btn { opacity: 1; letter-spacing: 2px; }
}

.icon-glow { font-size: 40px; margin-bottom: 20px; filter: drop-shadow(0 0 10px var(--cyan)); }
.card-content h3 { margin: 0 0 10px 0; font-size: 20px; color: white; line-height: 1.3; }
.subtitle { color: #88aaff; font-size: 13px; margin-bottom: 20px; }

.hidden-list {
    margin-top: auto; margin-bottom: 20px; width: 100%;
    opacity: 0; transform: translateY(20px); transition: 0.4s ease;
    display: flex; flex-direction: column; gap: 8px;
}
.hidden-list span { font-size: 13px; color: #ccc; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4px; display: block; }
.more-badge { font-size: 12px; color: var(--cyan); font-weight: bold; margin-top: 5px; }

.card-btn { color: var(--cyan); text-decoration: none; font-weight: bold; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; opacity: 0.7; }


/* CTA BOX */
.cta-box {
    margin-top: 80px; width: 100%;
    background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 12px; padding: 30px 50px;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(10px); box-shadow: 0 10px 40px rgba(0,0,0,0.5); transition: 0.4s;
    box-sizing: border-box;
}
.cta-box:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(0, 102, 255, 0.2); background: rgba(255, 255, 255, 0.05); }
.cta-text h3 { margin: 0; font-size: 20px; color: white; }
.cta-text p { margin: 5px 0 0 0; font-size: 14px; color: #aaa; }

.cta-btn {
    background: linear-gradient(90deg, var(--primary) 0%, #0044aa 100%);
    color: white; padding: 12px 30px; border: none; border-radius: 6px;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s; box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 0 20px var(--cyan); color: #fff; }

/* МОДАЛЬНОЕ ОКНО */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    z-index: 2000; opacity: 0; visibility: hidden; transition: 0.4s ease;
    display: flex; justify-content: center; align-items: center;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-window {
    width: 400px; background: rgba(15, 20, 35, 0.95);
    border: 1px solid var(--cyan); border-radius: 15px; padding: 40px;
    position: relative; transform: scale(0.8); transition: 0.4s ease;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2); box-sizing: border-box;
}
.modal-overlay.active .modal-window { transform: scale(1); }
.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 28px;
    color: #666; cursor: pointer; transition: 0.3s;
}
.close-modal:hover { color: var(--cyan); transform: rotate(90deg); }
.modal-window h3 { margin-top: 0; color: white; text-align: center; font-size: 24px; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
.form-input {
    width: 100%; padding: 12px; box-sizing: border-box;
    background: rgba(255,255,255,0.05); border: 1px solid #333;
    color: white; border-radius: 5px; outline: none; transition: 0.3s;
}
.form-input:focus { border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,240,255,0.3); }
.submit-btn {
    width: 100%; padding: 15px; background: var(--cyan); color: #000; border: none;
    font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: 0.3s; border-radius: 5px;
}
.submit-btn:hover { box-shadow: 0 0 20px var(--cyan); background: white; }

/* --- ПАРТНЕРЫ --- */
#sec-partners {
    flex-direction: column; justify-content: center;
    padding: 80px 0; overflow: hidden;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5), transparent);
}
#sec-partners h2 { text-align: center; margin-bottom: 50px; text-shadow: 0 0 20px rgba(0, 102, 255, 0.5); z-index: 2; font-size: 40px; }

.marquee-wrapper {
    width: 100%; position: relative; z-index: 2;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
    display: flex; gap: 40px; width: max-content;
    animation: scroll 45s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

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

.partner-card {
    width: 220px; height: 140px; background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 102, 255, 0.2); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box; backdrop-filter: blur(5px);
    transition: 0.4s ease; cursor: pointer; text-decoration: none;
}
.partner-card img {
    max-width: 100%; max-height: 100%;
    filter: grayscale(100%) opacity(0.5) drop-shadow(0 0 0 transparent);
    transition: 0.4s ease;
}
.partner-card:hover {
    background: rgba(0, 15, 30, 0.8); border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.1);
    transform: scale(1.1); z-index: 10;
}
.partner-card:hover img { filter: grayscale(0%) opacity(1) drop-shadow(0 0 10px rgba(255,255,255,0.5)); }

.partner-text {
    color: #556677; font-weight: bold; font-size: 13px; text-transform: uppercase; 
    text-align: center; transition: 0.3s; line-height: 1.4;
}
.partner-card:hover .partner-text { color: var(--cyan); text-shadow: 0 0 10px var(--cyan); }


/* --- КОНТАКТЫ --- */
#sec-contacts {
    min-height: auto; padding: 60px 20px;
    width: 100%; box-sizing: border-box;
    background: linear-gradient(to top, #02000a 0%, rgba(5,5,5,0) 100%);
    display: flex; justify-content: center;
}
.contacts-container {
    display: flex; flex-wrap: wrap; width: 100%; max-width: 1000px; margin: 0 auto;
    background: rgba(15, 20, 35, 0.7); border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px); z-index: 5;
}
.contacts-info { flex: 1; min-width: 300px; padding: 30px 40px; display: flex; flex-direction: column; justify-content: center; }
.contacts-info h2 { color: white; margin-top: 0; font-size: 32px; margin-bottom: 25px; }
.contact-item { margin-bottom: 25px; display: flex; align-items: flex-start; cursor: default; }

.text-box h4 { margin: 0 0 3px 0; color: var(--cyan); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.text-box p { margin: 0; font-size: 15px; color: #ddd; }
.text-box a { color: #fff; text-decoration: none; transition: 0.3s; border-bottom: 1px solid transparent; }
.text-box a:hover { color: var(--cyan); border-color: var(--cyan); }

.socials { display: flex; gap: 15px; margin-top: 5px; }
.social-btn {
    width: 36px; height: 36px; border-radius: 5px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 13px; text-decoration: none; transition: 0.3s;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.contacts-map { flex: 1.5; min-width: 300px; min-height: 450px; overflow: hidden; position: relative; }
.contacts-map iframe { width: 100%; height: 100%; border: none; filter: grayscale(100%) invert(90%) contrast(1.2); transition: all 0.5s ease; }
.contacts-map:hover iframe { filter: grayscale(0%) invert(0%) contrast(1); }

/* --- ФУТЕР --- */
footer {
    background: #020205; border-top: 1px solid rgba(0, 102, 255, 0.2);
    padding: 60px 5% 30px 5%; position: relative; z-index: 10; font-size: 14px; color: #888;
}
.footer-content {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px;
    max-width: 1200px; margin: 0 auto;
}
.footer-col { flex: 1; min-width: 250px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; opacity: 0.8; transition: 0.3s; text-decoration: none; }
.footer-logo:hover { opacity: 1; filter: drop-shadow(0 0 10px rgba(0,102,255,0.5)); }
.footer-logo img { height: 40px; }
.footer-logo span { color: white; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--cyan); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05); margin-top: 50px; padding-top: 20px;
    text-align: center; font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px;
}
.privacy-link { color: #666; text-decoration: none; }
.privacy-link:hover { color: #aaa; }

/* --- АДАПТИВНОСТЬ (MOBILE FRIENDLY) --- */
@media (max-width: 1300px) {
        .slider-area { flex: 0 0 500px; }
}

@media (max-width: 1024px) {
    .about-wrapper { flex-direction: column; align-items: center; }
    .slider-area { 
        position: relative; top: 0; margin-bottom: 60px; 
        flex: none; width: 100%; max-width: 600px;
        transform: none; opacity: 1; 
    }
    .about-content { width: 100%; transform: none; opacity: 1; }
    .about-text, .hero-content { opacity: 1; transform: none; }
    
    /* --- ИСПРАВЛЕНИЕ КАРТОЧЕК НА МОБИЛЬНЫХ/ПЛАНШЕТАХ --- */
    .stack-card {
        width: 100%; max-width: 360px;
        height: auto;
        min-height: 460px;
        margin-bottom: 20px;
    }
    .card-content {
        position: relative;
        height: auto;
        min-height: 100%;
        transform: none !important;
        padding-bottom: 60px;
    }
    .hidden-list {
        opacity: 1 !important;
        transform: translateY(0) !important;
        display: flex;
    }
    .layer { display: none; }
    .card-btn { opacity: 1; letter-spacing: 2px; }
}

@media (max-width: 768px) {
    header { flex-direction: column; padding: 20px; }
    .logo-container { margin-bottom: 20px; }
    nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    nav a { margin: 0 10px; }
    
    h1 { font-size: 36px; }
    h2, .gradient-text { font-size: 32px; }
    
    .slider-area { width: 100%; max-width: 100%; }
    .slider-container { height: 500px; }
    
    .cta-box { flex-direction: column; text-align: center; gap: 20px; padding: 30px 20px; }
    
    .chief-card { flex-direction: column; text-align: center; }
    .modal-window { width: 90%; padding: 30px; }
    .footer-col { text-align: center; }
    .footer-logo { justify-content: center; }
}

/* --- ХЛЕБНЫЕ КРОШКИ --- */
.breadcrumbs {
    position: absolute;
    top: 100px;
    left: 10%;
    z-index: 10;
    font-size: 14px;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-10px);
    animation: slideDownFade 0.6s ease forwards 0.2s;
}

@keyframes slideDownFade {
    to { opacity: 1; transform: translateY(0); }
}

.breadcrumbs a {
    color: #88aaff;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.breadcrumbs a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan);
    transition: 0.3s;
    box-shadow: 0 0 5px var(--cyan);
}

.breadcrumbs a:hover {
    color: var(--cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.breadcrumbs a:hover::after {
    width: 100%;
}

.breadcrumbs span {
    color: #445566;
    margin: 0 10px;
    font-size: 12px;
}

.breadcrumbs .current {
    color: #ddd;
    cursor: default;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* --- КНОПКА "НАВЕРХ" --- */
#scrollTopBtn {
    display: none; /* Скрыта по умолчанию */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    font-size: 24px;
    border: none;
    outline: none;
    background: rgba(0, 30, 60, 0.8);
    color: var(--cyan);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    border: 1px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transition: 0.4s;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 0 25px var(--cyan);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .breadcrumbs {
        left: 5%;
        top: 180px; /* Опускаем ниже хедера на мобильных */
        width: 90%;
        box-sizing: border-box;
        font-size: 12px;
        justify-content: center;
    }
}

/* --- NEON ICONS (FOOTER) --- */
.icon-neon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 10px;
    filter: drop-shadow(0 0 3px var(--cyan));
}

.icon-loc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

.icon-phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}

.icon-mail {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
}

/* --- UPDATED ICON BOX (CONTACTS SECTION) --- */
.icon-box {
    width: 40px; height: 40px; 
    background: transparent;
    border: none; border-radius: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan); margin-right: 15px; flex-shrink: 0; transition: 0.3s;
    filter: drop-shadow(0 0 5px var(--cyan));
}
.icon-box svg { 
    width: 32px; height: 32px; 
    fill: none !important; 
    stroke: currentColor;
    stroke-width: 1.5;
}
.contact-item:hover .icon-box {
    background: transparent; color: #fff;
    box-shadow: none; border: none;
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px var(--cyan));
    animation: none;
}

/* --- НОВОГОДНИЙ ОВЕРЛЕЙ (снежинки + лёгкие сугробы) --- */
#uc-snow-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 900; /* выше контента, ниже модалок/попапов */
}

/* --- НОВОГОДНЯЯ ЁЛКА (из G:\NEW_site\newyear_tree, Shadow DOM) --- */
#uc-nytree-host {
    position: fixed;
    left: 10px;
    bottom: 6px;
    width: 220px; /* базовый размер, дальше масштабируем */
    height: 220px;
    pointer-events: none;
    z-index: 901;
    opacity: 0.98;
    transform-origin: left bottom;
    transform: scale(0.52);
    filter: drop-shadow(0 14px 26px rgba(0,0,0,0.45));
}

@media (max-width: 900px) {
    #uc-nytree-host { transform: scale(0.42); left: 6px; bottom: 4px; }
}
@media (max-width: 520px) {
    #uc-nytree-host { transform: scale(0.34); left: 4px; bottom: 2px; opacity: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
    #uc-snow-canvas { display: none !important; }
    #uc-nytree-host { display: none !important; }
}