/* Базовые стили */
body {
    background: linear-gradient(135deg, #1a0b2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Основная сетка */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Базовые карточки */
.bento-card {
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.15) 0%, 
        rgba(75, 0, 130, 0.25) 50%,
        rgba(25, 25, 112, 0.2) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 16px rgba(147, 51, 234, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 4px 20px rgba(255, 165, 0, 0.2);
}

/* Форма */
.form-card {
    grid-column: span 2;
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.2) 0%, 
        rgba(79, 70, 229, 0.15) 50%,
        rgba(59, 130, 246, 0.1) 100%);
}

/* Заголовки */
.bento-card h2 {
    color: #ffffff;
    font-size: clamp(1.25rem, 4vw, 1.6rem);
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bento-card h3 {
    color: #e2e8f0;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
}

/* Особые карточки */
.telegram-special {
    background: linear-gradient(135deg, 
        rgba(0, 136, 204, 0.3) 0%, 
        rgba(147, 51, 234, 0.2) 100%);
    border: 2px solid rgba(0, 136, 204, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(0, 136, 204, 0.3);
}

.telegram-special:hover {
    border-color: rgba(0, 136, 204, 0.8);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 136, 204, 0.4);
}

.email-special {
    background: linear-gradient(135deg, 
        rgba(147, 51, 234, 0.3) 0%, 
        rgba(124, 58, 237, 0.2) 100%);
    border: 2px solid rgba(147, 51, 234, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(147, 51, 234, 0.3);
}

.email-special:hover {
    border-color: rgba(147, 51, 234, 0.8);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(147, 51, 234, 0.4);
}

.time-special {
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.3) 0%, 
        rgba(217, 119, 6, 0.2) 100%);
    border: 2px solid rgba(245, 158, 11, 0.5);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 20px rgba(245, 158, 11, 0.3);
}

.time-special:hover {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(245, 158, 11, 0.4);
}

/* Иконки */
.card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
}

.telegram-icon {
    background: linear-gradient(135deg, #0088cc, #0066aa);
    color: white;
}

.email-icon {
    background: linear-gradient(135deg, #9333ea, #7c3aed);
    color: white;
}

.time-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.card-icon.crypto {
    background: linear-gradient(135deg, #f59e0b, #9333ea);
    color: white;
}

/* Анимации иконок */
.icon-pulse {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 1rem;
    border: 2px solid rgba(0, 136, 204, 0.6);
    animation: pulse 2s infinite;
}

.icon-glow {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3), transparent);
    animation: glow 2s infinite alternate;
}

.clock-animation {
    position: absolute;
    top: -4px; left: -4px; right: -4px; bottom: -4px;
    border-radius: 1rem;
    border: 2px solid rgba(245, 158, 11, 0.6);
    animation: rotate 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #ffffff;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.contact-form button {
    background: linear-gradient(135deg, #f59e0b, #9333ea);
    color: white;
    border: none;
    border-radius: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Контакты */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-links a {
    color: #00bcd4;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1rem;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 0.8rem;
    border: 1px solid rgba(0, 136, 204, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-links a:hover {
    background: rgba(0, 136, 204, 0.2);
    border-color: rgba(0, 136, 204, 0.5);
    transform: translateX(4px);
}

.contact-link-special {
    color: #c084fc;
    text-decoration: none;
    font-weight: 600;
    padding: 0.8rem 1rem;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 0.8rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
    display: block;
    transition: all 0.3s ease;
    margin: 0.5rem 0;
}

.contact-link-special:hover {
    background: rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateX(4px);
}

/* Время работы */
.schedule-special {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 0.8rem;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
}

.schedule-item:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
}

.schedule-item .day {
    color: #fbbf24;
    font-weight: 600;
}

.schedule-item .time {
    color: #e2e8f0;
    font-weight: 500;
}

/* Заметки */
.note.highlighted {
    color: #00bcd4;
    font-weight: 600;
    background: rgba(0, 136, 204, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(0, 136, 204, 0.3);
    text-align: center;
    margin-top: 1rem;
}

.note {
    color: rgba(226, 232, 240, 0.8);
    font-size: 0.9rem;
    margin: 1rem 0 0 0;
    font-style: italic;
}

/* Криптовалюты */
.crypto-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.crypto-item {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(147, 51, 234, 0.2));
    color: #fbbf24;
    padding: 0.6rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    padding: 1.2rem;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.faq-item h4 {
    color: #fbbf24;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.faq-item p {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* СТАТИСТИКА - ИСПРАВЛЕННАЯ */
.stats-card {
    grid-column: span 2;
    background: linear-gradient(135deg, 
        rgba(138, 43, 226, 0.15) 0%, 
        rgba(25, 25, 112, 0.2) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    place-items: center;
    place-content: center;
    margin: 1rem 0;
}

.stats-grid.extended {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 1.5rem 0;
}

.stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(147, 51, 234, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    min-height: 120px;
    height: auto;
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-number {
    color: #fbbf24;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: #e2e8f0;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.stat-note, .stat-trend {
    color: #94a3b8;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-style: italic;
    line-height: 1.2;
    margin-top: auto;
}

.stat-trend.positive {
    color: #4ade80;
}

.stats-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(147, 51, 234, 0.5), transparent);
    margin: 2rem 0;
}

.stats-detail {
    margin-top: 2rem;
}

.stats-chart h4 {
    color: #e2e8f0;
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

.chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    height: 3rem;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.8), rgba(245, 158, 11, 0.8));
    border-radius: 0.8rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1.5rem;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chart-bar::before {
    content: attr(data-label);
    position: absolute;
    left: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* МЕДИАЗАПРОСЫ - УЛУЧШЕННЫЕ */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stats-grid.extended {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .form-card,
    .stats-card {
        grid-column: span 1;
    }
    
    .bento-card {
        padding: 1.5rem;
    }
    
    .stats-grid,
    .stats-grid.extended {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .stat {
        min-height: 100px;
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .bento-grid {
        padding: 0.25rem;
    }
    
    .bento-card {
        padding: 1rem;
    }
    
    .stats-grid,
    .stats-grid.extended {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }
    
    .stat {
        min-height: 90px;
        padding: 0.8rem 0.4rem;
    }
}

@media (max-width: 320px) {
    .stats-grid,
    .stats-grid.extended {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin: 1rem auto;
    }
}


.form-field {
    margin-bottom: 1.5rem;
}

.field-hint {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    font-style: italic;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.contact-form input:focus + .field-hint,
.contact-form select:focus + .field-hint,
.contact-form textarea:focus + .field-hint {
    color: #fbbf24;
}

/* Адаптируем существующие стили */
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(147, 51, 234, 0.3);
    color: #ffffff;
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0; /* Убираем отступ, он теперь у .form-field */
}
