/*
Theme Name: SIBMASTER
Description: Минималистично-футуристичный лендинг для продажи мотосноубордов
Version: 1.0
Author: SIBMASTER Team
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Зимняя цветовая палитра */
    --primary-white: #ffffff;
    --primary-blue: #0066cc;
    --light-blue: #4da6ff;
    --ice-blue: #e6f3ff;
    --dark-blue: #003d7a;
    --accent-cyan: #00bfff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --gradient-winter: linear-gradient(135deg, #ffffff 0%, #e6f3ff 50%, #cce7ff 100%);
    --gradient-blue: linear-gradient(135deg, #0066cc 0%, #00bfff 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    --container-padding: 0 20px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

/* Typography */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--primary-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--primary-white);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--primary-white);
}

/* Special contact button in hero - styled like price tag */
.btn-contact-price {
    display: inline-block;
    color: var(--primary-blue);
    background: var(--ice-blue);
}

.btn-contact-price:hover {
    background: var(--primary-blue);
    color: var(--primary-white);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}


/* Utility classes */
.text-center {
    text-align: center;
}

.section {
    padding: var(--section-padding);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Grid system */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* Hero section styles */
.hero {
    min-height: 100vh;
    background: var(--gradient-winter);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 102, 204, 0.05) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02) 0%,
        rgba(0, 102, 204, 0.03) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    margin: 0 auto 2rem;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--text-gray);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Loading animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--ice-blue);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Hero Section Styles */
.hero-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 102, 204, 0.6) 0%,
        rgba(0, 191, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.3) 100%
    );
    z-index: 1;
}

.hero-with-bg .hero-content {
    z-index: 2;
    position: relative;
}

.hero-with-bg .hero-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-text-fill-color: white;
    background: none;
}

@media (max-width: 576px) {
    .hero-with-bg .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 400px) {
    .hero-with-bg .hero-title {
        font-size: 28px;
    }
}

.hero-with-bg .hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Enhanced Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.floating-1 {
    top: 20%;
    right: 10%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    bottom: 30%;
    left: 15%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.12) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

.floating-3 {
    top: 60%;
    right: 25%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 5s ease-in-out infinite;
    animation-delay: 2s;
}

/* Snow Particles Animation */
.snow-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.snow-particle {
    position: absolute;
    top: -10px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: snowfall linear infinite;
}

/* Стили снежинок для разных типов фона */
.hero .snow-particle {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3), 0 0 12px rgba(0, 191, 255, 0.2);
}

.hero-with-bg .snow-particle {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5), 0 0 16px rgba(255, 255, 255, 0.3);
}

/* Добавляем разные размеры снежинок для большей реалистичности */
.snow-particle:nth-child(3n) {
    width: 3px;
    height: 3px;
}

.snow-particle:nth-child(3n+1) {
    width: 5px;
    height: 5px;
}

.snow-particle:nth-child(4n) {
    width: 2px;
    height: 2px;
    opacity: 0.8;
}

.snow-particle:nth-child(5n) {
    width: 6px;
    height: 6px;
    opacity: 0.6;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateY(20vh) translateX(10px) rotate(90deg);
    }
    40% {
        transform: translateY(40vh) translateX(-5px) rotate(180deg);
    }
    60% {
        transform: translateY(60vh) translateX(15px) rotate(270deg);
    }
    80% {
        transform: translateY(80vh) translateX(-10px) rotate(360deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(450deg);
        opacity: 0;
    }
}

/* Альтернативная анимация для некоторых снежинок */
@keyframes snowfall-alt {
    0% {
        transform: translateY(-10px) translateX(0px) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) translateX(-15px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(20px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(-10px) rotate(270deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(-30px) rotate(360deg);
        opacity: 0;
    }
}

/* Применяем разные анимации к разным снежинкам */
.snow-particle:nth-child(even) {
    animation-name: snowfall-alt;
}

.snow-particle:nth-child(3n) {
    animation-duration: 4s;
}

.snow-particle:nth-child(3n+1) {
    animation-duration: 3.5s;
}

.snow-particle:nth-child(4n) {
    animation-duration: 5s;
}

.snow-particle:nth-child(5n) {
    animation-duration: 2.8s;
}

/* Responsive adjustments for enhanced hero */
@media (max-width: 768px) {
    .hero-with-bg {
        background-attachment: scroll;
    }
    
    .floating-element {
        opacity: 0.4;
    }
    
    .floating-1, .floating-2, .floating-3 {
        width: 60px;
        height: 60px;
    }
    
    /* Адаптивные снежинки для мобильных */
    .snow-particle {
        width: 2px;
        height: 2px;
    }
    
    .snow-particle:nth-child(3n) {
        width: 1.5px;
        height: 1.5px;
    }
    
    .snow-particle:nth-child(3n+1) {
        width: 2.5px;
        height: 2.5px;
    }
    
    .snow-particle:nth-child(4n) {
        width: 1px;
        height: 1px;
    }
    
    .snow-particle:nth-child(5n) {
        width: 3px;
        height: 3px;
        opacity: 0.5;
    }
    
    /* Скрываем некоторые снежинки на очень маленьких экранах */
    .snow-particle:nth-child(n+15) {
        display: none;
    }
}

@media (max-width: 480px) {
    /* На очень маленьких экранах оставляем меньше снежинок */
    .snow-particle:nth-child(n+10) {
        display: none;
    }
    
    .snow-particle {
        opacity: 0.8;
    }
}