/* ============================================
   DESIGN SYSTEM: Editorial Glow Romance
   Нежно-розовая / красная палитра с glow
   ============================================ */

@font-face {
    font-family: 'StrangerThings';
    src: url('stranger-things.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Цветовая палитра */
    --blush: #F2D0D0;
    --pink-light: #F8E4E4;
    --pink: #E8A0A0;
    --rose: #D4787C;
    --rose-deep: #B85A60;
    --crimson: #A04050;
    --cream: #FFF5F3;
    --warm-white: #FFF9F7;
    --charcoal: #2A1F1F;
    --charcoal-light: #4A3535;
    --gold: #D4A574;
    --gold-light: #E8C9A0;

    /* Glow переменные */
    --glow-pink: 0 0 40px rgba(232, 160, 160, 0.4);
    --glow-rose: 0 0 60px rgba(212, 120, 124, 0.3);
    --glow-crimson: 0 0 80px rgba(160, 64, 80, 0.25);
    --glow-gold: 0 0 40px rgba(212, 165, 116, 0.3);
    --glow-text: 0 0 30px rgba(232, 160, 160, 0.5);

    /* Шрифты */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Cormorant Garamond', Georgia, serif;

    /* Отступы */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Тени */
    --shadow-photo: 0 20px 60px rgba(42, 31, 31, 0.15);
    --shadow-photo-hover: 0 30px 80px rgba(42, 31, 31, 0.25);

    /* Анимации */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-dramatic: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-glow: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    scrollbar-width: none;
}

body::-webkit-scrollbar {
    display: none;
}

/* Grain overlay */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
}

/* Частицы */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.story-textblock{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #CC3333;
    filter: drop-shadow(0 0 4px rgba(204, 51, 51, 0.5));
    transition: transform 0.1s ease, color 0.2s ease, filter 0.2s ease;
}

.cursor-dot::before {
    content: '♥';
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid var(--rose);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    opacity: 0.5;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 0 20px rgba(212, 120, 124, 0.3);
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    border-color: var(--rose-deep);
}

.cursor-dot.hover {
    transform: scale(1.6);
    color: #AA2222;
    filter: drop-shadow(0 0 8px rgba(204, 51, 51, 0.7));
}

/* Скрываем стандартный курсор на десктопе */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, input, .btn-begin, .btn-unlock, .story-photo, .cursor-target { cursor: none; }
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
}

/* ===== SLIDE SYSTEM ===== */
.slides-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s var(--ease-smooth), visibility 0.8s;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* ===== NAVIGATION BUTTONS ===== */
.nav-buttons {
    position: fixed;
    right: var(--space-lg);
    /* top: 50%; */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    z-index: 100;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--rose);
    background: rgba(255, 245, 243, 0.8);
    backdrop-filter: blur(10px);
    color: var(--charcoal);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    pointer-events: none;
}

.nav-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn:hover {
    background: var(--rose);
    color: var(--warm-white);
    box-shadow: var(--glow-rose);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3 !important;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .nav-buttons {
        right: var(--space-sm);
    }
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ===== HERO / ВСТУПЛЕНИЕ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    background: linear-gradient(170deg, var(--cream) 0%, var(--pink-light) 40%, var(--blush) 100%);
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: var(--charcoal);
    margin-bottom: var(--space-lg);
    position: relative;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.hero-line:first-child {
    color: var(--rose-deep);
    text-shadow: var(--glow-text);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 160, 160, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--charcoal-light);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    transform: translateY(20px);
}

.btn-begin {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    background: transparent;
    border: 2px solid var(--rose);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.btn-begin::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--rose), var(--rose-deep));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-smooth);
    z-index: -1;
}

.btn-begin:hover {
    color: var(--warm-white);
    border-color: var(--rose-deep);
    box-shadow: var(--glow-rose);
}

.btn-begin:hover::before {
    transform: scaleX(1);
}

.btn-begin i {
    transition: transform 0.3s var(--ease-smooth);
}

.btn-begin:hover i {
    transform: translateX(4px);
}

/* ===== SLIDE SYSTEM ===== */

/* ===== NAVIGATION BUTTONS ===== */
.nav-buttons {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-smooth);
}

.nav-buttons--top {
    top: var(--space-md);
}

.nav-buttons--bottom {
    bottom: 40px;
}

.nav-buttons.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--rose);
    background: rgba(255, 245, 243, 0.8);
    backdrop-filter: blur(10px);
    color: var(--charcoal);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    pointer-events: none;
}

.nav-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.nav-btn:hover {
    background: var(--rose);
    color: var(--warm-white);
    box-shadow: var(--glow-rose);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.3 !important;
    pointer-events: none;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ===== WARNING SECTION ===== */
.warning-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    background: linear-gradient(180deg, var(--blush) 0%, var(--pink-light) 100%);
    overflow: hidden;
}

.warning-content {
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.warning-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
    text-shadow: var(--glow-gold);
    animation: pulseIcon 3s ease-in-out infinite;
}

.warning-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.warning-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--charcoal-light);
}

.warning-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 5s ease-in-out infinite;
}

/* ===== STORY SECTIONS ===== */
.story-section,
.story-section.story-reverse {
    min-height: 100vh;
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-section {
    background: linear-gradient(180deg, var(--pink-light) 0%, var(--cream) 50%, var(--pink-light) 100%);
}

.story-section.story-reverse {
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-light) 50%, var(--cream) 100%);
}

.story-section:nth-child(even) {
    background: linear-gradient(180deg, var(--blush) 0%, var(--pink-light) 100%);
}

.story-layout {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.story-number {
    position: absolute;
    top: -60px;
    left: -20px;
    font-family: var(--font-display);
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--pink);
    line-height: 1;
    opacity: 0.15;
    z-index: 0;
}

.story-number-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(232, 160, 160, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}

.story-header {
    margin-bottom: var(--space-xl);
}

.story-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: var(--space-xs);
}

.story-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.1;
    text-shadow: var(--glow-text);
}

.story-subtitle {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--rose-deep);
    margin-top: var(--space-xs);
}

.story-body {
    display: flex;
    gap: var(--space-2xl);
    align-items: center;
}


.story-photo {
    flex: 0 0 50%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-photo);
    transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.story-photo:hover {
    box-shadow: var(--shadow-photo-hover);
    transform: scale(1.02);
}

.story-photo img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: saturate(0.95) contrast(1.05) brightness(1.02);
    transition: transform 0.6s var(--ease-smooth);
}

.story-photo:hover img {
    transform: scale(1.05);
}

.story-text {
    flex: 0 0 50%;
}

.story-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--charcoal-light);
}

/* ===== PASSWORD SECTION ===== */
.password-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-xl);
    position: relative;
    background: linear-gradient(180deg, var(--pink-light) 0%, var(--blush) 50%, var(--rose) 100%);
    overflow: hidden;
}

.password-content {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.password-icon {
    font-size: 3.5rem;
    color: var(--crimson);
    margin-bottom: var(--space-md);
    text-shadow: var(--glow-crimson);
    animation: pulseIcon 3s ease-in-out infinite;
}

.password-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
    text-shadow: var(--glow-text);
}

.password-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--charcoal-light);
    margin-bottom: var(--space-xl);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
}

.password-input {
    width: 100%;
    max-width: 400px;
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--charcoal);
    background: var(--warm-white);
    border: 2px solid var(--pink);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s var(--ease-smooth);
    text-align: center;
    letter-spacing: 0.1em;
}

.password-input::placeholder {
    color: var(--pink);
    letter-spacing: 0;
}

.password-input:focus {
    border-color: var(--rose);
    box-shadow: var(--glow-pink);
    transform: scale(1.02);
}

.btn-unlock {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-white);
    background: linear-gradient(135deg, var(--rose), var(--crimson));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    box-shadow: var(--glow-rose);
}

.btn-unlock:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-crimson);
}

.btn-unlock:active {
    transform: translateY(0);
}

.password-error {
    color: var(--crimson);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s var(--ease-smooth);
    min-height: 1.5em;
}

.password-error.visible {
    opacity: 1;
    transform: translateY(0);
}

.password-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(160, 64, 80, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

/* ===== SECRET SECTION (ТЁМНАЯ ТЕМА) ===== */
.secret-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-xl);
    position: relative;
    background: linear-gradient(180deg, #1A0F0F 0%, #0D0808 50%, #1A0F0F 100%);
    color: var(--cream);
    overflow: hidden;
}

.secret-layout {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.secret-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.secret-label {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.secret-title {
    font-family: 'StrangerThings', var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--cream);
    text-shadow: 0 0 60px rgba(212, 165, 116, 0.4), 0 0 120px rgba(212, 165, 116, 0.2);
}

.secret-body {
    display: flex;
    align-items: center;
    /* gap: var(--space-xl); */
}

.btn-begin-secret{
    background: #ffb9b9;
}

.secret-photo {
    width: 50%;
    /* flex: 0 0 30%;
    overflow: hidden; */
    border-radius: 12px;
    
}
.secret-story-textblock{
    width: 50%;
}
.secret-photo img {
    width: 100%;
    /* display: block; */
    width: 80%;
    /* height: 380px; */
    object-fit: cover;
    filter: saturate(0.9) contrast(1.1);
    box-shadow: 0 0 80px rgba(212, 165, 116, 0.2), 0 30px 80px rgba(0, 0, 0, 0.5);
    
}

.secret-text {

}

.secret-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--cream);
    opacity: 0.9;
}

.secret-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
}

b{
    font-weight: 800;
}

@media (max-width: 1024px) {
    .secret-body {
        flex-direction: column;
        gap: var(--space-xl);
    }
    .secret-photo,
    .secret-text {
        flex: 0 0 auto;
        width: 100%;
    }
    .secret-photo img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .secret-section {
        padding: var(--space-2xl) var(--space-md);
    }
    .secret-photo img {
        height: 300px;
    }
    .secret-text p {
        font-size: 1.2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUpDramatic {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .story-body,
    .story-section.story-reverse .story-body {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .story-photo,
    .story-text {
        flex: 0 0 auto;
        width: 100%;
    }

    .story-photo img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: var(--space-lg);
    }

    .hero-title {
        font-size: clamp(3rem, 14vw, 6rem);
    }

    .story-section,
    .story-section.story-reverse,
    .password-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .story-number {
        font-size: 5rem;
        top: -40px;
        left: -10px;
    }

    .story-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .story-photo img {
        height: 300px;
    }

    .story-text p {
        font-size: 1.15rem;
    }

    .password-input {
        max-width: 100%;
    }

    .secret-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .secret-photo img {
        height: 300px;
    }

    .secret-text p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .story-photo img {
        height: 240px;
    }

    .btn-begin,
    .btn-unlock {
        padding: var(--space-sm) var(--space-md);
        font-size: 1rem;
    }
}
