/* Shozit Developments: общие стили. Темы задаются классом на body: t-studio, t-rigged, t-deep.
   Анимируются только transform и opacity. Тяжёлых blur, backdrop-filter и больших теней нет. */

@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/plex-sans-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("../fonts/plex-cond-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Cond"; src: url("../fonts/plex-cond-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Victor Mono"; src: url("../fonts/victor-mono.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
  --f-text: "Plex Sans", "Segoe UI", system-ui, -apple-system, "Noto Sans", sans-serif;
  --f-head: "Plex Cond", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Victor Mono", ui-monospace, Consolas, "DejaVu Sans Mono", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

.t-studio {
  --bg: #0d0c0a; --bg2: #15130f; --plate: #17150f; --ink: #e8dcc0; --muted: #a39a84;
  --accent: #d9a441; --accent-ink: #1a1408; --line: #2f2b20; --rivet: #5b6050; --glow: rgba(217, 164, 65, .09);
}
.t-rigged {
  --bg: #070b09; --bg2: #0c1310; --plate: #0f1612; --ink: #e8dcc0; --muted: #9aa28c;
  --accent: #d9ad67; --accent-ink: #17120a; --line: #2a3128; --rivet: #6a705c; --glow: rgba(190, 215, 170, .07);
  --metal: #4b5042; --metal-dark: #272b22;
}
.t-deep {
  --bg: #14121f; --bg2: #1b1a2e; --plate: #1b1a2e; --ink: #f4e7cf; --muted: #aaa0b4;
  --accent: #e7a64c; --accent-ink: #1a1020; --line: #3c4a68; --rivet: #e7a64c; --glow: rgba(231, 140, 76, .1);
  --wood: #86552e; --cyan: #58d2cb;
}

@font-face { font-family: "Tiny5"; src: url("../fonts/tiny5.woff") format("woff"); font-weight: 400; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg) radial-gradient(ellipse 70% 45% at 22% 0, var(--glow), transparent 70%) no-repeat;
  color: var(--ink); font: 400 17px/1.6 var(--f-text);
}
/* неровный свет и грязь поверх всего: две статичные фиксированные плёнки */
body::before { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url("../img/tex/grain.png"); opacity: .55; }
body::after { content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(ellipse at 50% 38%, transparent 52%, rgba(0, 0, 0, .6) 100%); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; letter-spacing: .02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(28px, 4.2vw, 44px); text-transform: uppercase; }
h3 { font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; }
p { margin: 0; max-width: 62ch; }
.sec { padding-block: clamp(28px, 5vw, 60px); }
.sec > .wrap > h2 { margin-bottom: 22px; }
.label { font: 500 12px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; font-weight: 500; }
.skip:focus { top: 8px; }

/* ---------- шапка ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 19px/1 var(--f-head); letter-spacing: .06em; text-transform: uppercase; }
.brand img { width: 40px; height: 42px; }
.nav { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font: 600 15px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; padding: 10px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang { display: inline-flex; border: 1px solid var(--line); }
.lang button { font: 500 12px/1 var(--f-mono); letter-spacing: .1em; color: var(--muted); background: transparent; border: 0; padding: 9px 11px; cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lang button:active { transform: translateY(1px); }

/* ---------- кнопки ---------- */
.btn {
  --cut: 8px; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  font: 700 17px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: var(--accent-ink); background: var(--accent); border: 0;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .12s ease-out;
}
.btn:hover { background: var(--ink); color: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); }
.btn small { font: 500 11px/1 var(--f-mono); letter-spacing: .08em; opacity: .75; text-transform: none; }
.btn--ghost { background: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--rivet); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- панели с заклёпками ---------- */
.plate {
  position: relative; background-color: var(--plate); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px);
  background-image:
    radial-gradient(circle at center, var(--rivet) 0 2.2px, transparent 3px), radial-gradient(circle at center, var(--rivet) 0 2.2px, transparent 3px),
    radial-gradient(circle at center, var(--rivet) 0 2.2px, transparent 3px), radial-gradient(circle at center, var(--rivet) 0 2.2px, transparent 3px);
  background-size: 12px 12px; background-repeat: no-repeat;
  background-position: 6px 6px, calc(100% - 6px) 6px, 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px);
}
.grime { position: relative; isolation: isolate; }
.grime::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url("../img/tex/stains.png") 30% 20% / 480px; opacity: .55; }
.scratched::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: url("../img/tex/scratches.png") center / cover; opacity: .22; }

/* ---------- кадры со скриншотами ---------- */
.shot { position: relative; margin: 0; background: #000; border: 1px solid var(--line); }
.shot img { width: 100%; }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 45%, transparent 60%, rgba(0, 0, 0, .45) 100%); }
.shot figcaption { position: absolute; left: 0; bottom: 0; z-index: 3; max-width: 100%; padding: 7px 12px; background: rgba(0, 0, 0, .78); font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }

/* ---------- таблица данных ---------- */
.spec { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 18px; }
.spec dt, .spec dd { margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec dt { font: 500 12px/1.6 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); align-self: center; }
.spec dd { font-weight: 500; }

/* ---------- новости ---------- */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 130px 1fr; gap: 6px 24px; padding: 20px 0; border-top: 1px dashed var(--line); }
.news-item:last-child { border-bottom: 1px dashed var(--line); }
.news-item time { font: 500 13px/1.6 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.news-item h3 { font-size: 22px; margin-bottom: 6px; text-transform: none; letter-spacing: .01em; }
.news-item p { color: var(--muted); }
.tag { display: inline-block; margin-left: 10px; padding: 2px 8px; border: 1px solid var(--accent); color: var(--accent); font: 500 11px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 3px; }
.news-empty { color: var(--muted); padding: 20px 0; }

/* ---------- подвал ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; padding-block: 26px; color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

main { position: relative; z-index: 2; animation: page-in .28s ease-out both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lang-wait body { visibility: hidden; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .news-item { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .spec dt { padding-bottom: 0; border-bottom: 0; }
  .brand span { display: none; }
  .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}



