/* === СБРОС И БАЗОВЫЕ СТИЛИ === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #ffffff;
    --btn-hover-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* === ФОНОВАЯ ПАУТИНКА (CANVAS) === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* === КОНТЕЙНЕР === */
.container {
    padding: 5px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

/* === ЛОГОТИП === */
.logo-wrapper {
    margin-bottom: 30px;
}

.logo {
    width: 30vw;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* === ЗАГОЛОВОК === */
h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* === ОПИСАНИЕ === */
.description {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: #444;
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 5px;
    /* Полупрозрачная подложка для читаемости на фоне анимации */
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.description i {
    font-style: italic;
    color: #666;
}

/* === КНОПКИ СОЦСЕТЕЙ === */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 0 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
    border: none;
    cursor: pointer;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    background: transparent;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--btn-hover-shadow);
    opacity: 0.95;
}

.btn:active {
    transform: translateY(-1px);
}

/* Иконки внутри кнопок */
.btn-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

/* Размеры кнопок для разных мессенджеров */
.btn-max {
    width: 70px;
    height: 70px;
}

.btn-tg {
    width: 70px;
    height: 70px;
}

.btn-vk {
    width: 70px;
    height: 70px;
}

/* === FOOTER === */
footer {
    margin-top: auto;
    padding: 20px;
    font-size: 0.9rem;
    color: #777;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

/* === АДАПТИВНОСТЬ === */
/* Планшеты и больше: кнопки с текстом (если понадобится) */
@media (min-width: 768px) {
    .social-links {
        gap: 20px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .logo {
        width: 60vw;
    }

    .btn {
        width: auto;
        height: auto;
        min-width: 100px;
        padding: 14px 14px;
        border-radius: 50px;
        aspect-ratio: auto;
    }

    .btn-icon {
        width: 48px;
        height: 48px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .logo {
        width: 70vw;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .btn {
        width: 48px;
        height: 48px;
        min-width: 48px;
        padding: 0;
    }

    .btn-max,
    .btn-tg,
    .btn-vk {
        width: 48px;
        height: 48px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
    }
}

/* === ОПТИМИЗАЦИЯ ДЛЯ ПЕЧАТИ === */
@media print {
    #particles-canvas {
        display: none;
    }
    body {
        background: #fff;
    }
    .description {
        background: none;
        backdrop-filter: none;
    }
}