/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили страницы */
body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    color: #f0f0f0;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0a0a1a;
}

/* Canvas для дыма */
#smokeCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Основной контейнер */
.container {
    width: 100%;
    max-width: 1000px;
    z-index: 1;
}

/* Стили для шапки */
header {
    text-align: center;
    margin-bottom: 30px;
}

.header-logo {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #8a2be2, #4169e1, #00bfff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s ease forwards;
}

.tagline {
    font-size: 1.2rem;
    color: #b0b0d0;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

/* Анимация появления */
@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Анимация пульсации */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Общие стили для карточек */
.card {
    background: #22223fbd;
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(58, 58, 58, 0.087);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.647);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card h2 {
    color: #d4c6ff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 {
    color: #d4c6ff;
    margin-bottom: 15px;
}

.card p {
    line-height: 1.6;
    color: #d1d1e9;
    margin-bottom: 20px;
}

/* Стили для ссылок */
.card a {
    color: #e8e2ff;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
    word-break: break-all;
}

.card a:hover {
    color: #2b71e2;
    border-bottom: 1px solid #2b71e2;
    text-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
}

.card a[href^="mailto:"] {
    color: #7ec8e3;
}

.card a[href^="mailto:"]:hover {
    color: #5eb0d0;
}

/* Стили для подвала */
footer {
    text-align: center;
    padding: 25px;
    color: #cdcdcd;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #cdcdcd;
}

/* Стили для уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.notification {
    background: rgba(40, 40, 70, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #f44336;
}

.notification i {
    font-size: 1.3rem;
}

.notification.success i {
    color: #4CAF50;
}

.notification.error i {
    color: #f44336;
}

.notification span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Адаптивность */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header-logo {
        font-size: 2.5rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        padding: 12px 15px;
    }
}
