﻿:root {
    --primary-bg: #1c232d; /* Темно-синий цвет из логотипа (фон) */
    --secondary-bg: #192330; /* Более темный оттенок для акцентов */
    --accent-color: #e3d0b5; /* Бежевый цвет из логотипа */
    --text-color: #ffffff; /* Белый текст */
    --telegram-blue: #26a5e4; /* Синий цвет Telegram из логотипа */
    --hover-color: #f1e2cc; /* Светлый бежевый для ховера */
    --button-shadow: 0 8px 24px rgba(38, 165, 228, 0.35);
    --logo-size: 250px; /* Размер логотипа */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ и Edge */
    user-select: none; /* Стандартный синтаксис */
}

html, body {
    overflow: hidden; /* Предотвращаем скроллинг */
    height: 100%; /* Полная высота */
    width: 100%; /* Полная ширина */
    position: fixed; /* Фиксируем всю страницу */
    touch-action: manipulation; /* Улучшение для сенсорных экранов */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
}

    /* Восстанавливаем фоновый узор */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: radial-gradient(var(--accent-color) 1px, transparent 1px);
        background-size: 50px 50px;
        opacity: 0.03;
        z-index: 0;
        pointer-events: none;
    }

.container {
    max-width: 480px;
    width: 90%;
    padding: 30px;
    background-color: var(--secondary-bg);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 2px solid var(--accent-color);
    z-index: 1;
}

.logo {
    width: var(--logo-size);
    height: var(--logo-size);
    margin: 0 auto 8px;
    position: relative;
    animation: glowPulse 3s infinite alternate ease-in-out;
    max-width: 100%;
    overflow: hidden;
    pointer-events: none; /* Отключение событий наведения и клика */
}

@keyframes glowPulse {
    0% {
        filter: drop-shadow(0 0 5px rgba(227, 208, 181, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(227, 208, 181, 0.5));
    }
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    pointer-events: none; /* Предотвращение взаимодействия с изображением */
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-drag: none; /* Safari */
    -khtml-user-drag: none; /* Konqueror HTML */
    -moz-user-drag: none; /* Firefox */
    -ms-user-drag: none; /* Internet Explorer/Edge */
    user-drag: none; /* Стандартный синтаксис */
    draggable: false; /* Предотвращение перетаскивания */
}

/* Защита изображения от копирования через контекстное меню */
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

h1 {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 500;
    opacity: 0.9;
}

p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: var(--telegram-blue);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: var(--button-shadow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .cta-button:hover {
        transform: translateY(-5px) scale(1.03);
        box-shadow: 0 12px 30px rgba(38, 165, 228, 0.6);
    }

    .cta-button:active {
        transform: translateY(0) scale(0.98);
    }

    /* Эффект свечения при наведении */
    .cta-button::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
        opacity: 0;
        transform: scale(0.5);
        transition: all 0.5s ease-out;
    }

    .cta-button:hover::after {
        opacity: 1;
        transform: scale(1);
    }

.telegram-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .telegram-icon svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

.footer {
    margin-top: 30px;
    font-size: 0.9rem;
    opacity: 0.6;
    color: var(--accent-color);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
        width: 92%;
        max-height: 95vh; /* Максимальная высота для мобильных */
    }

    h1 {
        font-size: 2.2rem;
    }

    :root {
        --logo-size: 160px; /* Уменьшаем для лучшего отображения */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
        border-width: 1px;
        max-height: 90vh; /* Компактнее для маленьких экранов */
    }

    h1 {
        font-size: 1.8rem;
    }

    :root {
        --logo-size: 130px; /* Еще меньше для компактности */
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 360px) {
    .container {
        padding: 15px 12px;
    }

    :root {
        --logo-size: 110px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 1rem;
    }

    p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
