/* ================ ОСНОВНЫЕ СТИЛИ ================ */
body {
    margin: 0;
    padding: 0;
    background: #121214;
    font-family: "Montserrat Alternates", sans-serif;
    box-sizing: border-box;
}

/* Стили для плашки онлайна */
.online-badge {
    display: inline-block;
    background: rgba(106, 156, 45, 0.2);
    color: #b1ed49;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-top: 4px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    border: 1px solid #6A9C2D;
    transition: all 0.3s ease;
}

.online-badge:hover {
    background: rgba(106, 156, 45, 0.3);
    box-shadow: 0 0 6px rgba(166, 243, 39, 0.4);
}

/* ================ ОБЩИЕ СТИЛИ САЙДБАРА ================ */
.sidebar {
    position: fixed;
    width: 285px;
    left: 10px;
    background: #121214;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    z-index: 1000;
    max-height: 90vh;
}

.sidebar-container {
    position: fixed;
    top: 0px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, scale 0.4s ease;
    will-change: transform, opacity, scale;
}

/* ================ ШАПКА САЙДБАРА ================ */
.sidebar-header {
    position: relative;
    padding: 0 16px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid #2a2a2e;
}

.sidebar-header-2 {
    position: relative;
    padding: 0 16px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #2a2a2e;
}

/* ================ ЛОГОТИП И ЗАГОЛОВКИ ================ */
.ems-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ems-icon {
    color: #b1ed49;
    font-size: 42px;
    filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.4));
    flex-shrink: 0;
}

.ems-icon-2 {
    color: #b1ed49;
    font-size: 32px;
    filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.4));
    flex-shrink: 0;
}

.ems-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ems-main {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.ems-main-2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1;
}

.ems-sub {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #b1ed49;
    letter-spacing: 2px;
    margin-top: 2px;
}

/* ================ МЕНЮ САЙДБАРА ================ */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding: 0 16px;
    flex-grow: 1;
}

.sidebar-item {
    color: #a0a0a7;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 15px;
}

.menu-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-item .icon {
    width: 24px;
    min-width: 24px;
    text-align: center;
    margin-right: 14px;
    color: #b1ed49;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================ ЭФФЕКТЫ НАВЕДЕНИЯ ================ */
.sidebar-item:hover {
    background: #1e1e22;
    color: #ffffff;
}

.sidebar-item:hover .icon {
    color: #d4ff6b;
    filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.6));
}

/* ================ АКТИВНЫЕ ЭЛЕМЕНТЫ ================ */
.sidebar-item.active {
    background: #6A9C2D;
    color: #ffffff;
}

.sidebar-item.active .icon {
    color: #ffffff;
}

/* ================ ПОЛОСА ПРОКРУТКИ ================ */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #1e1e22;
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #b1ed49;
    border-radius: 2px;
}

/* ================ ПОЗИЦИОНИРОВАНИЕ САЙДБАРОВ (ДЕСКТОП) ================ */
.main-sidebar {
    top: 20px;
}

.info-sidebar {
    top: 545px;
}

/* Анимации для основного сайдбара */
.main-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transform-origin: left center;
}

.main-item .icon {
    transition: all 0.3s ease;
    transform-origin: center;
}

.main-item .menu-text {
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.main-item .pulse-dot {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #b1ed49;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 rgba(177, 237, 73, 0.4);
}

/* Эффекты при наведении */
.main-item:hover {
    background: #1e1e22;
}

.main-item:hover .icon {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 0 6px rgba(166, 243, 39, 0.7));
}

.main-item:hover .menu-text {
    transform: translateX(5px);
}

.main-item:hover .pulse-dot {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

/* Активное состояние */
.main-item.active {
    background: linear-gradient(90deg, rgba(106, 156, 45, 0.2) 0%, rgba(106, 156, 45, 0.1) 100%);
    border-left: 3px solid #b1ed49;
}

.main-item.active .icon {
    color: #ffffff;
}

.main-item.active .menu-text {
    font-weight: 600;
    color: #ffffff;
    transform: translateX(8px);
}

.main-item.active .pulse-dot {
    opacity: 1;
    width: 8px;
    height: 8px;
    right: 13px;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    animation: none;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(177, 237, 73, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(177, 237, 73, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(177, 237, 73, 0);
    }
}

/* Анимация переключения */
@keyframes switchBounce {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
}

.main-item.active {
    animation: switchBounce 0.6s ease;
}

/* ================ MAIN WRAPPER ================ */
.main-wrapper {
    margin-left: 305px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    border-radius: 10px;
    transition: margin 0.3s ease;
}

/* ================ ЗАГОЛОВОК СТРАНИЦЫ ================ */
.page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2e2e32;
}

.header-icon {
    width: 45px;
    height: 45px;
    background: #2a2a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon i {
    color: #b1ed49;
    font-size: 22px;
}

.header-text h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: 0.8px;
}

.header-text p {
    color: #a5a5ac;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
}

/* ================ СЕКЦИИ ================ */
.procedure-section {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #2e2e32;
}

/* ================ ЗАГОЛОВКИ СЕКЦИЙ ================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2e2e32;
}

.section-header i {
    color: #b1ed49;
    font-size: 24px;
    width: 34px;
    text-align: center;
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    margin: 0;
}

/* ================ ШАГИ ПРОЦЕДУРЫ ================ */
.procedure-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    background: rgba(42, 42, 46, 0.3);
    border-radius: 8px;
    border-left: 4px solid #b1ed49;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #b1ed49;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #171719;
    flex-shrink: 0;
}

.step-content h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.step-content p, .step-content li {
    color: #d5d5da;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.step-content ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.step-content li {
    margin-bottom: 8px;
}

/* ================ КОМАНДА (сохранена без изменений) ================ */
.command-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(177, 237, 73, 0.1);
    border: 1px solid #b1ed49;
    border-radius: 6px;
    margin-top: 10px;
}

.command-box code {
    font-family: 'Courier New', monospace;
    color: #b1ed49;
    font-size: 12px;
    flex: 1;
}

.copy-btn {
    background: rgba(177, 237, 73, 0.2);
    border: 1px solid #b1ed49;
    border-radius: 4px;
    padding: 6px 10px;
    color: #b1ed49;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #b1ed49;
    color: #121214;
}

/* ================ ОПРОСЫ В ПСИХОЛОГИЧЕСКОМ АНАЛИЗЕ ================ */
.survey-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(42, 42, 46, 0.3);
    border-radius: 8px;
    border: 1px solid #2e2e32;
}

.survey-section h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #b1ed49;
    margin: 0 0 12px 0;
}

.survey-section p {
    color: #d5d5da;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.survey-section ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.survey-section li {
    color: #d5d5da;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.conclusion {
    margin-top: 15px;
    padding: 12px;
    background: #1c1c1f;
    border-left: 3px solid #6a9c2d;
    border-radius: 6px;
    color: #d5d5da;
    font-size: 14px;
    line-height: 1.7;
}

/* ================ РЕСУРСЫ ================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 16px;
}

.resource-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #222226;
    border: 1px solid #2e2e32;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s ease-in-out;
}

.resource-card:hover {
    border: 1px solid #6A9C2D;
    box-shadow: 0px 0px 5px 1px #6A9C2D;
}

.resource-card i {
    color: #b1ed49;
    font-size: 20px;
    width: 32px;
    text-align: center;
}

.resource-card h4 {
    color: #ffffff;
    font-size: 15px;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.resource-card p {
    color: #a5a5ac;
    margin: 0;
    font-size: 13px;
}

.link-arrow {
    color: #b1ed49;
    font-size: 14px;
    margin-left: auto;
}

/* ================ АНИМАЦИИ ================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.procedure-section {
    animation: fadeInUp 0.5s ease forwards;
}

.procedure-section:nth-child(1) { animation-delay: 0.1s; }
.procedure-section:nth-child(2) { animation-delay: 0.2s; }
.procedure-section:nth-child(3) { animation-delay: 0.3s; }
.procedure-section:nth-child(4) { animation-delay: 0.4s; }
.procedure-section:nth-child(5) { animation-delay: 0.5s; }
.procedure-section:nth-child(6) { animation-delay: 0.6s; }

/* ================ ФУТЕР ================ */
.contact-footer {
    position: fixed;
    bottom: 65px;
    left: 10px;
    width: 261px;
    background: #121214;
    border: 1px solid #2a2a2e;
    border-radius: 8px;
    padding: 0 10px 0 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

.contact-footer-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #d0d0d5;
    font-family: 'Montserrat Alternates', sans-serif;
}

.contact-footer-content i {
    color: #b1ed49;
    font-size: 18px;
}

.discord-link {
    color: #b1ed49;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discord-link:hover {
    color: #d4ff6b;
    text-decoration: underline;
}

/* Мобильная версия футера */
@media (max-width: 768px) {
    .contact-footer {
        display: none;
    }

    .mobile-sidebar-container .contact-footer {
        display: block;
        position: static;
        width: auto;
        margin: 16px;
        border-radius: 10px;
    }
}

/* ================ МОБИЛЬНАЯ ВЕРСИЯ (max-width: 768px) ================ */
@media (max-width: 768px) {
    /* Скрываем десктопный сайдбар */
    .sidebar-container {
        display: none;
    }

    /* Кнопка гамбургер */
    .mobile-menu-toggle {
        position: fixed;
        top: 16px;
        right: 16px;
        background: #121214;
        border: 1px solid #2a2a2e;
        border-radius: 50%;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #b1ed49;
        font-size: 24px;
        z-index: 1100;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .mobile-menu-toggle:hover {
        background: #1e1e22;
        color: #d4ff6b;
        transform: scale(1.1);
        filter: drop-shadow(0 0 8px rgba(166, 243, 39, 0.6));
    }

    .mobile-menu-toggle.active .toggle-icon {
        transform: rotate(180deg);
    }

    .mobile-menu-toggle.active .toggle-icon::before {
        content: '\f00d';
    }

    .mobile-menu-toggle .toggle-icon {
        transition: transform 0.3s ease, content 0.3s ease;
    }

    /* Контейнер мобильного сайдбара */
    .mobile-sidebar-container {
        position: fixed;
        top: 0;
        left: -335px;
        width: 335px;
        height: 100vh;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1.3);
        z-index: 1000;
        overflow-y: auto;
    }

    .mobile-sidebar-container.open {
        left: 0;
        animation: elasticBounce 0.5s ease;
    }

    /* Стили сайдбаров */
    .mobile-sidebar {
        background: #121214;
        border: 1px solid #2a2a2e;
        border-radius: 0 16px 16px 0;
        padding: 20px 0;
        display: flex;
        flex-direction: column;
        box-shadow: 4px 0 12px rgba(0, 0, 0, 0.25);
    }

    /* Оверлей */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(5px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Улучшенные отступы и стили меню */
    .sidebar-menu {
        padding: 0 14px;
        gap: 10px;
    }

    .sidebar-item {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 10px;
    }

    .sidebar-item .icon {
        margin-right: 18px;
        font-size: 20px;
    }

    /* Полоса прокрутки */
    .sidebar-menu::-webkit-scrollbar {
        width: 3px;
    }

    .sidebar-menu::-webkit-scrollbar-track {
        background: #1e1e22;
        border-radius: 2px;
    }

    .sidebar-menu::-webkit-scrollbar-thumb {
        background: #b1ed49;
        border-radius: 2px;
    }

    /* Адаптивность для .main-wrapper */
    .main-wrapper {
        margin-left: 0;
        padding: 15px;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-icon i {
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .header-text p {
        font-size: 13px;
    }

    .procedure-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .section-header i {
        font-size: 22px;
        width: 32px;
    }

    .section-header h2 {
        font-size: 17px;
    }

    .step-card {
        padding: 15px;
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 15px;
    }

    .step-content p, .step-content li, .survey-section p, .survey-section li, .conclusion {
        font-size: 13px;
    }

    .command-box {
        padding: 8px;
        gap: 8px;
    }

    .command-box code {
        font-size: 11px;
    }

    .copy-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 12px;
    }

    .resource-card i {
        font-size: 18px;
        width: 30px;
    }

    .resource-card h4 {
        font-size: 14px;
    }

    .resource-card p {
        font-size: 12px;
    }

    .link-arrow {
        font-size: 13px;
    }
}

/* Скрываем мобильные элементы на десктопе */
@media (min-width: 769px) {
    .mobile-menu-toggle,
    .mobile-sidebar-container,
    .mobile-overlay {
        display: none;
    }
}

/* Анимация с отскоком */
@keyframes elasticBounce {
    0% {
        left: -250px;
    }
    60% {
        left: 15px;
    }
    80% {
        left: -5px;
    }
    100% {
        left: 0;
    }
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #1e1e22;
    border: 1px solid #2a2a2e;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #a0a0a7;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-panel:hover {
    color: #ff6b6b;
}

.modal h3 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #b1ed49;
    margin-bottom: 20px;
    border-bottom: 1px solid #2a2a2e;
    padding-bottom: 10px;
}

.modal h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
    margin: 20px 0 15px;
}

.modal p {
    font-size: 14px;
    color: #e0e0e5;
    margin: 15px 0;
}

.warning-box, .deadline-box, .consequences-box, .contact-info {
    background: rgba(106, 156, 45, 0.08);
    border-left: 3px solid #6A9C2D;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning-box i, .deadline-box i, .consequences-box i {
    color: #b1ed49;
    font-size: 20px;
}

.consequences-box i {
    color: #ff9800;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(40, 40, 44, 0.3);
    border-radius: 8px;
    border: 1px solid #2e2e32;
}

.requirement-icon i {
    color: #b1ed49;
    font-size: 24px;
    margin-top: 5px;
}

.requirement-text strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
}

.requirement-text p {
    margin: 5px 0;
    font-size: 14px;
    color: #e0e0e5;
}

.requirement-details ul {
    list-style: disc;
    padding-left: 20px;
    margin: 10px 0 0;
    font-size: 14px;
    color: #d0d0d5;
}

.modal ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.modal ul li {
    padding: 10px 0;
    font-size: 14px;
    color: #e0e0e5;
    border-bottom: 1px solid #2a2a2e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal ul li:last-child {
    border-bottom: none;
}

.modal ul.list-style-disc {
    list-style: disc;
    padding-left: 20px;
}

/* Полоса прокрутки для модального окна */
.modal::-webkit-scrollbar {
    width: 4px;
}

.modal::-webkit-scrollbar-track {
    background: #1e1e22;
    border-radius: 2px;
}

.modal::-webkit-scrollbar-thumb {
    background: #b1ed49;
    border-radius: 2px;
}

/* Адаптивность для модальных окон */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 15px;
        max-height: 85vh;
    }

    .modal h3 {
        font-size: 18px;
    }

    .modal h4 {
        font-size: 16px;
    }

    .modal p, .modal ul li, .requirement-text p, .requirement-details ul {
        font-size: 13px;
    }

    .requirement-item {
        flex-direction: column;
        padding: 12px;
    }

    .warning-box, .deadline-box, .consequences-box, .contact-info {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .modal {
        width: 98%;
        padding: 10px;
    }

    .modal h3 {
        font-size: 16px;
    }

    .modal h4 {
        font-size: 14px;
    }

    .modal p, .modal ul li, .requirement-text strong, .requirement-text p, .requirement-details ul {
        font-size: 12px;
    }

    .requirement-item {
        padding: 10px;
    }

    .warning-box, .deadline-box, .consequences-box, .contact-info {
        padding: 10px;
    }
}

/* Адаптивность для .main-wrapper */
@media (max-width: 1200px) {
    .main-wrapper {
        margin-left: 300px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        margin-left: 0;
        padding: 15px;
    }

    .page-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .header-icon {
        width: 40px;
        height: 40px;
    }

    .header-icon i {
        font-size: 20px;
    }

    .header-text h1 {
        font-size: 22px;
    }

    .header-text p {
        font-size: 13px;
    }

    .procedure-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .section-header i {
        font-size: 22px;
        width: 32px;
    }

    .section-header h2 {
        font-size: 17px;
    }

    .step-card {
        padding: 15px;
        gap: 12px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 15px;
    }

    .step-content p, .step-content li, .survey-section p, .survey-section li, .conclusion {
        font-size: 13px;
    }

    .command-box {
        padding: 8px;
        gap: 8px;
    }

    .command-box code {
        font-size: 11px;
    }

    .copy-btn {
        padding: 5px 8px;
        font-size: 11px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        padding: 12px;
    }

    .resource-card i {
        font-size: 18px;
        width: 30px;
    }

    .resource-card h4 {
        font-size: 14px;
    }

    .resource-card p {
        font-size: 12px;
    }

    .link-arrow {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .main-wrapper {
        padding: 10px;
    }

    .page-header {
        padding: 10px;
    }

    .header-text h1 {
        font-size: 20px;
    }

    .header-text p {
        font-size: 12px;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }

    .step-number {
        margin: 0 auto 10px;
    }

    .command-box {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: fit-content;
        margin: 0 auto;
    }

    .survey-section {
        padding: 12px;
    }

    .survey-section h4 {
        font-size: 15px;
    }
}