/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;500;600;700&family=Exo+2:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Exo 2', 'Rajdhani', sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-weight: 500;
    line-height: 1.6;
}

/* Анимированный фон с частицами */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(220, 20, 60, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Основной фон с гифкой */
/* Основной фон с гифкой - ФИКСИРОВАННЫЙ */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000 0%, #1a0000 100%);
    z-index: -1;
    /* Фиксируем фон при скролле */
    background-attachment: fixed;
}

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/wormfon.gif') center/cover;
    /* НАСТРОЙКА ПРОЗРАЧНОСТИ - меняй значение opacity */
    filter: blur(12px) brightness(0.7) contrast(1.4);
    opacity: 0.8; /* ← ЭТО значение меняй от 0.1 до 1.0 */
    animation: none;
}

@keyframes backgroundPulse {
    0%, 100% { 
        opacity: 0.7; /* ← Это значение тоже можно менять */
        filter: blur(12px) brightness(0.7) contrast(1.4);
    }
    50% { 
        opacity: 0.9; /* ← И это */
        filter: blur(10px) brightness(0.8) contrast(1.5);
    }
}

/* Языковой переключатель */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: rgba(220, 20, 60, 0.2);
    color: #fff;
    border: 1px solid #dc143c;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: #dc143c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4);
}

.lang-btn.active {
    background: #dc143c;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

/* Основной контент */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Логотип и заголовок */
.header-section {
    margin-bottom: 30px;
}

.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dc143c;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
    margin-bottom: 20px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(220, 20, 60, 0.5); }
    50% { box-shadow: 0 0 50px rgba(220, 20, 60, 0.8); }
}

.logo {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: #fff;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000;
    margin-bottom: 10px;
    letter-spacing: 3px;
    animation: textShine 2s ease-in-out infinite alternate;
}

@keyframes textShine {
    from { text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
    to { text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000; }
}

/* Анимированный текст */
.animated-text-container {
    font-size: 2.2rem;
    margin: 40px 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.text-line {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.static-text {
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    margin-right: 10px;
    font-family: 'Rajdhani', sans-serif;
    /* Фиксированная позиция */
    position: relative;
    z-index: 2;
}

.animated-part {
    display: flex;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.animated-text {
    color: #dc143c;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
}

.cursor {
    color: #dc143c;
    animation: blink 1s infinite;
    font-weight: 700;
    margin-left: 2px;
}

/* Анимации для движения текста */
.animated-part.typing {
    transform: translateX(0);
}

.animated-part.deleting {
    transform: translateX(0);
}

/* Центрирование контейнера */
.animated-text-container {
    text-align: center;
}

.text-line {
    display: inline-flex;
    align-items: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Кнопка */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #dc143c, #ff0000);
    color: white;
    padding: 20px 50px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    border-radius: 50px;
    margin: 40px 0;
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.5);
}

.cta-button .btn-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover .btn-hover-effect {
    left: 100%;
}

/* Сетка особенностей */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #dc143c;
    box-shadow: 0 15px 40px rgba(220, 20, 60, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(220, 20, 60, 0.5));
}

.feature-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
    font-size: 1.1rem;
    font-weight: 500;
}

/* SEO контент */
.seo-content {
    text-align: left;
    margin-top: 80px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 20, 60, 0.1);
}

.seo-content h2 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 2.2rem;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(45deg, #fff, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.seo-content p {
    line-height: 1.8;
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .animated-text-container {
        font-size: 1.6rem;
        min-height: 60px;
    }
    
    .animated-text {
        min-width: 250px;
        height: 35px;
    }
    
    .text-line {
        min-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .seo-content {
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    .main-logo {
        width: 80px;
        height: 80px;
    }
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Примеры работы */
.examples-section {
    margin: 80px 0;
    text-align: center;
}

.examples-section h2 {
    font-size: 2.5rem;
    font-family: 'Orbitron', monospace;
    color: #fff;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #fff, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.example-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.6s ease;
}

.example-card:hover::before {
    left: 100%;
}

.example-card:hover {
    transform: translateY(-5px);
    border-color: #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.example-question, .example-answer {
    text-align: left;
    margin-bottom: 25px;
}

.example-question {
    border-left: 3px solid #dc143c;
    padding-left: 20px;
}

.example-answer {
    border-left: 3px solid #ff4444;
    padding-left: 20px;
}

.example-label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #dc143c;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.example-answer .example-label {
    color: #ff4444;
}

.example-text {
    font-family: 'Exo 2', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

/* Блок с кодом */
.code-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    max-height: 300px; /* Ограничиваем высоту */
}

.code-header {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #ff4444;
    margin-bottom: 15px;
    font-size: 1rem;
}

.code-block pre {
    margin: 0;
    position: relative;
    max-height: 200px; /* Ограничение высоты кода */
    overflow: hidden;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #00ff00;
    line-height: 1.4;
    display: block;
}

/* Эффект размытия кода - ИСПРАВЛЕННЫЙ */
.code-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

/* Предупреждения о рисках */
.risk-warning {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid #dc143c;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.warning-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #ff4444;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.risk-item {
    font-family: 'Exo 2', sans-serif;
    color: #ff6b6b;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.final-warning {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #ff0000;
    font-size: 1rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    text-transform: uppercase;
}

/* Адаптивность для примеров */
@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-section h2 {
        font-size: 2rem;
    }
    
    .example-card {
        padding: 20px;
    }
    
    .code-block {
        padding: 15px;
    }
    
    .code-block code {
        font-size: 0.8rem;
    }
}

/* Стили для иконок сообщений */
.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.message-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #dc143c;
}

.example-answer .message-icon {
    border-color: #ff4444;
}

.example-question .message-icon {
    border-color: #dc143c;
}

/* Стили для структурированного ответа */
.response-content {
    font-family: 'Exo 2', sans-serif;
    color: #ccc;
    line-height: 1.6;
}

.response-section {
    margin-bottom: 20px;
}

.response-section strong {
    color: #ff4444;
    font-weight: 700;
}

.steps {
    margin-top: 10px;
    padding-left: 20px;
}

/* Маленький блок кода для команд */
.code-block-small {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.9rem;
}

/* Большой блок кода с блюром */
.code-block {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
}

.code-content {
    font-family: 'Courier New', monospace;
    color: #00ff00;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

/* Блюр начинается с этой строки */
.blur-start {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.code-block:hover .blur-start {
    filter: blur(0);
}

/* Оверлей для блюра */
.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 30%,
        rgba(0, 0, 0, 0.8) 100%
    );
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

.code-block:hover .blur-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Риски */
.risks {
    margin-top: 10px;
    padding-left: 20px;
}

.risk-item {
    margin-bottom: 5px;
    color: #ff6b6b;
}

/* Финальное предупреждение */
.final-warning-block {
    background: rgba(220, 20, 60, 0.2);
    border: 1px solid #ff0000;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: #ff0000;
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Кастомная матрица фон */
/* Кастомная матрица фон */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #000 0%, #1a0000 50%, #000 100%);
    z-index: -2;
}

#matrixCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4; /* Увеличил прозрачность */
}

/* Секция отзывов */
.testimonials-section {
    margin: 80px 0;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    font-family: 'Orbitron', monospace;
    color: #fff;
    margin-bottom: 50px;
    background: linear-gradient(45deg, #fff, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
    transition: left 0.6s ease;
}

.testimonial-card:hover::before {
    left: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #dc143c;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2);
}

.testimonial-text {
    font-family: 'Exo 2', sans-serif;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-family: 'Rajdhani', sans-serif;
    color: #dc143c;
    font-weight: 600;
    font-size: 1rem;
}

/* Дополнительный SEO контент */
.additional-seo {
    margin: 80px 0;
    text-align: left;
}

.additional-seo h2 {
    font-size: 2.2rem;
    font-family: 'Orbitron', monospace;
    color: #fff;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(45deg, #fff, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.seo-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(5px);
}

.seo-block h3 {
    font-family: 'Rajdhani', sans-serif;
    color: #dc143c;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.seo-block p {
    font-family: 'Exo 2', sans-serif;
    color: #ccc;
    line-height: 1.6;
    font-size: 1rem;
}

.keywords {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-family: 'Exo 2', sans-serif;
    color: #ccc;
    font-size: 0.9rem;
}

.keywords strong {
    color: #ff4444;
}

/* Адаптивность */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-section h2 {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
    }
    
    .additional-seo h2 {
        font-size: 1.8rem;
    }
    
    .seo-block {
        padding: 20px;
    }
}

/* Стили для логотипа - как было изначально */
.main-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dc143c;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.5);
    margin-bottom: 20px;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 30px rgba(220, 20, 60, 0.5); }
    50% { box-shadow: 0 0 50px rgba(220, 20, 60, 0.8); }
}

.logo {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
    color: #fff;
    text-shadow: 
        0 0 10px #ff0000,
        0 0 20px #ff0000,
        0 0 40px #ff0000;
    margin-bottom: 10px;
    letter-spacing: 3px;
    animation: textShine 2s ease-in-out infinite alternate;
}

@keyframes textShine {
    from { text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
    to { text-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000, 0 0 60px #ff0000; }
}

/* Глитч эффект ТОЛЬКО для текста */
.glitch-logo {
    position: relative;
    display: inline-block;
    animation: logoTextGlitch 5s infinite;
}

.logo-text {
    position: relative;
    z-index: 2;
    display: block;
}

.logo-glitch-chunks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.logo-chunk {
    position: absolute;
    background: #00ff00;
    opacity: 0;
    mix-blend-mode: difference;
    filter: brightness(1.5);
}

/* Позиции кусков для текста */
.logo-chunk-1 {
    top: 10%;
    left: 0;
    width: 25%;
    height: 30%;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

.logo-chunk-2 {
    top: 0;
    right: 10%;
    width: 20%;
    height: 40%;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.logo-chunk-3 {
    bottom: 15%;
    left: 30%;
    width: 15%;
    height: 25%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.logo-chunk-4 {
    top: 40%;
    left: 15%;
    width: 20%;
    height: 20%;
    clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%);
}

.logo-chunk-5 {
    bottom: 5%;
    right: 5%;
    width: 18%;
    height: 35%;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Анимации глитча для текста */
@keyframes logoGlitch1 {
    0%, 88% { opacity: 0; transform: translate(0, 0); }
    89% { opacity: 0.9; transform: translate(-4px, 3px); background: #00ff00; }
    90% { opacity: 0.7; transform: translate(2px, -2px); background: #ff00ff; }
    91% { opacity: 0.5; transform: translate(-1px, 1px); background: #ffff00; }
    92% { opacity: 0; transform: translate(0, 0); }
}

@keyframes logoGlitch2 {
    0%, 85% { opacity: 0; transform: translate(0, 0); }
    86% { opacity: 0.8; transform: translate(3px, -3px); background: #ff00ff; }
    87% { opacity: 0.6; transform: translate(-2px, 2px); background: #0000ff; }
    88% { opacity: 0.4; transform: translate(1px, -1px); background: #ff0000; }
    89% { opacity: 0; transform: translate(0, 0); }
}

@keyframes logoGlitch3 {
    0%, 92% { opacity: 0; transform: translate(0, 0); }
    93% { opacity: 0.7; transform: translate(-2px, -2px); background: #ffff00; }
    94% { opacity: 0.5; transform: translate(3px, 1px); background: #00ffff; }
    95% { opacity: 0.3; transform: translate(-1px, 3px); background: #00ff00; }
    96% { opacity: 0; transform: translate(0, 0); }
}

@keyframes logoGlitch4 {
    0%, 90% { opacity: 0; transform: translate(0, 0); }
    91% { opacity: 0.6; transform: translate(1px, 4px); background: #0000ff; }
    92% { opacity: 0.4; transform: translate(-3px, -1px); background: #ff0000; }
    93% { opacity: 0.2; transform: translate(2px, 2px); background: #ff00ff; }
    94% { opacity: 0; transform: translate(0, 0); }
}

@keyframes logoGlitch5 {
    0%, 87% { opacity: 0; transform: translate(0, 0); }
    88% { opacity: 0.8; transform: translate(-3px, 2px); background: #ff0000; }
    89% { opacity: 0.6; transform: translate(4px, -1px); background: #00ff00; }
    90% { opacity: 0.4; transform: translate(-2px, -3px); background: #ffff00; }
    91% { opacity: 0; transform: translate(0, 0); }
}

/* Применяем анимации к кускам */
.logo-chunk-1 {
    animation: logoGlitch1 4s infinite;
}

.logo-chunk-2 {
    animation: logoGlitch2 4s infinite 0.8s;
}

.logo-chunk-3 {
    animation: logoGlitch3 4s infinite 1.6s;
}

.logo-chunk-4 {
    animation: logoGlitch4 4s infinite 2.4s;
}

.logo-chunk-5 {
    animation: logoGlitch5 4s infinite 3.2s;
}

/* Эффект смещения всего текста */
@keyframes logoTextGlitch {
    0%, 95% { transform: translate(0, 0) scale(1); text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 40px #ff0000; }
    96% { transform: translate(-2px, 1px) scale(1.01); text-shadow: 0 0 15px #00ff00, 0 0 30px #00ff00, 0 0 50px #00ff00; }
    97% { transform: translate(1px, -1px) scale(0.99); text-shadow: 0 0 15px #0000ff, 0 0 30px #0000ff, 0 0 50px #0000ff; }
    98% { transform: translate(-1px, 2px) scale(1.02); text-shadow: 0 0 15px #ffff00, 0 0 30px #ffff00, 0 0 50px #ffff00; }
    99% { transform: translate(0, 0) scale(1); text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 40px #ff0000; }
}

/* Дополнительный эффект - свечение */
.logo-glitch-overlay {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, transparent 30%, rgba(255, 0, 0, 0.1) 70%);
    opacity: 0;
    z-index: 1;
    animation: logoOverlayGlow 6s infinite;
}

@keyframes logoOverlayGlow {
    0%, 90% { opacity: 0; }
    91% { opacity: 0.3; }
    92% { opacity: 0.1; }
    93% { opacity: 0.4; }
    94% { opacity: 0; }
}

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 32px;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(220,20,60,0.2);
}

.nav-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 12px #ff0000;
}
.nav-logo span { color: #dc143c; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    color: #aaa;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: all .3s;
}
.nav-link:hover {
    color: #fff;
    border-color: rgba(220,20,60,0.3);
    background: rgba(220,20,60,0.1);
}
.nav-tg {
    background: rgba(220,20,60,0.15);
    border-color: rgba(220,20,60,0.3);
    color: #ff8fa0;
}
.nav-tg:hover {
    background: rgba(220,20,60,0.3);
    color: #fff;
    border-color: #dc143c;
}

/* смещаем контент вниз под навбар */
.lang-switcher { top: 66px !important; }
.container { padding-top: 80px; }

/* ── API INFO SECTION ───────────────────────────────────────────────────── */
.api-info-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0 auto 40px;
    max-width: 900px;
}

.api-info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(220,20,60,0.2);
    border-radius: 14px;
    padding: 18px 16px;
    text-align: center;
    transition: all .3s;
}
.api-info-card:hover {
    border-color: #dc143c;
    background: rgba(220,20,60,0.08);
    transform: translateY(-2px);
}
.api-info-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.api-info-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.api-info-value {
    font-family: 'Orbitron', monospace;
    font-size: .78rem;
    color: #fff;
    line-height: 1.4;
    word-break: break-all;
}
.api-info-value.highlight {
    font-size: 1.3rem;
    color: #dc143c;
    text-shadow: 0 0 12px rgba(220,20,60,0.5);
}
.api-info-value.copyable {
    cursor: pointer;
    position: relative;
}
.api-info-value.copyable:hover { color: #ff8fa0; }
.copy-hint {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: .68rem;
    color: #555;
    margin-top: 4px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

@media(max-width: 768px) {
    .main-nav { padding: 10px 16px; }
    .nav-logo { font-size: 1rem; }
    .nav-link { font-size: .78rem; padding: 5px 10px; }
    .nav-tg .tg-label { display: none; }
    .api-info-section { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 480px) {
    .api-info-section { grid-template-columns: 1fr; }
    .nav-links { gap: 2px; }
}
