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

:root {
    --primary-color-dok: #2563eb;
    --secondary-color-dok: #7c3aed;
    --accent-color-dok: #f59e0b;
    --text-dark-dok: #1f2937;
    --text-light-dok: #6b7280;
    --text-muted-dok: rgba(255, 255, 255, 0.8);
    --bg-light-dok: #f8fafc;
    --white-dok: #ffffff;
    --shadow-sm-dok: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md-dok: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg-dok: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl-dok: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --primary-gradient-dok: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient-dok: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient-dok: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient-dok: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient-dok: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-gradient-dok: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg-dok: #0f0f23;
    --card-bg-dok: rgba(255, 255, 255, 0.1);
    --border-glass-dok: rgba(255, 255, 255, 0.2);
    --shadow-glow-dok: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-intense-dok: 0 25px 50px rgba(0, 0, 0, 0.3);
    --glass-bg-dok: rgba(255, 255, 255, 0.1);
    --glass-border-dok: rgba(255, 255, 255, 0.2);
    --text-primary-dok: rgba(255, 255, 255, 0.9);
    --text-secondary-dok: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark-dok);
    background: var(--white-dok);
}
.stats-badge {
    display: block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 22.5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px; /* Push to bottom using flexbox */
    width: fit-content;
    align-self: center; /* Center horizontally within flex container */
}
ul{
    margin-left: 50px;
}
.exam-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.exam-item,
.level-item {
    background: rgba(102, 126, 234, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
        border-left: 4px solid #4facfe;
}

.exam-item:hover,
.level-item:hover {
    background: rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.exam-subject,
.level-subject {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.75rem;
}
.cosmic-bg-dok {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, #1a237e 0%, #000051 50%, #000000 100%);
}

.stars-dok {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: twinkle-dok 4s ease-in-out infinite alternate;
}

@keyframes twinkle-dok {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

.star-dok {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: sparkle-dok 3s ease-in-out infinite;
}

@keyframes sparkle-dok {
    0%, 100% { transform: scale(0.5); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 1; }
}

.aurora-dok {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg,
        rgba(0, 255, 255, 0.1) 0%,
        rgba(255, 0, 255, 0.1) 25%,
        rgba(255, 255, 0, 0.1) 50%,
        rgba(0, 255, 0, 0.1) 75%,
        rgba(255, 0, 0, 0.1) 100%);
    background-size: 400% 400%;
    animation: auroraFlow-dok 20s ease infinite;
    opacity: 0.3;
}

@keyframes auroraFlow-dok {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container-dok {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content-dok {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0px;
    position: relative;
    overflow: hidden;
}

.header-dok {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp-dok 1s ease-out;
}

.header-dok h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-dok p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.category-section-dok {
    margin: 5rem 0;
}

.category-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 3rem;
}

.category-card-dok {
    background: var(--card-bg-dok);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass-dok);
    border-radius: 30px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    animation: categoryFloat-dok 0.8s ease-out;
}

.category-card-dok:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-glow-dok);
}

.category-icon-dok {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: categoryIconFloat-dok 3s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.category-title-dok {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--primary-gradient-dok);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-count-dok {
    font-size: 2.5rem;
    font-weight: 900;
    color: #4facfe;
    margin-bottom: 0.5rem;
    animation: countUp-dok 2s ease-out;
}

.category-label-dok {
    color: var(--text-muted-dok);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.section-title-dok {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: var(--secondary-gradient-dok);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounceIn-dok 1.2s ease-out;
    position: relative;
}

.section-title-dok::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent-gradient-dok);
    border-radius: 2px;
    animation: expandLine-dok 1s ease-out 0.5s both;
}

.management-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.management-card-dok {
    background: var(--card-bg-dok);
    backdrop-filter: blur(30px);
    border: 1px solid var(--border-glass-dok);
    border-radius: 25px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: cardSlideIn-dok 0.8s ease-out;
}

.management-card-dok:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: var(--shadow-intense-dok);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-header-dok {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-icon-dok {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.8rem;
    animation: iconSpin-dok 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon-dok.legal-dok { background: var(--primary-gradient-dok); }
.card-icon-dok.operations-dok { background: var(--success-gradient-dok); color: #333; }
.card-icon-dok.safety-dok { background: var(--warning-gradient-dok); color: #333; }
.card-icon-dok.quality-dok { background: var(--info-gradient-dok); color: #333; }

.card-title-dok {
    font-size: 1.4rem;
    font-weight: 700;
    color: lightgray;
    position: relative;
    z-index: 2;
}

.card-description-dok {
    color: var(--text-muted-dok);
    line-height: 1.7;
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.card-status-dok {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    border-radius: 22.5px;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.schedule-header-dok {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown-dok 1s ease-out;
}

.schedule-header-dok h1 {
    color: white;
    font-size: 2.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 10px;
    animation: textGlow-dok 3s ease-in-out infinite alternate;
}

.schedule-header-dok p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

.cards-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.card-dok {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp-dok 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);

    /* Добавляю эти свойства: */
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

/* Стеклянный градиент при наведении */
.card-dok:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* Эффект свечения по краям */
.card-dok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(102, 126, 234, 0.2),
        rgba(118, 75, 162, 0.2),
        rgba(255, 255, 255, 0.1));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-dok:hover::before {
    opacity: 1;
}


/* Заголовки */
.card-dok h3 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

/* Подчеркивание заголовка */
.card-dok h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    opacity: 0.7;
}

/* Описание */
.card-dok p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 0;
    flex-grow: 1; /* Растягиваем для выравнивания кнопок */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Индикатор кликабельности */
.card-dok::after {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.card-dok:hover::after {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.9);
}

.reports-section-dok {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideUp-dok 1s ease-out 0.5s both;
    margin-top: 2rem;

    /* Добавляю градиентный бордер */
    position: relative;
    z-index: 1;
}

/* Градиентная обводка */
.reports-section-dok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(102, 126, 234, 0.3),
        rgba(118, 75, 162, 0.3),
        rgba(255, 255, 255, 0.1));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
}

.reports-section-dok h2 {
    color: white;
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Подчеркивание заголовка */
.reports-section-dok h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    border-radius: 2px;
}

.reports-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.report-item-dok {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0.08));
    border-radius: 15px;
    padding: 1.8rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 150px;

    /* Свечение при наведении */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Эффект стеклянной поверхности */
.report-item-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
}

/* Эффект свечения границ */
.report-item-dok:hover {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.12));
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(102, 126, 234, 0.4);
}

/* Индикатор года - обновленный */
.year-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 22.5px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.report-item-dok:hover .year-dok {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Заголовок отчета */
.report-item-dok h4 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    flex-grow: 1;
}

/* Индикатор кликабельности */
.report-item-dok::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.5;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.report-item-dok:hover::after {
    opacity: 1;
    transform: rotate(15deg) scale(1.2);
}

/* Разные акценты для годов */
.report-item-dok:nth-child(1) .year-dok {
    background: linear-gradient(135deg, #667eea, #764ba2); /* 2024 */
}

.report-item-dok:nth-child(2) .year-dok {
    background: linear-gradient(135deg, #48bb78, #38a169); /* 2023 */
}

.report-item-dok:nth-child(3) .year-dok {
    background: linear-gradient(135deg, #ed8936, #dd6b20); /* 2021 */
}

/* Линия времени (опционально) */
.reports-section-dok::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 10%,
        rgba(102, 126, 234, 0.3) 50%,
        transparent 90%);
    z-index: -1;
    opacity: 0.3;
}

/* Анимация появления для каждого элемента */
.report-item-dok {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpItem 0.6s ease-out forwards;
}

.report-item-dok:nth-child(1) { animation-delay: 0.6s; }
.report-item-dok:nth-child(2) { animation-delay: 0.8s; }
.report-item-dok:nth-child(3) { animation-delay: 1s; }

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

/* Адаптивность */
@media (max-width: 768px) {
    .reports-section-dok {
        padding: 2rem;
    }

    .reports-section-dok h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .reports-grid-dok {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .report-item-dok {
        padding: 1.5rem;
    }

    .report-item-dok h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .reports-section-dok {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .reports-section-dok h2 {
        font-size: 1.6rem;
    }

    .report-item-dok {
        padding: 1.2rem;
    }

    .year-dok {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* Контейнер временной шкалы */
.timeline-container-dok {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
    align-items: center;
    right: 33.5px;
}

/* Центральная линия временной шкалы */
.timeline-container-dok::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 188, 212, 0.3) 10%,
        #00bcd4 30%,
        #2196f3 50%,
        #9c27b0 70%,
        rgba(156, 39, 176, 0.3) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
    z-index: 1;
    animation: timelineGlow 4s ease-in-out infinite;
}

/* Фоновый эффект для линии */
.timeline-container-dok::after {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
    z-index: 0;
}

/* Контейнер для каждого элемента временной шкалы */
.timeline-container-dok > div {
    position: relative;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fadeInUpTimeline 0.8s ease forwards;
}

/* Анимация появления элементов по очереди */
.timeline-container-dok > div:nth-child(1) { animation-delay: 0.2s; }
.timeline-container-dok > div:nth-child(2) { animation-delay: 0.4s; }
.timeline-container-dok > div:nth-child(3) { animation-delay: 0.6s; }
.timeline-container-dok > div:nth-child(4) { animation-delay: 0.8s; }
.timeline-container-dok > div:nth-child(5) { animation-delay: 1s; }

/* Расположение элементов - четные слева, нечетные справа */
.timeline-container-dok > div:nth-child(odd) .timeline-content-dok {
    margin-left: auto;
    margin-right: 0;
    transform-origin: right center;
}

.timeline-container-dok > div:nth-child(even) .timeline-content-dok {
    margin-left: 0;
    margin-right: auto;
    transform-origin: left center;
}

/* Контент карточки временной шкалы */
.timeline-content-dok {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.2rem;
    width: 46%;
    max-width: 480px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 2;

    /* Тень и свечение */
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Градиентная обводка при наведении */
.timeline-content-dok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
        rgba(0, 188, 212, 0.4),
        rgba(33, 150, 243, 0.4),
        rgba(156, 39, 176, 0.4));
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}



/* Соединительная линия от точки к карточке */
.timeline-container-dok > div::after {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(0, 188, 212, 0.6),
        rgba(33, 150, 243, 0.3));
    z-index: 2;
    transition: all 0.3s ease;
}



/* Бейдж года */
.year-badge-dok {
    display: inline-block;
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 22.5px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Заголовок плана */
.plan-title-dok {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Описание плана */
.plan-description-dok {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Кнопка просмотра */
.view-btn-dok {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    color: white;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 22.5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.view-btn-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.view-btn-dok::after {
    content: '→';
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* ========== ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ========== */

.timeline-content-dok:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 188, 212, 0.4);
    box-shadow:
        0 20px 50px rgba(0, 188, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.timeline-content-dok:hover::before {
    opacity: 1;
}


.timeline-content-dok:hover .year-badge-dok {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.timeline-content-dok:hover .view-btn-dok {
    transform: translateX(5px);
    box-shadow: 0 10px 25px rgba(0, 188, 212, 0.4);
}

.timeline-content-dok:hover .view-btn-dok::before {
    left: 100%;
}

.timeline-content-dok:hover .view-btn-dok::after {
    transform: translateX(5px);
}

.timeline-content-dok:hover + .timeline-container-dok > div::after {
    background: linear-gradient(90deg,
        rgba(0, 188, 212, 0.8),
        rgba(33, 150, 243, 0.5));
}

/* ========== АНИМАЦИИ ========== */

@keyframes timelineGlow {
    0%, 100% {
        opacity: 0.8;
        box-shadow:
            0 0 15px rgba(0, 188, 212, 0.2),
            0 0 30px rgba(33, 150, 243, 0.1);
    }
    50% {
        opacity: 1;
        box-shadow:
            0 0 20px rgba(0, 188, 212, 0.4),
            0 0 40px rgba(156, 39, 176, 0.2);
    }
}

@keyframes fadeInUpTimeline {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== ЦВЕТОВАЯ СХЕМА ДЛЯ РАЗНЫХ ЛЕТ ========== */

/* 2024/2025 - Синий */
.timeline-container-dok > div:nth-child(1) .year-badge-dok,
.timeline-container-dok > div:nth-child(1) .view-btn-dok {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
}

/* 2023/2024 - Зеленый */
.timeline-container-dok > div:nth-child(2) .year-badge-dok,
.timeline-container-dok > div:nth-child(2) .view-btn-dok {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

/* 2020/2021 - Оранжевый */
.timeline-container-dok > div:nth-child(3) .year-badge-dok,
.timeline-container-dok > div:nth-child(3) .view-btn-dok {
    background: linear-gradient(135deg, #ff9800, #ff5722);
}

/* 2019/2020 - Фиолетовый */
.timeline-container-dok > div:nth-child(4) .year-badge-dok,
.timeline-container-dok > div:nth-child(4) .view-btn-dok {
    background: linear-gradient(135deg, #9c27b0, #673ab7);
}

/* 2018/2019 - Коричневый/Серый */
.timeline-container-dok > div:nth-child(5) .year-badge-dok,
.timeline-container-dok > div:nth-child(5) .view-btn-dok {
    background: linear-gradient(135deg, #795548, #607d8b);
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1024px) {
    .timeline-container-dok::before {
        left: 30px;
    }

    .timeline-content-dok {
        width: calc(100% - 100px);
        margin-left: 100px !important;
        margin-right: 0 !important;
    }

    .timeline-dot-dok {
        left: 28px !important;
        right: auto !important;
    }

    .timeline-container-dok > div::after {
        left: 48px !important;
        right: auto !important;
        width: 30px;
    }
}

@media (max-width: 768px) {
    .category-section-dok {
        padding: 3rem 0;
    }

    .container-dok {
        padding: 0.7rem;
    }

    .schedule-header-dok {
        margin-bottom: 3rem;
    }

    .schedule-header-dok h1 {
        font-size: 2.5rem;
    }

    .schedule-header-dok p {
        font-size: 1.1rem;
    }

    .timeline-content-dok {
        padding: 1.8rem;
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }

    .plan-title-dok {
        font-size: 1.35rem;
    }

    .plan-description-dok {
        font-size: 1rem;
    }

    .view-btn-dok {
        padding: 0.75rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .schedule-header-dok h1 {
        font-size: 2rem;
    }

    .schedule-header-dok p {
        font-size: 1rem;
    }

    .timeline-content-dok {
        padding: 1.5rem;
        width: calc(100% - 70px);
        margin-left: 70px !important;
    }

    .timeline-dot-dok {
        width: 18px;
        height: 18px;
        left: 26px !important;
    }

    .year-badge-dok {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .plan-title-dok {
        font-size: 1.2rem;
    }

    .plan-description-dok {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .view-btn-dok {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

/* Сетка членов */
.members-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

/* Карточки членов */
.member-card-dok {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.07),
        rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-align: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Эффект градиентной обводки */
.member-card-dok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.3),
        rgba(118, 75, 162, 0.3),
        transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Номер члена */
.member-number-dok {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    text-align: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Имя члена */
.member-name-dok {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

/* Роль члена */
.member-role-dok {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 0 1rem;
    transition: all 0.3s ease;
}

/* Эффект пульсации для председателя */
.pulse-dok {
    position: relative;
    animation: pulseChairman 2s ease-in-out infinite;
}

.pulse-dok::after {
    content: 'ESIMEES';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

/* ========== КНОПКИ CTA ========== */

.cta-buttons-dok {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.cta-buttons-dok .btn-dok {
    padding: 1.1rem 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    justify-content: center;
}

.cta-buttons-dok .btn-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

/* Основная кнопка */
.cta-buttons-dok .btn-primary-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 22.5px;

}

/* Вторичная кнопка */
.cta-buttons-dok .btn-secondary-dok {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    color: white;
    box-shadow:
        0 8px 25px rgba(0, 188, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.12);
}

/* ========== ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ========== */

/* Эффекты для карточек членов */
.member-card-dok:hover {
    transform: translateY(-8px) scale(1.03);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05));
    border-color: rgba(102, 126, 234, 0.25);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}



.member-card-dok:hover .member-number-dok {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.member-card-dok:hover .member-name-dok {
    color: #a3bffa;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.member-card-dok:hover .member-role-dok {
    color: rgba(255, 255, 255, 0.95);
}

/* Эффекты для кнопок */
.cta-buttons-dok .btn-dok:hover {
    transform: translateY(-5px);
}

.cta-buttons-dok .btn-dok:hover::before {
    left: 100%;
}

.cta-buttons-dok .btn-primary-dok:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow:
        0 15px 35px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-buttons-dok .btn-secondary-dok:hover {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    box-shadow:
        0 15px 35px rgba(0, 188, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ========== АНИМАЦИИ ========== */

/* Пульсация для председателя */
@keyframes pulseChairman {
    0%, 100% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15),
            0 0 0 0 rgba(255, 152, 0, 0.1);
    }
    50% {
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.15),
            0 0 0 15px rgba(255, 152, 0, 0);
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 152, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 152, 0, 0.4);
    }
}

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

.member-card-dok {
    animation: memberAppear 0.6s ease forwards;
    opacity: 0;
}

.member-card-dok:nth-child(1) { animation-delay: 0.1s; }
.member-card-dok:nth-child(2) { animation-delay: 0.2s; }

.cta-buttons-dok .btn-dok {
    animation: memberAppear 0.8s ease forwards;
    opacity: 0;
}

.cta-buttons-dok .btn-dok:nth-child(1) { animation-delay: 0.3s; }
.cta-buttons-dok .btn-dok:nth-child(2) { animation-delay: 0.4s; }

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 768px) {
    .category-section-dok {
        padding: 3rem 1.5rem;
    }

    .section-title-dok {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .members-grid-dok {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1.5rem;
    }

    .member-card-dok {
        padding: 2rem 1.5rem;
    }

    .member-name-dok {
        font-size: 1.4rem;
        padding: 0 0.5rem;
    }

    .member-role-dok {
        font-size: 1rem;
        padding: 0 0.5rem;
    }

    .cta-buttons-dok {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-buttons-dok .btn-dok {
        min-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .category-section-dok {
        padding: 2.5rem 1rem;
    }

    .section-title-dok {
        font-size: 1.7rem;
    }

    .member-card-dok {
        padding: 1.8rem 1.2rem;
    }

    .member-number-dok {
        top: 1rem;
        left: 0.45rem;
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        line-height: 1;
        text-align: center;
    }

    .member-name-dok {
        font-size: 1.3rem;
        margin-bottom: 0.6rem;
    }

    .member-role-dok {
        font-size: 0.95rem;
    }

    .pulse-dok::after {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        top: 0.8rem;
        right: 0.8rem;
    }

    .cta-buttons-dok .btn-dok {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ========== */

/* Декоративные линии вокруг карточек */
.member-card-dok::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.05),
        rgba(118, 75, 162, 0.05));
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Schedule2 Section (Õpiabirühmad) */
.schedule2-section {
    margin: 4rem 0;
}

.schedule2-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.schedule2-grid {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));*/
    gap: 3rem;
}

.schedule2-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 25px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: zoomIn 0.8s ease-out;
}

.schedule2-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.schedule2-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-glass);
}

.schedule2-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.schedule2-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    font-weight: 600;
}

.schedule2-table th,
.schedule2-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.schedule2-table th {
    background: rgba(255, 255, 255, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.schedule2-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.teacher-name2 {
    color: var(--text-white);
    font-weight: 500;
}
/* ========== КАРТОЧКА PÕHIMÄÄRUS ========== */

.card2-grid-dok {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); */
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.card2-dok {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.04));
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Градиентный акцент сверху */
.card2-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #00bcd4,
        #2196f3,
        #9c27b0);
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

/* Эффект градиентной обводки */
.card2-dok::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
        rgba(0, 188, 212, 0.3),
        rgba(33, 150, 243, 0.3),
        rgba(156, 39, 176, 0.3));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Шапка карточки */
.card2-header-dok {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex: 1;
}

.card2-icon-dok {
    font-size: 3.5rem;
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #00bcd4, #9c27b0);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1;
}

/* Текстовая часть */
.card2-header-dok h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.card2-header-dok p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Кнопка */
.card2-dok .btn-dok {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 22.5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 188, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.12);
    align-self: flex-start;
}

/* Эффект блеска на кнопке */
.card2-dok .btn-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent);
    transition: left 0.6s ease;
}

.card2-dok .btn-dok::after {
    content: '📜';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* ========== ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ========== */

.card2-dok:hover {
    transform: translateY(-10px) scale(1.03);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.07));
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 25px 60px rgba(0, 188, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.card2-dok:hover::after {
    opacity: 1;
}

.card2-dok:hover .card2-icon-dok {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 8px 20px rgba(0, 188, 212, 0.4));
}

.card2-dok:hover h2 {
    color: #80deea;
    text-shadow: 0 2px 12px rgba(0, 188, 212, 0.3);
}

.card2-dok:hover p {
    color: rgba(255, 255, 255, 0.95);
}

.card2-dok:hover .btn-dok {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    box-shadow:
        0 15px 35px rgba(0, 188, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.18);
}

.card2-dok:hover .btn-dok::before {
    left: 100%;
}

.card2-dok:hover .btn-dok::after {
    transform: translateX(5px) rotate(10deg);
}

/* ========== АНИМАЦИИ ========== */

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

.card2-dok {
    animation: card2Appear 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

/* Плавное мерцание иконки */
@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
    }
    50% {
        filter: drop-shadow(0 5px 18px rgba(0, 188, 212, 0.4));
    }
}

.card2-icon-dok {
    animation: iconGlow 3s ease-in-out infinite;
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 768px) {
    .card2-grid-dok {
        grid-template-columns: 1fr;
        max-width: 450px;
        gap: 1.5rem;
    }

    .card2-dok {
        padding: 2rem;
    }

    .card2-header-dok {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.2rem;
        margin-bottom: 2rem;
    }

    .card2-icon-dok {
        font-size: 3rem;
    }

    .card2-header-dok h2 {
        font-size: 1.6rem;
    }

    .card2-header-dok p {
        font-size: 1.05rem;
    }

    .card2-dok .btn-dok {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .card2-dok {
        padding: 1.8rem;
    }

    .card2-icon-dok {
        font-size: 2.8rem;
    }

    .card2-header-dok h2 {
        font-size: 1.5rem;
    }

    .card2-header-dok p {
        font-size: 1rem;
    }

    .card2-dok .btn-dok {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ========== */

/* Индикатор важности (опционально) */
.card2-dok::before {
    content: '📋 TÄHTIS DOKUMENT';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.15), rgba(33, 150, 243, 0.15));
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(0, 188, 212, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
    }
}

/* Эффект при клике */
.card2-dok:active {
    transform: translateY(-5px) scale(0.98);
    transition: transform 0.1s ease;
}

/* Декоративные элементы */
.card2-dok::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(0, 188, 212, 0.03) 0%,
        transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card2-dok:hover::before {
    opacity: 1;
}














.btn-primary-dok {
    background: var(--info-gradient-dok);
    color: white;
    flex: 1;
}

.btn-primary-dok:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(116, 185, 255, 0.5);
}

.btn-secondary-dok {
    background: var(--glass-bg-dok);
    color: var(--text-primary-dok);
    border: 2px solid var(--glass-border-dok);
    backdrop-filter: blur(20px);
}

.btn-secondary-dok:hover {
    background: var(--success-gradient-dok);
    border-color: transparent;
    transform: scale(1.05);
}

.view-btn-dok {
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn-dok:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 150, 243, 0.4);
    background: linear-gradient(45deg, #2196f3, #3f51b5);
}


/* ========== СЕТКА КАРТОЧЕК PERSONALIJUHTIMINE ========== */

.main-grid-dok {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Карточки */
.section-card-dok {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.8rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;

    /* Тень */
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Градиентный бордер эффект */
.section-card-dok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.3),
        rgba(118, 75, 162, 0.3),
        rgba(157, 78, 221, 0.3));
    border-radius: 26px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Акцентный уголок */
.section-card-dok::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg,
        transparent 50%,
        rgba(102, 126, 234, 0.08) 50%);
    border-radius: 0 24px 0 80px;
    transition: all 0.3s ease;
}

/* Иконки */
.section-icon-dok {
    font-size: 3.2rem;
    margin-bottom: 1.8rem;
    display: inline-block;
    transition: all 0.3s ease;
}

/* Заголовки */
.section-card-dok h3 {
    color: white;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

/* Подчеркивание заголовка */
.section-card-dok h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Описание */
.section-card-dok p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.2rem;
    font-size: 1.05rem;
    font-weight: 300;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Кнопки */
.explore-btn-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2.4rem;
    border-radius: 22.5px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    letter-spacing: 0.3px;

    /* Тень и обводка */
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.08);
}

/* Эффект блеска */
.explore-btn-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.25),
        transparent);
    transition: left 0.6s ease;
}

/* Стрелка */
.explore-btn-dok::after {
    content: '→';
    margin-left: 0.4rem;
    font-size: 1.1rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

/* ========== СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ КАЖДОЙ КАРТОЧКИ ========== */

/* Первая карточка - Personalijuhtimine */
.main-grid-dok > div:nth-child(1) {
    border-top: 3px solid rgba(102, 126, 234, 0.4);
}

.main-grid-dok > div:nth-child(1) .section-icon-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
}

.main-grid-dok > div:nth-child(1) h3::after {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.main-grid-dok > div:nth-child(1) .explore-btn-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Вторая карточка - Palgakorralduse põhimõtted */
.main-grid-dok > div:nth-child(2) {
    border-top: 3px solid rgba(0, 188, 212, 0.4);
}

.main-grid-dok > div:nth-child(2) .section-icon-dok {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    -webkit-background-clip: text;
}

.main-grid-dok > div:nth-child(2) h3::after {
    background: linear-gradient(90deg, #00bcd4, #2196f3);
}

.main-grid-dok > div:nth-child(2) .explore-btn-dok {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
}

/* Градиентные обводки при наведении */
.main-grid-dok > div:nth-child(1):hover::before {
    background: linear-gradient(135deg,
        rgba(102, 126, 234, 0.4),
        rgba(118, 75, 162, 0.4),
        rgba(157, 78, 221, 0.4));
}

.main-grid-dok > div:nth-child(2):hover::before {
    background: linear-gradient(135deg,
        rgba(0, 188, 212, 0.4),
        rgba(33, 150, 243, 0.4),
        rgba(3, 169, 244, 0.4));
}

/* ========== ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ========== */

.section-card-dok:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.section-card-dok:hover::before {
    opacity: 1;
}

.section-card-dok:hover::after {
    width: 90px;
    height: 90px;
}

.section-card-dok:hover .section-icon-dok {
    transform: scale(1.025);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.main-grid-dok > div:nth-child(1):hover .section-icon-dok {
    transform: scale(1.025) rotate(5deg);
}

.main-grid-dok > div:nth-child(2):hover .section-icon-dok {
    transform: scale(1.025) rotate(5deg);
}

.section-card-dok:hover h3::after {
    width: 100%;
}

.section-card-dok:hover .explore-btn-dok {
    transform: translateY(-4px);
    box-shadow:
        0 15px 35px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.main-grid-dok > div:nth-child(1):hover .explore-btn-dok {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

.main-grid-dok > div:nth-child(2):hover .explore-btn-dok {
    background: linear-gradient(135deg, #2196f3, #00bcd4);
}

.section-card-dok:hover .explore-btn-dok::before {
    left: 100%;
}

.section-card-dok:hover .explore-btn-dok::after {
    transform: translateX(4px);
}

/* ========== АНИМАЦИИ ========== */

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

.section-card-dok {
    animation: cardFadeIn 0.8s ease forwards;
    opacity: 0;
}

.section-card-dok:nth-child(1) {
    animation-delay: 0.2s;
}

.section-card-dok:nth-child(2) {
    animation-delay: 0.4s;
}

/* Плавное мерцание иконок */
@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 5px 15px rgba(102, 126, 234, 0.3));
    }
}

.main-grid-dok > div:nth-child(1) .section-icon-dok {
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlowBlue {
    0%, 100% {
        filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 5px 15px rgba(0, 188, 212, 0.3));
    }
}

.main-grid-dok > div:nth-child(2) .section-icon-dok {
    animation: iconGlowBlue 3s ease-in-out infinite 1s;
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1024px) {
    .main-grid-dok {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 2rem;
    }

    .section-card-dok {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .main-grid-dok {
        padding: 0;
        gap: 1.8rem;
    }

    .section-card-dok {
        padding: 2.2rem;
        min-height: 340px;
    }

    .section-icon-dok {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
    }

    .section-card-dok h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-card-dok p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .explore-btn-dok {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-card-dok {
        padding: 1.8rem;
        min-height: 320px;
    }

    .section-icon-dok {
        font-size: 2.5rem;
    }

    .section-card-dok h3 {
        font-size: 1.35rem;
    }

    .section-card-dok p {
        font-size: 0.95rem;
    }

    .explore-btn-dok {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}


/* ========== СТАТИСТИЧЕСКАЯ ПАНЕЛЬ ========== */

.stats-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card-dok {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card-dok::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(102, 126, 234, 0.2),
        rgba(118, 75, 162, 0.2),
        transparent);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-dok:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08),
        rgba(255, 255, 255, 0.04));
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card-dok:hover::before {
    opacity: 1;
}

.stat-icon-dok {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-card-dok:hover .stat-icon-dok {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    opacity: 1;
}

.stat-number-dok {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(90deg,rgba(104, 145, 163, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stat-card-dok:hover .stat-number-dok {
    transform: scale(1.1);
}

.stat-label-dok {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stat-card-dok:hover .stat-label-dok {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(2px);
}

/* ========== СЕТКА ПРОЦЕССОВ ========== */

.process-grid-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Карточки процессов */
.process-grid-dok .section-card-dok {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Градиентный акцент сверху */
.process-grid-dok .section-card-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(102, 126, 234, 0.8),
        rgba(118, 75, 162, 0.8));
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

/* Разные цвета для разных процессов */
.process-grid-dok .section-card-dok[data-process="creative"]::before {
    background: linear-gradient(90deg,
        rgba(102, 126, 234, 0.8),
        rgba(156, 39, 176, 0.8));
}

.process-grid-dok .section-card-dok[data-process="excursions"]::before {
    background: linear-gradient(90deg,
        rgba(0, 188, 212, 0.8),
        rgba(33, 150, 243, 0.8));
}

/* Иконки процессов */
.process-icon-dok {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

/* Заголовки процессов */
.process-title-dok {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-grow: 0;
}

/* Описание процессов */
.process-description-dok {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    font-weight: 300;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Контейнер для кнопок */
.process-actions-dok {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

/* Общие стили для кнопок */
.btn-dok {
    padding: 0.85rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-dok::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    transition: left 0.5s ease;
}

/* Основная кнопка */
.btn-primary-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    justify-content: center;
    border-radius:22.5px ;
}

/* Вторичная кнопка */
.btn-secondary-dok {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    flex: 1;
    justify-content: center;
     border-radius:22.5px ;
}

/* ========== ЭФФЕКТЫ ПРИ НАВЕДЕНИИ ========== */

/* Эффекты для карточек процессов */
.process-grid-dok .section-card-dok:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.09),
        rgba(255, 255, 255, 0.05));
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.process-grid-dok .section-card-dok:hover .process-icon-dok {
    transform: scale(1.025) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* Эффекты для кнопок */
.btn-dok:hover {
    transform: translateY(-3px);
}

.btn-dok:hover::before {
    left: 100%;
}

.btn-primary-dok:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    box-shadow:
        0 10px 25px rgba(102, 126, 234, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary-dok:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1024px) {
    .process-grid-dok {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 2rem;
    }

    .stats-grid-dok {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid-dok {
        gap: 1rem;
    }

    .stat-card-dok {
        padding: 1.5rem;
    }

    .stat-icon-dok {
        font-size: 2rem;
    }

    .stat-number-dok {
        font-size: 2.2rem;
    }

    .stat-label-dok {
        font-size: 0.85rem;
    }

    .process-grid-dok .section-card-dok {
        padding: 2rem;
    }

    .process-icon-dok {
        font-size: 2.5rem;
    }

    .process-title-dok {
        font-size: 1.3rem;
    }

    .process-description-dok {
        font-size: 1rem;
    }

    .process-actions-dok {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-dok {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid-dok {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .stat-card-dok {
        padding: 1.2rem;
    }

    .process-grid-dok .section-card-dok {
        padding: 1.5rem;
    }

    .process-title-dok {
        font-size: 1.2rem;
    }

    .btn-dok {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ ЭФФЕКТЫ ========== */

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

.stat-card-dok {
    animation: statsAppear 0.6s ease forwards;
    opacity: 0;
}

.stat-card-dok:nth-child(1) { animation-delay: 0.1s; }
.stat-card-dok:nth-child(2) { animation-delay: 0.2s; }
.stat-card-dok:nth-child(3) { animation-delay: 0.3s; }
.stat-card-dok:nth-child(4) { animation-delay: 0.4s; }

.process-grid-dok .section-card-dok {
    animation: statsAppear 0.8s ease forwards;
    opacity: 0;
}

.process-grid-dok .section-card-dok:nth-child(1) { animation-delay: 0.5s; }
.process-grid-dok .section-card-dok:nth-child(2) { animation-delay: 0.6s; }

/* Пульсация для статистики */
@keyframes pulseNumber {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 0 2px 15px rgba(102, 126, 234, 0.4);
    }
}

.stat-number-dok {
    animation: pulseNumber 3s ease-in-out infinite;
}



.modal-dok {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
        background-color: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(15px);
    animation: fadeIn-dok 0.5s ease-out;
}

.modal-content-dok {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 30px;
    width: 95%;
    max-width: var(--modal-max-width);
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn-dok 0.7s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.modal-header-dok {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 50px;
    border-radius: 30px 30px 0 0;
    position: relative;
    overflow: hidden;
}

.close-dok {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    background: rgba(255,255,255,0.2);
    z-index: 2;
}

.close-dok:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%) rotate(90deg) scale(1.15);
}

.modal-body-dok {
    padding: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-section-dok {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border-left: 4px solid #4facfe;
}

.floating-particles-dok {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle-dok {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: float-dok 6s ease-in-out infinite;
}

.background-animation-dok {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element-dok {
    position: absolute;
    opacity: 0.1;
    animation: floatComplex-dok 12s ease-in-out infinite;
}

.footer-dok {
    background: linear-gradient(135deg, var(--text-dark-dok), #374151);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content-dok {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-bottom-dok {
    border-top: 1px solid #4b5563;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

@keyframes fadeInUp-dok {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown-dok {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp-dok {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInUp-dok {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn-dok {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn-dok {
    from { opacity: 0; transform: scale(0.7) translateY(-150px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes textGlow-dok {
    from { text-shadow: 0 0 20px rgba(255,107,107,0.5); }
    to { text-shadow: 0 0 30px rgba(78,205,196,0.8); }
}

@keyframes float-dok {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatComplex-dok {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-40px) rotate(90deg) scale(1.2);
    }
    50% {
        transform: translateY(-20px) rotate(180deg) scale(0.8);
    }
    75% {
        transform: translateY(-60px) rotate(270deg) scale(1.1);
    }
}

@keyframes timelinePulse-dok {
    0%, 100% { box-shadow: 0 0 10px rgba(33, 150, 243, 0.5); }
    50% { box-shadow: 0 0 30px rgba(33, 150, 243, 1); }
}

@keyframes badgeGlow-dok {
    0% { box-shadow: 0 0 10px rgba(233, 30, 99, 0.5); }
    100% { box-shadow: 0 0 20px rgba(233, 30, 99, 0.8); }
}

@keyframes cardAppear-dok {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes processGridEntrance-dok {
    0% {
        opacity: 0;
        transform: scale(0.8) rotateY(30deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes iconPulse-dok {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.2); }
}

@keyframes categoryFloat-dok {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes categoryIconFloat-dok {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

@keyframes countUp-dok {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes bounceIn-dok {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes expandLine-dok {
    0% { width: 0; }
    100% { width: 100px; }
}

@keyframes cardSlideIn-dok {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes iconSpin-dok {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-dok {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .header-dok h1 {
        font-size: 2rem;
    }

    .category-grid-dok {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .management-grid-dok {
        grid-template-columns: 1fr;
        gap: 20px;
    }




    .modal-content-dok {
        margin: 5% auto;
        width: 98%;
    }

    .modal-body-dok {
        padding: 30px;
    }

    .modal-header-dok {
        padding: 30px;
    }

    .modal-header-dok h2 {
        font-size: 2rem;
    }

    .cards-grid-dok {
        grid-template-columns: 1fr;
    }

    .stats-grid-dok {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-dok h1 {
        font-size: 1.8rem;
    }

    .category-card-dok {
        padding: 20px;
    }

    .management-card-dok {
        padding: 20px;
    }

    .stats-grid-dok {
        grid-template-columns: 1fr;
    }
}

/* Extra Small Mobile (iPhone SE, small Android) */
@media (max-width: 374px) {
    .container-dok {
        padding: 10px;
    }

    .header-dok h1 {
        font-size: 1.5rem;
    }

    .category-grid-dok,
    .management-grid-dok {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card-dok,
    .management-card-dok {
        padding: 1.5rem;
    }

    /* Improve touch targets */
    .close-dok,
    button {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
}
