/**
 * Основные стили papa-v-kitae.ru
 * Поддержка китайских иероглифов через Noto Sans SC
 */

:root {
    --color-bg: #F8F9FA;
    --color-bg-secondary: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-muted: #6B7280;
    --color-accent: #DC143C;
    --color-gold: #D4AF37;
    --color-card: rgba(255, 255, 255, 0.9);
    --color-border: rgba(212, 175, 55, 0.3);
    --gradient-primary: linear-gradient(135deg, #F8F9FA 0%, #E8EAF0 50%, #F8F9FA 100%);

    /* Цвета предметов */
    --color-math: #3B82F6;
    --color-physics: #8B5CF6;
    --color-chemistry: #10B981;
    --color-chinese: #EF4444;
}

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

body {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    background: var(--gradient-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated geometric shapes background */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(220, 20, 60, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

/* Dynamic floating circles */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
    top: 60%;
    right: 10%;
    animation-delay: 3s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 70%);
    bottom: 20%;
    left: 15%;
    animation-delay: 6s;
}

/* Chinese-inspired geometric patterns */
.geometric-pattern {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
}

.geometric-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 80px, var(--color-gold) 80px, var(--color-gold) 81px),
        repeating-linear-gradient(-45deg, transparent, transparent 80px, var(--color-accent) 80px, var(--color-accent) 81px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ==========================================
   НАВИГАЦИОННЫЙ БАР (STICKY)
   ========================================== */

.subject-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.subject-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 60px;
}

.subject-bar__logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subject-bar__logo:hover {
    color: var(--color-accent);
}

.subject-bar__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.subject-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-gold);
}

.subject-item.active {
    background: var(--color-gold);
    color: white;
}

.subject-item__icon {
    font-size: 1.1rem;
}

/* Dropdown для выбора теста */
.subject-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    min-width: 280px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1001;
}

.subject-item:hover .subject-dropdown,
.subject-dropdown:hover {
    opacity: 1;
    visibility: visible;
}

.dropdown-section {
    margin-bottom: 16px;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-section h4 {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dropdown-options button,
.dropdown-options a {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: white;
    color: var(--color-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.dropdown-options button:hover,
.dropdown-options a:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

.dropdown-options .coming-soon {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Правая часть навбара */
.subject-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    padding: 8px 16px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: white;
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-login:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-tests {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: var(--color-accent);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-tests:hover {
    background: #b91031;
    transform: translateY(-1px);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

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

.tests-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(220, 20, 60, 0.05) 100%);
}

.tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.test-card {
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.test-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color, var(--color-gold));
}

.test-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-color, var(--color-gold));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.test-card__icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.test-card__title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 8px;
}

.test-card__meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.test-card__btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--card-color, var(--color-gold));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.test-card__btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Make entire test card clickable */
.test-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.test-card__link:hover {
    text-decoration: none;
}

/* Цвета карточек */
.test-card[data-subject="math"] {
    --card-color: var(--color-math);
}

.test-card[data-subject="physics"] {
    --card-color: var(--color-physics);
}

.test-card[data-subject="chemistry"] {
    --card-color: var(--color-chemistry);
}

.test-card[data-subject="chinese"] {
    --card-color: var(--color-chinese);
}

/* Премиум-метка */
.test-card__premium {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, var(--color-gold), #F59E0B);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    /* Добавлен отступ сверху для навбара */
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-left .subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.urgency-box {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15) 0%, rgba(220, 20, 60, 0.05) 100%);
    border: 1px solid var(--color-accent);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.4s both, pulse 2s ease-in-out 2s infinite;
}

.urgency-box .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.urgency-box p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-accent);
    color: white;
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    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 ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4);
}

/* Hero Right - Author Story */
.hero-right {
    animation: fadeInRight 0.8s ease-out 0.4s both;
}

.author-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.author-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-accent) 100%);
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 3px solid var(--color-gold);
    overflow: hidden;
}

.author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--color-gold);
    text-align: center;
}

.author-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.author-card .highlight {
    color: var(--color-text);
    font-weight: 600;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    transition: all 0.3s ease;
}

.telegram-link:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

/* ==========================================
   SECTION STYLING
   ========================================== */

section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Urgency Cards */
.urgency-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.urgency-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.urgency-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3);
}

.urgency-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.urgency-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--color-gold);
}

.urgency-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Pain Points */
.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.pain-card {
    background: var(--color-card);
    border: 1px solid rgba(220, 20, 60, 0.3);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pain-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.25);
}

.pain-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.pain-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--color-text);
    font-weight: 600;
}

.pain-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Solution Section */
.solution-content {
    max-width: 900px;
    margin: 0 auto;
}

.killer-feature {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);
    border: 2px solid var(--color-gold);
    border-radius: 12px;
    padding: 50px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.killer-feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.killer-feature .icon {
    font-size: 4rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.killer-feature h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.killer-feature p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-item .icon {
    font-size: 2rem;
    color: var(--color-gold);
    flex-shrink: 0;
}

.benefit-item h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.benefit-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* How It Works */
.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    margin-bottom: 60px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 80px;
    width: 2px;
    height: calc(100% - 40px);
    background: linear-gradient(180deg, var(--color-gold) 0%, transparent 100%);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.step-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-text);
}

.step-content p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Methodology */
.methodology {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.methodology h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 32px;
    line-height: 1.4;
}

.methodology p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: 20px;
}

.methodology p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(220, 20, 60, 0.08) 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    animation: pulse-bg 4s ease-in-out infinite;
}

.cta-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--color-text);
    position: relative;
    z-index: 1;
}

.cta-section .cta-button {
    position: relative;
    z-index: 1;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    border-color: var(--color-gold);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-bottom: 16px;
}

.faq-item p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--color-bg-secondary);
    padding: 60px 0 40px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-cta {
    margin-bottom: 40px;
}

.footer-cta h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 32px;
    color: var(--color-text);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(220, 20, 60, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

@keyframes floatShape {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

@keyframes pulse-bg {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   ALERTS & MESSAGES
   ========================================== */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
    color: #065F46;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #991B1B;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid #F59E0B;
    color: #92400E;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3B82F6;
    color: #1E40AF;
}

/* ==========================================
   FORMS
   ========================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-control.error {
    border-color: var(--color-accent);
}

.form-error {
    color: var(--color-accent);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-left h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    /* Мобильное меню */
    .subject-bar__nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .subject-bar__nav.active {
        display: flex;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-left h1 {
        font-size: 2rem;
    }

    .hero-left .subtitle {
        font-size: 1rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .author-card {
        padding: 30px 20px;
    }

    .urgency-cards,
    .pain-points,
    .benefits-grid,
    .tests-grid {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .methodology,
    .killer-feature {
        padding: 40px 24px;
    }

    .subject-bar__logo span {
        display: none;
    }

    .subject-bar__actions .btn-login span {
        display: none;
    }
}