* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f9fafb;
    color: #1f2937;
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===============================================
   NAVIGATION - COMPLETE REPLACEMENT
   =============================================== */

/* Navigation */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 2.5rem;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 2.5rem;
    text-decoration: none;
    gap: 0.75rem;
}

.logo-image {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.125rem;
}

.logo-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.logo-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-link:hover .logo-title {
    color: #1f2937;
}

.logo-link:hover .logo-subtitle {
    color: #1f2937;
}


@media (max-width: 480px) {
    .logo-image {
        height: 2.5rem; /* Уменьшаем логотип на мобильных */
    }
}

/* Desktop Navigation Menu */
.main-menu {
    display: none;
    align-items: center;
    gap: 2rem;
}

.menu-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.menu-link:hover {
    color: #1f2937;
    background: rgba(59, 130, 246, 0.1);
    text-decoration: none;
}

.menu-link.active {
    color: #ef4444;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.375rem;
}

.menu-link.active:hover {
    color: #dc2626;
}

/* Dropdown Menu */

.dropdown-item-logo-only {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
    min-height: 4rem; /* Фиксированная высота для единообразия */
}

.dropdown-item-logo-only:last-child {
    margin-bottom: 0;
}

.dropdown-item-logo-only:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #1f2937;
}

/* Иконки в dropdown для версии только с логотипами */
.dropdown-item-logo-only .dropdown-item-icon {
    width: 7rem; /* Увеличиваем размер, так как нет текста */
    height: 4rem;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item-logo-only .dropdown-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.menu-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #4b5563;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    white-space: nowrap;
}

.dropdown-trigger:hover {
    color: #1f2937;
    background: rgba(59, 130, 246, 0.1);
}

.dropdown-trigger:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-icon {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

/* Dropdown Menu Content */
.dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    min-width: 280px; /* Увеличиваем минимальную ширину для лучшего отображения логотипов */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: 0.5rem;
}

/* Обновляем контент dropdown для лучшего spacing */
.dropdown-content {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Два столбца для логотипов */
    gap: 0.5rem;
}

.menu-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 0.75rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background: #f3f4f6;
    text-decoration: none;
    color: #1f2937;
}

.dropdown-item-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 0.375rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dropdown-item-text {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Buy Button */
.buy-button {
    background: #f97316; /* Оранжевый фон */
    color: #1f2937; /* Черный текст */
    padding: 0.75rem 1rem;
    border: 1.5px solid #803300; /* Черная рамка 1.5px */
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
}

.buy-button:hover {
    background: #ea580c; /* Темнее при hover */
    border: 1.4px solid #803300; /* Сохраняем черную рамку */
    transform: translateY(-1px);
    color: #1f2937; /* Черный текст при hover */
    text-decoration: none;
}

.buy-button:active {
    transform: translateY(0);
}

.buy-button:focus {
    outline: 2px solid #fb923c;
    outline-offset: 2px;
}

/* Mobile Menu Button */
.drawer-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.25rem;
    padding: 0;
}

.hamburger-line {
    width: 1.25rem;
    height: 2px;
    background-color: #4b5563;
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
}

.drawer-toggle:hover .hamburger-line {
    background-color: #1f2937;
}

/* ===============================================
   MOBILE MENU - CLEAN VERSION (БЕЗ ПОЛОСЫ)
   =============================================== */

/* Mobile Menu Base */
.slide-drawer {
    display: flex;
    flex-direction: column;
        background: linear-gradient(135deg, #16a085 0%, #27ae60 50%, #2ecc71 100%);
    /* УБРАЛИ border-top отсюда */
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
}

.slide-drawer.active {
    max-height: calc(100vh - 4rem);
    /* Добавляем border только когда меню открыто */
    border-top: 1px solid #0891b2;
}

/* Body scroll lock */
body.slide-drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Glass overlay effect */
.slide-drawer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* Quick Actions Section */
.quick-panel {
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.mobile-section-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Actions Grid */
.mobile-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Action Buttons - Clean */
.mobile-action-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    outline: none;
}

.mobile-buy-btn {
    background: #f97316; /* Оранжевый фон */
    border: 1.4px solid #803300; /* Черная рамка */
    color: #1f2937 !important; /* Черный текст */
    font-weight: 700;
    box-shadow: none;
}

.mobile-buy-btn:hover {
    background: #ea580c; /* Темнее при hover */
    border: 1.4px solid #803300; /* Сохраняем черную рамку */
    color: #1f2937; /* Черный текст при hover */
    transform: translateY(-1px);
}

.mobile-buy-btn:active {
    transform: translateY(0);
}

.mobile-buy-btn:focus {
    outline: 2px solid #fb923c;
    outline-offset: 2px;
}

.action-text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: white;
}

/* Lotteries Section */
.mobile-lotteries-section {
    padding: 1.5rem 1rem 2rem 1rem;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Lottery Grid - Simple */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Вместо 3 */
    gap: 0.75rem;
}

/* Lottery Items - No hover effects */
.game-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem;
    border-radius: 0.75rem;
    text-align: center;
    min-height: 5rem;
    outline: none;
    /* Убираем все рамки */
    border: none !important;
    box-shadow: none !important;
}

.game-tile:visited {
    color: rgba(255, 255, 255, 0.8);
}

/* Lottery Logo - Clean */
.mobile-lottery-logo {
    width: 10rem;
    height: 5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    /* Убираем все рамки */
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.mobile-lottery-logo img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    /* Убираем рамки у изображений */
    border: none !important;
    outline: none !important;
}

/* Hide lottery names */
.mobile-lottery-name {
    display: none;
}

/* Background overlay when menu is open */
.slide-drawer.active::after {
    content: '';
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
    pointer-events: none;
}

/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* Desktop */
@media (min-width: 768px) {
    .slide-drawer {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        display: block;
    }
    
    .mobile-lotteries-section {
        flex: none;
        display: block;
        padding: 1rem;
    }
}

/* Mobile Large (up to 767px) */
@media (max-width: 767px) {
    .mobile-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .mobile-action-btn {
        padding: 0.875rem 0.5rem;
        min-height: 3rem;
    }
    
    .action-text {
        font-size: 0.8rem;
    }
    
    
    
    .game-tile {
        padding: 0.5rem;
        min-height: 4.5rem;
    }
}

/* Mobile Medium (up to 480px) */
@media (max-width: 480px) {
    .mobile-action-btn {
        padding: 0.75rem 0.5rem;
        min-height: 2.75rem;
    }
    
    .action-text {
        font-size: 0.75rem;
    }
    
    
    .game-tile {
        padding: 0.5rem;
        min-height: 5rem;
    }
}

/* Mobile Small (up to 360px) */
@media (max-width: 360px) {
    
    
   .game-tile {
        padding: 0.375rem;
        min-height: 4.5rem;
    }
}
/* Focus states for accessibility */
.dropdown-trigger:focus,
.dropdown-item:focus,
.game-tile:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ensure dropdown stays open when focused */
.dropdown-trigger:focus + .dropdown-panel,
.dropdown-panel:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    padding: 0;
}

.breadcrumb-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #9ca3af;
    font-weight: 400;
    user-select: none;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .breadcrumb {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .breadcrumb-separator {
        margin: 0 0.375rem;
    }
}

/* Main Content */
.page-body {
    padding: 2rem 0;
}

.main-heading {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
}

/* Lottery Cards Grid */
.games-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.game-card {
    background: #eeeeee;
    border: 1px solid #d1d5db;
    border-radius: 1rem;
    padding: 1rem;
     box-shadow: none;
}


/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}



.game-icon {
    width: 8rem;
    border: none; /* Убираем рамку у логотипа */
    background: transparent; /* Прозрачный фон */
    box-shadow: none; /* Убираем тень */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
	margin-left: -5px;
}

.game-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
}

.game-title-link,
.game-icon-link {
    text-decoration: none;
    color: inherit;
}

.game-title-link:hover,
.game-icon-link:hover {
    text-decoration: none;
}

.prize-info {
    text-align: right;
}

.jackpot-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
}

.prize-value {
    font-size: 1.125rem;
    font-weight: 900;
    color: #1f2937;
}

/* Results Section */
.results-date {
    font-size: 0.85rem;
    font-weight: 450;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.results-date-highlight {
    font-weight: 700;
    color: #1f2937;
}

.draw-results {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

/* Draw Results */
.game-outcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
}

.game-outcome .pending-text {
    text-align: left;
    margin-right: auto; /* Прижимает к левому краю */
	margin-left: 14px;
}

.game-outcome:not(:last-child) {
    margin-bottom: 0.2rem;
    padding-bottom: 0.2rem;
}

.draw-results-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 0.75rem;
}

.draw-results-link:hover {
    text-decoration: none;
    color: inherit;
}


/* Дата внутри результатов */
.results-date-inside {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.draw-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.draw-time {
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
    min-width: 2.5rem;
}

.drawn-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: -2px;
}


.draw-ball {
    width: 2.5rem;
    height: 2.5rem;
    background: #fbbf24; /* ЗАМЕНИТЬ НА ЭТО */
    border: 1px solid #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
    /* УБРАТЬ box-shadow */
    margin-left: -4px;
    position: relative;
    transition: all 0.2s;
}

.special-ball {
    width: 2.5rem;
    height: 2.5rem;
    background: #ef4444 !important; /* ЗАМЕНИТЬ НА ЭТО */
    border: 1px solid #b91c1c !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white !important;
    /* УБРАТЬ box-shadow */
    margin-left: -4px;
    position: relative;
    transition: all 0.2s;
}

.draw-ball:first-child {
    margin-left: 0;
}

.draw-ball:hover {
    transform: scale(1.1);
    z-index: 10;
}

.large-numbers .draw-ball {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    margin-left: -4px;
}

.prize-winners {
    font-size: 0.875rem;
    color: #6b7280;
    border: 1px solid #E8E8E8;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}

.results-date-inside {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.pending-text {
    font-size: 0.875rem;
    color: #9ca3af;
    font-style: italic;
}

.upcoming-badge {
    font-size: 0.875rem;
    color: #6b7280;
    background: #f3f4f6;
    border: 0.5px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-weight: 500;
}

/* Single Result (for 6-number lotteries) */
.single-result {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* History Table */
.history-table {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 2rem;
}

.history-header {
    background: #059669; /* Сплошной зеленый без градиента */
    color: white;
    padding: 0.75rem 1rem;
}

.history-title {
    text-align: center;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: white;
}

.history-table table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: #f3f4f6;
}

.history-table th {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    border-bottom: 1px solid #e5e7eb;
}

.history-table th.date-column {
    text-align: left;
    padding-left: 0.75rem;
}

.history-table th.time-column {
    text-align: center;
    padding: 0.5rem 0.5rem;
}

.history-table th.jackpot-column {
    text-align: center;
    padding-right: 0.75rem;
}

.time-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}

.history-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.history-table tbody tr:hover {
    background: #f9fafb;
}

.history-table tbody tr:last-child {
    border-bottom: none;
}

.history-table td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.history-table td.date-cell {
    padding-left: 0.75rem;
}

.history-table td.jackpot-cell {
    padding-right: 0.75rem;
}

.history-date-link {
    font-weight: 500;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.history-date-link:hover {
    color: #1d4ed8;
}

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

.history-numbers {
    display: flex;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.history-draw-ball {
    width: 1.75rem;
    height: 1.75rem;
    background: #fbbf24; /* ЗАМЕНИТЬ НА ЭТО */
    border: 1px solid #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #1f2937;
    /* УБРАТЬ box-shadow */
    margin-left: -4px;
    position: relative;
    transition: all 0.2s ease;
}

.history-special-ball {
    width: 1.75rem;
    height: 1.75rem;
    background: #ef4444 !important; /* ЗАМЕНИТЬ НА ЭТО */
    border: 1px solid #b91c1c !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white !important;
    /* УБРАТЬ box-shadow */
    margin-left: -4px;
    position: relative;
    transition: all 0.2s;
}

.history-draw-ball:first-child {
    margin-left: 0;
}

.history-draw-ball:hover {
    transform: scale(1.1);
    z-index: 10;
}

.winners-count-small {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.jackpot-amount-small {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.875rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .history-table th,
    .history-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .history-table th.date-column,
    .history-table td.date-cell {
        padding-left: 0.5rem;
    }
    
    .history-table th.jackpot-column,
    .history-table td.jackpot-cell {
        padding-right: 0.5rem;
    }
    
    .history-draw-ball {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
        margin-left: -3px;
    }
    
    .history-title {
        font-size: 0.8rem;
    }
    
    .time-subtext {
        font-size: 0.7rem;
    }
}

/* History Table Date Links */
.history-date-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    display: inline-block;
}

.history-date-link:hover {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.history-date-link:active {
    transform: translateY(0);
}

/* Убедиться что в строках таблицы есть hover эффект */
.history-table tbody tr:hover {
    background: #f9fafb;
}

.history-table tbody tr:hover .history-date-link {
    background: rgba(37, 99, 235, 0.15);
}


/* Result Navigation - простые кнопки */
.result-navigation {
    margin: 2rem 0;
    text-align: center;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-button {
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.current-button {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.current-button:hover {
    background: #bfdbfe;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-button {
        width: 100%;
        max-width: 280px;
    }
}

/* Footer Stats */
.site-metrics {
    text-align: center;
    margin-top: 2rem;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    width: 0.75rem;
    height: 0.75rem;
    background: linear-gradient(135deg, #fca5a5 0%, #ef4444 50%, #dc2626 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.stats-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 1024px) {
    .main-menu {
        display: flex;
    }
    
    .drawer-toggle {
        display: none;
    }
    
    .games-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-body {
        padding: 3rem 0;
    }
    
    .main-heading {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    
    .games-layout {
        gap: 1.5rem;
    }
    
    .game-card {
        padding: 1.25rem;
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.p-4 {
    padding: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Заменить в main.css - упрощенная навигация без Jump to Date */

/* Date Navigation Component */
.date-navigation {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-nav-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

/* Navigation Buttons */
.date-nav-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.date-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.date-nav-btn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
    text-decoration: none;
    color: #374151;
}

.date-nav-btn:active {
    transform: translateY(0);
}

.date-nav-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f9fafb;
    color: #9ca3af;
}

.date-nav-disabled:hover {
    background: #f9fafb;
    transform: none;
}

.date-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: currentColor;
}

.date-nav-text {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Current Date Display */
.date-nav-current {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    border: 1px solid #60a5fa;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 200px;
    text-align: center;
}

.date-nav-current-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .date-navigation {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .date-nav-buttons {
        gap: 0.5rem;
    }
    
    .date-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .date-nav-text {
        font-size: 0.75rem;
    }
    
    .date-nav-current {
        min-width: auto;
        flex: 1;
    }
    
    .date-nav-current-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .date-nav-buttons {
        flex-direction: row; /* Возвращаем горизонтальное расположение */
        gap: 0.75rem;
    }
    
    .date-nav-btn {
        justify-content: center;
        padding: 0.75rem;
        min-width: 3rem; /* Фиксированная ширина для квадратных кнопок */
    }
    
    .date-nav-text {
        display: none; /* Скрываем текст на мобильных */
    }
    
    .date-nav-icon {
        width: 1.5rem;
        height: 1.5rem; /* Увеличиваем иконки */
    }
    
    .date-nav-current {
        flex: 1;
        margin: 0 0.5rem; /* Отступы от кнопок */
    }
}

/* Integration with existing lottery styles */
.game-single {
    margin-bottom: 0;
}

.game-single + .date-navigation {
    margin-top: 2rem;
}


/* Compact Live Time Block - Light Green (Updated for SA) */
.live-time-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgb(240, 253, 244); /* bg-green-50 - светло-зеленый фон */
    border: 1px solid rgb(187, 247, 208); /* border-green-200 - светло-зеленая граница */
    border-radius: 9999px;
    padding: 0.375rem 0.75rem; /* px-3 py-1.5 */
}

.time-display-compact {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem; /* text-sm */
    font-weight: 700; /* font-bold */
    color: rgb(20, 83, 45); /* text-green-800 - темно-зеленый текст времени */
}

.live-indicator-compact {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.live-dot-compact {
    width: 0.375rem; /* w-1.5 */
    height: 0.375rem; /* h-1.5 */
    background: rgb(239, 68, 68); /* bg-red-500 - КРАСНАЯ точка (как было) */
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.live-text-compact {
    font-size: 0.75rem; /* text-xs */
    font-weight: 700; /* font-bold */
    color: rgb(220, 38, 38); /* text-red-600 - КРАСНЫЙ текст LIVE (как было) */
}

@keyframes pulse {
    0% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}/* History Page Styles - добавить в main.css */

/* History Summary Section */
.history-summary {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e5e7eb;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}



/* Loading and No Results */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Enhanced History Table for Full View */
.history-table.full-history {
    margin-top: 0;
}

.history-table.full-history .history-title {
    font-size: 1rem;
}

.history-table.full-history table {
    font-size: 0.875rem;
}

.history-table.full-history .history-draw-ball {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.7rem;
}

/* Responsive Design for History Pages */
@media (max-width: 640px) {
    .filter-controls {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-group {
        flex: 1;
        min-width: 0;
    }
    
    .filter-group select {
        flex: 1;
        min-width: 80px;
        max-width: none;
    }
    
    .clear-filter-btn {
        flex: 0 0 auto;
        margin-left: 0;
        width: 100%;
    }
    
    .history-filter {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .filter-header {
        margin-bottom: 0.5rem;
    }
    
    .filter-controls {
        gap: 0.5rem;
    }
    
    .filter-group label {
        font-size: 0.8rem;
    }
    
    .filter-group select {
        font-size: 0.8rem;
        padding: 0.375rem 0.5rem;
    }
    
    .clear-filter-btn {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
    
    .filter-header h3 {
        font-size: 0.875rem;
    }
}
/* Update card actions to support 3 buttons */
.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* Базовые кнопки действий - добавляем hover эффекты */
.action-button {
    flex: 1;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease; /* Добавляем плавный переход */
    text-decoration: none;
    text-align: center;
    display: inline-block;
    min-width: 0;
    box-shadow: none;
}

/* Latest Results - серая кнопка */

.past-results-button {
    background: rgba(255, 255, 255, 0.5); /* Белый полупрозрачный фон */
    color: #059669;
    border-color: #059669;
    backdrop-filter: blur(10px); /* Опционально: эффект размытия */
}

.past-results-button:hover {
    background: #047857; /* Зеленый при hover */
    border-color: #047857;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.past-results-button:active {
    transform: translateY(0);
}

.past-results-button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}


/* Full History - зеленая кнопка */
.history-button {
    background: rgba(255, 255, 255, 0.5); /* Белый полупрозрачный фон */
    color: #059669;
    border-color: #059669;
    backdrop-filter: blur(10px); /* Опционально: эффект размытия */
}

.history-button:hover {
    background: #047857; /* Зеленый при hover */
    border-color: #047857;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.history-button:active {
    transform: translateY(0);
}

.history-button:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}
/* Buy Ticket - оранжевая кнопка */
.buy-ticket-button {
    background: #f97316;
    color: #1f2937;
    border: 1.5px solid #803300; /* Указываем цвет в border */
}

.buy-ticket-button:hover {
    background: #ea580c; /* Темнее при hover */
    transform: translateY(-1px);
    color: #1f2937;
    text-decoration: none;
	border: 1.5px solid #803300; 
}

.buy-ticket-button:active {
    transform: translateY(0);
}

.buy-ticket-button:focus {
    outline: 2px solid #fb923c;
    outline-offset: 2px;
}
/* Responsive adjustments for smaller screens */
@media (max-width: 640px) {
    .card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Два столбца для первого ряда */
        grid-template-rows: auto auto; /* Два ряда */
        gap: 0.5rem;
    }
    
    /* Latest Results - первая кнопка, первый ряд */
    .past-results-button {
        grid-column: 1;
        grid-row: 1;
    }
    
    /* Full History - вторая кнопка, первый ряд */
    .history-button {
        grid-column: 2;
        grid-row: 1;
    }
    
    /* Buy Ticket - занимает весь второй ряд */
    .buy-ticket-button {
        grid-column: 1 / -1; /* Растягиваем на всю ширину */
        grid-row: 2;
        padding: 0.75rem 1rem; /* Немного больше padding для выделения */
        font-weight: 700;
    }
    
    .action-button {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Very small screens - stack vertically with smaller text */
@media (max-width: 480px) {
    .action-button {
        font-size: 0.8rem;
        padding: 0.625rem 0.75rem;
    }
}

/* Alternative: Compact 3-button layout for larger screens */
@media (min-width: 768px) {
    .card-actions {
        gap: 0.75rem;
    }
    
    .action-button {
        padding: 0.75rem 1rem;
    }
}

/* Update card actions for 2-button layout */
.card-actions.two-buttons {
    gap: 1rem;
}

.card-actions.two-buttons .action-button {
    flex: 1;
    padding: 0.75rem 1rem;
}

/* Alternative: automatically adjust when there are 2 buttons */
.card-actions:has(.action-button:nth-child(2):last-child) {
    gap: 1rem;
}

.card-actions:has(.action-button:nth-child(2):last-child) .action-button {
    padding: 0.75rem 1rem;
}


/* Next Draw Info - Simple Version */
.upcoming-draw {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.next-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.next-text {
    font-size: 0.6rem;
    font-weight: 600;
    color: #047857;
}

.next-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: #374151;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Yesterday Results Page - minimal styles */
.results-zone {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
	background: transparent;
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .results-zone {
        margin-bottom: 2rem;
    }
}

/* Content Pages Styles */
.content-page {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.content-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.content-section:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.content-section p {
    color: #6b7280;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}

.content-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.feature-item {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Lists */
.content-section ul {
    color: #6b7280;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .content-page {
        padding: 0 1rem;
    }
    
    .content-section h2 {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .content-section {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.contact-intro p {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Contact Form */
.contact-form-section h2,
.contact-info-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: #3b82f6;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
}

.submit-button:hover {
    background: #2563eb;
}

.form-note {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
}

.form-note p {
    margin: 0;
    color: #0369a1;
    font-size: 0.875rem;
}

/* Contact Info */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.contact-method h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-method p {
    color: #6b7280;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.contact-method p:last-child {
    margin-bottom: 0;
}

.contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.875rem !important;
    color: #9ca3af !important;
    font-style: italic;
}

.contact-method address {
    font-style: normal;
    line-height: 1.6;
    color: #6b7280;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.social-link:hover {
    background: #f9fafb;
    text-decoration: none;
}

.social-link span {
    font-size: 1.25rem;
}

/* FAQ Page Styles - UPDATED WITH ACCORDION */
.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-intro {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}

.faq-intro p {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Categories Navigation */
.faq-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-category-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    text-align: center;
}

.faq-category-link:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    text-decoration: none;
    transform: translateY(-1px);
}

/* FAQ Sections */
.faq-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.faq-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===============================================
   FAQ ACCORDION STYLES
   =============================================== */

/* FAQ Items - Accordion Version */
.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Question (Clickable Header) */
.faq-question {
    background: #f9fafb;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.faq-question.active {
    background: #dbeafe;
    color: #1e40af;
    border-bottom-color: #93c5fd;
}

/* FAQ Arrow Icon */
.faq-arrow {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question:hover .faq-arrow {
    color: #374151;
}

.faq-question.active .faq-arrow {
    color: #2563eb;
    transform: rotate(180deg);
}

/* FAQ Answer (Collapsible Content) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 1000px; /* Достаточно большое значение */
    transition: max-height 0.3s ease-in;
}

.faq-answer-content {
    color: #6b7280;
    padding: 1.25rem 1.5rem;
    margin: 0;
    line-height: 1.6;
}

.faq-answer-content .content-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
}

.faq-answer-content .content-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* Focus states for accessibility */
.faq-question:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* FAQ Footer */
.faq-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 3rem;
}

.faq-footer h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    border: none;
    padding: 0;
}

.faq-footer p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.faq-contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.faq-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.faq-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Mobile adjustments */
@media (max-width: 768px) {
    .faq-categories {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .faq-category-link {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }
    
    .faq-answer-content {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .faq-arrow {
        width: 1rem;
        height: 1rem;
        margin-left: 0.75rem;
    }
    
    .faq-footer {
        padding: 2rem 1rem;
    }
    
    .faq-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-button {
        width: 200px;
        text-align: center;
    }
    
    .faq-section h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .faq-arrow {
        margin-left: 0;
        margin-top: 0.125rem;
    }
    
    .faq-answer-content {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print styles - expand all FAQs */
@media print {
    .faq-answer {
        max-height: none !important;
        overflow: visible !important;
    }
    
    .faq-arrow {
        display: none;
    }
    
    .faq-question.active {
        background: #f9fafb;
        color: #374151;
    }
}

/* Schedule Page Styles */

/* Desktop/Mobile visibility */
.schedule-desktop-header {
    display: none;
}

.schedule-desktop-grid {
    display: none;
}

.schedule-mobile-cards {
    display: block;
}

/* Daily lotteries responsive */
.daily-lotteries-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Info cards responsive */
.schedule-info-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Quick navigation responsive */
.schedule-quick-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.schedule-nav-button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    width: 200px;
    text-align: center;
}

.schedule-nav-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide desktop text on mobile */
.desktop-text {
    display: none;
}

/* Desktop styles */
@media (min-width: 1024px) {
    /* Show desktop elements */
    .schedule-desktop-header {
        display: block;
    }
    
    .schedule-desktop-grid {
        display: block;
    }
    
    .schedule-mobile-cards {
        display: none;
    }
    
    /* Daily lotteries horizontal on desktop */
    .daily-lotteries-container {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
    
    /* Info cards 3 columns on desktop */
    .schedule-info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    /* Quick nav horizontal on desktop */
    .schedule-quick-nav {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .schedule-nav-button {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Show desktop text */
    .desktop-text {
        display: inline;
    }
}

/* Tablet styles */
@media (min-width: 640px) and (max-width: 1023px) {
    /* Daily lotteries horizontal on tablet */
    .daily-lotteries-container {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    /* Quick nav horizontal on tablet */
    .schedule-quick-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .schedule-nav-button {
        width: auto;
        flex: 1;
        min-width: 150px;
    }
}

/* 404 Error Page Styles */
.error-404-container-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.error-404-content {
    max-width: 28rem;
    width: 100%;
    text-align: center;
}

/* 404 Header */
.error-404-header {
    margin-bottom: 2rem;
}

.error-404-number {
    font-size: 9rem;
    font-weight: 700;
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1;
}

.error-404-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.error-404-description {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Lottery Balls Animation */
.error-404-balls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.error-404-balls-container {
    display: flex;
    align-items: center;
    gap: -2px;
}

.error-404-ball {
    width: 4rem;
    height: 4rem;
    background: #fbbf24
    border: 2px solid #d97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #1f2937;
    margin-left: -8px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.error-404-ball:first-child {
    margin-left: 0;
    z-index: 3;
}

.error-404-ball:nth-child(2) {
    z-index: 2;
}

.error-404-ball:nth-child(3) {
    z-index: 1;
}

.error-404-ball:hover {
    transform: scale(1.15);
    z-index: 10;
}

/* Ball Animations */
.error-404-ball[data-number="4"]:first-child {
    animation: bounce404 2s infinite, float404 3s ease-in-out infinite;
}

.error-404-ball[data-number="0"] {
    animation: bounce404 2s infinite 0.3s, float404 3s ease-in-out infinite 0.5s;
}

.error-404-ball[data-number="4"]:last-child {
    animation: bounce404 2s infinite 0.6s, float404 3s ease-in-out infinite 1s;
}

@keyframes float404 {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-8px) rotate(1deg); 
    }
    66% { 
        transform: translateY(4px) rotate(-0.5deg); 
    }
}

@keyframes bounce404 {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateY(0); 
    }
    40% { 
        transform: translateY(-12px); 
    }
    60% { 
        transform: translateY(-6px); 
    }
}

/* Navigation Buttons */
.error-404-navigation {
    margin-bottom: 3rem;
}

.error-404-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.error-404-btn {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    width: 100%;
    border: 1px solid;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Home Button - Gray gradient */
.error-404-btn-home {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #475569;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.2);
}

.error-404-btn-home:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    transform: translateY(-1px);
    text-decoration: none;
    color: #475569;
}

/* Today's Results - Blue gradient */
.error-404-btn-today {
    background: linear-gradient(135deg, #dbeafe 0%, #3b82f6 50%, #2563eb 100%);
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.error-404-btn-today:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Schedule - Orange gradient */
.error-404-btn-schedule {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    color: white;
    border-color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.error-404-btn-schedule:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

/* Footer */
.error-404-footer {
    font-size: 0.875rem;
    color: #9ca3af;
}

.error-404-footer p {
    margin: 0;
}

/* Responsive Design */
@media (min-width: 768px) {
    .error-404-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .error-404-number {
        font-size: 12rem;
    }
}

@media (max-width: 480px) {
    .error-404-number {
        font-size: 6rem;
    }
    
    .error-404-ball {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
        margin-left: -6px;
    }
    
    .error-404-ball:first-child {
        margin-left: 0;
    }
}

/* ===============================================
   CLEAN TREE SITEMAP STYLES
   =============================================== */

/* Sitemap Intro */
.sitemap-intro {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.sitemap-intro p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Tree Container */
.sitemap-tree {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    margin: 2rem 0;
    line-height: 1.6;
    overflow-x: auto;
}

/* Tree Items */
.tree-item {
    margin: 0.375rem 0;
    transition: all 0.2s ease;
}

.tree-item:hover {
    background: #f9fafb;
    border-radius: 0.375rem;
}

.tree-content {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    min-height: 2rem;
}

/* Level-based indentation */
.tree-item[data-level="0"] .tree-content {
    padding-left: 0;
}

.tree-item[data-level="1"] .tree-content {
    padding-left: 1.5rem;
}

.tree-item[data-level="2"] .tree-content {
    padding-left: 3rem;
}

.tree-item[data-level="3"] .tree-content {
    padding-left: 4.5rem;
}

/* Expandable items */
.tree-expandable {
    cursor: pointer;
}

.tree-expandable:hover .tree-content {
    background: #f3f4f6;
    border-radius: 0.375rem;
}

/* Tree Arrow */
.tree-arrow {
    color: #9ca3af;
    margin-right: 0.75rem;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    min-width: 16px;
    display: inline-block;
}

.tree-expandable:hover .tree-arrow {
    color: #3b82f6;
}

/* Tree Links */
.tree-link {
    color: #374151;
    text-decoration: none;
    margin-right: 0.75rem;
    transition: color 0.2s ease;
}

.tree-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.tree-root {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1f2937;
}

.tree-folder {
    font-weight: 600;
    color: #6b7280;
    margin-right: 0.75rem;
}

.tree-result {
    font-size: 0.875rem;
    color: #6b7280;
}

.tree-history {
    font-style: italic;
    color: #8b5cf6;
}

/* Tree Badges */
.tree-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.tree-badge-live {
    background: #dcfce7;
    color: #166534;
    animation: pulse 2s infinite;
}

.tree-badge-daily {
    background: #fef3c7;
    color: #92400e;
}

.tree-badge-weekly {
    background: #e0e7ff;
    color: #3730a3;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Tree Count */
.tree-count {
    color: #9ca3af;
    font-size: 0.75rem;
    font-style: italic;
}

/* Tree Sections */
.tree-section {
    transition: all 0.3s ease;
}

/* Footer Styles */
.sitemap-footer {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.sitemap-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    justify-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.xml-link-section {
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.xml-link {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: #374151;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.xml-link:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sitemap-intro {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .sitemap-intro p {
        font-size: 1rem;
    }
    
    .sitemap-tree {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .tree-item[data-level="1"] .tree-content {
        padding-left: 1rem;
    }
    
    .tree-item[data-level="2"] .tree-content {
        padding-left: 2rem;
    }
    
    .tree-item[data-level="3"] .tree-content {
        padding-left: 3rem;
    }
    
    .tree-badge {
        font-size: 0.6rem;
        padding: 0.1rem 0.3rem;
    }
    
    .sitemap-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .sitemap-footer {
        padding: 1.5rem;
    }
    
    .xml-link {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .sitemap-tree {
        padding: 0.75rem;
    }
    
    .tree-item[data-level="1"] .tree-content {
        padding-left: 0.75rem;
    }
    
    .tree-item[data-level="2"] .tree-content {
        padding-left: 1.5rem;
    }
    
    .tree-item[data-level="3"] .tree-content {
        padding-left: 2.25rem;
    }
    
    .tree-badge {
        display: none; /* Hide badges on very small screens */
    }
    
    .tree-count {
        font-size: 0.7rem;
    }
    
    .sitemap-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

/* Smooth animations */
.tree-item,
.tree-link,
.tree-arrow,
.xml-link {
    transition: all 0.2s ease;
}

/* Focus styles for accessibility */
.tree-expandable:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.375rem;
}

.tree-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ===============================================
   OCEAN GRADIENT FOOTER
   =============================================== */

/* Footer */
.ocean-footer {
    position: relative;
       background: linear-gradient(135deg, #059669 0%, #047857 50%, #022c22 100%);
    color: white;
    overflow: hidden;
    /* Более выраженная внутренняя тень */
    box-shadow: inset 0 10px 20px -6px rgba(0, 0, 0, 0.2);
}

/* Декоративные элементы */
.ocean-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
}

.ocean-footer .decorative-element-1 {
    position: absolute;
    top: 0;
    left: 25%;
    width: 24rem;
    height: 24rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
}

.ocean-footer .decorative-element-2 {
    position: absolute;
    bottom: 0;
    right: 33.333333%;
    width: 20rem;
    height: 20rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    filter: blur(3rem);
    pointer-events: none;
}

/* Footer content */
.footer-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Logo section */
.footer-logo-section {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 8rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.footer-logo-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.footer-logo-text p {
    color: #bfdbfe;
    font-size: 0.875rem;
    margin: 0;
}

.footer-description {
    color: #dbeafe;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social section */
.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #bfdbfe;
    margin-bottom: 0.75rem;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 0.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.footer-social-link.facebook:hover {
    background: #1877f2;
}

.footer-social-link.instagram:hover {
    background: #e4405f;
}

.footer-social-link.telegram:hover {
    background: #0088cc;
}

.footer-social-link.twitter:hover {
    background: #1da1f2;
}

/* Footer sections */
.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #dbeafe;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: white;
    text-decoration: none;
}

/* Footer bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2.5rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    color: #dbeafe;
    font-size: 0.875rem;
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
}

.footer-legal-links a {
    color: #bfdbfe;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: white;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #dbeafe;
}

.footer-live-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: #10b981;
    border-radius: 50%;
    animation: footer-pulse 2s ease-in-out infinite;
}

.footer-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-time-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

@keyframes footer-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Мобильная версия - 2 колонки для блоков ссылок */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo-section {
        margin-bottom: 1rem;
    }
    
    /* Контейнер для блоков ссылок на мобильном */
    .footer-links-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

/* Планшетная версия */
@media (min-width: 768px) and (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo-section {
        grid-column: 1 / -1;
    }
    
    .footer-links-container {
        display: contents;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-bottom-left {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Desktop версия - 3 колонки */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    /* УБИРАЕМ контейнер на desktop - блоки становятся отдельными колонками */
    .footer-links-container {
        display: contents;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-bottom-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-legal-links {
        margin-top: 0.5rem;
    }
}

/* SVG Icons */
.footer-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* ===============================================
   LOTTERY ARTICLE STYLES
   =============================================== */

/* Article Section Container */
.lottery-article-section {
    margin-top: 3rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.article-container {
    padding: 2.5rem;
    max-width: none;
    line-height: 1.7;
}

/* Article Title */
.article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    border-bottom: 3px solid #059669;
    padding-bottom: 1rem;
    line-height: 1.3;
}

/* Article Sections */
.article-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
}

.article-section:not(:last-child) {
    border-bottom: 1px solid #f3f4f6;
}

.article-section h2 {
    font-size: 1.875rem;  /* Увеличили с 2rem */
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    border-bottom: 3px solid #059669;
    padding-bottom: 1rem;
    line-height: 1.3;
}

/* Article Section h3 - подзаголовки и FAQ (меньше) */
.article-section h3 {
    font-size: 1.25rem;  /* Уменьшили с 1.5rem */
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-section h3::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 2px;
}

/* Article Content */
.article-content {
    color: #374151;
    font-size: 1rem;
    line-height: 1.7;
}

.article-content p {
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content strong {
    color: #374151;
    font-weight: 600;
}

/* Lists */
.article-content ul,
.article-content ol {
    color: #6b7280;
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.article-content li strong {
    color: #374151;
}

/* Article Section h3 - подзаголовки и FAQ (меньше) */
.article-section h3 {
    font-size: 1.25rem;  /* Уменьшили с 1.5rem */
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* h3 внутри контента (FAQ вопросы) */
.article-content h3 {
    font-size: 1.125rem;  /* Еще меньше для FAQ */
    font-weight: 600;
    color: #374151;
    margin: 1.5rem 0 0.75rem 0;
    border-left: 4px solid #059669;
    padding-left: 1rem;
    display: block;
}

.article-content h3::before {
    display: none; /* Убираем синюю полоску для FAQ */
}

/* Subheadings in content */
.article-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #374151;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.article-content th,
.article-content td {
    padding: 1rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.article-content th {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.article-content td {
    color: #6b7280;
    vertical-align: top;
}

.article-content tbody tr:hover {
    background: #f9fafb;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

/* Special table styling */
.comparison-table table,
.schedule-table table,
.prize-table table {
    margin: 1.5rem 0;
    border: 1px solid #e5e7eb;
}

.prize-table td:nth-child(2) {
    font-weight: 600;
    color: #059669;
}

/* FAQ Section Styling */
.article-content h4 + p {
    margin-top: 0.5rem;
}

/* Highlight boxes */
.article-content .highlight-box {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #60a5fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.article-content .highlight-box p {
    color: #1e40af;
    margin-bottom: 0;
    font-weight: 500;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Large screens - better spacing */
@media (min-width: 1024px) {
    .article-container {
        padding: 3rem;
    }
    
    .article-title {
        font-size: 2.25rem;
    }
    
    .article-section h3 {
        font-size: 1.625rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .lottery-article-section {
        margin-top: 2rem;
    }
    
    .article-container {
        padding: 2rem;
    }
    
    .article-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .article-section {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
	
    
    .article-section h2 {
        font-size: 1.5rem;  /* h2 больше */
    }
    
    .article-section h3 {
        font-size: 1.125rem;  /* h3 меньше */
    }
    
    .article-content h3 {
        font-size: 1rem;  /* FAQ еще меньше */
    }
    
    .article-content h4 {
        font-size: 1rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    /* Responsive tables */
    .article-content table {
        font-size: 0.8rem;
        margin: 1rem 0;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.75rem 0.5rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .article-container {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .article-section h2 {
        font-size: 1.375rem;
    }
    
    .article-section h3 {
        font-size: 1rem;
    }
    
    .article-content h3 {
        font-size: 0.95rem;
    }
    
    .article-section h3::before {
        width: 3px;
        height: 1.25rem;
    }
    
    .article-content {
        font-size: 0.95rem;
    }
    
    .article-content h4 {
        font-size: 0.95rem;
        padding-left: 0.75rem;
    }
    
    /* Mobile table scrolling */
    .article-content table {
        font-size: 0.75rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .article-content th,
    .article-content td {
        padding: 0.5rem 0.375rem;
        min-width: 80px;
    }
    
    /* Stack FAQ questions on mobile */
    .article-content h4 {
        margin-top: 1.5rem;
        border-left: 3px solid #3b82f6;
    }
}

/* Print styles */
@media print {
    .lottery-article-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .article-section h3::before {
        display: none;
    }
    
    .article-content table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}


/* ===============================================
   COOKIE NOTIFICATION STYLES
   =============================================== */

/* Cookie Notification Container */
.cookie-notification {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    z-index: 1000;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease-out;
}

/* Show/Hide animations */
.cookie-notification.cookie-show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-notification.cookie-hide {
    opacity: 0;
    transform: translateY(100%);
}

/* Cookie Content Layout */
.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Cookie Icon */
.cookie-icon {
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.225rem;
    flex-shrink: 0;
}

/* Text Content */
.cookie-text-content {
    flex: 1;
    min-width: 200px;
}

.cookie-text {
    margin: 0;
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.4;
    font-weight: 400;
}

.cookie-privacy-link {
    color: #3b82f6;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-privacy-link:hover {
    color: #2563eb;
    text-decoration: none;
}

/* Cookie Buttons */
.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    outline: none;
}

/* Settings Button - Blue */
.cookie-btn-settings {
    background: linear-gradient(135deg, #eff6ff 0%, #60a5fa 50%, #3b82f6 100%);
    color: white;
    border: 1px solid #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.cookie-btn-settings:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #3b82f6 50%, #2563eb 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

/* Reject Button - Gray */
.cookie-btn-reject {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #475569;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.2);
}

.cookie-btn-reject:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 50%, #94a3b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
}

/* Accept Button - Gold */
.cookie-btn-accept {
    background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
    color: white;
    border: 1px solid #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    font-weight: 700;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/* Mobile Responsive - Compact Version */
@media (max-width: 768px) {
    .cookie-notification {
        padding: 0.75rem !important;
        margin: 0 1rem !important;
        bottom: 1rem !important;
    }
    
    .cookie-content {
        gap: 0.75rem !important;
    }
    
    .cookie-text {
        font-size: 0.8rem !important;
    }
    
    .cookie-buttons {
        width: 100% !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }
    
    .cookie-btn {
        flex: 1 !important;
        min-width: 0 !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.5rem !important;
        border-radius: 0.375rem !important;
    }
}

@media (max-width: 480px) {
    .cookie-notification {
        padding: 0.625rem 0.75rem !important;
    }
    
    .cookie-text {
        font-size: 0.75rem !important;
    }
    
    .cookie-btn {
        font-size: 0.7rem !important;
        padding: 0.45rem 0.375rem !important;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .cookie-content {
        gap: 1.25rem !important;
    }
    
    .cookie-buttons {
        gap: 0.5rem !important;
    }
    
    .cookie-btn {
        font-size: 0.8rem !important;
        padding: 0.625rem 0.875rem !important;
    }
}

/* Focus states for accessibility */
.cookie-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles - hide cookie notification */
@media print {
    .cookie-notification {
        display: none !important;
    }
}

/* Details Tables */
.details-section {
    margin-top: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    background: #059669; /* Зеленый фон вместо серого */
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #047857; /* Зеленая граница */
}

.section-table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: white; /* Белый текст на зеленом фоне */
    margin: 0;
}

.overflow-x-auto {
    overflow-x: auto;
    overflow-y: hidden;
    /* Убираем ползунок на мобильных */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Убираем ползунок в WebKit браузерах */
.overflow-x-auto::-webkit-scrollbar {
    display: none;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
	min-width: 400px;
}

.details-table th,
.details-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
	white-space: nowrap;
}

.details-table th {
    background: #f8f9fa; /* Темно-зеленый заголовок */
    font-weight: 600;
    color: #1f2937; /* Белый текст */
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
	position: sticky;
}

.details-table tr:hover {
    background: #ecfdf5; /* Светло-зеленый при hover */
}

.details-table tr:last-child td {
    border-bottom: none;
}