/* ---------- общие стили ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0f1a;
    background-image: 
        radial-gradient(ellipse at 20% 30%, #1a2a44 0%, #050a12 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    color: #dce6f0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* ---------- шапка ---------- */
.site-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(100, 180, 255, 0.08);
}

.site-title {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: lowercase;
    color: #b0cef0;
    text-shadow: 0 0 40px rgba(60, 150, 255, 0.15);
}

.site-title span {
    font-weight: 700;
    background: linear-gradient(135deg, #8bc4ff, #4d8fd9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
}

.subhead {
    margin-top: 0.6rem;
    font-size: 1.1rem;
    color: #7a9fc7;
    letter-spacing: 2px;
    font-weight: 300;
}

.subhead em {
    font-style: normal;
    color: #f5d76e;
    background: rgba(245, 215, 110, 0.08);
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    border: 1px solid rgba(245, 215, 110, 0.1);
}

/* ---------- научный блок (суть метода) ---------- */
.theory-block {
    background: rgba(8, 20, 40, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 2.5rem 1.5rem 2.5rem 1.5rem;
    padding: 2.8rem 3rem;
    margin-bottom: 3.5rem;
    border: 1px solid rgba(100, 180, 255, 0.06);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.theory-block h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: #b8d8ff;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.theory-block h2 small {
    font-size: 1rem;
    font-weight: 300;
    color: #6f93b9;
    letter-spacing: 0;
}

.theory-block p {
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 300;
    color: #c8def5;
    margin-bottom: 1.2rem;
}

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

.theory-block .highlight {
    color: #f5d76e;
    font-weight: 500;
    background: rgba(245, 215, 110, 0.06);
    padding: 0.05rem 0.4rem;
    border-radius: 6px;
}

.theory-block .method-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 0.5rem;
}

.theory-block .step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #b0cef0;
}

.theory-block .step strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 400;
    color: #f5d76e;
    margin-bottom: 0.2rem;
}

.theory-block .step span {
    font-size: 0.8rem;
    opacity: 0.6;
}

.theory-block .cloud-meta {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 1.15rem;
    color: #9bbde0;
    font-style: italic;
}

.theory-block .cloud-meta span {
    font-style: normal;
    color: #f5d76e;
}

.theory-block .cloud-meta .cloud-pulse {
    display: inline-block;
    animation: pulseFloat 4s ease-in-out infinite;
}

.theory-block .cloud-meta a {
    color: #f5d76e;
    text-decoration: none;
    border-bottom: 1px dotted rgba(245, 215, 110, 0.25);
    transition: 0.2s;
}

.theory-block .cloud-meta a:hover {
    border-bottom-color: #f5d76e;
}

/* ---------- видео-блок ---------- */
.video-section-title {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    border-left: 4px solid #f5c542;
    padding-left: 1.5rem;
    color: #c8def5;
}

.video-section-title small {
    font-size: 0.85rem;
    font-weight: 300;
    opacity: 0.6;
    margin-left: 0.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem 1.8rem;
    margin-bottom: 2.5rem;
}

.video-card {
    background: rgba(6, 18, 34, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 2rem 1rem 2rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.7);
    transition: transform 0.2s ease, box-shadow 0.25s, border-color 0.2s;
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -14px #000000cc;
    border-color: rgba(245, 215, 110, 0.15);
}

.video-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.video-label {
    padding: 0.9rem 1.2rem 1.1rem;
    font-size: 1rem;
    font-weight: 400;
    color: #c0d8f0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(245, 215, 0, 0.04);
}

.video-label .badge {
    background: rgba(245, 215, 110, 0.12);
    border: 1px solid rgba(245, 215, 110, 0.15);
    border-radius: 40px;
    padding: 0.1rem 0.7rem;
    font-size: 0.7rem;
    color: #f5d78a;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.video-label .filename {
    opacity: 0.4;
    font-size: 0.75rem;
    margin-left: auto;
    font-family: 'Consolas', monospace;
}

/* ---------- подвал ---------- */
.footer-note {
    margin-top: 3.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: #5a7d9e;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-note a {
    color: #7aa5d0;
    text-decoration: none;
    border-bottom: 1px dotted #2f4d6a;
    transition: 0.2s;
}

.footer-note a:hover {
    color: #f5d76e;
    border-bottom-color: #f5d76e;
}

.footer-note .math {
    font-family: 'Cambria', 'Times New Roman', serif;
    font-style: italic;
    opacity: 0.7;
}

.footer-note strong {
    color: #f5d76e;
    font-weight: 400;
}

/* ---------- анимации ---------- */
@keyframes pulseFloat {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}

/* ---------- адаптивность ---------- */
@media (max-width: 768px) {
    .site-title {
        font-size: 2.6rem;
        letter-spacing: 4px;
    }
    .theory-block {
        padding: 2rem 1.5rem;
        border-radius: 2rem 1rem 2rem 1rem;
    }
    .theory-block p {
        font-size: 1.05rem;
    }
    .theory-block .method-steps {
        grid-template-columns: 1fr 1fr;
    }
    .video-section-title {
        font-size: 1.5rem;
        padding-left: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 1rem 0.6rem;
    }
    .site-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    .theory-block h2 {
        font-size: 1.4rem;
    }
    .theory-block .method-steps {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .video-section-title {
        font-size: 1.2rem;
        padding-left: 0.8rem;
    }
    .video-section-title small {
        font-size: 0.7rem;
        margin-left: 0;
        display: block;
        width: 100%;
    }
}
