/* =========================================================
   WESTEROS.WS — шаблон «westeros» для STRESS WEB R13
   Цвета, шрифты и все блоки сайта
   ========================================================= */

:root {
	--bg: #07090D;
	--bg-deep: #05070A;
	--card: #0E1118;
	--card-2: #141822;
	--field: #0A0D13;
	--line: rgba(233, 228, 216, .10);
	--line-2: rgba(233, 228, 216, .16);
	--text: #E9E4D8;
	--text-hi: #F7EBCD;
	--text-2: #CFC8B9;
	--muted: #B9B1A0;
	--muted-2: #A59E90;
	--gold: #E8B04B;
	--gold-hi: #F6CD7A;
	--gold-ink: #1A1206;
	--green: #4DD68C;
	--green-text: #9BE8BD;
	--red: #E06A5F;
	--red-text: #F0A49C;
	--radius: 18px;
	--font-display: 'Cinzel', Georgia, serif;
	--font-ui: 'Philosopher', 'Trebuchet MS', sans-serif;
	--font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font-body); }
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color .15s; }
a:hover { color: var(--gold-hi); }
h1, h2, h3, h4 { margin: 0; color: var(--text-hi); line-height: 1.2; }
p { margin: 0; }
b, strong { color: var(--text-hi); }
::selection { background: rgba(232, 176, 75, .35); }

.w-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- кнопки ---------- */
.w-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 17px 28px; border-radius: 12px; border: 0; cursor: pointer;
	background: var(--gold); color: var(--gold-ink);
	font: 700 17px/1.1 var(--font-ui); letter-spacing: .8px; text-transform: uppercase;
	transition: background .15s, transform .15s;
}
.w-btn:hover { background: var(--gold-hi); color: var(--gold-ink); }
.w-btn:active { transform: translateY(1px); }
.w-btn[disabled] { opacity: .6; cursor: default; }
.w-btn--ghost { background: rgba(7, 9, 13, .35); color: var(--text-hi); border: 1px solid rgba(247, 235, 205, .38); }
.w-btn--ghost:hover { background: rgba(232, 176, 75, .1); color: var(--text-hi); border-color: var(--gold); }
.w-btn--wide { width: 100%; }
.w-btn svg { flex: none; }
.w-link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }

/* ---------- шапка ---------- */
.w-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.w-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 24px; border-bottom: 1px solid rgba(233, 228, 216, .08); }
.w-logo { font: 800 22px/1 var(--font-display); letter-spacing: 3px; color: #F3E7C9; white-space: nowrap; }
.w-logo span { color: var(--gold); }
.w-logo:hover { color: #FFF4DA; }
.w-nav { display: flex; flex-wrap: wrap; gap: 8px 34px; font: 700 17px/1 var(--font-ui); letter-spacing: 1px; text-transform: uppercase; }
.w-nav a { color: #C9C3B6; padding: 6px 0; border-bottom: 2px solid transparent; }
.w-nav a:hover { color: #FFFFFF; }
.w-nav a.is-active { color: var(--text-hi); border-bottom-color: var(--gold); }
.w-langs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); order: 3; }
.w-langs a { padding: 6px 9px; border-radius: 7px; color: #C9C3B6; font: 700 13px/1 var(--font-ui); letter-spacing: .6px; }
.w-langs a:hover { color: #FFFFFF; }
.w-langs a.is-active { background: var(--gold); color: var(--gold-ink); }
.w-nav { order: 2; margin-left: auto; }
.w-burger { order: 4; }
.w-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text-hi); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- первый экран главной ---------- */
.w-hero {
	min-height: 980px; display: flex; flex-direction: column;
	background-color: var(--bg);
	background-image:
		linear-gradient(180deg, #07090D 0px, #07090D 100px, rgba(7, 9, 13, 0) 128px),
		linear-gradient(90deg, #07090D 0%, rgba(7, 9, 13, .9) 28%, rgba(7, 9, 13, .3) 55%, rgba(7, 9, 13, 0) 70%),
		linear-gradient(0deg, #07090D 0%, rgba(7, 9, 13, 0) 22%),
		url(../images/scene.jpg);
	background-size: 100% 100%, 100% 100%, 100% 100%, 1920px auto;
	background-repeat: no-repeat;
	background-position: 0 0, 0 0, 0 0, center top 100px;
}
.w-hero__body { width: 100%; flex: 1; display: flex; align-items: center; padding-top: 180px; padding-bottom: 170px; }
.w-hero__col { max-width: 640px; display: flex; flex-direction: column; gap: 26px; }
.w-hero__title { font: 800 96px/.95 var(--font-display); letter-spacing: 2px; color: var(--text-hi); }
.w-hero__lead { font-size: 22px; line-height: 1.45; color: #D9D2C3; }
.w-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* статус-бар (module/server.php → server.tpl) */
.w-status { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.w-status__item { display: inline-flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; color: #D9D2C3; }
.w-status__item a { color: inherit; }
.w-status__item a:hover { color: var(--text-hi); }
.w-status__sep { width: 1px; height: 18px; background: rgba(233, 228, 216, .2); }
.w-status__name, .w-status__state { display: inline-flex; align-items: center; gap: 8px; }
/* состояние: data-status="auto|on|off|soon|tech" в server.tpl; при auto — по классу is-on / is-off от движка */
.w-status__state [data-s] { display: none; }
.w-status__state { --st: var(--green); color: var(--green-text); }
.w-status__state svg { stroke: var(--st); }
.w-status__item[data-status="on"] [data-s="on"],
.w-status__item[data-status="off"] [data-s="off"],
.w-status__item[data-status="soon"] [data-s="soon"],
.w-status__item[data-status="tech"] [data-s="tech"],
.w-status__item[data-status="auto"].is-on [data-s="on"],
.w-status__item[data-status="auto"].is-off [data-s="off"],
.w-status__item:not([data-status]).is-on [data-s="on"],
.w-status__item:not([data-status]).is-off [data-s="off"] { display: inline; }
.w-status__item[data-status="off"] .w-status__state,
.w-status__item[data-status="auto"].is-off .w-status__state,
.w-status__item:not([data-status]).is-off .w-status__state { --st: var(--red); color: var(--red-text); }
.w-status__item[data-status="soon"] .w-status__state { --st: var(--gold); color: var(--gold-hi); }
.w-status__item[data-status="tech"] .w-status__state { --st: #F09A4A; color: #F5BE8A; }

/* отсчёт / время работы */
.w-timer { margin-top: 18px; align-self: flex-start; display: flex; align-items: center; flex-wrap: wrap; gap: 22px; padding: 20px 24px; border-radius: 16px; background: rgba(12, 15, 21, .72); border: 1px solid rgba(232, 176, 75, .25); }
.w-timer__label { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.w-timer__dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.w-timer__sub { font-size: 17px; font-weight: 700; color: var(--text-hi); }
.w-timer__boxes { display: flex; gap: 10px; }
.w-timer__box { width: 64px; padding: 8px 0; text-align: center; border-radius: 10px; background: rgba(232, 176, 75, .1); }
.w-timer__num { font: 700 26px/1.2 var(--font-display); color: var(--gold); }
.w-timer__unit { font-size: 11px; color: var(--muted); }
.w-timer.is-live { border-color: rgba(77, 214, 140, .35); }
.w-timer.is-live .w-timer__label { color: var(--green-text); }
.w-timer.is-live .w-timer__dot { display: inline-block; }
.w-timer.is-live .w-timer__box { background: rgba(77, 214, 140, .1); }
.w-timer.is-live .w-timer__num { color: #7FE0AA; }

/* рейты */
.w-rates { position: relative; margin-top: -130px; }
.w-rates__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(233, 228, 216, .12); background: rgba(14, 17, 24, .92); }
.w-rates__item { padding: 22px 24px; border-right: 1px solid rgba(233, 228, 216, .08); }
.w-rates__item:last-child { border-right: 0; }
.w-rates__label { font-size: 13px; color: var(--muted-2); }
.w-rates__value { font: 700 30px/1.25 var(--font-display); color: var(--text-hi); }

/* карточки возможностей */
.w-features { padding-top: 72px; padding-bottom: 40px; }
.w-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.w-feature { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.w-feature:hover { border-color: rgba(232, 176, 75, .55); color: var(--text); }
.w-feature h3 { font-size: 20px; font-weight: 700; font-family: var(--font-body); }
.w-feature p { font-size: 15px; color: var(--muted); }
.w-feature .w-link-arrow { margin-top: auto; color: var(--gold); }

/* главная: новости + топ */
.w-home { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 40px; padding-bottom: 96px; }
.w-home__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.w-home__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- внутренние страницы ---------- */
.w-band {
	min-height: 360px;
	background-color: var(--bg);
	background-image:
		linear-gradient(180deg, #07090D 0px, #07090D 100px, rgba(7, 9, 13, 0) 128px),
		linear-gradient(90deg, #07090D 0%, rgba(7, 9, 13, .92) 34%, rgba(7, 9, 13, .45) 60%, rgba(7, 9, 13, .15) 78%),
		linear-gradient(0deg, #07090D 0%, rgba(7, 9, 13, 0) 55%),
		url(../images/scene.jpg);
	background-size: 100% 100%, 100% 100%, 100% 100%, 1920px auto;
	background-repeat: no-repeat;
	background-position: 0 0, 0 0, 0 0, center top 100px;
}
.w-page { position: relative; margin-top: -170px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; min-height: 40vh; }
.w-page-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.w-page-title { font: 800 60px/1.02 var(--font-display); letter-spacing: 1px; color: var(--text-hi); max-width: 760px; }
.w-page-lead { font-size: 19px; color: #D9D2C3; max-width: 600px; }
.w-back { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #C9C3B6; }
.w-back:hover { color: var(--text-hi); }

.w-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.w-cols__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.w-cols__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

/* ---------- карточки и типографика ---------- */
.w-card { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 30px; }
.w-card--lg { padding: 40px 44px; }
.w-card--flush { padding: 0; overflow: hidden; }
.w-h2 { font: 700 24px/1.2 var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: var(--text-hi); }
.w-h3 { font: 700 18px/1.25 var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: var(--text-hi); }
.w-muted { color: var(--muted); }
.w-small { font-size: 13px; color: var(--muted-2); }
.w-stack { display: flex; flex-direction: column; gap: 20px; }
.w-row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.w-prose { font-size: 16px; line-height: 1.75; color: var(--text-2); }
.w-prose > * + * { margin-top: 1em; }
.w-prose img { border-radius: 12px; }
.w-prose a { text-decoration: underline; text-underline-offset: 3px; }
.w-prose table { width: 100%; border-collapse: collapse; }
.w-prose td, .w-prose th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }

/* шаги */
.w-steps { display: flex; flex-direction: column; gap: 22px; }
.w-step { display: flex; gap: 16px; }
.w-step__n { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(232, 176, 75, .5); color: var(--gold); display: flex; align-items: center; justify-content: center; font: 700 16px var(--font-display); }
.w-step__t { font-weight: 700; color: var(--text-hi); }
.w-step__d { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 3px; }

.w-section-head { display: flex; align-items: center; gap: 14px; }
.w-section-head__n { font: 700 28px/1 var(--font-display); color: var(--gold); }

/* предупреждение */
.w-alert { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border-radius: 14px; font-size: 15px; line-height: 1.5; background: rgba(232, 176, 75, .08); border: 1px solid rgba(232, 176, 75, .35); color: #F3DDA8; }
.w-alert svg { flex: none; margin-top: 1px; }
.w-alert--ok { background: rgba(77, 214, 140, .08); border-color: rgba(77, 214, 140, .35); color: var(--green-text); }
.w-alert--err { background: rgba(224, 106, 95, .08); border-color: rgba(224, 106, 95, .4); color: var(--red-text); }

/* сообщения движка (error.tpl) */
.w-msg { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border-radius: 14px; border: 1px solid rgba(224, 106, 95, .4); background: rgba(224, 106, 95, .08); color: var(--red-text); margin-bottom: 4px; }
.w-msg__title { font: 700 15px var(--font-ui); letter-spacing: .6px; text-transform: uppercase; }
.w-msg.noerror { border-color: rgba(77, 214, 140, .35); background: rgba(77, 214, 140, .08); color: var(--green-text); }
.w-msg a { color: inherit; text-decoration: underline; }

/* ---------- формы ---------- */
.w-form { display: flex; flex-direction: column; gap: 20px; }
.w-field label, .w-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.w-input, .w-form input[type=text], .w-form input[type=password], .w-form input[type=email], .w-form input[type=number], .w-form select, .w-form textarea,
.w-cp input[type=text], .w-cp input[type=password], .w-cp select, .w-cp textarea {
	width: 100%; padding: 15px 16px; border-radius: 12px; border: 1px solid var(--line-2);
	background: var(--field); color: var(--text-hi); font: 500 15px var(--font-body);
	transition: border-color .15s, box-shadow .15s;
}
.w-form select, .w-cp select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23E8B04B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; }
.w-input:focus, .w-form input:focus, .w-form select:focus, .w-form textarea:focus, .w-cp input:focus, .w-cp select:focus, .w-cp textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 176, 75, .2); }
.w-form input::placeholder, .w-cp input::placeholder, .w-input::placeholder { color: #7E7768; }
.w-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.w-form-grid--prefix { grid-template-columns: 160px minmax(0, 1fr); }
.w-input-row { display: flex; gap: 10px; }
.w-input-row .w-input, .w-input-row input { flex: 1; min-width: 0; }
.w-btn-soft { flex: none; padding: 0 18px; border-radius: 12px; border: 1px solid rgba(232, 176, 75, .4); background: rgba(232, 176, 75, .08); color: var(--gold); font: 600 14px var(--font-body); cursor: pointer; }
.w-btn-soft:hover { background: rgba(232, 176, 75, .16); }
.w-captcha { display: flex; gap: 12px; align-items: center; }
.w-captcha img { display: block; border-radius: 8px; border: 1px solid var(--line-2); height: 44px; width: auto; }
.w-captcha .captcha a, .w-captcha #sw-captcha a { display: block; }

/* плитки выбора */
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.w-chip { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: #C9C3B6; font: 600 14px var(--font-body); cursor: pointer; }
.w-chip:hover, .w-chip.is-on { border-color: rgba(232, 176, 75, .6); background: rgba(232, 176, 75, .15); color: var(--gold); }
.w-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.w-tile { position: relative; cursor: pointer; }
.w-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.w-tile span { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--field); font-weight: 700; font-size: 15px; color: var(--text); transition: border-color .15s, background .15s; }
.w-tile small { font-size: 12px; font-weight: 500; color: var(--muted-2); }
.w-tile input:checked + span { border-color: var(--gold); background: rgba(232, 176, 75, .1); }
.w-tile input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232, 176, 75, .3); }

/* калькулятор */
.w-calc { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 14px; background: var(--card-2); }
.w-calc__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.w-calc__row span { color: var(--muted); }
.w-calc__bonus.is-on { color: #7FE0AA; }
.w-calc__total { align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(233, 228, 216, .08); }
.w-calc__sum { font: 700 30px/1 var(--font-display); color: var(--gold); }
.w-pay-status { min-height: 20px; font-size: 14px; color: var(--muted); }
.w-pay-status.success { color: var(--green-text); }
.w-pay-status.error { color: var(--red-text); }

/* бонусы */
.w-bonus { display: flex; flex-direction: column; }
.w-bonus__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.w-bonus__row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(233, 228, 216, .07); font-size: 15px; }
.w-bonus__row b { color: var(--gold); }
.w-bonus p { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* кнопки поддержки */
.w-help { display: flex; flex-wrap: wrap; gap: 8px; }
.w-help a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 14px; }
.w-help a:hover { border-color: rgba(232, 176, 75, .5); color: var(--text-hi); }

/* способы оплаты */
.w-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.w-method { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 190px; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color .15s; }
.w-method:hover { border-color: rgba(232, 176, 75, .55); color: var(--text); }
.w-method__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.w-method__d { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 10px; }
.w-badge { padding: 3px 9px; border-radius: 6px; background: rgba(93, 182, 240, .14); color: #8DCBF5; font-size: 12px; font-weight: 700; white-space: nowrap; }

/* зеркала файлов */
.w-mirror { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.w-mirror:hover { background: #1B2130; border-color: rgba(232, 176, 75, .5); color: var(--text-hi); }
.w-mirror svg { color: var(--gold); }
.w-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.w-inline-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- новости ---------- */
.w-news { display: flex; flex-direction: column; gap: 18px; }
.w-news__img { display: block; width: calc(100% + 88px); max-width: none; margin: -40px -44px 6px; height: 280px; object-fit: cover; }
.w-news__title { font: 700 36px/1.15 var(--font-display); color: var(--text-hi); }
.w-news__title a { color: inherit; }
.w-news__title a:hover { color: var(--gold-hi); }
.w-news__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
#pager { display: flex; flex-wrap: wrap; gap: 6px; }
#pager a { min-width: 42px; padding: 10px 14px; text-align: center; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; }
#pager a:hover { border-color: rgba(232, 176, 75, .5); }
#pager a.nopager { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* ---------- топ PvP (module/pvptop) ---------- */
.w-top { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.w-top li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(233, 228, 216, .07); }
.w-top li:last-child { border-bottom: 0; }
.w-top__n { display: inline-block; width: 26px; font-weight: 700; color: var(--text-2); }
.w-top li:nth-child(-n+3) .w-top__n { color: var(--gold); }
.w-top__v { color: var(--muted-2); font-weight: 600; }
.w-top__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- статистика (application/stat.php) ---------- */
.w-stat-tabs { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.w-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.w-tabs a { padding: 12px 22px; border-radius: 10px; color: #C9C3B6; font: 700 15px var(--font-ui); letter-spacing: .8px; text-transform: uppercase; }
.w-tabs a:hover { color: var(--text-hi); }
.w-tabs a.is-active { background: var(--gold); color: var(--gold-ink); }
#l2servers { display: flex; flex-wrap: wrap; gap: 8px; }
#l2servers a, #l2servers b, #l2servers span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: #D9D2C3; }
#l2servers a:hover { border-color: rgba(232, 176, 75, .5); }
#l2servers a.activ { border-color: var(--gold); color: var(--gold); }
/* разметку таблиц строит application/stat.php: div.l2title + table#l2top */
.w-page .w-stat-tabs ~ .l2title { display: none; }
.w-page .l2title { font: 700 20px/1.3 var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: var(--text-hi); }
.w-page #l2top, .w-page .w-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.w-page #l2top th, .w-page .w-table th { padding: 18px 14px; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); border-bottom: 1px solid var(--line); }
.w-page #l2top td, .w-page .w-table td { padding: 14px; border-bottom: 1px solid rgba(233, 228, 216, .06); color: var(--text-2); vertical-align: middle; }
.w-page #l2top th:first-child, .w-page #l2top td:first-child { padding-left: 24px; }
.w-page #l2top th:last-child, .w-page #l2top td:last-child { padding-right: 24px; }
.w-page #l2top tr:last-child td { border-bottom: 0; }
.w-page #l2top tr.trRowA td { background: rgba(255, 255, 255, .015); }
.w-page #l2top td:first-child { font: 700 15px var(--font-display); color: var(--muted-2); width: 56px; }
.w-page #l2top tbody tr:nth-child(-n+3) td:first-child { color: var(--gold); }
.w-page #l2top thead + tbody tr:first-child td { }
.w-page #l2top td.name b { color: var(--text-hi); }
.w-page #l2top td.name small { color: var(--muted-2); font-size: 13px; }
.w-page #l2top .pvp { color: var(--gold); font-weight: 700; }
.w-page #l2top .pk { color: var(--red-text); font-weight: 700; }
.w-page .l2online { color: var(--green-text); font-weight: 600; }
.w-page .l2offline { color: var(--muted-2); }
.w-page #l2top .error { padding: 20px; color: var(--muted); text-align: center; }
.w-page #l2top .male, .w-page #l2top .female { color: inherit; }
@media (max-width: 760px) { .w-page #l2top { display: block; overflow-x: auto; white-space: nowrap; } }
.w-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.w-kv__item { padding: 18px 20px; border-radius: 14px; background: var(--card-2); }
.w-kv__k { font-size: 13px; color: var(--muted-2); }
.w-kv__v { font: 700 22px/1.3 var(--font-display); color: var(--text-hi); }
.w-castle { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: 16px; background: var(--card-2); }
.w-castle img { width: 164px; height: 123px; object-fit: cover; border-radius: 12px; flex: none; }

/* ---------- личный кабинет ---------- */
.w-cp-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.w-cp-menu a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px; }
.w-cp-menu a:hover { border-color: rgba(232, 176, 75, .55); color: var(--text-hi); }
.w-cp-menu svg { color: var(--gold); flex: none; }
.w-cp { border-radius: 20px; background: var(--card); border: 1px solid var(--line); padding: 32px; color: var(--text-2); }
.w-cp:empty { display: none; }
.w-cp h3, .w-cp h4, .w-cp .smart_content_title { font: 700 18px var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: var(--text-hi); margin: 0 0 16px; }
.w-cp table { width: 100%; border-collapse: collapse; }
.w-cp td, .w-cp th { padding: 10px 8px; border-bottom: 1px solid rgba(233, 228, 216, .07); text-align: left; vertical-align: middle; }
.w-cp th { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.w-cp .tdLeft { width: 38%; color: var(--muted); }
.w-cp input[type=submit], .w-cp input[type=button], .w-cp button, .w-cp .button, .w-cp .chbutton, .w-cp .smart_btn, .w-form input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; padding: 15px 26px; border-radius: 12px; border: 0; cursor: pointer;
	background: var(--gold); color: var(--gold-ink); font: 700 16px/1.1 var(--font-ui); letter-spacing: .8px; text-transform: uppercase;
}
.w-cp input[type=submit]:hover, .w-cp .button:hover, .w-cp .smart_btn:hover { background: var(--gold-hi); }
.w-cp form + form, .w-cp .smart_div + .smart_div { margin-top: 24px; }
.w-cp .smart_div { padding: 0; }

/* ---------- подвал ---------- */
.w-footer { border-top: 1px solid rgba(233, 228, 216, .08); background: var(--bg-deep); }
.w-footer__in { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 28px; }
.w-banners { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.w-banners a { display: block; height: 31px; opacity: .75; transition: opacity .15s; }
.w-banners a:hover { opacity: 1; }
.w-banners img { display: block; height: 31px; width: auto; border-radius: 4px; font-size: 10px; color: var(--muted-2); overflow: hidden; }
.w-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
.w-footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.w-footer__links a { color: #C9C3B6; }
.w-footer__links a:hover { color: var(--text-hi); }
.w-promo { position: fixed; right: 24px; bottom: 24px; z-index: 50; }
.w-promo img { display: block; width: 150px; height: auto; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
	.w-hero { background-position: 0 0, 0 0, 0 0, right -380px top 100px; }
	.w-band { background-position: 0 0, 0 0, 0 0, right -380px top 100px; }
}
@media (max-width: 900px) {
	.w-burger { display: inline-flex; }
	.w-langs { margin-left: auto; }
	.w-nav { display: none; position: absolute; left: 16px; right: 16px; top: 92px; flex-direction: column; gap: 0; padding: 10px 20px; border-radius: 16px; background: rgba(14, 17, 24, .98); border: 1px solid var(--line); }
	.w-nav.is-open { display: flex; }
	.w-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
	.w-nav a:last-child { border-bottom: 0; }
	.w-nav a.is-active { border-bottom-color: var(--line); color: var(--gold); }
	.w-hero { min-height: 0; background-image: linear-gradient(180deg, #07090D 0px, #07090D 100px, rgba(7, 9, 13, .2) 140px), linear-gradient(0deg, #07090D 10%, rgba(7, 9, 13, .55) 55%, rgba(7, 9, 13, .25) 100%), url(../images/scene.jpg); background-size: 100% 100%, 100% 100%, 1000px auto; background-position: 0 0, 0 0, right -60px top 90px; }
	.w-hero__body { padding-top: 360px; padding-bottom: 150px; }
	.w-band { min-height: 300px; background-size: 100% 100%, 100% 100%, 100% 100%, 1000px auto; background-position: 0 0, 0 0, 0 0, right -60px top 90px; }
	.w-page { margin-top: -120px; }
	.w-hero__title { font-size: 64px; }
	.w-hero__lead { font-size: 18px; }
	.w-page-title { font-size: 40px; }
	.w-card--lg { padding: 28px 22px; }
	.w-news__img { width: calc(100% + 44px); margin: -28px -22px 6px; }
	.w-news__title { font-size: 28px; }
	.w-rates__item { border-bottom: 1px solid rgba(233, 228, 216, .08); }
	.w-promo { display: none; }
}
@media (max-width: 560px) {
	.w-wrap { padding-left: 16px; padding-right: 16px; }
	.w-header__in { padding: 20px 16px; }
	.w-hero__title { font-size: 48px; }
	.w-timer { gap: 14px; padding: 16px; }
	.w-timer__box { width: 56px; }
	.w-methods, .w-grid-2 { grid-template-columns: 1fr; }
	.w-form-grid--prefix { grid-template-columns: 1fr; }
	.w-castle { flex-direction: column; align-items: flex-start; }
}

/* кнопка «Скачать данные авторизации» в сообщении после регистрации */
.w-msg .regbutton { margin-top: 10px; padding: 12px 18px; border-radius: 10px; border: 1px solid rgba(77, 214, 140, .45); background: rgba(77, 214, 140, .12); color: var(--green-text); font: 600 14px var(--font-body); cursor: pointer; }
.w-msg .regbutton:hover { background: rgba(77, 214, 140, .2); }
.w-msg form { margin: 0; }

/* анонс на главной (announce.tpl) */
.w-announce .w-news__title { margin-bottom: 2px; }
.w-announce__tag { align-self: flex-start; padding: 4px 10px; border-radius: 6px; background: rgba(232, 176, 75, .14); color: var(--gold); font-size: 13px; font-weight: 700; }
.w-announce__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.w-announce__step { display: block; padding: 16px 18px; border-radius: 12px; background: var(--card-2); border: 1px solid transparent; font-size: 14px; line-height: 1.5; color: var(--text); }
.w-announce__step:hover { border-color: rgba(232, 176, 75, .45); color: var(--text-hi); }
.w-announce__step b { display: block; color: var(--gold); font-size: 13px; margin-bottom: 4px; }

/* кабинет на телефоне: широкие таблицы движка прокручиваются внутри блока */
.w-cp { overflow-x: auto; }
@media (max-width: 760px) {
	.w-cp { padding: 20px; }
	.w-cp table { min-width: 560px; }
	.w-cp-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.w-cp-menu a { padding: 14px; font-size: 14px; }
}
