/* ETS|ATS Mod Manager — сайт. Тёмная тема в цветах менеджера: золото и бирюза */
@font-face { font-family: 'Golos Text'; src: url('fonts/golos-text-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0400-04FF; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Golos Text'; src: url('fonts/golos-text-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/unbounded-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0400-04FF; font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Unbounded'; src: url('fonts/unbounded-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; font-weight: 200 900; font-display: swap; }

:root {
  --bg: #0b0d12;
  --bg-alt: #0f1218;
  --panel: #12161e;
  --panel-2: #171c26;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #f3f4f6;
  --soft: #c4c9d3;
  --muted: #8f97a5;
  --gold: #e8b23a;
  --gold-2: #f6cd5b;
  --teal: #42d6cc;
  --ink: #17130a;
  --radius: 22px;
  --wrap: 1180px;
  --font: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
  --display: 'Unbounded', 'Golos Text', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 18px; }

/* ───── Шапка ───── */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(11, 13, 18, .78); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.brand i { font-style: normal; color: var(--gold); margin: 0 1px; }
.brand b { font-weight: 600; color: var(--soft); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--soft); font-size: 14.5px; font-weight: 500; transition: background .15s, color .15s; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { height: 36px; min-width: 44px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 13px; font-weight: 700; color: var(--soft); }
.lang:hover { border-color: var(--gold); color: var(--gold-2); }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-strong); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, top .2s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ───── Кнопки ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04); color: var(--text); font: 600 15px var(--font); cursor: pointer; transition: transform .15s, filter .15s, border-color .15s, background .15s; }
.btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: var(--ink); box-shadow: 0 10px 30px rgba(232, 178, 58, .28); }
.btn-gold:hover { filter: brightness(1.06); border-color: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; border-radius: 16px; }
.btn small { font-weight: 500; opacity: .7; font-size: 12.5px; }
.btn-tg { background: linear-gradient(135deg, #2aabee, #229ed9); border-color: transparent; }
.btn-dc { background: linear-gradient(135deg, #6d79f5, #5865f2); border-color: transparent; }
.btn-tg:hover, .btn-dc:hover { filter: brightness(1.1); border-color: transparent; }

/* ───── Главный экран ───── */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero-glow { position: absolute; inset: -20% -10% auto -10%; height: 90%; background: radial-gradient(520px 320px at 20% 20%, rgba(232, 178, 58, .22), transparent 70%), radial-gradient(560px 360px at 82% 30%, rgba(66, 214, 204, .16), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04); font-size: 13px; font-weight: 600; color: var(--gold-2); margin-bottom: 20px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); }
.hero h1 span { background: linear-gradient(90deg, var(--gold-2), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 20px; font-size: 18px; color: var(--soft); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { margin-top: 14px; display: flex; gap: 10px; color: var(--muted); font-size: 13.5px; }
.hero-meta #verDate::before { content: '·'; margin-right: 10px; }
.hero-meta #verDate:empty::before { content: none; }
.points { margin-top: 22px; display: grid; gap: 8px; color: var(--soft); font-size: 14.5px; }
.points li { display: flex; align-items: center; gap: 10px; }
.points .ico { color: var(--teal); width: 18px; height: 18px; }
.frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border-strong); background: #0c0d10; box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(232, 178, 58, .12), 0 0 90px rgba(232, 178, 58, .12); transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg); transition: transform .5s ease; }
.frame:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.frame img { width: 100%; height: auto; }

/* ───── Секции ───── */
.sec { padding: 88px 0; }
.sec-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); }
.sec-head p { margin: 14px auto 0; color: var(--muted); max-width: 640px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }

/* плиточная сетка возможностей */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.feat { display: flex; flex-direction: column; gap: 12px; overflow: hidden; position: relative; transition: transform .25s, border-color .25s; }
.feat:hover { transform: translateY(-4px); border-color: rgba(232, 178, 58, .4); }
.feat h3 { font-size: 20px; }
.feat p { color: var(--soft); font-size: 15px; }
.feat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(232, 178, 58, .2), rgba(66, 214, 204, .16)); color: var(--gold-2); }
.feat-ico .ico { width: 24px; height: 24px; }
.feat-shot { margin: -26px -26px 6px; height: 210px; overflow: hidden; border-bottom: 1px solid var(--border); background: #0c0d10; }
.feat-shot img { width: 100%; height: 100%; object-fit: cover; }
.feat-sort { grid-column: span 7; } .feat-crash { grid-column: span 5; }
.feat-mods, .feat-builds, .feat-editor { grid-column: span 4; }
.feat-games, .feat-more { grid-column: span 6; }

/* вкладки со скриншотами */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tab { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: none; color: var(--soft); font: 600 14px var(--font); cursor: pointer; transition: all .15s; }
.tab:hover { border-color: var(--gold); color: var(--text); }
.tab.on { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: var(--ink); }
.show { margin: 0; text-align: center; }
.show-img { display: block; width: min(1060px, 100%); margin: 0 auto; padding: 0; border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; background: #0c0d10; cursor: zoom-in; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.show-img img { width: 100%; height: auto; transition: opacity .25s; }
.show figcaption { margin: 18px auto 0; max-width: 680px; color: var(--soft); min-height: 52px; }

/* шаги автопорядка */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step b { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--ink); font-family: var(--display); font-size: 16px; }
.step h3 { font-size: 18px; }
.step p { color: var(--soft); font-size: 15px; }
.honest { margin: 22px auto 0; max-width: 760px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* что нового */
.notes h3 { font-size: 15px; margin: 18px 0 8px; color: var(--gold-2); font-family: var(--font); letter-spacing: 0; }
.notes h3:first-child { margin-top: 0; }
.notes ul { display: grid; gap: 8px; }
.notes li { position: relative; padding-left: 18px; color: var(--soft); font-size: 15px; }
.notes li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.link { color: var(--gold-2); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* скачать */
.dl-card { display: grid; gap: 22px; justify-items: center; text-align: center; }
.dl-steps { counter-reset: s; display: grid; gap: 12px; text-align: left; width: 100%; max-width: 640px; }
.dl-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--soft); }
.dl-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--gold-2); font-weight: 700; font-size: 14px; }

/* вопросы */
.faq { display: grid; gap: 10px; }
.qa { padding: 0; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold-2); transition: transform .2s; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 22px 20px; color: var(--soft); }

/* студия */
.studio { text-align: center; display: grid; gap: 18px; justify-items: center; padding: 40px 26px; background: radial-gradient(420px 220px at 50% 0%, rgba(66, 214, 204, .14), transparent 70%), var(--panel); }
.studio-logo { width: min(300px, 70%); height: auto; }
.studio p { max-width: 560px; color: var(--soft); }
.studio-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* подвал */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--border); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; color: var(--soft); font-size: 14.5px; }
.foot-links a:hover { color: var(--gold-2); }
.foot-note { color: var(--muted); font-size: 13px; max-width: 820px; margin-top: 8px; }

/* страница соглашения */
.doc h1 { font-size: clamp(26px, 4vw, 38px); margin: 18px 0 10px; }
.doc-body h2 { font-family: var(--font); font-size: 18px; letter-spacing: 0; color: var(--gold-2); margin: 28px 0 8px; }
.doc-body p { color: var(--soft); margin-bottom: 10px; }

/* окно с увеличенной картинкой */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(5, 6, 8, .92); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 94vh; width: auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .frame { transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ───── Планшеты и телефоны ───── */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 48px; }
  .frame { transform: none; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .feat-sort, .feat-crash { grid-column: span 6; }
  .feat-mods, .feat-builds, .feat-editor { grid-column: span 3; }
  .feat-editor { grid-column: span 6; }
  .feat-games, .feat-more { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { position: fixed; left: 0; right: 0; top: 68px; flex-direction: column; margin: 0; padding: 12px 16px 18px; background: rgba(11, 13, 18, .97); border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16px; }
  .burger { display: block; }
  .top-actions .btn { display: none; }
  .sec { padding: 60px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { grid-column: auto !important; }
  .feat-shot { height: 170px; }
  .hero-cta .btn { width: 100%; }
  .tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .tab { flex: none; }
  .brand b { display: none; }
}
