@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@300;400;500;600;700&display=swap');

/* ===============================
   ОСНОВНЫЕ СТИЛИ
   =============================== */

:root {
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
}

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Chakra Petch', monospace;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-size: 18px;
    font-weight: 400;
}

body.home-page {
    height: 100vh;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

main {
    position: relative;
    min-height: calc(100vh - 120px);
    padding-top: 70px;
    padding-bottom: 50px;
    background: #fff;
}

.hero {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 50px;
    overflow: hidden;
}

/* ===============================
   НАВИГАЦИЯ
   =============================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #000;
    border-bottom: 2px solid #000;
    z-index: 1000;
    height: 60px;
}

.navbar * {
    color: #fff !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
}

.nav-logo h2 {
    font-family: 'Chakra Petch', monospace;
    color: #fff !important;
    font-weight: 600;
    font-size: clamp(20px, 5vw, 28px);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin: 0;
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    background: #000;
    padding: var(--spacing-sm) var(--spacing-md);
}

.nav-link {
    font-family: 'Chakra Petch', monospace;
    text-decoration: none;
    color: #fff !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff !important;
    margin: 3px 0;
    border: 1px solid #fff;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    transform-origin: center;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    transform-origin: center;
}

/* ===============================
   ГЛАВНАЯ СТРАНИЦА - HERO
   =============================== */

.hero {
    padding: 0;
    background: #fff;
    color: #000;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.hero * {
    color: #000 !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.hero-spacer-top {
    flex: 1 1 40px;
    min-height: 40px;
}

.hero-spacer-bottom {
    flex: 1 1 40px;
    min-height: 40px;
}

.hero-title-animation {
    flex: 0 0 auto;
    margin-bottom: var(--spacing-lg);
    width: 100%;
    max-width: 800px;
    background: transparent;
    padding: var(--spacing-lg) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
}

.hero-content {
    flex: 0 0 auto;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
}

.hero-content p {
    font-family: 'Chakra Petch', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: #000 !important;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================
   АНИМИРОВАННАЯ СЕТКА
   =============================== */

.network-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.network-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

/* ===============================
   АНИМАЦИИ
   =============================== */

.animate-hero {
    animation: heroAppear 0.6s ease-out forwards;
}

@keyframes heroAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    color: #000 !important;
    background: transparent !important;
    margin: var(--spacing-xs) 0;
    font-family: 'Chakra Petch', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}

.animate-hero .title-line {
    animation: titleAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-hero .title-line.animation-complete {
    animation: titleGlow 4s infinite;
    opacity: 1;
    transform: translateY(0);
}

@keyframes titleAppear {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight-line {
    background: #000 !important;
    color: #fff !important;
    padding: 0 var(--spacing-md);
    display: inline-block;
}

.animate-hero .title-line:nth-child(1) { animation-delay: 0.2s; }
.animate-hero .title-line:nth-child(2) { animation-delay: 0.4s; }
.animate-hero .title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes titleGlow {
    0%, 100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
    50% { 
        opacity: 0.8; 
        transform: translateY(0) scale(1.01);
    }
}

.animate-text {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   ФУТЕР
   =============================== */

.footer {
    background: #000;
    color: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 0;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 1000;
}

.footer * {
    color: #fff;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content p {
    font-family: 'Chakra Petch', monospace;
    font-weight: 400;
    margin: 0;
    color: #fff;
    font-size: clamp(10px, 3.125vw, 14px);
    line-height: 1.4;
    white-space: nowrap;
}

.footer-nav-links {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    text-align: center;
}

.footer-nav-link {
    font-family: 'Chakra Petch', monospace;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}

.footer-nav-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===============================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   =============================== */

.page-header {
    background: #fff;
    color: #000;
    padding: 30px 0 0 0;
    text-align: center;
}

.page-header * {
    color: #000;
}

.page-header h1 {
    font-family: 'Chakra Petch', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #000;
}

.legal-content {
    padding: 0 0 80px 0;
    background: #fff;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    line-height: 1.8;
}

.content-wrapper h2 {
    font-family: 'Chakra Petch', monospace;
    font-size: 2.2rem;
    font-weight: 600;
    color: #000;
    margin: 30px 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.legal-spacer {
    height: 40px;
}

.content-wrapper h3 {
    font-family: 'Chakra Petch', monospace;
    font-size: 1.8rem;
    font-weight: 500;
    color: #000;
    margin: 40px 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-wrapper p {
    font-family: 'Chakra Petch', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.7;
}

.content-wrapper ul {
    margin: 16px 0 24px 40px;
}

.content-wrapper li {
    font-family: 'Chakra Petch', monospace;
    font-size: 1.1rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 12px;
    line-height: 1.6;
}

/* ===============================
   МОБИЛЬНЫЕ СТИЛИ
   =============================== */

@media (max-width: 1024px) {
    .hamburger {
        display: flex;
    }
    
    .footer {
        padding: 16px 0;
        height: auto;
        min-height: 60px;
    }
    
    .footer-nav-links {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 8px;
    }
    
    /* КОМПАКТНОЕ МОБИЛЬНОЕ МЕНЮ - ВЫЕЗЖАЕТ ПОД ГАМБУРГЕРОМ */
    .nav-menu {
        position: fixed;
        top: 72px;
        right: 20px;
        width: 280px;
        background: #000;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 500;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        list-style: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .mobile-menu-item {
        width: 100%;
        height: 60px;
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-link {
        color: #fff;
        text-decoration: none;
        font-family: 'Chakra Petch', monospace;
        font-size: 0.9rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .mobile-menu-link:hover {
        text-decoration: underline;
    }
    
    .hero {
        top: 70px;
        bottom: 80px;
    }
    
    .hero-spacer-top {
        flex: 1 1 40px;
        min-height: 40px;
    }
    
    .hero-spacer-bottom {
        flex: 1 1 40px;
        min-height: 40px;
    }
    
    .title-line {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 768px) {
    .footer-nav-link {
        font-size: 13px;
    }
    
    .page-header {
        padding: 25px 0 0 0;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
        margin-bottom: 0;
    }
    
    .legal-content {
        padding: 0 0 60px 0;
    }
    
    .content-wrapper {
        padding: 0 20px;
    }
    
    .content-wrapper h2 {
        font-size: 1.8rem;
        margin: 25px 0 25px 0;
    }
    
    .content-wrapper h3 {
        font-size: 1.5rem;
        margin: 30px 0 16px 0;
    }
    
    .content-wrapper p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .content-wrapper ul {
        margin: 12px 0 20px 30px;
    }
    
    .content-wrapper li {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 12px 0;
        height: 50px;
    }
    
    .footer-nav-link {
        font-size: 12px;
    }
    
    .page-header {
        padding: 20px 0 0 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .legal-content {
        padding: 0 0 50px 0;
    }
    
    .content-wrapper {
        padding: 0 16px;
    }
    
    .content-wrapper h2 {
        font-size: 1.6rem;
        margin: 20px 0 20px 0;
    }
    
    .content-wrapper h3 {
        font-size: 1.4rem;
        margin: 25px 0 14px 0;
    }
    
    .content-wrapper p {
        font-size: 0.95rem;
        margin-bottom: 16px;
        line-height: 1.6;
    }
    
    .content-wrapper ul {
        margin: 10px 0 16px 24px;
    }
    
    .content-wrapper li {
        font-size: 0.95rem;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .navbar {
        height: 55px;
    }

    .nav-container {
        height: 55px;
    }
}
