/*
Theme Name: Мир Танков
Theme URI: https://mirtankov.net
Author: Mir Tankov Team
Description: Тёмная игровая тема главной страницы фан-портала «Мир Танков»: герой-баннер, LIVE-панель, подборка дня, сервисы, профиль игрока, моды, видео и поиск клана.
Version: 1.0.0
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirtankov
Tags: dark, gaming, portal, one-column, custom-menu
*/

/* ============================================================
   МИР ТАНКОВ — главная страница
   Тема: тёмный игровой портал. Сетка 984px, панели 12px gap.
   ============================================================ */

:root {
  --bg: #0f1013;
  --bg-header: #0a0b0d;
  --panel: #16171b;
  --panel-2: #1d1f24;
  --panel-3: #23252b;
  --border: #26282e;
  --border-2: #303239;
  --red: #cf3a2b;
  --red-bright: #e04a38;
  --red-dark: #8f1d13;
  --text: #ffffff;
  --muted: #8b8e97;
  --faint: #63666e;
  --gold: #e2a13c;
  --star: #dfa032;
  --purple: #a06be0;
  --green: #6cc25b;
  --yellow: #e7c94a;
  --font-display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', Arial, 'Liberation Sans', sans-serif;
  --radius: 10px;
}

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

html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 984px; max-width: calc(100% - 32px); margin: 0 auto; }

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ---------- заголовки панелей ---------- */
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.link-more {
  font-size: 9px; font-weight: 700; letter-spacing: .08em;
  color: var(--red-bright); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
}
.link-more:hover { color: #ff6a55; }
.arrow { font-family: Arial, sans-serif; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid #1c1e22;
}
.header-top {
  display: flex; align-items: center; gap: 20px;
  height: 48px;
}
.brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; }
.brand-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: .05em; line-height: 1.05; text-transform: uppercase;
}
.brand-sub {
  font-size: 6.5px; font-weight: 700; letter-spacing: .32em;
  color: var(--faint); text-transform: uppercase; margin-top: 2px;
}

.search { flex: 1 1 auto; display: flex; justify-content: center; }
.search-box {
  display: flex; align-items: center;
  width: 300px; height: 30px;
  background: #141519; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.search-box .ic { flex: 0 0 auto; margin: 0 8px 0 10px; opacity: .55; }
.search-box input {
  flex: 1 1 auto; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--text); font-family: var(--font-body); font-size: 10.5px;
}
.search-box input::placeholder { color: var(--faint); }
.search-btn {
  flex: 0 0 auto; width: 34px; height: 100%;
  background: #1d1f24; border: 0; border-left: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: var(--panel-3); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.icon-btn { position: relative; display: inline-flex; opacity: .8; }
.icon-btn:hover { opacity: 1; }
.icon-btn .dot {
  position: absolute; top: -2px; right: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red-bright); border: 1px solid var(--bg-header);
}
.user { display: flex; align-items: center; gap: 8px; margin-left: 4px; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-2); object-fit: cover; }
.user-name { font-size: 11px; font-weight: 700; line-height: 1.2; }
.user-status { font-size: 9px; color: var(--gold); }

.main-nav {
  display: flex; gap: 34px; height: 34px; align-items: stretch;
}
.main-nav a {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); border-bottom-color: var(--red-bright); }

/* ============================================================
   РЯДЫ СЕТКИ
   ============================================================ */
main { padding: 12px 0 16px; }
.row { display: flex; gap: 12px; margin-bottom: 12px; }

/* ============================================================
   ГЕРОЙ + LIVE
   ============================================================ */
.row-hero { gap: 18px; }
.hero-col { flex: 0 0 750px; width: 750px; }

.hero {
  position: relative; height: 260px;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(420px 240px at 24% 10%, #33343a 0%, rgba(24,25,29,0) 70%),
    radial-gradient(500px 300px at 10% 90%, #26221f 0%, rgba(22,23,27,0) 60%),
    #191a1e;
  border: 1px solid var(--border);
}
.hero-art {
  position: absolute; top: 0; right: 0; height: 100%; width: 460px;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 24%);
  mask-image: linear-gradient(to right, transparent 0, #000 24%);
}
.hero-inner { position: relative; z-index: 2; padding: 15px 24px; height: 100%; display: flex; flex-direction: column; }
.badge-main {
  align-self: flex-start;
  background: var(--red); color: #fff;
  font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 3px;
}
.hero-meta { margin-top: 9px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-meta .sep { color: var(--faint); font-weight: 400; margin: 0 4px; }
.hero-meta .upd { color: var(--muted); }
.hero h1 {
  font-family: var(--font-display); font-size: 37px; font-weight: 700;
  line-height: 1.08; letter-spacing: .02em; text-transform: uppercase;
  margin-top: 6px; text-shadow: 0 2px 14px rgba(0,0,0,.55);
}
.hero-sub { margin-top: 9px; font-size: 11.5px; color: #b6b9c0; max-width: 250px; line-height: 1.5; }
.btn-red {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #d24534 0%, #a4241a 100%);
  border: 1px solid #e05a45; border-radius: 6px;
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  padding: 0 18px; height: 36px;
  box-shadow: 0 6px 18px rgba(190,45,30,.28);
}
.btn-red:hover { filter: brightness(1.08); }
.hero .btn-red { margin-top: auto; align-self: flex-start; }

.hero-dots { display: flex; align-items: center; gap: 7px; padding: 10px 4px 0; }
.hero-dots span { width: 7px; height: 7px; border-radius: 4px; background: #33353c; }
.hero-dots .is-active { width: 20px; background: var(--gold); }
.hero-dots .is-next { background: var(--red); }

/* ---------- LIVE панель ---------- */
.live-panel {
  flex: 1 1 auto; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.live-head {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  background: linear-gradient(90deg, #b22417 0%, #7e150c 100%);
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: .2em;
}
.live-body { flex: 1; display: flex; flex-direction: column; padding: 8px 12px 12px; }
.live-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
}
.live-row + .live-row { border-top: 1px solid #1e2025; }
.live-ic { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-2); }
.live-label { font-size: 7.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.live-value { font-size: 15px; font-weight: 800; line-height: 1.25; }
.live-value.green { color: var(--green); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: auto; box-shadow: 0 0 8px rgba(108,194,91,.9); }
.ping-btn {
  margin-top: auto;
  display: flex; align-items: center; gap: 9px;
  height: 34px; padding: 0 12px;
  background: transparent; border: 1px solid var(--border-2); border-radius: 8px;
  color: #c9ccd3; font-size: 10px; font-weight: 600;
}
.ping-btn:hover { border-color: #43454d; color: #fff; }
.ping-btn .arrow { margin-left: auto; color: var(--muted); }

/* ============================================================
   ЛЕНТА НОВОСТЕЙ (5 плиток)
   ============================================================ */
.tiles { display: flex; gap: 8px; width: 750px; max-width: 100%; margin-bottom: 12px; }
.tile {
  position: relative; flex: 1 1 0;
  height: 72px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.tile-kicker { font-size: 7.5px; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.tile-kicker.orange { color: var(--gold); }
.tile-kicker.violet { color: #b98df0; }
.tile-kicker.gold { color: var(--gold); }
.tile-big { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.05; }
.tile-text { font-size: 10px; line-height: 1.35; color: #e2e4e9; }
.tile-text .dim { color: var(--muted); }
.tile-note { font-size: 9px; color: var(--muted); }
.tile-bg {
  position: absolute; top: 0; right: 0; height: 100%; z-index: 0;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 55%);
  mask-image: linear-gradient(to right, transparent 0, #000 55%);
}
.tile > *:not(.tile-bg):not(.tile-media) { position: relative; z-index: 1; }
.tile-media {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 56px; border-radius: 6px; object-fit: cover;
  border: 1px solid var(--border-2);
}
.tile-media.right { right: 10px; }
.tile-media.left { left: 10px; width: 46px; height: 56px; }
.tile.has-left { padding-left: 66px; }
.tile.has-right { padding-right: 62px; }
.tile.t-x5 { background: linear-gradient(90deg, #241a10 0%, #17150f 100%); }
.tile.t-x5 .tile-bg {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
  mask-image: linear-gradient(to right, transparent 0, #000 45%);
}

/* ============================================================
   ПОДБОРКА ДНЯ + ТАНКОВЫЙ ЭКСПЕРТ AI
   ============================================================ */
.daily { flex: 0 0 680px; width: 680px; padding: 13px 14px 15px; }
.daily-nav { display: flex; gap: 6px; }
.daily-nav button {
  width: 24px; height: 24px;
  background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 6px;
  color: var(--muted); font-size: 11px; line-height: 1;
}
.daily-nav button:hover { color: #fff; border-color: #43454d; }
.cards { display: flex; gap: 7px; margin-top: 12px; }
.card { flex: 1 1 0; min-width: 0; }
.card img {
  width: 100%; height: 102px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
}
.card figcaption {
  margin-top: 9px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .05em; line-height: 1.3; text-transform: uppercase;
}
.card figcaption .dim { color: var(--muted); }
.card:hover img { border-color: #3a3c44; }

.ai-expert { flex: 1 1 auto; position: relative; overflow: hidden; padding: 13px 14px 14px; display: flex; flex-direction: column; }
.badge-beta {
  background: rgba(160,107,224,.18); color: #c39bf2; border: 1px solid rgba(160,107,224,.5);
  font-size: 7.5px; font-weight: 800; letter-spacing: .14em;
  padding: 2px 6px; border-radius: 3px; text-transform: uppercase;
}
.ai-robot {
  position: absolute; top: 30px; right: 0; width: 122px; height: 114px; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
  mask-image: linear-gradient(to right, transparent 0, #000 22%);
}
.ai-bubble {
  position: relative; z-index: 1;
  margin-top: 14px; width: 168px;
  background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 10px;
  border-bottom-left-radius: 3px;
  padding: 9px 11px; font-size: 10px; line-height: 1.5; color: #d6d8de;
}
.ai-input {
  position: relative; z-index: 1;
  margin-top: auto; display: flex; align-items: stretch;
  border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden;
  background: #141519;
}
.ai-input .ph {
  flex: 1; padding: 8px 10px;
  font-size: 9.5px; line-height: 1.45; color: var(--faint);
}
.ai-send {
  flex: 0 0 42px; border: 0;
  background: linear-gradient(180deg, #d24534, #a4241a);
  display: flex; align-items: center; justify-content: center;
}
.ai-send:hover { filter: brightness(1.08); }

/* ============================================================
   СЕРВИСЫ + МОЙ ПРОФИЛЬ
   ============================================================ */
.services { flex: 0 0 680px; width: 680px; padding: 13px 14px 14px; }
.services-grid {
  margin-top: 12px;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.service {
  display: flex; align-items: center; gap: 9px;
  height: 52px; padding: 0 10px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  color: #e6e8ec;
}
.service:hover { border-color: #3d3f47; background: #22242a; }
.service .ic { flex: 0 0 auto; }
.service span { font-size: 8.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; }

.profile { flex: 1 1 auto; padding: 13px 14px 12px; display: flex; flex-direction: column; }
.profile-user { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.profile-user img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-2); object-fit: cover; }
.profile-user b { font-size: 12.5px; }
.profile-user .clan-tag { color: var(--muted); font-weight: 600; }
.profile-banner {
  margin-top: 10px; width: 100%; height: 58px; object-fit: cover;
  border-radius: 8px; border: 1px solid var(--border);
}
.profile-stats {
  display: flex; margin-top: 10px;
  border-bottom: 1px solid #1e2025; padding-bottom: 10px;
}
.pstat { flex: 1; text-align: center; }
.pstat + .pstat { border-left: 1px solid #1e2025; }
.pstat .lbl {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: 7.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase;
}
.pstat .val { font-size: 16px; font-weight: 800; margin-top: 3px; }
.val.purple { color: var(--purple); }
.val.green { color: var(--green); }
.val.yellow { color: var(--yellow); }

.profile-award { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.award-text { flex: 1; }
.award-line { display: flex; align-items: baseline; justify-content: space-between; font-size: 9.5px; color: var(--muted); }
.award-line b { color: #fff; font-size: 10px; }
.progress { margin-top: 7px; height: 6px; border-radius: 3px; background: #26282e; overflow: hidden; }
.progress i { display: block; height: 100%; width: 47%; border-radius: 3px; background: linear-gradient(90deg, #d24534, #a4241a); }
.award-crate { width: 46px; height: 42px; object-fit: cover; border-radius: 6px; }

.profile-tabs {
  display: flex; margin-top: 11px; padding-top: 10px;
  border-top: 1px solid #1e2025;
}
.ptab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 7px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 2px solid transparent; text-align: center;
}
.ptab + .ptab { border-left: 1px solid #1e2025; }
.ptab.active { color: #fff; border-bottom-color: var(--red-bright); }
.ptab svg { opacity: .8; }

/* ============================================================
   4 ПАНЕЛИ: ТАНКИ / МОДЫ / ВИДЕО / КЛАН
   ============================================================ */
.row-quad { align-items: stretch; }
.p-tanks { flex: 0 0 232px; width: 232px; padding: 13px 14px; position: relative; overflow: hidden; }
.p-mods  { flex: 0 0 228px; width: 228px; padding: 13px 14px; display: flex; flex-direction: column; }
.p-videos{ flex: 0 0 196px; width: 196px; padding: 13px 14px; display: flex; flex-direction: column; }
.p-clan  { flex: 1 1 auto; padding: 13px 14px; display: flex; flex-direction: column; }

.p-tanks .panel-title, .p-clan .panel-title { font-size: 13px; }
.p-mods .panel-title, .p-videos .panel-title { font-size: 12px; letter-spacing: .04em; }

.tanks-top { position: relative; height: 118px; margin: 8px -14px 0 -14px; }
.tanks-art {
  position: absolute; left: 0; top: 0; width: 140px; height: 118px; object-fit: cover;
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 30%);
  mask-image: linear-gradient(to left, transparent 0, #000 30%);
}
.tanks-nums { position: absolute; right: 14px; top: 6px; text-align: left; width: 82px; }
.tanks-nums .lbl { font-size: 8px; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.tanks-nums .num { font-size: 21px; font-weight: 800; line-height: 1.15; margin-bottom: 8px; }
.tanks-nums .num.small { font-size: 17px; }
.flags { margin-top: 8px; }
.flag-row { display: flex; align-items: center; gap: 8px; padding: 4.5px 0; font-size: 10.5px; color: #d6d8de; }
.flag-row b { margin-left: auto; color: #fff; }
.flag { width: 16px; height: 11px; border-radius: 2px; flex: 0 0 auto; display: block; }
.more-nations { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 9.5px; color: var(--muted); }
.more-nations .plus {
  width: 16px; height: 16px; border-radius: 4px; background: var(--panel-3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: #c9ccd3;
}

/* моды */
.mod-list { margin-top: 4px; }
.mod { display: flex; gap: 9px; padding: 8px 0; }
.mod + .mod { border-top: 1px solid #1e2025; }
.mod img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border-2); }
.mod-name { font-size: 10.5px; font-weight: 700; }
.mod-upd { font-size: 8px; color: var(--muted); margin-top: 1px; }
.mod-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 8.5px; }
.stars { color: var(--star); font-size: 8px; letter-spacing: 1px; }
.mod-rate { font-weight: 700; }
.mod-dl { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.mod-body { flex: 1; min-width: 0; }
.see-all {
  margin-top: auto; padding-top: 9px; text-align: center;
  font-size: 9px; color: var(--muted); letter-spacing: .02em;
}
.see-all:hover { color: #fff; }

/* видео */
.video-list { margin-top: 6px; }
.video { display: flex; gap: 9px; padding: 7px 0; }
.video + .video { border-top: 1px solid #1e2025; }
.video-thumb { position: relative; flex: 0 0 78px; }
.video-thumb img { width: 78px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-2); }
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(10,10,12,.72); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
}
.play::after { content: ''; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
.video-body { flex: 1; min-width: 0; }
.video-title { font-size: 9.5px; font-weight: 600; line-height: 1.35; }
.video-date { display: flex; justify-content: space-between; font-size: 8px; color: var(--muted); margin-top: 4px; }

/* клан */
.clan-top { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; }
.clan-emblem { width: 64px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); flex: 0 0 auto; }
.clan-name { font-size: 12.5px; font-weight: 800; line-height: 1.3; padding-top: 2px; }
.clan-table { flex: 1; margin-top: 8px; }
.clan-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 10px; }
.clan-row .k { color: var(--muted); }
.clan-row .v { font-weight: 700; }
.btn-clan {
  margin-top: 10px; width: 100%; height: 38px;
  background: linear-gradient(180deg, #d24534 0%, #a4241a 100%);
  border: 1px solid #e05a45; border-radius: 8px;
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.btn-clan:hover { filter: brightness(1.08); }

/* ============================================================
   НИЖНИЕ БАННЕРЫ
   ============================================================ */
.banners { margin-bottom: 20px; }
.banner {
  position: relative; flex: 1 1 0; height: 78px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 20px 0 28px;
}
.banner-art {
  position: absolute; top: 0; right: 0; height: 100%; z-index: 0; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40%);
  mask-image: linear-gradient(to right, transparent 0, #000 40%);
}
.banner > h3, .banner > p { position: relative; z-index: 1; }
.banner h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}
.banner p { font-size: 9.5px; color: var(--muted); margin-top: 3px; max-width: 170px; line-height: 1.4; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.site-footer { background: var(--bg-header); border-top: 1px solid #1c1e22; }
.footer-main { display: flex; gap: 40px; padding: 30px 0 26px; }
.footer-brand { flex: 0 0 216px; }
.footer-brand-row { display: flex; align-items: center; gap: 11px; }
.footer-logo { width: 46px; height: 46px; border-radius: 10px; }
.footer-brand-row b { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.footer-desc { margin-top: 12px; font-size: 9.5px; color: var(--muted); line-height: 1.55; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.social {
  width: 26px; height: 26px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.social:hover { filter: brightness(1.15); }
.social.vk { background: #4a76a8; }
.social.tg { background: #2aabee; }
.social.ds { background: #5865f2; }
.social.yt { background: #e02f2f; }
.social.tw { background: #9146ff; }

.footer-nav { flex: 1; display: flex; gap: 44px; padding-top: 4px; }
.fcol h4 { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 11px; }
.fcol a { display: block; font-size: 9.5px; color: var(--muted); padding: 3.5px 0; }
.fcol a:hover { color: #fff; }

.footer-join { flex: 0 0 170px; padding-top: 4px; }
.footer-join h4 { font-size: 10px; font-weight: 800; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; }
.join-row { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.join-ds {
  width: 30px; height: 30px; border-radius: 8px; background: #5865f2;
  display: inline-flex; align-items: center; justify-content: center;
}
.join-row span { font-size: 9.5px; color: var(--muted); }

.footer-bottom { border-top: 1px solid #1c1e22; }
.footer-bottom .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 36px; font-size: 9px; color: var(--faint);
}
.footer-bottom .links { display: flex; gap: 26px; }
.footer-bottom a:hover { color: var(--muted); }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 1010px) {
  .container { width: auto; }
  .row, .tiles { flex-wrap: wrap; }
  .hero-col, .daily, .services, .tiles,
  .p-tanks, .p-mods, .p-videos, .p-clan { flex: 1 1 100%; width: auto; }
  .live-panel, .ai-expert, .profile { flex: 1 1 100%; }
  .tile { flex: 1 1 45%; }
  .cards { flex-wrap: wrap; }
  .card { flex: 1 1 30%; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .banner { flex: 1 1 100%; }
  .footer-main { flex-wrap: wrap; }
  .footer-nav { flex-wrap: wrap; gap: 28px; }
}
@media (max-width: 620px) {
  .brand-sub { display: none; }
  .user span { display: none; }
  .header-actions { gap: 10px; }
  .main-nav { overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex: 0 0 auto; }

  .search { display: none; }
  .main-nav { overflow-x: auto; gap: 22px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards .card { flex: 1 1 45%; }
  .hero h1 { font-size: 30px; }
}

/* ---------- виджеты и динамическое меню ---------- */
.mt-widget-area { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mt-widget-area .mt-widget { flex: 1 1 300px; min-width: 0; }
.mt-widget .panel { height: 100%; }
.mt-widget-title { display: block; margin-bottom: 10px; }
.site-footer .mt-widget-area { padding: 18px 0 6px; }
.main-nav ul { display: contents; margin: 0; padding: 0; }
.main-nav li { display: contents; list-style: none; }
.main-nav .current-menu-item a { color: #fff; }
