/* style.css */
:root {
    --primary-color: #6C63FF;
    /* Фиолетовый - цвет творчества и технологий */
    --secondary-color: #00D2FC;
    /* Голубой - цвет прогресса */
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-color: #E0E0E0;
    --text-muted: #A0A0A0;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Header --- */
header {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: var(--secondary-color);
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.telegram-btn:hover {
    transform: scale(1.05);
}

/* --- Main Content --- */
main {
    flex: 1;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1,
h2 {
    margin-bottom: 1.5rem;
    color: #fff;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

/* --- Blocks & Cards --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    /* Для анимации появления */
    transform: translateY(20px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.2);
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* --- Specific Sections --- */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 210, 252, 0.1));
    border-radius: 20px;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

/* Animation Block */
.animation-demo {
    background: #252525;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.anim-box {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
        background: var(--secondary-color);
    }
}

/* Advantages List */
.advantage-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 15px;
    line-height: 1;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--primary-color);
}

.product-img {
    width: 100%;
    height: 200px;
    background-color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid #333;
    color: var(--text-muted);
}

/* --- Mobile Adaptivity (1280x720 and lower) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}