/* dedust2.ru — light body, dark header with section buttons, catalog cards. Mobile-first, no inline styles. */
:root {
  --bg: #f1f3f5;
  --card: #ffffff;
  --line: #e2e6ea;
  --text: #17202a;
  --muted: #5f6b7a;
  --green: #1f9d55;
  --green-d: #178347;
  --green-l: #e6f6ec;
  --blue: #1a63c9;
  --dark: #111418;
  --dark2: #1d2127;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 3px 12px rgba(16, 24, 40, .06);
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(24px, 5vw, 32px); }
h2 { font-size: clamp(19px, 4vw, 22px); margin-top: 1.4em; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
code { background: #eef1f4; border-radius: 6px; padding: .1em .4em; font-size: .92em; font-family: ui-monospace, Consolas, monospace; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px; z-index: 100; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* header: dark top bar with logo + search, then the section buttons */
.hd { background: var(--dark); color: #fff; }
.hd__top { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.hd__logo img { width: 150px; height: 34px; }
.hd__search { display: flex; align-items: center; gap: 6px; color: #aab3bd; flex: 1; max-width: 320px; }
.hd__search svg { flex: none; }
.hd__search input { width: 100%; background: transparent; border: 0; color: #fff; font: inherit; padding: 8px 4px; outline: none; }
.hd__search input::placeholder { color: #aab3bd; }
.hd__search:focus-within { color: #fff; }
.hd__nav { display: flex; gap: 8px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hd__nav::-webkit-scrollbar { display: none; }
.sec { flex: none; display: flex; align-items: center; gap: 10px; background: var(--dark2); color: #fff; border: 2px solid #2c323a; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.sec:hover { text-decoration: none; border-color: #4a525c; }
.sec.is-on { border-color: #e9edf1; background: #272c33; }
.sec__i { width: 26px; height: 26px; color: #3fcf7a; stroke-width: 2; }
.sec small { font-weight: 500; color: #aab3bd; }
@media (min-width: 900px) {
  .hd__nav { flex-wrap: wrap; overflow: visible; }
  .sec { font-size: 15px; padding: 10px 18px; }
}

/* page */
.page { padding: 14px 16px 36px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.lead { font-size: 17px; color: #2d3a48; }
.two { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .two { grid-template-columns: minmax(0, 1fr) 460px; align-items: start; }
}
.two__main { min-width: 0; }
.text ul, .text ol { padding-left: 22px; }
.text--wide { max-width: 860px; }
.checks { list-style: none; padding: 0 !important; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 22px; margin: 6px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%; background: var(--green-l); box-shadow: inset 0 0 0 2px var(--green); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 0 0 1em; }
.steps li { counter-increment: s; position: relative; padding-left: 38px; margin: 10px 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .05em; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.req { display: grid; gap: 14px; }
@media (min-width: 600px) { .req { grid-template-columns: 1fr 1fr; } }
.req b { display: block; margin-bottom: 4px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.feat { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border: 1px solid var(--line); }
.feat th, .feat td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.feat th { width: 38%; font-weight: 500; color: #2d3a48; background: #f7f9fa; }
.feat tr:last-child th, .feat tr:last-child td { border-bottom: 0; }
.hash { font-size: 12px; margin-top: 8px; word-break: break-all; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; font-weight: 700; padding: 11px 18px; border: 0; cursor: pointer; white-space: nowrap; font-size: 15px; }
.btn:hover { text-decoration: none; }
.btn--dl { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(31, 157, 85, .28); }
.btn--dl:hover { background: var(--green-d); }
.btn--tor { background: var(--card); color: var(--text); border: 1px solid #c9d0d7; }
.btn--tor:hover { background: #f3f5f7; }
.btn--tor small { font-weight: 500; color: var(--muted); }
.btn--card { flex: 1; justify-content: center; background: var(--card); color: var(--text); border: 1px solid #c9d0d7; padding: 8px 10px; font-size: 14px; }
.btn--card:hover { border-color: var(--green); color: var(--green-d); }
.dlbox { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; }
.dlbox .btn { flex: 1 1 auto; justify-content: center; }
@media (min-width: 560px) { .dlbox .btn { flex: none; } }
.dlbox__meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* screenshots column */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shots__a { display: block; border-radius: 10px; overflow: hidden; background: #000; box-shadow: var(--shadow); }
.shots__a--big { grid-column: 1 / -1; }
.shots__a img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s; }
.shots__a:hover img { transform: scale(1.03); }
/* lightbox for the screenshots */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 12, .92); display: none; align-items: center; justify-content: center; }
.lb.is-on { display: flex; }
.lb img { max-width: min(96vw, 1400px); max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.lb__x, .lb__p, .lb__n { position: absolute; border: 0; padding: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb__x svg, .lb__p svg, .lb__n svg { display: block; }
.lb__x:hover, .lb__p:hover, .lb__n:hover { background: rgba(255, 255, 255, .28); }
.lb__x { top: 14px; right: 14px; }
.lb__p { left: 14px; top: 50%; margin-top: -24px; }
.lb__n { right: 14px; top: 50%; margin-top: -24px; }
.lb__c { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #cfd6dd; font-size: 14px; }
@media (max-width: 600px) { .lb__p, .lb__n { width: 40px; height: 40px; margin-top: -20px; } }
/* «Скачать CS 1.6» promo card (sidebar on map pages, wide strip on lists) */
.promo { display: block; border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, #1b2430 0%, #0f141a 60%, #1f2a1f 100%); color: #fff; box-shadow: var(--shadow); text-decoration: none; margin-top: 16px; }
.promo:hover { text-decoration: none; }
.promo__art { aspect-ratio: 1 / 1; background: #0b1a33; }
.promo__art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo__body { background: var(--card); color: var(--text); padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.promo__body svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--green); }
.promo__body strong { display: block; font-size: 16px; }
.promo__body span { display: block; font-size: 13px; color: var(--muted); }
.promo__flag { height: 10px; background: linear-gradient(to bottom, #fff 0 34%, #0039a6 34% 67%, #d52b1e 67%); }
.promo--wide { display: grid; grid-template-columns: 1fr; margin: 18px 0 8px; }
.promo--wide .promo__art { aspect-ratio: 4 / 1; }
@media (min-width: 720px) { .promo--wide { grid-template-columns: 220px 1fr; } .promo--wide .promo__art { aspect-ratio: auto; height: 96px; } .promo--wide .promo__body { min-height: 96px; } .promo--wide .promo__flag { grid-column: 1 / -1; } }
/* map page: gallery (big frame + thumbs column) left, promo right, text below the gallery */
.mp { display: grid; gap: 22px; }
.mp__side { display: none; }
@media (min-width: 960px) { .mp { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .mp__side { display: block; } .mp__side .promo { margin-top: 0; } }
.gal { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
.gal__thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 8px; align-content: start; }
@media (min-width: 600px) { .gal { grid-template-columns: minmax(0, 1fr) 120px; } .gal__thumbs { grid-template-columns: 1fr; } }
.gal .shots__a { border-radius: 8px; }
.gal__thumbs .shots__a.is-on { outline: 3px solid var(--green); }
/* build without our screenshots yet: a dark placeholder with the name */
.bcard__ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 3; width: 100%; background: linear-gradient(160deg, #1b2430, #0f141a); color: #fff; text-align: center; padding: 16px; box-sizing: border-box; }
.bcard__ph-i { width: 44px; height: 44px; color: var(--green); }
.bcard__ph b { font-size: 18px; line-height: 1.25; }
.bcard__ph small { font-size: 13px; color: #aab4bf; }
.bcard__ph--big { aspect-ratio: 16 / 9; border-radius: 10px; }
.bcard__ph--big b { font-size: 26px; }
.shots--empty { display: block; }
/* player models: portrait pictures */
.bcard--model .bcard__img img { aspect-ratio: 4 / 3; object-fit: cover; background: #161a20; }
.gal--model { grid-template-columns: 1fr; }
.gal--model .shots__a img { aspect-ratio: 5 / 7; object-fit: cover; }
.gal--model .gal__thumbs { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 600px) { .gal--model { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } .gal--model .gal__thumbs { grid-template-columns: repeat(2, minmax(0, 150px)); } }
.promo--m { display: block; margin: 0 0 18px; }
@media (min-width: 960px) { .promo--m { display: none; } }

/* faq */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; }
.faq details { border-top: 1px solid var(--line); padding: 8px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 6px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 4px; color: var(--green); font-size: 20px; font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 4px 0 8px; color: #2d3a48; }

/* servers */
.srvrow { display: grid; gap: 10px; }
@media (min-width: 640px) { .srvrow { grid-template-columns: repeat(3, 1fr); } }
.srvrow__i { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; font-size: 14px; }
.ip { font-family: ui-monospace, Consolas, monospace; font-size: 14px; background: #f7f9fa; border: 1px dashed #c7ced6; border-radius: 8px; padding: 6px 10px; cursor: pointer; text-align: left; color: var(--text); }
.ip:hover { border-color: var(--green); }
.ip.is-done { border-color: var(--green); background: var(--green-l); color: var(--green-d); }

/* catalog: chips + cards */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--card); color: var(--text); border: 1px solid #c9d0d7; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.chip small { font-weight: 500; color: var(--muted); }
.chip:hover { text-decoration: none; border-color: var(--green); }
.chip.is-on { background: #e3e7eb; border-color: #9aa3ad; }
.bgrid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 560px) { .bgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .bgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .bgrid { grid-template-columns: repeat(4, 1fr); } }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.bcard:hover { border-color: #b9c2cb; }
.bcard__img { position: relative; display: block; background: #000; }
.bcard__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bcard--map .bcard__img img { aspect-ratio: 16 / 9; }
.bcard--map h3 { font-family: ui-monospace, Consolas, monospace; font-size: 16px; word-break: break-all; }
.bcard__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 5px; opacity: 0; transition: opacity .2s; }
.bcard__img:hover .bcard__dots { opacity: 1; }
.bcard__dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.bcard__dots i.is-on { background: #fff; }
.bcard__body { padding: 12px 14px 6px; flex: 1; }
.bcard__body h3 { margin: 0 0 6px; }
.bcard__body h3 a { color: var(--text); }
.bcard__body p { margin: 0; font-size: 14px; color: #2d3a48; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__btns { display: flex; gap: 8px; padding: 10px 14px 14px; }
.more__h { margin-top: 36px; }
.more__all { margin: -8px 0 0; }
.h1__pg { font-size: .55em; font-weight: 500; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -8px 0 28px; }
.pager__a { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #c9d0d7; border-radius: 8px; background: var(--card); color: var(--text); font-weight: 700; }
.pager__a:hover { text-decoration: none; border-color: var(--green); }
.pager__a.is-on { background: var(--green); border-color: var(--green); color: #fff; }
.pager__a--arr { font-size: 20px; line-height: 1; }
.pager__dots { padding: 0 4px; color: var(--muted); }
.feat--wpn th { width: 30%; }

/* sticky mobile download */
.stick { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; z-index: 30; }
.stick.is-on { transform: none; }
.stick .btn--dl { width: 100%; justify-content: center; }
@media (min-width: 900px) { .stick { display: none; } }

/* footer */
.ft { background: var(--dark); color: #cfd6dd; font-size: 14px; margin-top: 8px; }
.ft__in { display: grid; gap: 22px; padding: 28px 16px 10px; }
@media (min-width: 720px) { .ft__in { grid-template-columns: 1.4fr 1fr 1fr; } }
.ft__col { display: grid; gap: 6px; align-content: start; }
.ft__col b { font-size: 15px; margin-bottom: 2px; color: #fff; }
.ft__col a { color: #cfd6dd; }
.ft__col p { margin: 0; }
.ft .muted { color: #8b949e; }
.ft__bottom { padding: 10px 16px 24px; color: #8b949e; font-size: 13px; }
