/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --accent-gradient: linear-gradient(135deg, #ff8a00 0%, #ff2070 100%);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(30, 30, 30, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Прелоадер */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader__inner {
    text-align: center;
}

.preloader__logo {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.preloader__line {
    height: 2px;
    width: 200px;
    background: #333;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preloader__line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Навигация - ФИКСИРОВАННАЯ */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
}

.nav.scrolled {
    padding: 15px 50px;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav__menu {
    display: flex;
    list-style: none;
}

.nav__menu li {
    margin-left: 40px;
}

.nav__menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
}

.nav__menu a:hover {
    color: #ff8a00;
}

.nav__menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav__menu a:hover::after {
    width: 100%;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav__hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Главный экран */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 70%);
    z-index: -1;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00ffff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 74px, 0); }
    5% { clip: rect(86px, 9999px, 8px, 0); }
    10% { clip: rect(2px, 9999px, 14px, 0); }
    15% { clip: rect(72px, 9999px, 38px, 0); }
    20% { clip: rect(22px, 9999px, 72px, 0); }
    25% { clip: rect(14px, 9999px, 30px, 0); }
    30% { clip: rect(64px, 9999px, 46px, 0); }
    35% { clip: rect(32px, 9999px, 38px, 0); }
    40% { clip: rect(84px, 9999px, 28px, 0); }
    45% { clip: rect(16px, 9999px, 22px, 0); }
    50% { clip: rect(18px, 9999px, 92px, 0); }
    55% { clip: rect(46px, 9999px, 88px, 0); }
    60% { clip: rect(42px, 9999px, 22px, 0); }
    65% { clip: rect(12px, 9999px, 18px, 0); }
    70% { clip: rect(28px, 9999px, 78px, 0); }
    75% { clip: rect(54px, 9999px, 32px, 0); }
    80% { clip: rect(22px, 9999px, 70px, 0); }
    85% { clip: rect(8px, 9999px, 96px, 0); }
    90% { clip: rect(68px, 9999px, 30px, 0); }
    95% { clip: rect(32px, 9999px, 38px, 0); }
    100% { clip: rect(84px, 9999px, 10px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(52px, 9999px, 38px, 0); }
    5% { clip: rect(12px, 9999px, 84px, 0); }
    10% { clip: rect(68px, 9999px, 20px, 0); }
    15% { clip: rect(16px, 9999px, 44px, 0); }
    20% { clip: rect(32px, 9999px, 68px, 0); }
    25% { clip: rect(84px, 9999px, 26px, 0); }
    30% { clip: rect(8px, 9999px, 92px, 0); }
    35% { clip: rect(48px, 9999px, 18px, 0); }
    40% { clip: rect(72px, 9999px, 34px, 0); }
    45% { clip: rect(24px, 9999px, 76px, 0); }
    50% { clip: rect(56px, 9999px, 12px, 0); }
    55% { clip: rect(32px, 9999px, 88px, 0); }
    60% { clip: rect(78px, 9999px, 24px, 0); }
    65% { clip: rect(14px, 9999px, 60px, 0); }
    70% { clip: rect(36px, 9999px, 82px, 0); }
    75% { clip: rect(62px, 9999px, 46px, 0); }
    80% { clip: rect(28px, 9999px, 70px, 0); }
    85% { clip: rect(6px, 9999px, 94px, 0); }
    90% { clip: rect(72px, 9999px, 28px, 0); }
    95% { clip: rect(44px, 9999px, 16px, 0); }
    100% { clip: rect(18px, 9999px, 52px, 0); }
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero__cta {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-gradient);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.hero__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 138, 0, 0.4);
}

.hero__cta:hover::before {
    left: 100%;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero__scroll-indicator span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

/* Секции */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.1rem;
}

/* Секция "Об Основателе" */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about__text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about__text strong {
    color: #ff8a00;
}

.about__text em {
    color: var(--text-secondary);
    font-style: italic;
}

blockquote {
    border-left: 3px solid #ff8a00;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.gradient-border {
    padding: 5px;
    background: var(--accent-gradient);
    border-radius: 15px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.gradient-border:hover {
    transform: scale(1.02);
}

.founder-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    display: block;
    object-fit: cover;
}

/* Таблица структуры холдинга */
.structure {
    background: rgba(0, 0, 0, 0.5);
}

.structure-table {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.table-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-company {
    background: linear-gradient(135deg, rgba(255, 138, 0, 0.1) 0%, rgba(255, 32, 112, 0.1) 100%);
    border: 3px solid;
    border-image: var(--accent-gradient) 1;
    border-radius: 15px;
    padding: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.main-company h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-company p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.table-connector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.connector-line {
    width: 3px;
    height: 60px;
    background: var(--accent-gradient);
}

.table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.table-company {
    display: flex;
    justify-content: center;
}

.company-card {
    background: var(--card-bg);
    border: 2px solid;
    border-image: var(--accent-gradient) 1;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 138, 0, 0.3);
}

.company-card h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ff8a00;
}

.company-card p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.company-responsibilities {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-responsibilities span {
    background: rgba(255, 138, 0, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #ff8a00;
    border: 1px solid rgba(255, 138, 0, 0.3);
}

/* Связи между компаниями */
.table-connections {
    position: relative;
    height: 100px;
}

.connection-flow {
    position: absolute;
    top: 20px;
    left: 25%;
    right: 25%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-arrow {
    position: relative;
    padding: 8px 20px;
    background: rgba(255, 138, 0, 0.1);
    border: 1px solid rgba(255, 138, 0, 0.5);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ff8a00;
}

.flow-right::before {
    content: '→';
    margin-right: 8px;
}

.flow-left::before {
    content: '←';
    margin-right: 8px;
}

.flow-arrow.animated {
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 138, 0, 0.1),
        rgba(255, 32, 112, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    animation: flow 3s linear infinite;
}

.connection-finance {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.finance-arrow {
    padding: 8px 20px;
    background: rgba(255, 138, 0, 0.1);
    border: 1px solid rgba(255, 138, 0, 0.5);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ff8a00;
}

.finance-arrow::before {
    content: '↓';
    margin-right: 8px;
}

@keyframes flow {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Секция с картой */
.map-section {
    padding-bottom: 50px;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 138, 0, 0.2);
}

/* Футер */
.footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 138, 0, 0.2);
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.footer__tagline {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-style: italic;
}

.footer__location {
    color: var(--text-secondary);
}

.footer__location i {
    margin-right: 8px;
    color: #ff8a00;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__menu li {
        margin: 20px 0;
    }

    .nav__hamburger {
        display: flex;
    }

    .nav__hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__content {
        padding-top: 80px;
    }

    .nav {
        padding: 20px;
    }

    .table-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .connection-flow {
        flex-direction: column;
        gap: 10px;
        left: 10%;
        right: 10%;
    }

    .flow-arrow {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .founder-photo {
        max-width: 100%;
    }

    .main-company {
        padding: 20px;
    }

    .main-company h3 {
        font-size: 1.5rem;
    }

    .company-card {
        padding: 20px;
    }

    .table-connections {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }

    .nav {
        padding: 15px;
    }

    .hero__cta {
        padding: 12px 30px;
    }

    .main-company {
        padding: 15px;
    }

    .main-company h3 {
        font-size: 1.3rem;
    }

    .company-card h4 {
        font-size: 1.1rem;
    }

    .map-container {
        height: 250px;
    }
}