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

:root {
    --bg-dark: #0f0f0f;
    --bg-darker: #080808;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #e63946;
    --accent-hover: #d62839;
    --accent-secondary: #f77f00;
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #e63946 0%, #f77f00 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.05);
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
}

/* Шапка */
.header {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    padding: 0 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.header-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(230, 57, 70, 0.6) 50%, 
        transparent 100%);
    opacity: 0.8;
}

.header-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(230, 57, 70, 0.05) 0%, 
        transparent 50%, 
        rgba(247, 127, 0, 0.05) 100%);
    pointer-events: none;
    opacity: 0.5;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
}

.logo {
    position: relative;
    z-index: 2;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #ffffff 0%, #e63946 50%, #f77f00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 30px rgba(230, 57, 70, 0.3);
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #e63946 0%, #f77f00 100%);
    border-radius: 2px;
    opacity: 0.6;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.header-contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.header-contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(230, 57, 70, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.header-contact-link:hover::before {
    left: 100%;
}

.header-contact-link:hover {
    background: rgba(230, 57, 70, 0.15);
    border-color: rgba(230, 57, 70, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.25);
}

.header-contact-link:active {
    transform: translateY(0);
}

.header-contact-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: 0.9;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.header-contact-link:hover svg {
    transform: scale(1.1);
    opacity: 1;
}

/* Снежки на фоне */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    animation: snowfall linear infinite;
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 10s;
    animation-delay: 0s;
    font-size: 1.2em;
}

.snowflake:nth-child(2) {
    left: 20%;
    animation-duration: 12s;
    animation-delay: 1s;
    font-size: 1.5em;
}

.snowflake:nth-child(3) {
    left: 30%;
    animation-duration: 15s;
    animation-delay: 2s;
    font-size: 1.3em;
}

.snowflake:nth-child(4) {
    left: 40%;
    animation-duration: 11s;
    animation-delay: 0.5s;
    font-size: 1.4em;
}

.snowflake:nth-child(5) {
    left: 50%;
    animation-duration: 13s;
    animation-delay: 1.5s;
    font-size: 1.6em;
}

.snowflake:nth-child(6) {
    left: 60%;
    animation-duration: 14s;
    animation-delay: 2.5s;
    font-size: 1.1em;
}

.snowflake:nth-child(7) {
    left: 70%;
    animation-duration: 16s;
    animation-delay: 0.8s;
    font-size: 1.3em;
}

.snowflake:nth-child(8) {
    left: 80%;
    animation-duration: 12s;
    animation-delay: 1.2s;
    font-size: 1.5em;
}

.snowflake:nth-child(9) {
    left: 90%;
    animation-duration: 18s;
    animation-delay: 3s;
    font-size: 1.2em;
}

.snowflake:nth-child(10) {
    left: 15%;
    animation-duration: 11s;
    animation-delay: 0.3s;
    font-size: 1.4em;
}

.snowflake:nth-child(11) {
    left: 25%;
    animation-duration: 13s;
    animation-delay: 1.8s;
    font-size: 1.3em;
}

.snowflake:nth-child(12) {
    left: 35%;
    animation-duration: 15s;
    animation-delay: 2.2s;
    font-size: 1.5em;
}

.snowflake:nth-child(13) {
    left: 45%;
    animation-duration: 12s;
    animation-delay: 0.7s;
    font-size: 1.2em;
}

.snowflake:nth-child(14) {
    left: 55%;
    animation-duration: 14s;
    animation-delay: 1.5s;
    font-size: 1.6em;
}

.snowflake:nth-child(15) {
    left: 65%;
    animation-duration: 16s;
    animation-delay: 2.8s;
    font-size: 1.1em;
}

.snowflake:nth-child(16) {
    left: 75%;
    animation-duration: 13s;
    animation-delay: 0.5s;
    font-size: 1.4em;
}

.snowflake:nth-child(17) {
    left: 85%;
    animation-duration: 17s;
    animation-delay: 1.9s;
    font-size: 1.3em;
}

.snowflake:nth-child(18) {
    left: 95%;
    animation-duration: 19s;
    animation-delay: 3.2s;
    font-size: 1.2em;
}

.snowflake:nth-child(19) {
    left: 5%;
    animation-duration: 10s;
    animation-delay: 0.2s;
    font-size: 1.5em;
}

.snowflake:nth-child(20) {
    left: 12%;
    animation-duration: 14s;
    animation-delay: 1.1s;
    font-size: 1.3em;
}

.snowflake:nth-child(21) {
    left: 22%;
    animation-duration: 12s;
    animation-delay: 2.3s;
    font-size: 1.4em;
}

.snowflake:nth-child(22) {
    left: 32%;
    animation-duration: 15s;
    animation-delay: 0.6s;
    font-size: 1.2em;
}

.snowflake:nth-child(23) {
    left: 42%;
    animation-duration: 11s;
    animation-delay: 1.4s;
    font-size: 1.6em;
}

.snowflake:nth-child(24) {
    left: 52%;
    animation-duration: 13s;
    animation-delay: 2.6s;
    font-size: 1.1em;
}

.snowflake:nth-child(25) {
    left: 62%;
    animation-duration: 16s;
    animation-delay: 0.9s;
    font-size: 1.5em;
}

.snowflake:nth-child(26) {
    left: 72%;
    animation-duration: 14s;
    animation-delay: 1.7s;
    font-size: 1.3em;
}

.snowflake:nth-child(27) {
    left: 82%;
    animation-duration: 18s;
    animation-delay: 2.9s;
    font-size: 1.2em;
}

.snowflake:nth-child(28) {
    left: 92%;
    animation-duration: 12s;
    animation-delay: 0.4s;
    font-size: 1.4em;
}

.snowflake:nth-child(29) {
    left: 8%;
    animation-duration: 15s;
    animation-delay: 1.3s;
    font-size: 1.3em;
}

.snowflake:nth-child(30) {
    left: 18%;
    animation-duration: 11s;
    animation-delay: 2.5s;
    font-size: 1.5em;
}

.snowflake:nth-child(31) {
    left: 28%;
    animation-duration: 13s;
    animation-delay: 0.8s;
    font-size: 1.2em;
}

.snowflake:nth-child(32) {
    left: 38%;
    animation-duration: 17s;
    animation-delay: 1.6s;
    font-size: 1.4em;
}

.snowflake:nth-child(33) {
    left: 48%;
    animation-duration: 14s;
    animation-delay: 2.7s;
    font-size: 1.1em;
}

.snowflake:nth-child(34) {
    left: 58%;
    animation-duration: 12s;
    animation-delay: 0.1s;
    font-size: 1.6em;
}

.snowflake:nth-child(35) {
    left: 68%;
    animation-duration: 16s;
    animation-delay: 1.8s;
    font-size: 1.3em;
}

.snowflake:nth-child(36) {
    left: 78%;
    animation-duration: 19s;
    animation-delay: 3.1s;
    font-size: 1.2em;
}

.snowflake:nth-child(37) {
    left: 88%;
    animation-duration: 13s;
    animation-delay: 0.7s;
    font-size: 1.5em;
}

.snowflake:nth-child(38) {
    left: 98%;
    animation-duration: 15s;
    animation-delay: 2.2s;
    font-size: 1.3em;
}

.snowflake:nth-child(39) {
    left: 3%;
    animation-duration: 11s;
    animation-delay: 1.0s;
    font-size: 1.4em;
}

.snowflake:nth-child(40) {
    left: 7%;
    animation-duration: 14s;
    animation-delay: 2.4s;
    font-size: 1.2em;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

/* Hero секция */
.hero {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 40px;
    background: var(--gradient-hero);
    background-image: url('nastol.com.ua-550901-2043478217.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.6);
    z-index: 0;
}


.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

.hero-block {
    position: relative;
    z-index: 2;
}

.hero-title-block,
.hero-subtitle-block,
.hero-buttons-block {
    grid-column: 1;
}

.hero-title-block {
    grid-row: 1;
}

.hero-subtitle-block {
    grid-row: 2;
}

.hero-buttons-block {
    grid-row: 3;
}

.hero-image-block {
    grid-column: 2;
    grid-row: 1 / 4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    z-index: 2;
    text-align: left;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.6;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 0;
}

.hero-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.hero-button:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.15);
}

.hero-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    opacity: 0.9;
    flex-shrink: 0;
}

/* Hero изображение */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-art {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    position: relative;
}

.hero-gradient-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(230, 57, 70, 0.3) 0%, rgba(247, 127, 0, 0.2) 50%, transparent 70%);
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

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

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-content {
        gap: 50px;
    }
    
    .hero-title {
        font-size: 48px;
    }
}

@media (max-width: 968px) {
    .header .container {
        margin-top: 15px;
        margin-bottom: 15px;
        padding: 0 20px;
    }
    
    .header-content {
        padding: 16px 20px;
        flex-direction: column;
        gap: 16px;
        border-radius: 16px;
    }
    
    .logo {
        width: 100%;
        text-align: center;
    }
    
    .logo-text {
        font-size: 22px;
        letter-spacing: 3px;
    }
    
    .header-right {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .header-contacts {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 8px;
    }
    
    .header-contact-link {
        padding: 10px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
        justify-content: center;
    }
    
    .hero {
        padding: 140px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 38px;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-button {
        justify-content: center;
    }
    
    .hero-art {
        max-width: 300px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 0 15px;
    }
    
    .header-content {
        padding: 14px 16px;
        justify-content: center;
        border-radius: 14px;
    }
    
    .logo-text {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .header-right {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    .hero {
        padding: 200px 0 40px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-block {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .hero-title-block {
        order: 1;
        margin-bottom: 20px;
    }
    
    .hero-subtitle-block {
        order: 2;
        margin-bottom: 30px;
    }
    
    .hero-buttons-block {
        order: 3;
        margin-bottom: 40px;
    }
    
    .hero-image-block {
        order: 4;
        display: none;
    }
    
    .hero-text {
        text-align: center;
        width: 100%;
    }
    
    .hero-title {
        font-size: 32px;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-subtitle {
        font-size: 15px;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
    
    .hero-buttons {
        width: 100%;
        gap: 10px;
    }
    
    .hero-button {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header .container {
        margin-top: 8px;
        margin-bottom: 8px;
        padding: 0 10px;
    }
    
    .header-content {
        padding: 12px 14px;
        justify-content: center;
        border-radius: 12px;
    }
    
    .logo-text {
        font-size: 16px;
        letter-spacing: 1.5px;
    }
    
    .header-right {
        display: none;
    }
    
    .header-contacts {
        display: none;
    }
    
    .hero {
        padding: 180px 0 30px;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 0;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-block {
        width: 100%;
        margin-bottom: 25px;
    }
    
    .hero-title-block {
        order: 1;
        margin-bottom: 18px;
    }
    
    .hero-subtitle-block {
        order: 2;
        margin-bottom: 25px;
    }
    
    .hero-buttons-block {
        order: 3;
        margin-bottom: 30px;
    }
    
    .hero-image-block {
        order: 4;
        display: none;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 28px;
        margin-bottom: 0;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 0;
        text-align: center;
    }
    
    .hero-buttons {
        gap: 8px;
    }
    
    .hero-button {
        padding: 14px 18px;
        font-size: 13px;
        justify-content: center;
    }
    
    .hero-art {
        max-width: 200px;
    }
    
    .snowflake {
        font-size: 1.2em;
    }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}
