/* Основные стили для сайта RGBDate */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 2em;
    background: linear-gradient(135deg, #f9f9f9 0%, #e0e7ff 100%);
    color: #333;
}

.container {
    max-width: 800px;
    margin: 2em auto;
    background: #fff;
    padding: 2em;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    animation: fadeIn 1s ease-in-out;
}

h1 {
    color: #8a2be2;
    font-size: 2.5em;
    margin-bottom: 0.5em;
    animation: slideIn 0.8s ease-out;
}

p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    opacity: 0;
    animation: fadeInText 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

.cta-button {
    display: inline-block;
    padding: 0.8em 1.5em;
    background: #8a2be2;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-right: 1em;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

footer {
    margin-top: 3em;
    font-size: 0.9em;
    color: #777;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 1em;
}

footer a {
    color: #8a2be2;
    text-decoration: none;
    margin: 0 0.5em;
    transition: color 0.3s;
}

footer a:hover {
    color: #b266ff;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content p {
    margin: 0 0 1em;
    animation: none;
    opacity: 1;
}

.close-button {
    background: #8a2be2;
    color: #fff;
    padding: 0.5em 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.close-button:hover {
    background: #b266ff;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}
