* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6,
.slogan,
.cta-button {
    font-family: 'Unbounded', sans-serif;
}

/* Логотип */
.logo {
    font-family: 'Franklin Gothic Heavy', 'Unbounded', sans-serif;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 40px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.logo-icon {
    margin-right: 15px;
}

.logo-icon img {
    display: block;
    transition: all 0.3s ease;
    width: 70px;
    height: auto;
}

#header.scrolled .logo-icon img {
    filter: brightness(0.8);
}

.logo-aiti {
    color: #009846 !important;
}

.logo-tiket {
    color: #E31E24 !important;
}

/* Видеофон */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.9) 0%,
        rgba(20, 20, 20, 0.7) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.video-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 50%,
        transparent 0%,
        rgba(0, 152, 70, 0.1) 20%,
        transparent 40%
    );
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Шапка */
#header {
    padding: 25px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Навигационное меню */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #009846;
}

/* Кнопка телефона */
.header-actions {
    display: flex;
    align-items: center;
}

.clean-phone-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: rgba(0, 152, 70, 0.1);
    border: 2px solid #009846;
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.clean-phone-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 152, 70, 0.2), transparent);
    transition: left 0.5s ease;
}

.clean-phone-btn:hover::before {
    left: 100%;
}

.clean-phone-btn:hover {
    background: rgba(0, 152, 70, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 152, 70, 0.25);
}

.clean-phone-icon {
    width: 36px;
    height: 36px;
    background: #009846;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.clean-phone-icon i {
    color: white;
    font-size: 14px;
}

.clean-phone-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.clean-phone-number {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffffff;
    line-height: 1.2;
}

.clean-phone-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-top: 2px;
}

/* Основной контент */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 140px 0 80px;
}

.hero-content {
    text-align: left;
    color: #ffffff;
    position: relative;
    z-index: 10;
    max-width: 100%;
    width: 100%;
}

/* Бейдж */
.typing-badge {
    display: inline-block;
    background: linear-gradient(135deg, #009846, #007c3a);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    min-height: 20px;
}

/* Заголовок */
.slogan {
    font-size: 4rem;
    margin-bottom: 40px;
    font-weight: 800;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.typing-line {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    min-height: 1.2em;
    position: relative;
}

.typed-text {
    color: #ffffff;
}

.highlight {
    color: #009846;
    background: linear-gradient(135deg, #009846, #007c3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Особенности */
.hero-features {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature {
    display: flex;
    align-items: flex-start;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    min-height: 24px;
    line-height: 1.3;
}

.feature i {
    color: #009846;
    margin-right: 12px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.hero-features .feature.typing-complete i {
    opacity: 1;
}

.feature-text {
    display: inline-block;
    min-width: 10px;
    flex: 1;
}

/* Кнопки */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: 'Unbounded', sans-serif;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: linear-gradient(135deg, #009846, #007c3a);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 152, 70, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 152, 70, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    border-color: #009846;
    background: rgba(0, 152, 70, 0.1);
    transform: translateY(-3px);
}

.button-text {
    display: inline-block;
    min-width: 10px;
}

/* Статистика */
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    min-width: 80px;
}

.stat-number {
    font-family: 'Unbounded', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #009846;
    margin-bottom: 5px;
    min-height: 1.2em;
}

.stat-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 1.2em;
}

/* Курсор */
.cursor {
    display: inline-block;
    background: #009846;
    margin-left: 2px;
    animation: blink 1s infinite;
    width: 3px;
    color: transparent;
}

.typing-badge .cursor,
.feature-text .cursor,
.button-text .cursor,
.stat-number .cursor,
.stat-text .cursor {
    background: #ffffff;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.typing-complete .cursor {
    display: none !important;
}

/* Следующий блок */
.about-section {
    padding: 100px 0;
    background: #0a0a0a;
    min-height: 100vh;
}

.about-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ ========== */

/* Планшеты */
@media (max-width: 1024px) {
    .logo {
        font-size: 36px;
    }
    
    .logo-icon img {
        width: 60px;
    }
    
    .slogan {
        font-size: 3.5rem;
    }
    
    .typing-line {
        font-size: 3.5rem;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    #header {
        padding: 20px 0;
    }
    
    #header.scrolled {
        padding: 12px 0;
    }
    
    .header-content {
        justify-content: center;
        gap: 0;
    }
    
    /* Логотип - крупный по умолчанию и по центру */
    .logo {
        font-size: 32px;
        transition: all 0.3s ease;
        justify-content: center;
    }
    
    .logo-icon {
        margin-right: 12px;
    }
    
    .logo-icon img {
        width: 55px;
        transition: all 0.3s ease;
    }
    
    /* Скрываем меню на мобильных */
    .nav-menu {
        display: none;
    }
    
    /* Кнопка телефона - скрыта по умолчанию */
    .header-actions {
        display: none;
    }
    
    /* При скролле - центрируем кнопку телефона */
    #header.scrolled .header-actions {
        display: flex;
        justify-content: center;
        width: 100%;
        animation: fadeIn 0.3s ease;
    }
    
    /* Скрываем логотип при скролле */
    #header.scrolled .logo {
        display: none;
    }
    
    /* Центрированная кнопка телефона для мобильных */
    .clean-phone-btn {
        padding: 12px 20px;
        gap: 12px;
        border-radius: 12px;
        justify-content: center;
    }
    
    .clean-phone-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }
    
    .clean-phone-icon i {
        font-size: 14px;
    }
    
    .clean-phone-number {
        font-size: 16px;
    }
    
    .clean-phone-text {
        font-size: 12px;
    }
    
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .slogan {
        font-size: 2.5rem;
        margin-bottom: 30px;
        gap: 8px;
    }
    
    .typing-line {
        font-size: 2.5rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .typing-badge {
        font-size: 13px;
        padding: 6px 16px;
        margin-bottom: 25px;
    }
    
    .hero-features {
        margin-bottom: 30px;
        gap: 12px;
    }
    
    .feature {
        font-size: 1rem;
    }
    
    .feature i {
        margin-right: 10px;
        font-size: 0.9rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 15px;
    }
    
    .hero-stats {
        gap: 25px;
        justify-content: center;
    }
    
    .stat {
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 0.8rem;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-section h2 {
        font-size: 2rem;
    }
}

/* Очень маленькие мобильные устройства */
@media (max-width: 480px) {
    .logo {
        font-size: 28px;
    }
    
    .logo-icon img {
        width: 50px;
    }
    
    .clean-phone-btn {
        padding: 10px 18px;
    }
    
    .clean-phone-number {
        font-size: 15px;
    }
    
    .clean-phone-text {
        font-size: 11px;
    }
    
    .slogan {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .typing-line {
        font-size: 2rem;
    }
    
    .typing-badge {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 20px;
    }
    
    .hero-features {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .feature {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.75rem;
    }
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ландшафтная ориентация мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .slogan {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .typing-line {
        font-size: 2rem;
    }
    
    .hero-features {
        margin-bottom: 20px;
    }
    
    .hero-actions {
        margin-bottom: 30px;
    }
    
    /* В ландшафте делаем шапку более компактной */
    #header {
        padding: 15px 0;
    }
    
    #header.scrolled {
        padding: 10px 0;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .logo-icon img {
        width: 40px;
    }
    
    .clean-phone-btn {
        padding: 8px 16px;
    }
    
    .clean-phone-number {
        font-size: 14px;
    }
}
