html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    font-size: 16px;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.4s;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 480px;
    padding: 2.5em 1.5em 2em 1.5em;
    background: linear-gradient(135deg, #23234a 60%, #2a2a40 100%);
    border-radius: 1.5em;
    box-shadow: 0 8px 32px rgba(26, 33, 62, 0.18);
    animation: fadeIn 1s cubic-bezier(0.4,0,0.2,1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    margin-bottom: 1.5em;
    font-size: 2.1rem;
    font-weight: 700;
    color: #bb86fc;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(187,134,252,0.10);
    transition: color 0.3s;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
    justify-content: center;
    margin-bottom: 1.5em;
}

.button {
    display: inline-block;
    padding: 1em 2em;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, #1e90ff 60%, #bb86fc 100%);
    text-decoration: none;
    border-radius: 0.9em;
    box-shadow: 0 2px 8px rgba(30,144,255,0.10);
    font-weight: 500;
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    outline: none;
    border: none;
    cursor: pointer;
    min-width: 120px;
    margin: 0 0.2em;
    letter-spacing: 0.01em;
}
.button:hover, .button:focus {
    background: linear-gradient(135deg, #bb86fc 60%, #1e90ff 100%);
    box-shadow: 0 4px 16px rgba(30,144,255,0.18);
    transform: translateY(-2px) scale(1.04);
    color: #fff;
}

.theme-toggle {
    position: absolute;
    top: 2em;
    right: 2em;
    z-index: 10;
}

.switch {
    position: relative;
    display: inline-block;
    width: 2.5em;
    height: 1.2em;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: background 0.3s;
    border-radius: 1.2em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.slider:before {
    position: absolute;
    content: "";
    height: 1em;
    width: 1em;
    left: 0.15em;
    bottom: 0.1em;
    background-color: #bb86fc;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}

input:checked + .slider {
    background-color: #6200ea;
}

input:checked + .slider:before {
    transform: translateX(1.2em);
    background-color: #fff;
}

body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
}

body.light-theme {
    background: linear-gradient(135deg, #f5f5fa 0%, #e3e3f3 100%);
    color: #23234a;
}

body.light-theme .container {
    background: linear-gradient(135deg, #fff 60%, #e3e3f3 100%);
    box-shadow: 0 8px 32px rgba(187,134,252,0.10);
}
body.light-theme h1 {
    color: #6200ea;
    text-shadow: 0 2px 8px rgba(98,0,234,0.10);
}
body.light-theme .button {
    background: linear-gradient(135deg, #6200ea 60%, #1e90ff 100%);
    color: #fff;
}
body.light-theme .button:hover, body.light-theme .button:focus {
    background: linear-gradient(135deg, #1e90ff 60%, #6200ea 100%);
    color: #fff;
}

/* Адаптивная типографика и стили */
@media (max-width: 700px) {
    html { font-size: 14px; }
    .container {
        padding: 1.2em 0.5em 1em 0.5em;
        max-width: 98vw;
    }
    h1 {
        font-size: 1.3rem;
        margin-bottom: 1em;
    }
    .button-container {
        flex-direction: column;
        gap: 0.7em;
        align-items: stretch;
        margin-bottom: 1em;
    }
    .button {
        width: 100%;
        min-width: unset;
        font-size: 1em;
        padding: 0.9em 0;
        margin: 0 0 0.7em 0;
    }
    .theme-toggle {
        top: 1em;
        right: 1em;
        transform: scale(0.9);
    }
}
@media (max-width: 400px) {
    html { font-size: 12px; }
    .container {
        padding: 0.7em 0.2em 0.5em 0.2em;
    }
    h1 {
        font-size: 1.1rem;
    }
}