* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0a;
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 1rem 2rem;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

nav a:hover {
    color: #ffffff;
}

nav a:not(.dropdown-toggle)::after {
     content: '';
     position: absolute;
     bottom: -4px;
     left: 0;
     width: 0;
     height: 2px;
     background: #ffffff;
     transition: width 0.3s ease;
 }
 
 nav a:not(.dropdown-toggle):hover::after {
     width: 100%;
 }

/* Dropdown меню */
.nav-item {
     position: relative;
     display: flex;
     align-items: center;
     gap: 0;
     padding-bottom: 1.5rem;
     margin-bottom: -0.8rem;
 }

 .dropdown-toggle {
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .dropdown-toggle::after {
     content: '▼';
     font-size: 0.6rem;
     transition: transform 0.3s ease;
     display: inline-block;
 }

 .dropdown-menu {
     display: none;
     position: absolute;
     top: 100%;
     left: 0;
     background: rgba(10, 10, 10, 0.95);
     backdrop-filter: blur(20px);
     border: 1px solid rgba(255, 255, 255, 0.1);
     border-radius: 0.5rem;
     min-width: 200px;
     z-index: 1001;
     animation: fadeInUp 0.3s ease;
     overflow: hidden;
     pointer-events: none;
     margin-top: -0.3rem;
 }

 .nav-item:hover .dropdown-menu {
     display: flex;
     flex-direction: column;
     pointer-events: auto;
 }

 .dropdown-menu a {
     padding: 0.75rem 1rem;
     color: #cbd5e1;
     text-decoration: none;
     font-weight: 500;
     font-size: 0.9rem;
     transition: all 0.3s ease;
     border-left: 3px solid transparent;
     position: relative;
 }

 .dropdown-menu a::after {
     display: none;
 }

 .dropdown-menu a:hover {
     background: rgba(255, 255, 255, 0.1);
     color: #ffffff;
     border-left-color: #ffffff;
     padding-left: 1.2rem;
 }

 .nav-item:hover .dropdown-toggle::after {
     transform: rotate(180deg);
 }

.cta-nav {
    background: #ffffff;
    color: #000;
    padding: 0.6rem 1.8rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0;
}

.burger-menu span {
    width: 25px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.4s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Мобильное меню */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu.active {
    max-height: 500px;
    display: flex;
}

.mobile-menu-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: block;
}

.mobile-menu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: #ffffff;
}

/* Main */
main {
    margin-top: 80px;
    padding-top: 40px;
}

/* Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
    animation: fadeInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.hero p {
    font-size: 1.25rem;
    color: #a0aec0;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.8;
    animation: fadeInUp 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
    will-change: opacity, transform;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: #ffffff;
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-mirrors {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mirrors:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-mirrors i {
    font-size: 1.2rem;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, border-color;
}

.stat:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: -0.5px;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.section-subtitle {
    text-align: center;
    color: #a0aec0;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
    will-change: opacity, transform;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-links a,
.footer-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    padding: 0;
}

.footer-links a:hover,
.footer-link:hover {
    color: #ffffff;
}

footer p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 1000px;
    max-height: 95vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: #cbd5e1;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.close-modal:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-mirrors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.modal-mirror-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.8rem;
    padding: 1.2rem;
    text-align: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    word-break: break-word;
}

.modal-mirror-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Mirrors Section */
.mirrors {
    max-width: 1200px;
    margin: 6rem auto 0;
    padding: 2rem;
}

.mirrors-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.mirrors-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.mirrors h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mirrors-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.mirrors-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.mirrors-toggle.active i {
    transform: rotate(180deg);
}

.mirrors-toggle i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mirrors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.2rem;
    animation: fadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mirrors-grid.collapsed {
    max-height: 0;
    overflow: hidden;
    gap: 0;
}

.mirror-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    word-break: break-word;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.mirror-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.12);
}

.mirror-card:active {
    transform: translateY(-2px);
}

/* Tablet (768px и меньше) */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    .modal-mirrors-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.8rem;
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    header {
        padding: 0.8rem 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    nav ul {
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    
    nav a {
        font-size: 0.85rem;
    }
    
    .cta-nav {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .burger-menu {
        display: flex;
    }
    
    nav ul {
        display: none;
    }
    
    main {
        margin-top: 70px;
        padding-top: 20px;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .stat {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .mirrors {
        margin: 4rem auto 0;
        padding: 1.5rem;
    }
    
    .mirrors-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .mirrors h2 {
        font-size: 1.8rem;
        margin: 0;
    }
    
    .mirrors-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .mirrors-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.8rem;
    }
    
    .mirror-card {
        padding: 1rem;
        min-height: 80px;
        font-size: 0.85rem;
    }
    
    footer {
        margin-top: 4rem;
        padding: 2rem 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        font-size: 0.9rem;
    }
    }

/* Мобильные устройства (480px и меньше) */
@media (max-width: 480px) {
    header {
        padding: 0.6rem 0.8rem;
    }
    
    nav {
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        font-size: 1rem;
    }
    
    nav ul {
        display: none;
    }
    
    nav a {
        font-size: 0.75rem;
    }
    
    .cta-nav {
        padding: 0.4rem 0.8rem;
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .burger-menu span {
        width: 22px;
        height: 2px;
    }
    
    main {
        margin-top: 120px;
        padding-top: 10px;
    }
    
    .hero {
        padding: 2.5rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        gap: 0.8rem;
        margin-bottom: 2rem;
        flex-direction: column;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
        margin: 2rem auto 0;
    }
    
    .stat {
        padding: 1.2rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .mirrors {
        margin: 3rem auto 0;
        padding: 1rem;
    }
    
    .mirrors-title-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 0.8rem;
    }
    
    .mirrors h2 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .mirrors-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .mirrors-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.6rem;
    }
    
    .mirror-card {
        padding: 0.8rem;
        min-height: 70px;
        font-size: 0.75rem;
        border-radius: 0.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    footer {
        margin-top: 3rem;
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
        font-size: 0.85rem;
    }
    
    footer p {
        font-size: 0.8rem;
    }
}

/* Малые мобильные устройства (360px и меньше) */
@media (max-width: 360px) {
    header {
        padding: 0.5rem 0.5rem;
    }
    
    .logo {
        font-size: 0.9rem;
    }
    
    nav ul {
        display: none;
    }
    
    nav a {
        font-size: 0.65rem;
    }
    
    .cta-nav {
        padding: 0.3rem 0.6rem;
        font-size: 0.6rem;
    }
    
    .burger-menu span {
        width: 20px;
        height: 2px;
    }
    
    .mobile-menu-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .hero h1 {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}
