/* Общий стиль сайта: страницы (site/pages) и кабинет (site/app). Две темы - светлая (пергамент, по умолчанию)
   и тёмная; переключатель в шапке (theme.js, html[data-theme]). Цвета - только через переменные ниже. */

:root, html[data-theme="light"] {
  --bg: #f3ecdf;
  --bg2: #fbf8f1;
  --card: rgba(255, 252, 245, .88);
  --line: #dccfb6;
  --text: #2a2119;
  --dim: #6d604f;
  --head: #4b2a17;
  --accent: #8b1e1e;
  --gold: #a8843a;
  --ok: #3f8a2e;
  --bad: #b23b3b;
  --shadow: 0 10px 30px rgba(75, 42, 23, .10);
  --hero-fade: 243, 236, 223;
  --title-grad: linear-gradient(180deg, #6b3a1c 0%, #3a1f10 100%);
  --card-solid: #fdf9f1;
  --msg-err: #f6e1dc; --msg-err-line: #d9a79c; --msg-good: #e5efdc; --msg-good-line: #a8c398;
}
html[data-theme="dark"] {
  --bg: #111318;
  --bg2: #191c23;
  --card: rgba(25, 28, 35, .88);
  --line: #2f343f;
  --text: #ebe5d8;
  --dim: #a09889;
  --head: #ead9ae;
  --accent: #d4ae4c;
  --gold: #c9a227;
  --ok: #6aa84f;
  --bad: #d06a6a;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --hero-fade: 17, 19, 24;
  --title-grad: linear-gradient(180deg, #f3e2b0 0%, #c9a227 100%);
  --card-solid: #1b1e25;
  --msg-err: #2c1b1b; --msg-err-line: #5a2b2b; --msg-good: #1c2a1a; --msg-good-line: #2f4a2a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "PT Sans", Arial, sans-serif;
  transition: background-color .25s, color .25s;
}
a { color: var(--accent); }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 460px; }
main.page { max-width: 900px; padding-bottom: 24px; }
.muted { color: var(--dim); font-size: 0.92rem; }
.ok { color: var(--ok); }
.bad { color: var(--bad); }
code { font-size: .92em; background: var(--bg2); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; color: var(--head); font-weight: 600; }
h2 {
  font-size: 2rem; line-height: 1.2; margin: 48px 0 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); position: relative;
}
h2::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 64px; height: 3px; background: var(--gold); }
main.page > h2:first-child { margin-top: 8px; }
main.app { padding-top: 40px; }
h3 { font-size: 1.4rem; margin: 0 0 6px; }

/* логотип: текстом, латиница Cinzel */
.logo { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: 1.45rem; letter-spacing: .04em;
  color: var(--head); text-decoration: none; white-space: nowrap; }
.logo span { color: var(--gold); }

/* --- шапка ------------------------------------------------------------- */
header.top { position: sticky; top: 0; z-index: 20; background: var(--card); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 24px; }
.menu { display: flex; gap: 22px; flex: 1; }
.menu a { color: var(--text); text-decoration: none; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a.on { color: var(--accent); border-bottom-color: var(--gold); }
.top-right { display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--dim); white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(106, 168, 79, .2); }
.dot.off { background: var(--bad); }
/* переключатель темы: солнце | луна, золотой бегунок на текущей */
.theme-sw { position: relative; display: inline-flex; align-items: center; width: 72px; height: 34px; padding: 0;
  border-radius: 999px; cursor: pointer; border: 1px solid var(--gold); background: var(--bg2); flex: none; }
.theme-sw span { position: relative; z-index: 1; width: 36px; height: 34px; display: grid; place-items: center; color: var(--dim); transition: color .25s; }
.theme-sw svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-sw .ts-knob { position: absolute; z-index: 0; top: 3px; left: 3px; width: 28px; height: 26px; border-radius: 999px;
  background: linear-gradient(180deg, #e9cd7c, #b8902f); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: left .25s; }
html[data-theme="light"] .theme-sw .ts-sun, html[data-theme="dark"] .theme-sw .ts-moon { color: #2a1d0c; }
html[data-theme="dark"] .theme-sw .ts-knob { left: 39px; }
.menu-cb, .menu-btn, .menu a.m-only { display: none; }

/* --- кнопки: рамка с внутренней линией и золотые ромбы по краям; при наведении - блик ------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 6px 16px 6px 0; padding: 15px 36px; text-decoration: none; cursor: pointer; white-space: nowrap;
  font: 700 .92rem/1 Cinzel, Georgia, serif; letter-spacing: .14em; text-transform: uppercase; color: #fff4dc;
  background-image: linear-gradient(110deg, transparent 35%, rgba(255, 236, 190, .38) 50%, transparent 65%),
                    linear-gradient(180deg, #b8352d 0%, #8a1d1a 55%, #5e1110 100%);
  background-size: 260% 100%, 100% 100%; background-position: 130% 0, 0 0; background-repeat: no-repeat;
  border: 1px solid #d8b25e; border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, .45), inset 0 0 0 3px rgba(80, 14, 13, .55),
              inset 0 0 0 4px rgba(216, 178, 94, .55), 0 8px 22px rgba(122, 23, 22, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  transition: background-position .6s, transform .15s, box-shadow .15s;
}
.btn::before, .btn::after { content: ''; position: absolute; top: 50%; width: 8px; height: 8px;
  background: #d8b25e; transform: translateY(-50%) rotate(45deg); box-shadow: 0 0 0 2px var(--bg); }
.btn::before { left: -5px; }
.btn::after { right: -5px; }
.btn:hover { background-position: -30% 0, 0 0; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 230, 170, .45), inset 0 0 0 3px rgba(80, 14, 13, .55),
              inset 0 0 0 4px rgba(216, 178, 94, .75), 0 10px 26px rgba(122, 23, 22, .45); }
.btn.ghost { color: var(--head); text-shadow: none;
  background-image: linear-gradient(110deg, transparent 35%, rgba(216, 178, 94, .25) 50%, transparent 65%),
                    linear-gradient(180deg, rgba(var(--hero-fade), .55), rgba(var(--hero-fade), .35));
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgba(216, 178, 94, .4); }
.btn.ghost:hover { box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgba(216, 178, 94, .7); }
.btn.small { padding: 10px 20px; font-size: .74rem; margin: 0 6px; }
.btn.big { padding: 19px 44px; font-size: 1.02rem; }
.btn .arr { font-size: 1.1em; transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* --- главная: первый экран ---------------------------------------------- */
.hero { position: relative; min-height: min(760px, 88vh); display: flex; align-items: center;
  background: var(--bg) right top / cover no-repeat; overflow: hidden; isolation: isolate; }
html[data-theme="light"] .hero { background-image: url('/img/hero_light_elf_anime-wide.webp'); }
html[data-theme="dark"] .hero { background-image: url('/img/hero_dark_moon_anime-wide.webp'); }
/* видео поверх картинки (кадр 0 = та же картинка), под вуалью и текстом; включает site.js heroVideo */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top;
  opacity: 0; transition: opacity .8s; pointer-events: none; }
.hero-video.on { opacity: 1; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(var(--hero-fade), .92) 0%, rgba(var(--hero-fade), .70) 32%, rgba(var(--hero-fade), 0) 58%),
              linear-gradient(0deg, rgba(var(--hero-fade), 1) 0%, rgba(var(--hero-fade), 0) 22%); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto; padding: 72px 16px 120px; }
.hero-text { max-width: 560px; }
.eyebrow { font-family: Cinzel, Georgia, serif; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  font-size: .95rem; display: flex; align-items: center; gap: 12px; }
.eyebrow::after { content: ''; height: 1px; width: 80px; background: var(--gold); }
.hero h1 { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.05; margin: 14px 0 18px; background: var(--title-grad); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero h1 b { display: block; font-size: 1.25em; }
.hero p.lead { font-size: 1.2rem; color: var(--text); margin: 0 0 28px; max-width: 470px; }
.launch { margin-top: 28px; display: inline-flex; flex-direction: column; padding: 12px 20px;
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 4px; }
.launch-label { color: var(--dim); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.launch-date { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; color: var(--head); font-size: 1.45rem; }
.launch-left { color: var(--accent); min-height: 1.4em; font-weight: 700; }

/* рейты плитками (главная - поверх низа первого экрана, «О сервере» - в тексте) */
.rates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rates div { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 14px 8px;
  text-align: center; box-shadow: var(--shadow); }
.rates b { display: block; font: 700 2rem/1.1 Cinzel, Georgia, serif; color: var(--accent); }
.rates span { color: var(--dim); font-size: .9rem; }
.hero-rates { position: relative; margin-top: -70px; z-index: 2; }

/* разделы главной: заголовок по центру с орнаментом */
.sec { padding-top: 64px; padding-bottom: 8px; }
.sec-title { text-align: center; font-size: clamp(2rem, 4vw, 2.7rem); border: 0; margin: 0 0 8px; padding: 0; }
.sec-title::after { position: static; display: block; margin: 10px auto 0; width: 220px; height: 14px; background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 14'%3E%3Cpath d='M0 7h96M124 7h96' stroke='%23b08a3e' stroke-width='1'/%3E%3Cpath d='M110 1l6 6-6 6-6-6z' fill='none' stroke='%23b08a3e' stroke-width='1.2'/%3E%3Ccircle cx='110' cy='7' r='1.6' fill='%23b08a3e'/%3E%3Ccircle cx='99' cy='7' r='1.2' fill='%23b08a3e'/%3E%3Ccircle cx='121' cy='7' r='1.2' fill='%23b08a3e'/%3E%3C/svg%3E") center / contain no-repeat; }
.sec-sub { text-align: center; color: var(--dim); margin: 0 auto 32px; max-width: 620px; }

/* карточки: шаги, преимущества, сообщество */
.grid { display: grid; gap: 18px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--dim); }
.ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff4dc; background: radial-gradient(circle at 35% 30%, #c4402f 0%, #8a1d1a 55%, #5e1110 100%);
  border: 2px solid #d8b25e; margin-bottom: 16px;
  box-shadow: 0 0 0 4px var(--card-solid), 0 0 0 5px rgba(216, 178, 94, .65), 0 8px 16px rgba(0, 0, 0, .18); }
html[data-theme="dark"] .ico { color: #2a1d0c; background: radial-gradient(circle at 35% 30%, #f1d98a 0%, #c9a227 55%, #8a6a1a 100%); }
.ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.step { position: relative; }
.step .num { position: absolute; top: 18px; right: 22px; font: 700 2.4rem/1 Cinzel, Georgia, serif; color: var(--line); }
.step a.more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
.step a.more::after { content: ' \2192'; }
.feat-card h3 { font-size: 1.35rem; }
.center { text-align: center; margin-top: 26px; }
a.card { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 18px; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); }
a.card .ico { margin: 0; }

/* лента карточек «Почему L2Stakato»: прокрутка с привязкой к карточке, стрелки - site.js (featSlider) */
.slider { position: relative; }
.sl-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: none; }
.sl-track::-webkit-scrollbar { display: none; }
.fcard { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.fcard:hover { transform: translateY(-4px); border-color: var(--gold); }
.fimg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg2); }
.fimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.fcard:hover .fimg img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  color: #fff4dc; background: rgba(42, 20, 12, .72); border: 1px solid rgba(216, 178, 94, .6); border-radius: 3px; }
.fbody { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.fnum { font: 700 .85rem/1 Cinzel, Georgia, serif; color: var(--gold); letter-spacing: .1em; }
.fbody h3 { margin: 8px 0 8px; font-size: 1.45rem; line-height: 1.15; }
.fbody p { margin: 0 0 14px; color: var(--dim); font-size: .95rem; flex: 1; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: ' \2192'; transition: margin .2s; }
.more:hover::after { margin-left: 4px; }
.sl-btn { position: absolute; top: 34%; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; z-index: 2;
  display: grid; place-items: center; color: #fff4dc; background: linear-gradient(180deg, #b8352d, #6e1513);
  border: 2px solid #d8b25e; box-shadow: 0 0 0 4px var(--bg), 0 6px 14px rgba(0, 0, 0, .25); }
.sl-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sl-btn.prev { left: -22px; }
.sl-btn.next { right: -22px; }
.sl-btn[disabled] { opacity: .35; cursor: default; }

/* новости */
article.news { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 20px 24px; margin: 0 0 16px; box-shadow: var(--shadow); }
article.news h3 { margin: 2px 0 10px; font-size: 1.5rem; }
article.news p { margin: 0 0 10px; }
article.news p:last-child { margin-bottom: 0; }
.news-date { color: var(--gold); font-size: .85rem; letter-spacing: .08em; }
.news-list { max-width: 860px; margin: 0 auto; }

/* анонсеры */
.tops { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; min-height: 40px; }
.tops img { display: block; max-width: 100%; height: auto; }

/* --- внутренние страницы: полоса с заголовком -------------------------- */
.band { background: var(--bg) center 30% / cover no-repeat; position: relative; padding: 56px 0 40px; margin-bottom: 32px; }
html[data-theme="light"] .band { background-image: url('/img/band_light_elf_anime.webp'); }
html[data-theme="dark"] .band { background-image: url('/img/band_dark_moon_anime.webp'); }
.band::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(var(--hero-fade), .95) 0%, rgba(var(--hero-fade), .75) 45%, rgba(var(--hero-fade), .35) 100%),
              linear-gradient(0deg, rgba(var(--hero-fade), 1) 0%, rgba(var(--hero-fade), 0) 50%); }
.band .wrap { position: relative; max-width: 900px; }
.page-title { font-family: Cinzel, Georgia, serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); margin: 0;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* таблицы и списки текста */
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 6px; overflow: hidden; }
td, th { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: normal; font-size: 0.9rem; background: rgba(168, 132, 58, .08); }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; color: var(--accent); white-space: nowrap; font-weight: 700; }
td.r, th.r { text-align: right; }
ul.feat li table { margin: 10px 0; }
ol.steps { padding-left: 1.4em; }
ol.steps li { margin-bottom: 14px; }
ol.steps li::marker { color: var(--gold); font-weight: 700; }
ul.feat { padding-left: 1.2em; }
ul.feat li { margin-bottom: 10px; }
ul.feat li::marker { color: var(--gold); }
ul.feat b { color: var(--head); }

/* --- подвал ------------------------------------------------------------ */
footer { margin-top: 72px; padding: 32px 0; border-top: 1px solid var(--line); background: var(--card); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-links a { color: var(--dim); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

/* --- формы кабинета и регистрации -------------------------------------- */
form.card { padding: 22px; }
form.card .btn { display: flex; width: fit-content; margin: 22px auto 2px; }
label { display: block; margin: 14px 0 4px; color: var(--dim); font-size: 0.92rem; }
input[type=text], input[type=password], input[type=email], input[type=number], select {
  width: 100%; padding: 10px 12px; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 4px; font-size: 1rem; font-family: inherit;
}
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 132, 58, .18); }
.hint { color: var(--dim); font-size: 0.85rem; margin-top: 4px; }
label.radio { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: var(--text); font-size: 1rem; cursor: pointer; }
label.radio input { accent-color: var(--gold); width: 16px; height: 16px; }
.msg { margin: 16px 0; padding: 11px 14px; border-radius: 4px; border: 1px solid var(--line); background: var(--bg2); }
.msg.err { background: var(--msg-err); border-color: var(--msg-err-line); }
.msg.good { background: var(--msg-good); border-color: var(--msg-good-line); }
.rows { width: 100%; }
.rows td:first-child { color: var(--dim); width: 45%; }
.links { margin-top: 18px; font-size: 0.92rem; }
.links a { margin-right: 14px; }
.cf-turnstile { margin-top: 16px; }
.cta { margin: 24px 0 8px; }

/* статистика: вкладки */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 18px; }
.tabs button { font-family: inherit; font-size: .95rem; padding: 7px 16px; cursor: pointer;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 4px; }
.tabs button.on { border-color: var(--gold); color: var(--accent); font-weight: 700; }
.tab { overflow-x: auto; }

/* файлы */
table.files td { padding: 14px 12px; vertical-align: middle; }
table.files .btn { margin: 2px 0; white-space: nowrap; font-size: 1.05rem; padding: 9px 18px; }
code.hash { word-break: break-all; font-size: .8rem; }

/* админка (/admin) */
.adm-tabs a { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; text-decoration: none;
  color: var(--text); border: 1px solid var(--line); border-radius: 3px; }
.adm-tabs a.on { border-color: var(--gold); color: var(--accent); }
.adm-scroll { overflow-x: auto; }
table.adm td, table.adm th { padding: 6px 6px; white-space: nowrap; }
table.adm td:first-child { white-space: normal; }
/* админка: лента и новости (2026-10-20) */
.adm-sections { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
table.feed td:nth-child(4) { white-space: normal; min-width: 260px; }
table.feed tr.done td { opacity: .55; }
textarea { width: 100%; padding: 10px 12px; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 4px; font-size: .95rem; font-family: inherit; line-height: 1.5; resize: vertical; }
textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 132, 58, .18); }
input[type=date] { padding: 9px 12px; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 4px; font-size: 1rem; font-family: inherit; }
form.card .adm-buttons .btn, .adm-buttons .btn { display: inline-flex; margin: 10px 8px 0 0; }
textarea.copy-src { font-size: .9rem; }
/* обсуждения команды (/admin/board) */
.board-body { padding: 14px 18px; }
.board-comment { margin: 12px 0; padding: 10px 14px; background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 4px; }
.board-comment p, .board-body p { margin: 6px 0; }
.board-sys { font-size: .85rem; margin: 8px 0 8px 4px; }
/* задачи команды (/admin/tasks, 2026-10-23): канбан */
/* доска шире колонки страницы: по ширине окна (до 1440), по центру; на телефоне - прокрутка вбок */
.kb { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px;
  width: calc(min(1440px, 100vw) - 32px); position: relative; left: 50%; transform: translateX(-50%); }
.kb-col { background: var(--bg2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; min-height: 140px; }
.kb-col h3 { margin: 0 0 10px; font-size: 1rem; }
.kb-col.kb-over { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 132, 58, .18); }
.kb-card { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 4px;
  padding: 8px 10px; margin: 0 0 8px; cursor: grab; }
.kb-card.kb-urgent { border-left-color: #c0392b; }
.kb-card > a { text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.35; }
.kb-meta { font-size: .8rem; margin-top: 5px; line-height: 1.6; }
.kb-area { padding: 1px 6px; border-radius: 3px; font-size: .75rem; color: #fff; }
.kb-tech { background: #2f64a3; }
.kb-test { background: #6d4aa8; }
.kb-social { background: #b8661a; }
.kb-move { margin: 6px 0 0; }
.kb-move button { padding: 1px 8px; font-size: .8rem; background: none; border: 1px solid var(--line); border-radius: 3px;
  color: var(--text); cursor: pointer; }
.kb-move button:hover { border-color: var(--gold); }
.kb-new { margin-top: 18px; }
.kb-new summary, details.card summary { cursor: pointer; font-weight: 600; }
.kb-fields { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 10px; }
.kb-fields label { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.kb-check { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; }

/* --- телефон ----------------------------------------------------------- */
@media (max-width: 980px) {
  .status { display: none; }
  .sl-track { grid-auto-columns: calc((100% - 18px) / 2); }
  .grid.g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 12px; }
  .logo { flex: 1; }
  .menu-btn { display: grid; place-items: center; width: 40px; height: 36px; cursor: pointer; order: 3; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px;
    background: var(--head); position: relative; content: ''; }
  .menu-btn span::before { position: absolute; top: -7px; }
  .menu-btn span::after { position: absolute; top: 7px; }
  .top-right { order: 2; }
  .top-right .btn.small { display: none; }
  .menu { order: 4; flex-basis: 100%; flex-direction: column; gap: 0; display: none; }
  .menu a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .menu-cb:checked ~ .menu { display: flex; }
  .menu a.m-only { display: block; }
  /* телефон: сверху арт с лицом, текст ниже на растушёвке */
  .hero { align-items: flex-end; min-height: 0; background-size: 100% auto; background-position: center top; }
  html[data-theme="light"] .hero { background-image: url('/img/hero_light_elf_anime-narrow.webp'); }
  html[data-theme="dark"] .hero { background-image: url('/img/hero_dark_moon_anime-narrow.webp'); }
  .hero-video { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--hero-fade), 0) 0, rgba(var(--hero-fade), 0) 62vw,
    rgba(var(--hero-fade), .88) 96vw, rgba(var(--hero-fade), 1) 118vw); }
  .hero-in { padding: 90vw 16px 90px; }
  .rates, .grid.g3, .grid.g2 { grid-template-columns: 1fr 1fr; }
  .grid.g3.steps-grid, .grid.g2 { grid-template-columns: 1fr; }
  .btn { display: flex; margin: 8px 6px; }
  .sl-track { grid-auto-columns: 82%; }
  .sl-btn { display: none; }
  .btn.small { display: inline-flex; }
  h2 { font-size: 1.7rem; }
}
@media (max-width: 480px) {
  .grid.g3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
