/* ----------------------------- */
/* THEMES                       */
/* ----------------------------- */

:root {
    --bg: #ffffff;
    --text: #003344;
    --secondary: #2196F3;
    --accent: #00796B;
    --button-text: #ffffff;
}

body.dark {
    --bg: #0f181d;
    --text: #e6f9ff;
    --secondary: #4fc3f7;
    --accent: #00897b;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: var(--bg);
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--text);
    text-align: center;

    transition: background 0.3s, color 0.3s;
}

/* ----------------------------- */
/* CENTERING                    */
/* ----------------------------- */

.center-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ----------------------------- */
/* ANIMATIONS                   */
/* ----------------------------- */

.fade-in {
    animation: fade 1.5s ease;
}

@keyframes fade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* ----------------------------- */
/* LOGO                         */
/* ----------------------------- */

.logo {
    max-width: 260px;
    height: auto;
    margin-bottom: 30px;
}

/* ----------------------------- */
/* TEXT                         */
/* ----------------------------- */

.text {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* ----------------------------- */
/* TELEGRAM BUTTON              */
/* ----------------------------- */

.tg-button {
    margin-top: 10px;
    padding: 14px 22px;
    border-radius: 50px;

    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--button-text);

    font-size: 20px;
    font-weight: 600;
    text-decoration: none;

    display: flex;
    align-items: center;
    gap: 12px;

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transition: 0.25s ease;
}

.tg-button img {
    width: 26px;
    height: 26px;
}

.tg-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
    opacity: 0.95;
}

/* ----------------------------- */
/* THEME SWITCHER               */
/* ----------------------------- */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 26px;
    user-select: none;
    transition: 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Показываем обычный логотип */
.logo-dark {
    display: none;
}

body.dark .logo-light {
    display: none;
}

body.dark .logo-dark {
    display: block;
}

/* ----------------------------- */
/* MOBILE                       */
/* ----------------------------- */

@media (max-width: 480px) {
    .text {
        font-size: 26px;
    }
    .tg-button {
        font-size: 18px;
        padding: 12px 18px;
    }
}