/* ===== Home Page Styles ===== */

/* ===== Hero modern ===== */
.hero-modern .hero-bg-shine {
    background: 
        radial-gradient(ellipse 100% 80% at 50% 0, rgba(168, 85, 247, 0.2), transparent 50%),
        radial-gradient(ellipse 80% 50% at 80% 50%, rgba(34, 211, 238, 0.12), transparent 45%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(236, 72, 153, 0.1), transparent 40%);
    animation: bg-pulse 8s ease-in-out infinite;
}
@keyframes bg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 5rem 1.5rem 4rem;
    overflow: hidden;
    contain: layout style paint;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(168, 85, 247, 0.15), transparent 50%),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(236, 72, 153, 0.08), transparent 40%),
                radial-gradient(ellipse 50% 30% at 20% 70%, rgba(34, 211, 238, 0.08), transparent 40%);
    pointer-events: none;
}
.hero-bg-clips {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-clip {
    position: absolute;
    width: 28%;
    min-width: 140px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0.2;
    filter: blur(2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
    contain: layout style paint;
}
.hero-clip iframe {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    pointer-events: none;
}
.hero-clip-1 { left: 2%; top: 15%; animation: clip-float 8s ease-in-out infinite; }
.hero-clip-2 { right: 5%; top: 45%; animation: clip-float 10s ease-in-out infinite 1s; }
.hero-clip-3 { left: 10%; bottom: 20%; animation: clip-float 9s ease-in-out infinite 2s; }
@keyframes clip-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5px, -8px) scale(1.02); }
    66% { transform: translate(-5px, 5px) scale(0.98); }
}
.hero-music-deco {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.music-note {
    position: absolute;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    opacity: 0.15;
    color: var(--neon-cyan);
    animation: note-float 6s ease-in-out infinite;
}
.m-n-1 { left: 8%; top: 25%; animation-delay: 0s; }
.m-n-2 { right: 12%; top: 30%; animation-delay: -1.5s; }
.m-n-3 { left: 15%; bottom: 30%; animation-delay: -3s; }
.m-n-4 { right: 8%; bottom: 25%; animation-delay: -4.5s; }
.m-n-5 { left: 50%; top: 15%; animation-delay: -2s; transform: translateX(-50%); }
.m-n-6 { right: 20%; top: 60%; animation-delay: -5s; }
@keyframes note-float {
    0%, 100% { transform: translateY(0); opacity: 0.12; }
    50% { transform: translateY(-15px); opacity: 0.2; }
}
.m-n-5 { animation-name: note-float-center; }
@keyframes note-float-center {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.12; }
    50% { transform: translateX(-50%) translateY(-15px); opacity: 0.2; }
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}
body.now-playing-visible .hero-content {
    padding-top: 1rem;
}
/* Единый блок: текст + плеер + кнопка — центрирование во всех браузерах */
.hero-center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.hero h1.hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.4;
    min-height: 4em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-line {
    display: block;
    line-height: 1.5;
}
.hero-line-1 {
    background: linear-gradient(135deg, #fff 0, var(--neon-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-line-2 { 
    margin-top: 0.4em; 
    font-size: 0.55em; 
    font-weight: 600; 
    line-height: 1.5;
}
.hero-line-3 { 
    margin-top: 0.8em; 
    font-size: 0.45em; 
    font-weight: 500; 
    color: var(--text-muted);
    line-height: 1.6;
}
.hero-line-4 { font-size: 0.45em; font-weight: 500; color: var(--text-muted); }
.hero-text-shine {
    background: linear-gradient(90deg, var(--neon-cyan), #a5f3fc, var(--neon-violet), var(--neon-cyan));
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-shimmer 5s ease-in-out infinite;
}
@keyframes hero-shimmer {
    0%, 100% { background-position: 0 center; }
    50% { background-position: 100% center; }
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ===== Hero Demo Block ===== */
.hero-demo-video-block {
    width: 100%;
    max-width: 280px;
    margin: 0.75rem auto 1.5rem;
    display: flex;
    justify-content: center;
}
body.now-playing-visible .hero-demo-video-block {
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}
.hero-demo-block {
    width: 100%;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
/* Плеер без видео — прямо в блоке, центрируем margin: auto */
.hero-demo-block > .hero-demo-player-small {
    margin-left: auto;
    margin-right: auto;
}
/* Плеер + видео — grid */
.hero-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
    justify-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
}
.hero-demo-player-small {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem;
    width: fit-content;
    max-width: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.hero-demo-visualizer-small {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 40px;
    padding: 0.5rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.hero-demo-beat-small {
    width: 3px;
    min-height: 4px;
    max-height: 28px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--neon-violet), var(--neon-pink));
    opacity: 0.7;
    transform-origin: center bottom;
    animation: hero-beat-bounce-small 0.7s ease-in-out infinite;
    animation-play-state: paused;
    box-shadow: 0 0 4px rgba(168, 85, 247, 0.3);
}
.hero-demo-player-small.is-playing .hero-demo-beat-small {
    animation-play-state: running;
    opacity: 1;
}
.hero-demo-beat-small:nth-child(odd) { 
    animation-delay: calc(var(--beat-i) * 0.08s); 
    height: calc(10px + var(--beat-i) * 1px);
}
.hero-demo-beat-small:nth-child(even) { 
    animation-delay: calc(var(--beat-i) * 0.08s + 0.15s); 
    height: calc(8px + var(--beat-i) * 1px);
}
@keyframes hero-beat-bounce-small {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}
.hero-demo-controls-small {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
}
.hero-demo-play-small {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--neon-violet), var(--neon-pink));
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
    flex-shrink: 0;
}
.hero-demo-play-small:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 15px rgba(168, 85, 247, 0.5);
}
.hero-demo-play-small.playing .hero-demo-play-icon-small { display: none; }
.hero-demo-play-small.playing::after {
    content: '❚❚';
    font-size: 0.6rem;
    letter-spacing: -0.1em;
}
.hero-demo-info-small {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
}
.hero-demo-title-small {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}
.hero-demo-time-small {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    text-align: center;
}
.hero-demo-time-separator-small { opacity: 0.7; }
.hero-demo-video {
    width: 100%;
}
.hero-demo-video-wrap {
    position: relative;
    padding-bottom: 177.78%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.hero-demo-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-demo-video-wrap:not(.is-loaded) iframe { visibility: hidden; }
.hero-demo-video-wrap.is-loaded .youtube-facade { display: none; }
.hero-demo-video-wrap.is-loaded iframe { visibility: visible; }
.hero-demo-video-wrap > div:not(iframe) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
}

/* ===== Key points (main page) ===== */
.key-points {
    padding: 3rem 0;
}
.key-points .container {
    max-width: 1200px;
}
.key-points-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 600;
}
.key-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.key-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.key-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}
.key-icon {
    font-size: 1.5rem;
    color: var(--neon-cyan);
}

/* ===== First block: Подарок, который невозможно повторить ===== */
.block-unique .block-lead {
    font-size: 1.05rem;
    color: var(--text);
    margin: 0 0 1rem;
    line-height: 1.6;
}
.block-unique p:not(.block-lead):not(.block-accent):not(.seo-text) {
    margin: 0 auto 1rem;
    color: var(--text-muted);
    max-width: 640px;
    display: block;
}
.block-unique .block-accent {
    color: var(--neon-cyan);
    font-weight: 500;
    margin: 0 auto 1.5rem;
    max-width: 640px;
    display: block;
}
.trust-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}
.trust-item {
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
}
.trust-item::before {
    content: '✓ ';
    color: var(--neon-cyan);
    font-weight: 700;
}

/* ===== About ===== */
.about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}
.about-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}
.about-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-weight: bold;
}
.about-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.chip {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== How (steps) ===== */
.steps {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    counter-reset: step;
}
.steps li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    counter-increment: step;
}
.step-num {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-violet), var(--neon-pink));
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}
.how-accent {
    text-align: center;
    font-size: 1.05rem;
    color: var(--neon-cyan);
    margin: 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ===== YouTube section (главная) ===== */
.youtube-section .section-desc { margin-bottom: 1.5rem; }
.home-youtube-grid { margin-bottom: 1.5rem; }
.youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.youtube-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #000;
}
.youtube-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Click-to-load: превью до клика, чтобы не загружать cookie YouTube до согласия */
.youtube-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.youtube-facade.is-loaded { display: none; }
.youtube-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.youtube-play-btn {
    position: relative;
    z-index: 1;
    width: 68px;
    height: 48px;
    padding: 0;
    border: none;
    background: rgba(0,0,0,.7);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}
.youtube-play-btn:hover { background: rgba(255,0,0,.9); }
.youtube-play-btn::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -14px 0 0 -8px;
    border: 14px solid transparent;
    border-left-color: #fff;
    border-width: 14px 0 14px 22px;
    box-sizing: border-box;
}
.youtube-video-wrap:not(.is-loaded) iframe { visibility: hidden; }
.youtube-video-wrap.is-loaded .youtube-facade { display: none; }
.youtube-video-wrap.is-loaded iframe { visibility: visible; }
.youtube-subscribe {
    text-align: center;
    padding: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.youtube-subscribe h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    color: #fff;
}
.youtube-subscribe .btn { margin-top: 0.5rem; }

/* ===== Эмоциональный бум ===== */
.emotional-boom .section-desc { margin-bottom: 1.25rem; }
.emotional-boom-intro {
    margin: 0 auto 2rem;
    text-align: center;
}
.emotional-boom-intro p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.emotional-boom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.emotional-boom-card {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}
.emotional-boom-quote {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    font-style: italic;
}
.emotional-boom-name {
    display: block;
    font-size: 0.9rem;
    color: var(--neon-cyan);
    font-style: normal;
}
.emotional-boom-video-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--neon-violet);
    text-decoration: none;
}
.emotional-boom-video-link:hover { text-decoration: underline; }

/* ===== CTA modern ===== */
.cta-modern {
    padding: 3rem 0;
}
.cta-modern h2 {
    margin-bottom: 1.25rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: #fff;
}

/* ===== SEO block (unique content) ===== */
/* .seo-content определен в global.css - удален дубликат */
.music-intro {
    padding-top: 0.5rem;
}
.music-intro-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 1rem;
}
.music-intro-text:last-child {
    margin-bottom: 0;
}

/* ===== Благодарность / поддержка ===== */
.support-block {
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.06) 0, transparent 100%);
    border-top: 1px solid var(--border);
}
.support-block h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    text-align: center;
    color: #fff;
}
.support-block p {
    margin: 0 auto 1rem;
    max-width: 640px;
    text-align: center;
    color: var(--text-muted);
    line-height: 1.7;
}
.support-block p:last-child {
    margin-bottom: 0;
}
