/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0a0a1a 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a1a3a 0%, #0a0a1a 100%);
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 30px rgba(255, 107, 53, 0.5); }
    50% { text-shadow: 0 0 50px rgba(255, 107, 53, 0.8), 0 0 20px rgba(247, 147, 30, 0.6); }
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #a0a0c0;
    font-weight: 300;
    letter-spacing: 0.3rem;
    animation: fadeIn 2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6) contrast(1.2);
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

/* Секции */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #ff6b35;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    position: relative;
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1200px;
}

.content-wrapper.reverse {
    flex-direction: row-reverse;
}

/* Текстовые блоки */
.text-block {
    flex: 1;
    max-width: 600px;
}

.story-text {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    line-height: 2;
    color: #c0c0e0;
    text-align: justify;
}

.highlight {
    color: #f7931e;
    font-weight: 600;
}

/* Изображения */
.image-block {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 107, 53, 0.3);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.story-image:hover {
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(255, 107, 53, 0.3);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.image-grid .story-image {
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.image-grid .story-image:hover {
    transform: scale(1.05);
}

/* Анимации при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Параллакс эффект */
.parallax {
    position: relative;
    z-index: 1;
}

.parallax-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
    padding: 40px 0;
    text-align: center;
    color: #606080;
    font-size: 0.9rem;
}

/* Анимация звезд */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 992px) {
    .content-wrapper,
    .content-wrapper.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .image-block,
    .text-block {
        max-width: 100%;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section {
        padding: 60px 0;
    }

    .story-text {
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .image-grid .story-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 0.2rem;
    }

    .story-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .image-grid .story-image {
        height: 150px;
    }
}

/* Эффект появления текста */
@keyframes textReveal {
    0% {
        opacity: 0;
        clip-path: polygon(0 0, 0 0, 0 0, 0 100%, 0 100%, 0 100%);
    }
    100% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 100%, 0 100%);
    }
}

.story-text {
    animation: textReveal 1.5s ease-out forwards;
}

/* Волновой эффект для заголовков */
@keyframes wave {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.section-title:nth-child(odd) {
    animation: wave 3s ease-in-out infinite;
}

/* Кнопка скролла */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6b35;
    font-size: 2rem;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Анимация появления секций */
.section {
    animation: sectionFadeIn 1s ease-out;
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Градиентные линии между секциями */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b35, transparent);
    animation: lineSlide 2s ease-in-out infinite;
}

@keyframes lineSlide {
    0%, 100% { left: 30%; }
    50% { left: 70%; }
}

/* Медиа-запрос для мобильных */
@media (max-width: 768px) {
    .scroll-indicator {
        font-size: 1.5rem;
        bottom: 20px;
    }
.section::after {
    width: 100px;
}
}

/* QR Code секция */
.qr-section {
min-height: 60vh;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 100%);
position: relative;
overflow: hidden;
}

.qr-section::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(ellipse at center, rgba(255,255,255,0.05) 0%, transparent 70%);
pointer-events: none;
}

.qr-container {
position: relative;
z-index: 1;
text-align: center;
padding: 2rem;
}

.qr-content {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
}

.qr-image {
width: 200px;
height: 200px;
object-fit: contain;
border: 4px solid rgba(255, 107, 53, 0.5);
border-radius: 15px;
box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3),
            0 0 60px rgba(255, 107, 53, 0.2);
animation: qrPulse 3s ease-in-out infinite;
}

@keyframes qrPulse {
0%, 100% { box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3), 0 0 60px rgba(255, 107, 53, 0.2); }
50% { box-shadow: 0 15px 50px rgba(255, 107, 53, 0.5), 0 0 80px rgba(255, 107, 53, 0.3); }
}

.qr-text {
color: #a0a0c0;
font-size: 1rem;
font-weight: 300;
letter-spacing: 0.1rem;
animation: fadeIn 1.5s ease-out;
}

@media (max-width: 768px) {
.qr-image {
    width: 180px;
    height: 180px;
}

.qr-text {
    font-size: 0.9rem;
}
}

@media (max-width: 480px) {
.qr-image {
    width: 150px;
    height: 150px;
}

.qr-text {
    font-size: 0.8rem;
}
}

/* Footer link styling */
.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a0a0c0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.footer-link svg {
    transition: transform 0.3s ease;
}

.footer-link:hover svg {
    transform: translateX(4px);
}
