/* ============================================================
   CleanISO — светлая тема, голубой акцент #08a2eb
   ============================================================ */
:root {
  --blue:        #08a2eb;
  --blue-600:    #0784c4;
  --blue-700:    #0b6ea6;
  --blue-050:    #eaf6fe;
  --blue-100:    #d5edfc;
  --blue-200:    #b7e1fa;
  --ink:         #16232f;
  --ink-2:       #33475a;
  --muted:       #6a7f92;
  --line:        #e2ebf2;
  --line-2:      #eef3f8;
  --bg:          #eef4f9;
  --bg-2:        #f6fafd;
  --card:        #ffffff;
  --green:       #1fa457;
  --green-600:   #17914c;
  --orange:      #ff7a1a;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 6px 22px rgba(20, 70, 120, .08);
  --shadow-lg:   0 14px 40px rgba(20, 70, 120, .14);
  --maxw:        1240px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #e7f2fb 0%, var(--bg) 240px, var(--bg) 100%);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; width: 100%; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 11px 18px; border-radius: var(--radius-sm);
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(31,164,87,.28); }
.btn--green:hover { background: var(--green-600); color: #fff; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(8,162,235,.28); }
.btn--blue:hover { background: var(--blue-600); color: #fff; }
.btn--white { background: #fff; color: var(--blue-700); }
.btn--white:hover { background: #f0f8ff; color: var(--blue-700); }
.btn--ghost { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--blue-200); color: var(--blue-700); }
.btn--block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  background: var(--blue-050); border: 1px solid var(--blue-100);
  padding: 3px 9px; border-radius: 999px;
}
.chip--dark { background: #1f2b38; color: #fff; border-color: #1f2b38; }
.chip--onblue { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); color: #fff; }

/* ---------------- Top bar ---------------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 42px; }
.topbar__links { display: flex; align-items: center; gap: 20px; }
.topbar__links a { color: var(--ink-2); font-weight: 500; }
.topbar__links a:hover, .topbar__links a.is-active { color: var(--blue-600); }
.topbar__catalog {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue-050); color: var(--blue-700) !important;
  padding: 6px 12px; border-radius: 8px; font-weight: 600;
}
.topbar__right a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.topbar__right a:hover { color: var(--blue-600); }
.topbar__note { color: var(--muted); font-weight: 500; }

/* ---------------- Header / main nav ---------------- */
.header { position: sticky; top: 0; z-index: 40; padding: 12px 0; background: linear-gradient(180deg, #e7f2fb, rgba(231,242,251,0)); }
.mainnav {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 18px;
  padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__logo { display: inline-flex; }
.gicon { object-fit: contain; display: block; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-size: 20px; font-weight: 500; letter-spacing: .2px; color: var(--ink); }
.brand__sub { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: .2px; }

.mainnav__menu { display: flex; align-items: center; gap: 8px; margin-right: auto; flex-wrap: wrap; }
.navbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: 15px;
  color: var(--ink-2); background: transparent; border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.navbtn:hover { background: var(--blue-050); color: var(--blue-700); }
.navbtn.is-active { color: var(--blue-700); background: var(--blue-050); }
.navbtn--primary { background: var(--blue-050); color: var(--blue-700); }
.navbtn .caret { transition: transform .18s ease; }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px;
  max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 50;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .16s ease;
}
.dropdown__menu .dl { color: var(--blue); flex: none; }
.dropdown__menu .dl--img { width: 18px; height: 18px; object-fit: contain; }
.dropdown.open .dropdown__menu,
.dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.open .caret { transform: rotate(180deg); }
.dropdown__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: 14.5px;
}
.dropdown__menu a:hover { background: var(--blue-050); color: var(--blue-700); }

/* ---------------- Search ---------------- */
.searchbox { display: flex; align-items: center; }
.searchbox--nav { margin-left: auto; position: relative; }
.searchbox--nav input {
  width: 230px; max-width: 40vw; height: 42px; padding: 0 42px 0 16px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
  background: var(--bg-2); outline: none;
}
.searchbox--nav input:focus { border-color: var(--blue-200); background: #fff; box-shadow: 0 0 0 3px var(--blue-050); }
.searchbox--nav button {
  position: absolute; right: 4px; top: 4px; width: 34px; height: 34px;
  border: 0; border-radius: 8px; background: transparent; color: var(--blue-600); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.searchbox--nav button:hover { background: var(--blue-050); }

.burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.main { padding-bottom: 50px; }
.hero { display: flex; align-items: center; gap: 30px; padding-top: 26px; padding-bottom: 26px; }
.hero__text { flex: 1; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hbadge { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid transparent; line-height: 1; }
.hbadge svg { flex: 0 0 auto; }
.hbadge--green  { background: #e7f8ee; border-color: #bfeccf; color: #1a9e57; }
.hbadge--blue   { background: #e4f4fc; border-color: #b9e3f6; color: #0e8bc9; }
.hbadge--purple { background: #eeecfd; border-color: #d5cff8; color: #6b5ce0; }
.hero__title { font-size: 40px; font-weight: 800; margin: 16px 0 10px; letter-spacing: -.5px; }
.hero__title span { color: var(--blue); }
.hero__sub { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 0 0 20px; }
.searchbox--hero { position: relative; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px 6px 6px 46px; }
.searchbox--hero > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.searchbox--hero input { flex: 1; border: 0; outline: none; font: inherit; font-size: 16px; background: transparent; color: var(--ink); padding: 10px 8px; }
.searchbox--hero button { background: var(--blue); color: #fff; border: 0; border-radius: 10px; padding: 11px 22px; font: inherit; font-weight: 700; cursor: pointer; }
.searchbox--hero button:hover { background: var(--blue-600); }
.hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero__cats a { background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }
.hero__cats a:hover { border-color: var(--blue-200); color: var(--blue-700); background: var(--blue-050); }
.hero__art { flex: none; display: grid; place-items: center; width: 220px; height: 220px; }

/* ---------------- Strip / grids ---------------- */
.strip { margin-top: 8px; }
.strip__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.strip__title { font-size: 22px; font-weight: 800; }

.grid--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

/* ---------------- Card ---------------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue-200); }
.card__media { position: relative; display: grid; place-items: center; background: #f5f8fc; aspect-ratio: 1 / 1; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.card__media--icon { background: #fff; }
.card__media--icon img { padding: 30px; }
.card__btn { margin-top: auto; }
.card__stat {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.94); color: var(--ink-2); font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.card__stat svg { color: var(--blue); }
.card__body { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge--hit { background: #fff1e6; color: #e8620f; }
.badge--new { background: var(--blue-050); color: var(--blue-700); }
.card__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--blue-600); }
.card__meta { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.card__meta li { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.card__meta .ok svg { color: var(--green); }
.card__meta .flash svg { color: var(--orange); }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; }
.card__chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------------- Catalog layout ---------------- */
.catalog { display: grid; grid-template-columns: 262px 1fr; gap: 24px; align-items: start; margin-top: 22px; }
.catalog__main { min-width: 0; }
.catalog__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog__title { font-size: 26px; font-weight: 800; }
.catalog__count { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.sidebar__title { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 10px 12px 8px; }

/* Collapsible groups */
.sgroup { border-radius: 10px; overflow: hidden; }
.sgroup + .sgroup { margin-top: 2px; }
.sgroup__head { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--ink); font-size: 14.5px; list-style: none; user-select: none; }
.sgroup > summary { list-style: none; }
.sgroup__head::-webkit-details-marker { display: none; }
.sgroup__head::marker { content: ""; font-size: 0; }
.sgroup__head:hover { background: var(--blue-050); }
.sgroup__chev { color: var(--muted); flex: none; transition: transform .18s ease; }
.sgroup[open] > .sgroup__head .sgroup__chev { transform: rotate(90deg); color: var(--blue); }
.sgroup__icon { color: var(--blue); display: inline-flex; flex: none; }
.sgroup__name { flex: 1; }
.sgroup__list { padding: 2px 0 8px 16px; }
.sgroup__list li a { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.sgroup__list li a:hover { background: var(--blue-050); color: var(--blue-700); }
.sgroup__list li a.is-active { background: var(--blue); color: #fff; font-weight: 600; }
.sgroup__list .sdl { flex: none; color: var(--blue); }
.sgroup__list .sdl--img { width: 16px; height: 16px; object-fit: contain; }
.sgroup__list li a.is-active .sdl { color: #fff; }
.sidebar__promo { background: linear-gradient(160deg, var(--blue), var(--blue-700)); color: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.sidebar__promo-title { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.sidebar__promo p { font-size: 13.5px; margin: 0 0 12px; color: rgba(255,255,255,.9); }
.sidebar__promo-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar__promo-tags span { background: rgba(255,255,255,.16); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* ---------------- Sort ---------------- */
.sortbar { display: flex; align-items: center; gap: 10px; }
.sortbar__label { color: var(--muted); font-size: 14px; }
.select { position: relative; }
.select select {
  appearance: none; -webkit-appearance: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 38px 10px 14px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; outline: none;
}
.select select:focus { border-color: var(--blue-200); box-shadow: 0 0 0 3px var(--blue-050); }
.select svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ---------------- Empty ---------------- */
.empty { background: #fff; border: 1px dashed var(--blue-200); border-radius: var(--radius); padding: 46px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding-top: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue-600); }
.breadcrumbs b { color: var(--ink-2); }
.breadcrumbs .crumb-static { color: var(--muted); }

/* ---------------- Каталог программ (columns) ---------------- */
.progcat { margin-top: 30px; }
.progcat__title { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 800; margin-bottom: 18px; }
.progcat__badge { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(8,162,235,.3); }
.progcat__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; align-items: start; }
.progcol { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.progcol__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0e5c93, #0a3f6b); }
.progcol__icon { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.15); display: grid; place-items: center; flex: none; }
.progcol__list { padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.progcol__list li a { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--blue-700); font-weight: 600; font-size: 14.5px; background: #fff; }
.progcol__list li a svg { color: var(--blue); flex: none; }
.progcol__list li a:hover { background: var(--blue-050); border-color: var(--blue-100); }

/* ---------------- Product / download page ---------------- */
.product { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; margin-top: 16px; }
.product__main { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 26px; }
.product__head { display: flex; align-items: center; gap: 16px; }
.product__icon { width: 60px; height: 60px; border-radius: 14px; background: var(--blue-050); display: grid; place-items: center; flex: none; }
.product__title { font-size: 25px; font-weight: 800; letter-spacing: -.3px; }
.product__lead { margin: 16px 0 0; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; }

.quickjump { display: flex; align-items: center; gap: 14px; margin-top: 18px; background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: 14px; padding: 14px 16px; flex-wrap: wrap; }
.quickjump__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue); display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px rgba(8,162,235,.3); }
.quickjump__text { display: flex; flex-direction: column; margin-right: auto; }
.quickjump__text b { font-size: 15px; }
.quickjump__text span { font-size: 13px; color: var(--muted); }

.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.trust__pill { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; }
.trust__pill--green { background: #e7f7ee; color: var(--green-600); }
.trust__pill--blue { background: var(--blue-050); color: var(--blue-700); }
.trust__pill--slate { background: #eef1f5; color: var(--ink-2); }

.panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.panel__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.panel__label svg { color: var(--blue); }
.tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tabs--chips { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.tab { display: flex; align-items: center; justify-content: center; text-align: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--blue-700); background: #fff; }
.tab:hover { background: var(--blue-050); border-color: var(--blue-200); color: var(--blue-700); }
.tab.is-active { background: var(--blue-050); border-color: var(--blue); color: var(--blue-700); position: relative; }
.tab.is-active::after { content: "✓"; margin-left: 8px; color: var(--blue); font-weight: 800; }

.downloadcard { margin-top: 22px; background: linear-gradient(150deg, var(--blue), var(--blue-700)); border-radius: 16px; padding: 18px; color: #fff; box-shadow: var(--shadow-lg); }
.downloadcard__head { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.downloadcard__icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.downloadcard__title { margin-right: auto; display: flex; flex-direction: column; gap: 8px; }
.downloadcard__title b { font-size: 17px; }
.downloadcard__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.downloadcard__soon { background: rgba(255,255,255,.18); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; }

/* ---- Version picker ---- */
.verpick { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 18px 20px; }
.verpick__label { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.verpick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.vertab { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--blue-600); font-weight: 600; font-size: 14.5px; line-height: 1.15; }
.vertab:hover { border-color: var(--blue-200); background: var(--blue-050); color: var(--blue-700); }
.vertab.is-active { border-color: var(--blue); color: var(--ink); box-shadow: 0 0 0 3px var(--blue-050); }
.vertab__check { position: absolute; top: -9px; right: -9px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; box-shadow: 0 2px 6px rgba(8,162,235,.45); }
.vertab.is-active .vertab__check { display: grid; }

/* ---- Download panel (server / direct) ---- */
.dlpanel { margin-top: 18px; background: #fff; border: 1px solid var(--blue-100); border-top: 3px solid var(--blue); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
.dlhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dlhead__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px rgba(8,162,235,.32); }
.segbtn { padding: 11px 16px; border-radius: 10px; font-weight: 700; font-size: 14.5px; border: 1px solid transparent; background: #eef2f6; color: var(--ink-2); cursor: pointer; font-family: inherit; }
.segbtn.is-active { background: #dde6ee; color: var(--ink); }
.segbtn--ghost { background: var(--blue-050); color: var(--blue-700); }
.segbtn--direct { margin-left: auto; }
.dlpane { margin-top: 6px; }
.dlnote { display: flex; align-items: center; gap: 10px; margin: 16px 2px; color: var(--blue-700); font-weight: 600; font-size: 14.5px; }
.dlnote__bar { width: 4px; height: 18px; border-radius: 3px; background: var(--blue); flex: none; }
.dlempty { padding: 22px; text-align: center; color: var(--muted); background: var(--blue-050); border-radius: 12px; font-weight: 600; }

.dlfiles { display: flex; flex-direction: column; gap: 14px; }
.dlfile { display: flex; align-items: center; gap: 16px; padding: 15px 16px; border-radius: 14px; background: linear-gradient(135deg, #1c4f80, #123a63); color: #fff; box-shadow: 0 8px 20px rgba(15,50,90,.18); }
.dlfile__icon { width: 54px; height: 54px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: none; }
.dlfile__main { flex: 1; min-width: 0; }
.dlfile__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 800; font-size: 16.5px; }
.dlfile__arch { display: inline-flex; align-items: center; gap: 6px; background: #0a2540; color: #bcd8f6; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 700; }
.dlfile__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dlchip { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #2b3a49; padding: 5px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.dlchip .fmt { border: 1px solid #cbd5e1; border-radius: 5px; padding: 0 6px; margin-left: 2px; }
.dlfile__btn { flex: none; align-self: center; }

@media (max-width: 720px) {
  .verpick__grid { grid-template-columns: repeat(2, 1fr); }
  .dlfile { flex-wrap: wrap; }
  .dlfile__main { flex-basis: calc(100% - 70px); }
  .dlfile__btn { width: 100%; justify-content: center; margin-top: 4px; }
}

.described { margin-top: 24px; }
.described__title { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.described__body { color: var(--ink-2); font-size: 15px; }
.described__body p { margin: 0 0 10px; }

/* Right rail */
.product__rail { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.railcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px; }
.railcard__img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 10px; border-radius: 12px; background: #f5f8fc; margin-bottom: 14px; }
.railcard__title { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.railcard__specs { margin: 14px 0; border-top: 1px solid var(--line-2); }
.railcard__specs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.railcard__specs span { color: var(--muted); }
.railcard__specs b { color: var(--ink); text-align: right; }
.railcard__img--icon { object-fit: contain; padding: 22px; background: #fff; }
.railcard__soon { text-align: center; font-weight: 600; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; font-size: 14px; }
.railcard__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.railcta { display: block; background: linear-gradient(160deg, #1f2b38, #33475a); color: #fff; border-radius: 16px; padding: 18px; }
.railcta b { display: block; font-size: 16px; margin-bottom: 4px; color: #fff; }
.railcta span { font-size: 13px; color: rgba(255,255,255,.8); }
.railcta:hover { color: #fff; }

/* ---------------- Articles ---------------- */
.article { max-width: 860px; margin-top: 8px; }
.article__title { font-size: 30px; font-weight: 800; margin: 12px 0 18px; }
.article__body { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px; color: var(--ink-2); font-size: 15.5px; }
.article__body p { margin: 0 0 14px; }
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { position: relative; padding-left: 46px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; }
.callout { margin-top: 18px; background: var(--blue-050); border: 1px solid var(--blue-100); color: var(--blue-700); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.about-feature { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; text-align: center; }
.about-feature span { font-size: 26px; }
.about-feature b { display: block; margin: 6px 0 4px; }
.about-feature p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------------- 404 ---------------- */
.error404 { text-align: center; padding: 70px 0; }
.error404__code { font-size: 90px; font-weight: 900; color: var(--blue); line-height: 1; }
.error404 h1 { margin: 8px 0; }
.error404 p { color: var(--muted); margin-bottom: 20px; }

/* ---------------- Footer ---------------- */
.footer { background: #fff; border-top: 1px solid var(--line); margin-top: 30px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding: 34px 20px; }
.brand--footer { margin-bottom: 12px; }
.footer__tag { color: var(--muted); font-size: 14px; max-width: 360px; }
.footer__col h4 { font-size: 15px; margin-bottom: 12px; }
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a { color: var(--ink-2); font-size: 14px; }
.footer__col ul li a:hover { color: var(--blue-600); }
.footer__bottom { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: 13px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .product { grid-template-columns: 1fr; }
  .product__rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .railcard, .railcta { flex: 1 1 280px; }
}
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar__box { flex: 1 1 320px; }
  .sidebar__promo { flex: 1 1 260px; }
  .hero__art { display: none; }
  .hero__title { font-size: 32px; }
}
@media (max-width: 760px) {
  .mainnav__menu, .searchbox--nav { display: none; }
  .mainnav__menu.open { display: flex; position: absolute; top: 72px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); z-index: 60; }
  .mainnav__menu.open .dropdown__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 4px 12px; }
  .burger { display: flex; }
  .topbar__links a:not(.topbar__catalog) { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .about-features { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 27px; }
  .grid--cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .searchbox--hero button { padding: 11px 16px; }
}
