/* Wars Town — только сайт (body.site-layout), не /panel/ */

/* main.css тянет arrow-down.png — на поддомене 404 */
body.site-layout .lang__arrow {
    background: none !important;
    background-image: none !important;
}

body.site-layout .wt-embers,
body.site-layout .wt-embers__glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 8;
}

body.site-layout .wt-embers__glow {
    z-index: 9;
    background:
        radial-gradient(ellipse 700px 500px at 15% 85%, rgba(212, 168, 67, 0.10), transparent),
        radial-gradient(ellipse 600px 500px at 85% 15%, rgba(212, 140, 43, 0.07), transparent),
        radial-gradient(ellipse 900px 400px at 50% 50%, rgba(180, 130, 40, 0.05), transparent),
        radial-gradient(ellipse 400px 400px at 60% 70%, rgba(212, 120, 30, 0.06), transparent);
}

body.site-layout .wt-embers__ember {
    position: absolute;
    border-radius: 50%;
    animation: wtEmberRise linear infinite;
}

@keyframes wtEmberRise {
    0% { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    5% { opacity: 0.9; }
    40% { opacity: 0.7; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-110vh) translateX(100px) scale(0.15); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    body.site-layout .wt-embers,
    body.site-layout .wt-embers__glow { display: none; }
}

body.site-layout .page .footer__policies {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 16px 28px;
    margin-top: 15px;
    white-space: nowrap;
}

body.site-layout .page .footer__policies a {
    flex: 0 0 auto;
    white-space: nowrap;
}

body.site-layout .page .footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

body.site-layout .page .footer__navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px 40px;
    width: 100%;
    margin: 0;
}

body.site-layout .page .footer__site {
    max-width: none;
    min-width: 0;
}

body.site-layout .page .footer__fnav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 0;
    min-width: 0;
}

body.site-layout .page .footer__bnrs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px 16px;
}

body.site-layout .page .footer__bnrs a {
    display: inline-flex;
    line-height: 0;
}

body.site-layout .page .footer__bnrs img {
    display: block;
    width: 100px;
    height: 40px;
    object-fit: contain;
}

@media (max-width: 720px) {
    body.site-layout .page .footer__policies {
        flex-wrap: wrap;
        white-space: normal;
        gap: 12px 20px;
    }

    body.site-layout .page .footer__navigation {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    body.site-layout .page .footer__fnav,
    body.site-layout .page .footer__bnrs {
        justify-content: flex-start;
    }
}

/* Футер: gwi-шрифт с основного домена не грузится на ru.* (CORS / 404 woff) */
body.site-layout .scl__item .scl__icon {
    position: relative;
    z-index: 5;
    font-size: 14px;
    line-height: 1;
    color: #e8e0d4;
    transition: color .3s;
}

body.site-layout .scl__item:hover .scl__icon {
    color: #fff;
}

body.site-layout .fancybox-slide--inline .fancybox-content {
    padding: 0;
    background: transparent;
    overflow: visible;
}

body.site-layout .ww {
    position: relative;
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
    background: #1a1816;
    border: 1px solid rgba(212, 168, 67, 0.22);
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    overflow: hidden;
}

body.site-layout .ww__inner { padding: 0; }
body.site-layout .ww__body { padding: 28px 28px 24px; }

body.site-layout .ww__head {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.site-layout .ww__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #ccc;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    padding: 0;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

/* main.css крутит крестик в линию — отключаем */
body.site-layout .ww__close:before,
body.site-layout .ww__close:after {
    content: none !important;
    display: none !important;
    transition: none !important;
    transform: none !important;
}

body.site-layout .ww__close:hover {
    background: rgba(212, 168, 67, 0.12);
    border-color: rgba(212, 168, 67, 0.35);
    color: #fff;
}

body.site-layout .ww__close:hover:before,
body.site-layout .ww__close:hover:after {
    transform: none !important;
    filter: none !important;
}

body.site-layout .ww .title {
    font-family: "Roboto Slab", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.35;
}

body.site-layout .ww .title .color-orange { color: #d4a843 !important; }
body.site-layout .title_mb_small { margin-bottom: 0; }
body.site-layout .ww__content { display: flex; flex-direction: column; gap: 16px; }

body.site-layout .wt-files-modal__step {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(245, 240, 232, 0.85);
}

body.site-layout .wt-files-modal__step--second {
    margin-top: 4px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.site-layout .wt-files-modal__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.site-layout .wt-files-card {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 168, 67, 0.16);
    border-radius: 10px;
}

body.site-layout .wt-files-card__info { flex: 1 1 auto; min-width: 0; }

body.site-layout .wt-files-card__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #f5f0e8;
    line-height: 1.35;
}

body.site-layout .wt-files-card__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(200, 180, 140, 0.65);
}

body.site-layout .wt-files-card__links {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    justify-content: flex-end;
}

body.site-layout .wt-files-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 12px;
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.18) 0%, rgba(232, 135, 42, 0.12) 100%);
    border: 1px solid rgba(212, 168, 67, 0.35);
    border-radius: 8px;
    color: #f5f0e8 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

body.site-layout .wt-files-card__link:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 168, 67, 0.65);
    background: linear-gradient(135deg, rgba(212, 168, 67, 0.28) 0%, rgba(232, 135, 42, 0.18) 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    color: #fff !important;
}

body.site-layout .wt-files-card__icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    overflow: hidden;
}

body.site-layout .wt-files-card__icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

body.site-layout .wt-files-card__icon i { font-size: 14px; color: #d4a843; }
body.site-layout .wt-files-card__label { line-height: 1.2; white-space: nowrap; }

body.site-layout .wt-files-card__empty {
    margin: 0;
    font-size: 12px;
    color: rgba(200, 180, 140, 0.55);
}

body.site-layout .wt-files-card__empty--center { text-align: center; padding: 12px 0; }

body.site-layout .wt-files-modal__alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(220, 60, 60, 0.08);
    border: 1px solid rgba(220, 80, 80, 0.25);
    border-radius: 8px;
}

body.site-layout .wt-files-modal__alert-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f07178;
    font-size: 16px;
    line-height: 1;
}
body.site-layout .wt-files-modal__alert-icon img { width: 22px; height: 22px; display: block; }

body.site-layout .wt-files-modal__alert-text {
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 210, 210, 0.9);
}

body.site-layout .ww__btns { display: flex; justify-content: center; }

body.site-layout .wt-files-modal__reg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #c86a10 0%, #e07818 45%, #f0a830 100%) !important;
    border: 1px solid rgba(255, 200, 100, 0.25);
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: filter .2s, transform .2s;
}

body.site-layout .wt-files-modal__reg:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff !important;
}

@media (max-width: 560px) {
    body.site-layout .ww__body { padding: 22px 18px 18px; }
    body.site-layout .wt-files-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    body.site-layout .wt-files-card__links {
        flex-wrap: wrap;
        justify-content: stretch;
        width: 100%;
    }
    body.site-layout .wt-files-card__link {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        min-width: 120px;
    }
}
