/* ==========================================================================
   CRDGAME — страница «Доступ запрещён»
   dostup_zapret.css
   Версия: 20260620_3
   ========================================================================== */

.access-denied-page * {
    box-sizing: border-box;
}

/* Убираем лишние фоны от новой версии */
.access-denied-page,
.access-denied-page #casing,
.access-denied-page #content,
.access-denied-page .wide-page,
.access-denied-page .access-denied-content,
.access-denied-page .forum-box {
    background: transparent !important;
}

/* Отступ от большого логотипа Crimson Desert */
.access-denied-page .header-logo-center {
    margin-bottom: 34px !important;
}

/* Секция */
.access-denied-page .crd-access-page {
    position: relative;
    width: 100%;
    min-height: auto !important;

    padding: 0 0 70px !important;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    background: transparent !important;
    overflow: visible !important;
}

/* Лишний декоративный фон отключаем */
.access-denied-page .crd-access-bg {
    display: none !important;
}

/* Карточка — ближе к старому CRDGAME-стилю */
.access-denied-page .crd-access-card {
    position: relative;
    overflow: hidden;

    max-width: 960px;
    width: calc(100% - 30px);
    min-height: 330px;

    margin: 0 auto;
    padding: 56px 64px 52px;

    border: 1px solid rgba(174, 137, 84, 0.34);
    border-radius: 0;

    background:
        linear-gradient(180deg, rgba(20, 17, 13, 0.32) 0%, rgba(20, 17, 13, 0.92) 100%),
        radial-gradient(ellipse at center, rgba(174, 137, 84, 0.10) 0%, rgba(20, 17, 13, 0.08) 38%, rgba(20, 17, 13, 0.86) 100%),
        linear-gradient(135deg, rgba(24, 19, 15, 0.94) 0%, rgba(12, 10, 8, 0.97) 100%) !important;

    box-shadow:
        0 4px 22px rgba(0, 0, 0, 0.54),
        inset 0 1px 0 rgba(174, 137, 84, 0.12);

    color: #c5b8aa;
    font-family: "Open Sans", Arial, sans-serif;
    text-align: center;
}

/* Убираем новое сильное свечение */
.access-denied-page .crd-access-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(90deg, transparent, rgba(174, 137, 84, 0.055), transparent),
        radial-gradient(circle at 50% 0%, rgba(174, 137, 84, 0.075), transparent 42%);

    opacity: 1;
}

/* Декоративные уголки */
.access-denied-page .crd-access-card::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 14px;

    width: 26px;
    height: 26px;

    border-right: 1px solid rgba(174, 137, 84, 0.50);
    border-bottom: 1px solid rgba(174, 137, 84, 0.50);

    pointer-events: none;
}

.access-denied-page .crd-access-card__glow {
    display: none !important;
}

/* Верхний левый угол отдельным элементом через иконку-контейнер */
.access-denied-page .crd-access-icon::before {
    content: "";
    positionimportant;
}

/* Верхний левый угол отдельным элементом через и: absolute;
    top: -42px;
    left: -330px;

    width: 26px;
    height: 26px;

    border-top: 1px solid rgba(174, 137, 84, 0.50);
    border-left: 1px solid rgba(174, 137, 84, 0.50);

    pointer-events: none;
}

/* Общий слой поверх фона карточки */
.access-denied-page .crd-access-icon,
.access-denied-page .crd-access-kicker,
.access-denied-page .crd-access-title,
.access-denied-page .crd-access-divider,
.access-denied-page .crd-access-text,
.access-denied-page .crd-access-note,
.access-denied-page .crd-access-actions {
    position: relative;
    z-index: 2;
}

/* Иконка */
.access-denied-page .crd-access-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(174, 137, 84, 0.42);
    border-radius: 50%;

    background: radial-gradient(circle, rgba(174, 137, 84, 0.16) 0%, rgba(20, 17, 13, 0.58) 100%);
    box-shadow: none;
}

.access-denied-page .crd-access-icon .material-icons {
    font-size: 32px;
    color: #c99b58;
    text-shadow: none;
}

/* Надпись над заголовком */
.access-denied-page .crd-access-kicker {
    margin-bottom: 12px;

    font-family: "Russo One", "Open Sans", Arial, sans-serif;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 2.8px;
    text-transform: uppercase;

    color: #ae8954;
}

/* Заголовок */
.access-denied-page .crd-access-title {
    margin: 0 0 14px;

    font-family: "Russo One", "Open Sans", Arial, sans-serif;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: 0.4px;

    color: #eadcc5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.68);
}

/* Разделитель */
.access-denied-page .crd-access-divider {
    width: 120px;
    height: 1px;
    margin: 22px auto 24px;

    background: linear-gradient(90deg, transparent, rgba(174, 137, 84, 0.44), transparent);
}

/* Описание */
.access-denied-page .crd-access-text {
    max-width: 620px;
    margin: 0 auto;

    font-size: 15px;
    line-height: 1.65;
    color: #b9ab9b;
}

/* Инфоблок */
.access-denied-page .crd-access-note {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 13px 16px;

    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;

    text-align: left;

    background: rgba(20, 17, 13, 0.48);
    border: 1px solid rgba(174, 137, 84, 0.22);
    border-left: 3px solid rgba(174, 137, 84, 0.58);

    color: #b9a98f;
    font-size: 13px;
    line-height: 1.55;
}

.access-denied-page .crd-access-note .material-icons {
    flex: 0 0 auto;
    margin-top: 1px;

    font-size: 18px;
    color: #c99b58;
}

/* Кнопки */
.access-denied-page .crd-access-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;

    margin-top: 30px;
}

.access-denied-page .crd-access-btn {
    min-height: 46px;
    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-family: "Open Sans", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.35px;
    text-decoration: none !important;
    white-space: nowrap;
    text-transform: none;

    border: 1px solid rgba(174, 137, 84, 0.46);
    border-radius: 0;
    cursor: pointer;

    color: #d6c6b2 !important;
    background: rgba(20, 17, 13, 0.50);

    box-shadow: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.access-denied-page .crd-access-btn .material-icons {
    font-size: 18px;
    color: currentColor;
}

.access-denied-page .crd-access-btn:hover {
    color: #f0e6d4 !important;
    border-color: rgba(216, 184, 126, 0.70);
    background: rgba(174, 137, 84, 0.14);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

/* Основная кнопка */
.access-denied-page .crd-access-btn--primary {
    color: #1a140d !important;
    background: linear-gradient(180deg, #d8b87e 0%, #ae8954 100%);
    border-color: rgba(216, 184, 126, 0.62);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.access-denied-page .crd-access-btn--primary:hover {
    color: #1a140d !important;
    background: linear-gradient(180deg, #e6c98f 0%, #c0965e 100%);
    border-color: rgba(216, 184, 126, 0.82);
}

/* На случай если старые классы где-то остались */
.access-denied-page .access-denied-section {
    padding: 0 0 70px !important;
}

.access-denied-page .access-denied-wrapper {
    background: transparent;
}

/* Адаптив */
@media (max-width: 900px) {
    .access-denied-page .header-logo-center {
        margin-bottom: 26px !important;
    }

    .access-denied-page .crd-access-card {
        width: calc(100% - 24px);
        padding: 46px 34px 44px;
    }

    .access-denied-page .crd-access-title {
        font-size: 34px;
    }

    .access-denied-page .crd-access-icon::before {
        display: none;
    }
}

@media (max-width: 600px) {
    .access-denied-page .header-logo-center {
        margin-bottom: 20px !important;
    }

    .access-denied-page .crd-access-page {
        padding: 0 0 50px !important;
    }

    .access-denied-page .crd-access-card {
        width: calc(100% - 20px);
        min-height: auto;
        padding: 40px 22px 38px;
    }

    .access-denied-page .crd-access-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 18px;
    }

    .access-denied-page .crd-access-icon .material-icons {
        font-size: 29px;
    }

    .access-denied-page .crd-access-title {
        font-size: 29px;
    }

    .access-denied-page .crd-access-text {
        font-size: 14px;
    }

    .access-denied-page .crd-access-note {
        font-size: 12px;
        padding: 12px 13px;
    }

    .access-denied-page .crd-access-actions {
        flex-direction: column;
        gap: 10px;
    }

    .access-denied-page .crd-access-btn {
        width: 100%;
    }
}