/* ============================================================
   EDITORIAL.CSS — ZipDriver новый дизайн
   Подключать вместо style.css через MinifyX
   ============================================================ */

/* ---------- ШРИФТЫ (оставляем свои с сервера) ---------- */
@font-face {
    font-family: 'reg';
    font-style: normal;
    src: url('/assets/template/fonts/reg.woff2') format('woff2'),
         url('/assets/template/fonts/reg.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'medium';
    font-style: normal;
    src: url('/assets/template/fonts/medium.woff2') format('woff2'),
         url('/assets/template/fonts/medium.woff') format('woff');
    font-display: swap;
}
@font-face {
    font-family: 'bold';
    font-style: normal;
    src: url('/assets/template/fonts/bold.woff2') format('woff2'),
         url('/assets/template/fonts/bold.woff') format('woff');
    font-display: swap;
}

/* ---------- ПЕРЕМЕННЫЕ ---------- */
:root {
    --white:    #ffffff;
    --off:      #fafaf8;
    --stone:    #f3f2ee;
    --stone2:   #e8e6e0;
    --stone3:   #d0cdc5;
    --ink:      #111110;
    --ink2:     #3a3935;
    --ink3:     #6b6a66;
    --ink4:     #9c9a94;
    --red:      #d63a1a;
    --red-l:    #f04e2a;
    --red-2l:   #fde8e3;
    --green:    #1a7a4a;
    --green-l:  #e3f5eb;
    --amber:    #a05a0a;
    --amber-l:  #fef3e0;
    --blue:     #1a4fa0;
    --blue-l:   #e3eeff;

    --fh: 'reg', sans-serif;
    --fb: 'bold', sans-serif;
    --fm: 'medium', sans-serif;

    --max: 1030px;
    --sidebar-w: 260px;
    --gap: 28px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body {
    font-family: var(--fh);
    background: var(--off);
    color: var(--ink);
    min-height: 100%;
    font-size: 17px;
    line-height: 1.6;
}
a { color: var(--red); text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---------- КОНТЕЙНЕР ---------- */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--white);
    border-bottom: 1.5px solid var(--ink);
    transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.1); }

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Логотип */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 28px;
}
.header-logo img {
    height: 28px;
    width: auto;
    display: block;
}

/* Навигация */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
    overflow: hidden;
}
.hn-sep {
    width: 1px;
    height: 14px;
    background: var(--stone3);
    margin: 0 10px;
    flex-shrink: 0;
}
.hn-link {
    font-family: var(--fm);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--ink3);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.14s;
    letter-spacing: -0.01em;
    padding: 4px 0;
}
.hn-link:hover { color: var(--red); }
.hn-link.active { color: var(--ink); font-family: var(--fb); }

/* Dropdown */
.hn-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.hn-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--fm);
    font-size: 0.8rem;
    color: var(--ink3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
    white-space: nowrap;
    transition: color 0.14s;
    letter-spacing: -0.01em;
}
.hn-btn:hover,
.hn-dropdown.open .hn-btn { color: var(--red); }
.hn-chevron {
    font-size: 0.55rem;
    opacity: 0.5;
    transition: transform 0.2s;
    margin-top: 1px;
}
.hn-dropdown.open .hn-chevron { transform: rotate(180deg); }

.hn-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -12px;
    background: var(--white);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    padding: 6px;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: all 0.18s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 4px 0 var(--ink);
    z-index: 100;
}
.hn-dropdown.open .hn-panel {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.hn-panel-title {
    font-family: var(--fm);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink4);
    padding: 6px 10px 4px;
}
.hn-panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    text-decoration: none;
    color: var(--ink2);
    font-size: 0.83rem;
    font-family: var(--fm);
    border-radius: 1px;
    transition: all 0.12s;
    gap: 12px;
}
.hn-panel-link:hover { background: var(--stone); color: var(--ink); }
.hn-panel-div { height: 1px; background: var(--stone2); margin: 4px 6px; }

/* Теги в dropdown */
.ptag {
    font-size: 0.58rem;
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    font-family: var(--fm);
}
.pt-new  { background: var(--green-l); color: var(--green); }
.pt-hot  { background: var(--red-2l);  color: var(--red); }
.pt-lts  { background: var(--amber-l); color: var(--amber); }

/* Кнопка CTA справа */
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-left: 16px;
}
.btn-cta {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--red);
    color: #fff;
    border: 1.5px solid var(--red);
    border-radius: 2px;
    padding: 6px 16px;
    font-family: var(--fb);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.btn-cta:hover {
    background: var(--red-l);
    border-color: var(--red-l);
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 var(--ink);
}

/* Мобильный toggle */
.header-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: 12px;
    padding: 4px;
}
.header-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}

/* ============================================================
   LAYOUT — обёртка страницы
   ============================================================ */
.page-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    gap: var(--gap);
    align-items: start;
    padding-top: 28px;
    padding-bottom: 48px;
    min-height: calc(100vh - 52px - 80px);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.ed-sidebar {
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.ed-sidebar::-webkit-scrollbar { width: 3px; }
.ed-sidebar::-webkit-scrollbar-thumb { background: var(--stone3); border-radius: 2px; }

.sb-label {
    font-family: var(--fm);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink4);
    padding: 0 0 8px 2px;
    border-bottom: 1px solid var(--stone2);
    margin-bottom: 10px;
}

/* Меню — категории и подкатегории */
.sb-menu { list-style: none; }
.sb-menu li { margin: 0; }

.sb-cat-link {
    display: block;
    font-family: var(--fb);
    font-size: 0.82rem;
    color: var(--ink2);
    padding: 6px 8px;
    border-radius: 2px;
    transition: all 0.13s;
    margin-bottom: 1px;
}
.sb-cat-link:hover { background: var(--stone); color: var(--ink); }
.sb-cat-link.active { background: var(--stone); color: var(--ink); }

.sb-sub { padding-left: 10px; margin-bottom: 4px; }
.sb-sub-link {
    display: block;
    font-family: var(--fh);
    font-size: 0.78rem;
    color: var(--ink3);
    padding: 4px 8px;
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: all 0.13s;
}
.sb-sub-link:hover { color: var(--ink); border-left-color: var(--stone3); }
.sb-sub-link.active { color: var(--red); border-left-color: var(--red); font-family: var(--fm); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.ed-main { min-width: 0; }

/* Хлебные крошки */
.ed-breadcrumbs {
    font-size: 0.75rem;
    color: var(--ink4);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ed-breadcrumbs a { color: var(--ink4); transition: color 0.13s; }
.ed-breadcrumbs a:hover { color: var(--red); }
.ed-breadcrumbs .sep { color: var(--stone3); }
.ed-breadcrumbs .current { color: var(--ink2); }

/* Doc header */
.doc-header { margin-bottom: 24px; }
.doc-eyebrow {
    font-family: var(--fm);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 8px;
}
.doc-title {
    font-family: var(--fb);
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 10px;
}
.doc-title span { color: var(--red); }
.doc-header p {
    margin-top: 1em;
}

/* Теги страницы */
.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.dtag {
    font-family: var(--fm);
    font-size: 0.64rem;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.06em;
}
.dt-new  { background: var(--green-l); color: var(--green); }
.dt-lts  { background: var(--amber-l); color: var(--amber); }
.dt-blue { background: var(--blue-l);  color: var(--blue); }
.dt-base { background: var(--stone);   color: var(--ink3); }
.dt-hot  { background: var(--red-2l);  color: var(--red); }

.doc-desc {
    font-size: 0.9rem;
    color: var(--ink3);
    line-height: 1.65;
    max-width: 680px;
    margin-bottom: 16px;
}

/* SHA строка */
.sha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--stone2);
    border-radius: 2px;
    margin-bottom: 6px;
}
.sha-row:last-child { margin-bottom: 0; }
.sha-lbl {
    font-family: var(--fm);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink4);
    flex-shrink: 0;
    min-width: 52px;
}
.sha-val {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--ink3);
    flex: 1;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.sha-btn {
    background: none;
    border: 1px solid var(--stone3);
    border-radius: 2px;
    font-family: var(--fm);
    font-size: 0.65rem;
    color: var(--ink4);
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.13s;
    flex-shrink: 0;
}
.sha-btn:hover { border-color: var(--ink); color: var(--ink); }

/* Заголовки секций */
.section-title {
    font-family: var(--fm);
    font-size: 0.64rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink4);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--stone2);
    margin: 24px 0 14px;
}

/* Параметры образа */
.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1px;
    background: var(--stone2);
    border: 1px solid var(--stone2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.param {
    background: var(--white);
    padding: 10px 14px;
}
.param-k {
    font-size: 0.68rem;
    color: var(--ink4);
    font-family: var(--fm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
}
.param-v {
    font-family: var(--fb);
    font-size: 0.85rem;
    color: var(--ink);
}

/* ISO список */
.iso-list-wrap {
    border: 1.5px solid var(--stone2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 28px;
}
.iso-thead {
    display: grid;
    grid-template-columns: 1fr 80px 90px 120px;
    padding: 8px 16px;
    gap: 8px;
    background: var(--stone);
    border-bottom: 1.5px solid var(--stone2);
}
.iso-th {
    font-family: var(--fh);
    font-size: 0.7rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--ink4);
}
.iso-item {
    display: grid;
    grid-template-columns: 1fr 80px 90px 120px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--stone);
    gap: 8px;
}
.iso-item:last-child { border-bottom: none; }
.iso-item:hover { background: #fafaf8; }
.iso-name-col a.iso-name {
    display: block;
    font-family: var(--fb);
    font-size: 0.9rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.13s;
}
.iso-name-col a.iso-name:hover { color: var(--red); }
.iso-sub {
    font-family: var(--fh);
    font-size: 0.72rem;
    color: var(--ink4);
    margin-top: 2px;
}
.iso-tags {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.itag {
    display: inline-block;
    font-family: var(--fb);
    font-size: 0.62rem;
    letter-spacing: .05em;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid;
    width: fit-content;
}
.itag.it-new { background: #edfaf3; color: #1a7a4a; border-color: #9ddcbe; }
.itag.it-top { background: #eef6ff; color: #1a5fa8; border-color: #9dc3ef; }
.itag.it-lts { background: #fff8e6; color: #8a6200; border-color: #e6c96a; }
.itag.it-std { background: var(--stone); color: var(--ink3); border-color: var(--stone2); }
.itag.it-aio { background: #f5f0ff; color: #6a3fa8; border-color: #c9b5ef; }
.itag.it-hot { background: #fff0ed; color: #c13a1a; border-color: #f0a898; }
.iso-size {
    font-family: var(--fh);
    font-size: 0.82rem;
    color: var(--ink3);
}
.iso-acts {
    display: flex;
    justify-content: flex-end;
}
/* Кнопки действий */
.act-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--red);
    color: #fff;
    border: 1.5px solid var(--red);
    border-radius: 2px;
    padding: 5px 12px;
    font-family: var(--fb);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.13s;
    white-space: nowrap;
}
.act-btn:hover {
    background: var(--red-l);
    border-color: var(--red-l);
}
.act-btn.secondary {
    background: var(--white);
    color: var(--ink2);
    border-color: var(--stone2);
}
.act-btn.secondary:hover {
    background: var(--stone);
    border-color: var(--ink);
    color: var(--ink);
}
.act-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--stone2);
    border-radius: 2px;
    color: var(--ink3);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.13s;
    cursor: pointer;
    background: var(--white);
}
.act-icon:hover { border-color: var(--ink); color: var(--ink); }

/* Кнопка скачать (большая) */
.z-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--red);
    color: #fff !important;
    border: 1.5px solid var(--red);
    border-radius: 3px;
    padding: 12px 24px;
    font-family: var(--fb);
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.15s;
    width: 100%;
}
.z-cat-button {
    font-size: 13px;
    font-weight: 600;
    color: var(--red-l);
    border: 1.5px solid var(--red-l);
    border-radius: 1px;
    padding: 4px 12px;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.z-download-button:hover {
    background: var(--red-l);
    border-color: var(--red-l);
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--ink);
}
.z-download-button-block {
    margin-bottom: 20px;
}
.z-download-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink4);
    margin-top: 6px;
}

/* Таблица параметров (z-specs) */
.z-specs-table {
    border: 1.5px solid var(--stone2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--white);
}
.z-params__item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--stone);
    font-size: 0.85rem;
}
.z-params__item:last-child { border-bottom: none; }
.z-params__item-name {
    font-family: var(--fm);
    color: var(--ink4);
    font-size: 0.78rem;
    min-width: 170px;
    flex-shrink: 0;
}

/* Хэш блок */
.z-hash-block {
    background: var(--stone);
    border-radius: 3px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--stone2);
}
.z-hash-block strong {
    display: block;
    margin-bottom: 10px;
    font-family: var(--fb);
    color: var(--ink3);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.z-hash-item { margin-top: 8px; }
.z-hash-item span:first-child {
    font-family: var(--fm);
    font-size: 0.7rem;
    color: var(--ink4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-right: 6px;
}
.z-hash-item span:last-child {
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--ink3);
    word-break: break-all;
}

/* Скриншоты */
.z-screenshots {
    border: 1px solid var(--stone2);
    border-radius: 3px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.z-screenshots summary {
    font-family: var(--fb);
    font-size: 0.85rem;
    color: var(--ink2);
    cursor: pointer;
    outline: none;
    user-select: none;
}
.screenshots-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-top: 12px;
}
.screenshots-gallery a img {
    width: 260px;
    height: auto;
    border-radius: 3px;
    border: 1px solid var(--stone2);
    transition: transform 0.2s;
}
.screenshots-gallery a:hover img { transform: scale(1.02); }

/* Рейтинг */
.z-rating-block { margin-bottom: 10px; }

/* Подкатегории (pdoMenu) */
.z-subcategories {
    margin-bottom: 20px;
}
.z-subcategories__text {
    font-family: var(--fm);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 8px;
}
.z-subcategories__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}
.z-subcategories__list li a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--stone2);
    border-radius: 2px;
    font-size: 0.82rem;
    color: var(--ink2);
    font-family: var(--fm);
    transition: all 0.13s;
    text-decoration: none;
}
.z-subcategories__list li a:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-2l);
}

/* Комментарии */
.comments-outer {
    margin-top: 28px;
    border-top: 1px solid var(--stone2);
    padding-top: 20px;
}

/* Текстовый контент */
.z-block-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink2);
    margin-bottom: 20px;
}
.z-block-text h2 {
    font-family: var(--fb);
    font-size: 1.1rem;
    margin: 20px 0 8px;
    color: var(--ink);
}
.z-block-text p { margin-bottom: 10px; }
.z-block-text ul {
  list-style-type: disc;
}

.z-block-text ol {
  list-style-type: decimal;
}

.z-block-text ul,
.z-block-text ol {
  padding-left: 1.25em;
  margin: 1em 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--white);
    border-top: 1.5px solid var(--ink);
    padding: 0;
    margin-top: auto;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.footer-col-title {
    font-family: var(--fm);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 10px;
}
.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: var(--ink3);
    text-decoration: none;
    padding: 3px 0;
    transition: color 0.13s;
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
    border-top: 1px solid var(--stone2);
    padding: 12px 20px;
    max-width: var(--max);
    margin: 0 auto;
    font-size: 0.75rem;
    color: var(--ink4);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom a { color: var(--ink4); transition: color 0.13s; }
.footer-bottom a:hover { color: var(--red); }

/* Cookie disclaimer */
.privacy-disclaimer {
    background: var(--stone);
    border-top: 1px solid var(--stone2);
    padding: 10px 0;
    font-size: 0.75rem;
    color: var(--ink3);
    position: relative;
}
.privacy-disclaimer .container { position: relative; padding-right: 40px; }
.privacy-disclaimer p { line-height: 1.5; }
.privacy-disclaimer__close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.13s;
}
.privacy-disclaimer__close::before,
.privacy-disclaimer__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--ink);
}
.privacy-disclaimer__close::before { transform: rotate(45deg); }
.privacy-disclaimer__close::after  { transform: rotate(-45deg); }
.privacy-disclaimer__close:hover { opacity: 0.8; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
.header-right-mob {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
}

/* ============================================================
   ГЛАВНАЯ — карточки разделов
   ============================================================ */
.home-sections {
    display: grid;
    gap: 12px;
    margin-bottom: 4px;
}
.home-section-card {
    display: block;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    padding: 18px 20px;
    text-decoration: none;
    background: var(--white);
    transition: all 0.15s;
    position: relative;
}
.home-section-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
    background: var(--off);
}
.hsc-label {
    font-family: var(--fm);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 6px;
}
.hsc-title {
    font-family: var(--fb);
    font-size: 1.1rem;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.hsc-desc {
    font-size: 0.8rem;
    color: var(--ink3);
    line-height: 1.5;
    margin-top: 12px;
}
.hsc-desc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.hsc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs_2 { margin-bottom: 16px; }
.breadcrumbs__inner_2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    font-size: 0.75rem;
    color: var(--ink4);
}
.breadcrumbs__inner_2 li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs__inner_2 li::after {
    content: '→';
    color: var(--stone3);
    font-size: 0.65rem;
}
.breadcrumbs__inner_2 li:last-child::after { display: none; }
.breadcrumbs__inner_2 a { color: var(--ink4); transition: color 0.13s; }
.breadcrumbs__inner_2 a:hover { color: var(--red); }
.breadcrumbs__inner_2 li.active a { color: var(--ink2); }

/* ============================================================
   ТАБЛИЦЫ в контенте
   ============================================================ */
.z-block-text table,
.text table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    border: 1px solid var(--stone2);
    border-radius: 3px;
    overflow: hidden;
}
.z-block-text table thead tr,
.text table thead tr {
    background: var(--stone);
    border-bottom: 1.5px solid var(--stone2);
}
.z-block-text table th,
.text table th {
    padding: 9px 12px;
    text-align: left;
    font-family: var(--fb);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink3);
    font-weight: normal;
}
.z-block-text table td,
.text table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--stone);
    color: var(--ink2);
    vertical-align: top;
    line-height: 1.5;
}
.z-block-text table tr:last-child td,
.text table tr:last-child td { border-bottom: none; }
.z-block-text table tbody tr:hover,
.text table tbody tr:hover { background: var(--off); }

/* ============================================================
   FAQ / STEPS блок
   ============================================================ */
.steps { margin-top: 24px; }
.steps h3 {
    font-family: var(--fb);
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--ink);
}
.steps [itemprop="mainEntity"] {
    border: 1px solid var(--stone2);
    border-radius: 3px;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: var(--white);
}
.steps [itemprop="name"] {
    font-family: var(--fb);
    font-size: 0.85rem;
    color: var(--ink);
    margin-bottom: 6px;
}
.steps [itemprop="acceptedAnswer"] {
    font-size: 0.82rem;
    color: var(--ink3);
    line-height: 1.6;
}

/* ============================================================
   ФОРМА КОММЕНТАРИЕВ
   ============================================================ */
.comments-outer { margin-top: 28px; }
.comments-outer h3.title {
    font-family: var(--fb);
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--ink);
}
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-family: var(--fm);
    font-size: 0.72rem;
    color: var(--ink4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--stone2);
    border-radius: 2px;
    font-family: var(--fh);
    font-size: 0.85rem;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.13s;
}
.form-control:focus { border-color: var(--ink); }
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}
.form-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 2px;
    font-family: var(--fm);
    font-size: 0.78rem;
    cursor: pointer;
    border: 1.5px solid var(--stone2);
    background: var(--white);
    color: var(--ink2);
    transition: all 0.13s;
    text-decoration: none;
}
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-primary:hover { background: var(--red-l); border-color: var(--red-l); }
.comment-list { list-style: none; }
.comment-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--stone);
    font-size: 0.85rem;
    color: var(--ink2);
}
#comment-new-link { margin-bottom: 16px; }

/* ============================================================
   РЕЙТИНГ SimpleRating
   ============================================================ */
.rating { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating__star {
    width: 22px; height: 22px;
    cursor: pointer;
    color: var(--stone2);
    font-size: 1.2rem;
    transition: color 0.1s;
}
.rating__best { position: relative; display: flex; flex-direction: row-reverse; }
.rating__current {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    background: var(--amber);
    pointer-events: none;
}

/* ============================================================
   ПОДКАТЕГОРИИ — ссылки выбора редакции
   ============================================================ */
.z-subcategories__item_2 { display: inline-block; }
.z-subcategories__item_2 a {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid var(--stone2);
    border-radius: 2px;
    font-size: 0.82rem;
    color: var(--ink2);
    font-family: var(--fm);
    transition: all 0.13s;
    text-decoration: none;
    margin: 0 4px 6px 0;
}
.z-subcategories__item_2 a:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--red-2l);
}

/* ============================================================
   SIDEBAR — классы active от pdoMenu
   ============================================================ */
.sb-menu li.active > a { color: var(--red); font-family: var(--fb); }
.sb-menu li.active > ul > li.active > a {
    color: var(--red);
    border-left-color: var(--red);
}
.sb-menu > li > a { 
    display: block;
    font-family: var(--fb);
    font-size: 0.82rem;
    color: var(--ink2);
    padding: 6px 8px;
    border-radius: 2px;
    transition: all 0.13s;
    margin-bottom: 1px;
}
.sb-menu > li > a:hover { background: var(--stone); color: var(--ink); }
.sb-menu > li > ul { padding-left: 10px; margin-bottom: 4px; }
.sb-menu > li > ul > li > a {
    display: block;
    font-size: 0.78rem;
    color: var(--ink3);
    padding: 4px 8px;
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: all 0.13s;
    margin-bottom: 1px;
}
.sb-menu > li > ul > li > a:hover { color: var(--ink); border-left-color: var(--stone3); }
.sb-menu > li > ul > li.active > a { color: var(--red); border-left-color: var(--red); }
.header-logo svg {
    display: block;
    flex-shrink: 0;
}
.header-logo:hover svg text { fill: #d63a1a; }
.header-logo:hover circle { fill: #111110; }
.header-logo { transition: opacity 0.15s; }
.header-logo:hover { opacity: 0.75; }
.hn-panel li { list-style: none; }
.hn-panel li a.hn-panel-link { display: flex; }
.hn-panel ul { list-style: none; padding: 0; margin: 0; }
.hn-panel li { list-style: none; padding: 0; margin: 0; display: block; }

/* ============================================================
   ПОИСК — форма и результаты
   ============================================================ */
.hdr-search-form {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--stone3);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.hdr-search-form:focus-within { border-color: var(--ink); }
.hdr-search-form input {
    background: none;
    border: none;
    outline: none;
    font-family: var(--fh);
    font-size: 0.78rem;
    color: var(--ink);
    padding: 5px 10px;
    width: 160px;
}
.hdr-search-form input::placeholder { color: var(--ink4); }
.hdr-search-btn {
    background: none;
    border: none;
    border-left: 1px solid var(--stone3);
    padding: 5px 8px;
    color: var(--ink4);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color 0.13s;
}
.hdr-search-btn:hover { color: var(--red); }

/* Результаты поиска */
.search-result-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--stone);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item a {
    display: block;
    font-family: var(--fb);
    font-size: 0.95rem;
    color: var(--red);
    margin-bottom: 4px;
    transition: color 0.13s;
}
.search-result-item a:hover { color: var(--red-l); }
.search-result-item .search-excerpt {
    font-size: 0.82rem;
    color: var(--ink3);
    line-height: 1.55;
}
/* ============================================================
   ФОРМА ПОИСКА — страница результатов
   ============================================================ */
.z-search-form { margin-bottom: 24px; }
.z-search-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    overflow: hidden;
    max-width: 560px;
}
.z-search-wrap input[type="text"] {
    flex: 1;
    background: var(--white);
    border: none;
    outline: none;
    font-family: var(--fh);
    font-size: 0.88rem;
    color: var(--ink);
    padding: 10px 14px;
}
.z-search-wrap input[type="text"]::placeholder { color: var(--ink4); }
.z-search-btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-family: var(--fb);
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.13s;
    white-space: nowrap;
}
.z-search-btn:hover { background: var(--red-l); }
/* ============================================================
   SIMPLESEARCH — результаты
   ============================================================ */
.simplesearch-results {
    font-size: 0.82rem;
    color: var(--ink4);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--stone2);
}
.simplesearch-highlight { color: var(--red); font-style: normal; font-family: var(--fb); }
.simplesearch-results-list { margin-bottom: 24px; }

.simplesearch-result {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--stone);
}
.simplesearch-result:last-child { border-bottom: none; }

.sr-name-col { min-width: 0; }
.sr-name-col > a {
    display: block;
    font-family: var(--fb);
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.13s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-name-col > a:hover { color: var(--red); }
.sr-extract {
    font-size: 0.78rem;
    color: var(--ink3);
    line-height: 1.5;
}
.sr-extract p { margin: 0; }

/* Пагинация */
.simplesearch-paging {
    font-size: 0.82rem;
    color: var(--ink4);
    margin: 16px 0;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.simplesearch-result-pages { margin-right: 4px; }
.simplesearch-page a {
    color: var(--red);
    text-decoration: none;
    padding: 3px 8px;
    border: 1px solid var(--stone2);
    border-radius: 2px;
    transition: background 0.13s;
}
.simplesearch-page a:hover { background: var(--stone); }
.simplesearch-current-page {
    padding: 3px 8px;
    background: var(--red);
    color: #fff;
    border-radius: 2px;
    font-family: var(--fb);
}
.iso-name-col {
    min-width: 0;
    overflow: hidden;
}
.iso-name-col a.iso-name {
    display: block;
    font-family: var(--fb);
    font-size: 0.88rem;
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    transition: color 0.13s;
}
/* ============================================================
   КАТЕГОРИЯ — горизонтальные плитки редакций
   ============================================================ */
.cat-editions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cat-edition-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1.5px solid var(--stone2);
    border-radius: 3px;
    padding: 12px 16px;
    text-decoration: none;
    background: var(--white);
    transition: all 0.15s;
    min-width: 160px;
    flex: 1;
    max-width: 220px;
}
.cat-edition-card:hover {
    border-color: var(--red);
    background: var(--red-2l);
    transform: translate(-1px,-1px);
    box-shadow: 2px 2px 0 var(--ink);
}
.ced-title {
    font-family: var(--fb);
    font-size: 0.88rem;
    color: var(--ink);
    line-height: 1.3;
}
.ced-meta {
    font-family: var(--fh);
    font-size: 0.72rem;
    color: var(--ink4);
}
.ced-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.cat-editions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}
.cat-edition-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    background: var(--white);
    transition: all 0.15s;
}
.cat-edition-row:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--ink);
    background: var(--off);
}
.cer-left {
    flex: 1;
    min-width: 0;
    text-decoration: none;
}
.cer-left:hover .cer-title { color: var(--red); }
.cer-right { flex-shrink: 0; }
.cer-eyebrow {
    font-family: var(--fm);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 6px;
}
.cer-title {
    font-family: var(--fb);
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.3;
    transition: color 0.13s;
}
.cat-edition-row:hover .cer-title { color: var(--red); }
.cer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.cer-meta {
    font-family: var(--fh);
    font-size: 0.75rem;
    color: var(--ink4);
    white-space: nowrap;
}
.cer-tags {
    display: flex;
    gap: 4px;
}
/* ============================================================
   ССЫЛКИ В ТЕКСТЕ — переопределение reset
   ============================================================ */
.z-block-text p a,
.z-block-text li a,
.text p a,
.text li a {
    color: var(--red) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(214,58,26,0.3) !important;
    transition: color 0.13s !important;
}
.z-block-text p a:hover,
.z-block-text li a:hover,
.text p a:hover,
.text li a:hover {
    color: var(--red-l) !important;
    text-decoration-color: var(--red) !important;
}
.hsc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.hsc-treb {
    font-size: 0.78rem;
    color: var(--ink3);
    white-space: pre-wrap;
    margin-top: 12px;
    line-height: 1.5;
}
.sha-block-title {
    font-family: var(--fm);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 10px;
}
.z-params__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--stone);
    font-size: 0.85rem;
}
.z-params__item-name {
    font-family: var(--fm);
    color: var(--ink4);
    font-size: 0.78rem;
    min-width: 170px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.z-params__item-value {
    color: var(--ink);
    font-family: var(--fm);
    font-size: 0.85rem;
}
.z-rating-block .z-params__item-value {
    display: block;
}
.z-rating-block {
    margin-bottom: 16px;
}
/* ============================================================
   HERO — главная страница
   ============================================================ */
.hero-block {
    border-left: 3px solid var(--red);
    padding: 1px 0 32px 24px;
    margin-bottom: 20px;
}
.hero-eyebrow {
    font-family: var(--fm);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-title {
    font-family: var(--fb);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--ink);
    margin-bottom: 12px;
}
.hero-title-outline {
    display: block;
    color: var(--red);
    font-size: 2.8rem;
}
.hero-sub {
    font-size: 0.92rem;
    color: var(--ink3);
    line-height: 1.65;
    max-width: 520px;
    margin-bottom: 24px;
}
.hero-block p + p {
    margin-top: 1em;
}
.hero-block ul,
.hero-block ol {
  list-style: revert;
  margin: revert;
}
.hero-block h2, .text h2 {
font-family: var(--fb);
font-size: 1.7rem;
letter-spacing: -0.02em;
line-height: 1.7;
color: var(--ink);
margin: 28px 0 12px;
}
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    margin-top: 15px;
}
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: #fff;
    border: 1.5px solid var(--red);
    border-radius: 2px;
    padding: 11px 24px;
    font-family: var(--fb);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-hero-primary:hover {
    background: var(--red-l);
    transform: translate(-2px,-2px);
    box-shadow: 4px 4px 0 var(--ink);
    color: #fff;
}
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--ink2);
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    padding: 11px 24px;
    font-family: var(--fm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-hero-secondary:hover {
    transform: translate(-2px,-2px);
    box-shadow: 4px 4px 0 var(--ink);
    background: var(--stone);
}
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--stone2);
    padding-top: 16px;
    gap: 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
    margin-right: 20px;
    border-right: 1px solid var(--stone2);
}
.trust-item:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.trust-icon {
    font-size: 0.9rem;
    color: var(--ink4);
    flex-shrink: 0;
}
.trust-text {
    font-family: var(--fh);
    font-size: 0.72rem;
    color: var(--ink3);
    line-height: 1.4;
}
.trust-text strong {
    display: block;
    color: var(--ink);
    font-family: var(--fm);
    font-size: 0.75rem;
}
.hero-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid var(--ink);
    border-radius: 2px;
    background: var(--white);
    text-decoration: none;
    transition: all 0.15s;
}
.hero-card:hover {
    transform: translate(-2px,-2px);
    box-shadow: 4px 4px 0 var(--ink);
    background: var(--off);
}
.hero-card-icon {
    width: 36px;
    height: 36px;
    background: var(--stone);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid var(--stone2);
}
.hero-card-body { min-width: 0; flex: 1; }
.hero-card-title {
    font-family: var(--fb);
    font-size: 0.88rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.hero-card-sub {
    font-size: 0.72rem;
    color: var(--ink4);
    margin-top: 2px;
}
.hero-card-tag {
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid;
    flex-shrink: 0;
    font-family: var(--fm);
    letter-spacing: 0.05em;
}
.tag-new { background: #edfaf3; color: #1a7a4a; border-color: #9ddcbe; }
.tag-lts { background: #fff8e6; color: #8a6200; border-color: #e6c96a; }
/* ============================================================
   СТРАНИЦА СКАЧИВАНИЯ
   ============================================================ */
.download-page-block {
    border: 1.5px solid var(--ink);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--white);
}
.download-status {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--stone2);
}
.download-status-icon {
    width: 48px;
    height: 48px;
    background: var(--red);
    color: #fff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.download-status-body { flex: 1; }
.download-status-title {
    font-family: var(--fb);
    font-size: 1rem;
    color: var(--ink);
    margin-bottom: 4px;
}
.download-status-sub {
    font-size: 0.82rem;
    color: var(--ink3);
}
.download-counter-ring {
    width: 56px;
    height: 56px;
    border: 2px solid var(--stone2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#download-counter-big {
    font-family: var(--fb);
    font-size: 1.4rem;
    color: var(--red);
}
.download-progress {
    height: 3px;
    background: var(--stone2);
}
.download-progress-bar {
    height: 100%;
    background: var(--red);
    width: 0%;
    transition: width 1s linear;
}
.download-actions {
    display: flex;
    gap: 10px;
    padding: 20px 24px;
    flex-wrap: wrap;
}
.hidden { display: none; }
.download-reklama { margin-top: 16px; }
.dl-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--stone2);
    border: 1.5px solid var(--stone2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 24px;
}
.dl-step {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-bottom: none;
    transition: background 0.13s;
}
.dl-step:hover { background: var(--off); }
.dl-step-num {
    width: 24px;
    height: 24px;
    background: var(--red);
    color: #fff;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fb);
    font-size: 0.78rem;
    flex-shrink: 0;
}
.dl-step-body { min-width: 0; }
.dl-step-title {
    font-family: var(--fb);
    font-size: 1rem;
    color: var(--ink);
}
.dl-step-text {
    font-size: 0.85rem;
    color: var(--ink3);
    line-height: 1.5;
    margin-bottom: 6px;
}
.dl-step-link {
    font-family: var(--fm);
    font-size: 0.72rem;
    color: var(--red);
    text-decoration: none;
    transition: color 0.13s;
}
.dl-step-link:hover { color: var(--red-l); }


strong, b {
    font-family: var(--fb);
    font-weight: normal;
}
/* ============================================================
   ЗАГОЛОВКИ H1-H6 в контенте
   ============================================================ */
.z-block-text h1,
.text h1 {
    font-family: var(--fb);
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
    margin: 32px 0 14px;
}
.z-block-text h2,
.text h2 {
    font-family: var(--fb);
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    line-height: 1.7;
    color: var(--ink);
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--stone2);
}
.z-block-text h3,
.text h3 {
    font-family: var(--fb);
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--ink);
    margin: 22px 0 10px;
}
.z-block-text h4,
.text h4 {
    font-family: var(--fm);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink3);
    margin: 18px 0 8px;
}
.z-block-text h5,
.text h5 {
    font-family: var(--fm);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink4);
    margin: 14px 0 6px;
}
.z-block-text h6,
.text h6 {
    font-family: var(--fm);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink4);
    margin: 12px 0 6px;
}

/* Первый заголовок без верхнего отступа */
.z-block-text h1:first-child,
.z-block-text h2:first-child,
.z-block-text h3:first-child,
.text h1:first-child,
.text h2:first-child,
.text h3:first-child {
    margin-top: 0;
}
/* Инлайн код */
code {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.88em;
    color: #c7254e;
}



/* Инструкции */

.ed-guides {
    margin: 0 0 24px;
}
.ed-guides__title {
    font-family: var(--fm);
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink4);
    margin-bottom: 8px;
}
.ed-guides__list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--stone2);
}
.ed-guide-item {
    font-size: 18px;
    color: var(--ink2);
    padding: 10px 0;
    text-decoration: none;
    border-bottom: 1px solid var(--stone2);
    transition: color 0.13s;
}
.ed-guide-item:hover {
    color: var(--red);
}
blockquote {
    position: relative;
    margin: 24px 0;
    padding: 16px 20px 16px 52px;
    background: var(--stone);
    border-left: 3px solid var(--ink);
    border-radius: 0 4px 4px 0;
    font-size: 0.95rem;
    color: var(--ink2);
    line-height: 1.7;
}
blockquote::before {
    content: '\201C';
    position: absolute;
    left: 14px;
    top: 8px;
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--ink4);
}
blockquote p {
    margin: 0;
}
blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    color: var(--ink4);
    font-style: normal;
}
blockquote cite::before {
    content: '— ';
}

/* Поиск в сайдбаре (только мобиле) */
.sb-search { display: none !important; }

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1.5px solid var(--stone2);
    border-radius: 3px;
    cursor: pointer;
    padding: 6px;
    margin-left: 10px;
    flex-shrink: 0;
}
.burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.2s;
}
@media (max-width: 900px) {

    .burger { display: flex; }
    .header-nav { display: none; }
    .hn-sep { display: none; }
    .hdr-search { display: none; }

    .sb-search {
        display: flex !important;
        margin-bottom: 16px;
    }
    .sb-search .hdr-search-form {
        width: 100%;
    }
    .sb-search .hdr-search-form input {
        width: 100%;
        flex: 1;
    }
    

    .ed-sidebar {
    position: fixed;
    top: 52px;
    right: -280px;
    left: auto;
    width: 260px;
    height: calc(100vh - 52px);
    background: var(--white);
    border-left: 1.5px solid var(--stone2);
    border-right: none;
    overflow-y: auto;
    transition: right 0.25s ease;
    z-index: 399;
    padding: 20px 16px;
}
.ed-sidebar.open {
    right: 0;
    left: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}

    .page-wrap {
        display: block;
        padding: 16px 20px;
    }
    .ed-main {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .iso-list-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .iso-thead {
        min-width: 560px;
    }
    .iso-item {
        min-width: 560px;
    }
    .iso-name-col a.iso-name {
        white-space: nowrap;
    }

    .z-block-text table,
    .text table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .hero-title { font-size: 1.6rem; }
    .hero-title-outline { font-size: 1.6rem; -webkit-text-stroke: 1.5px var(--ink); }
    .hero-actions { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; text-align: center; justify-content: center; }
    .hero-trust { flex-direction: column; gap: 0; }
    .trust-item { border-right: none; border-bottom: 1px solid var(--stone2); padding: 8px 0; }
    .hero-cards { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .dl-steps-grid { grid-template-columns: 1fr; }
}
/* Кнопка Проголосовать */
.rate-this {
    font-family: var(--fm);
    font-size: 0.78rem;
    color: var(--red);
    cursor: pointer;
    border-bottom: 1px dashed var(--red);
    transition: color 0.13s;
    display: inline-block;
    position: relative;
}
.rate-this:hover { color: var(--red-l); }

/* Звёзды выпадают вниз */
.rate-window {
    position: absolute;
    bottom: 26px;
    top: auto;
    left: 0;
    z-index: 100;
    background: var(--white);
    border: 1.5px solid var(--stone2);
    border-radius: 3px;
    padding: 10px 14px;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.12);
    white-space: nowrap;
}
.z-params__item-value .z-params__item {
    padding: 0;
    border-bottom: none;
    gap: 12px;
}

.z-params__item-value .z-params__item .z-params__item-name {
    min-width: 170px;
}
/* ── Блок инструкции ── */
.inst-block {
    border: 1.5px solid var(--stone2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 32px;
}
.inst-block + .inst-block { margin-top: -4px; } /* для составных блоков */

.inst-header {
    font-family: var(--fb);
    font-size: 0.95rem;
    padding: 12px 16px;
    background: var(--stone);
    border: 1.5px solid var(--stone2);
    border-radius: 2px 2px 0 0;
    border-bottom: none;
}

.inst-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--stone2);
}
.inst-step:last-child { border-bottom: none; }

/* Уведомления внутри блоков */
.inst-notice {
    padding: 10px 16px;
    border-bottom: 1px solid var(--stone2);
    font-size: 0.82rem;
    font-family: var(--fm);
}
.inst-notice--green { background: var(--amber-l); color: var(--green); }
.inst-notice--amber { background: var(--amber-l); color: var(--amber); }

/* Буллет-точка */
.bullet-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
    margin-top: 6px;
    flex-shrink: 0;
}
.bullet-dot--muted { background: var(--ink4); }

/* Строка списка с буллетом */
.bullet-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--stone2);
}
.bullet-row:last-child { border-bottom: none; }
.bullet-row--muted { background: var(--stone); }

/* Промо-баннер (нет ключа → KMSAuto) */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--stone);
    border: 1.5px solid var(--stone2);
    border-left: 3px solid var(--ink);
    border-radius: 2px;
    margin-bottom: 32px;
}
.promo-banner__title {
    font-family: var(--fb);
    font-size: 0.9rem;
    margin-bottom: 3px;
}
.promo-banner__sub {
    font-size: 0.83rem;
    color: var(--ink3);
}

/* Модификатор dl-step вертикальный */
.dl-step--col {
    flex-direction: column;
    gap: 10px;
}
/* ── inst-step: номер шага — контур вместо заливки ──────────────
2226   inst-header использует .dl-step-num как есть (красный заполненный).
2227   Внутри inst-step тот же элемент перекрашивается в контурный,
2228   чтобы визуально отличать «номер раздела» от «номера подшага».
2229──────────────────────────────────────────────────────────────── */
.inst-step .dl-step-num {
    background: transparent;
    color: var(--red);
    border: 1.5px solid var(--red);
}
/* ── PARAMS INLINE ── */
  .params-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--stone2);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
  }
  .param-cell {
    background: var(--stone);
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .param-label {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.52rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink4);
  }
  .param-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
  }
  .param-value.green { color: var(--green); }
  /* ── Sub-label над кнопками ── */
.z-dl-sub {
    font-size: 0.72rem;
    color: var(--ink4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
    margin-top: 10px;
}
.z-dl-sub:first-child {
    margin-top: 0;
}

.z-dl-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 10px;
}   /* ← эта скобка должна быть */


.z-dl-col {
    display: flex;
    flex-direction: column;
}

/* ── Общие стили альтернативных кнопок ── */
.z-dl-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border-radius: 3px;
    font-family: var(--fb);
    font-size: 0.85rem;
    text-decoration: none !important;
    transition: all 0.15s;
    width: 100%;
}

/* ── Зеркало ── */
.z-dl-mirror {
    background: #edf2fc;
    color: #2255aa !important;
    border: 1.5px solid #c8d8f5;
}
.z-dl-mirror:hover {
    background: #dce8fc;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--ink);
}

/* ── Торрент: кнопка + ? в ряд ── */
.z-torrent-row {
    display: flex;
    align-items: stretch;
}
.z-dl-torrent {
    background: #f0f7eb;
    color: #4a7c1a !important;
    border: 1.5px solid #c5dfa8;
    border-right: none;
    border-radius: 3px 0 0 3px;
    flex: 1;
}
.z-dl-torrent:hover {
    background: #e4f2d8;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--ink);
}

/* ── Кнопка ? ── */
.z-torrent-info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    flex-shrink: 0;
    background: #e4f2d8;
    border: 1.5px solid #c5dfa8;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: #4a7c1a;
    transition: background 0.15s;
    user-select: none;
}
.z-torrent-info-btn:hover { background: #d6ecbf; }
.z-torrent-info-btn.active { background: #4a7c1a; color: #fff; border-color: #4a7c1a; }

/* ── Блок с составом редакций ── */
.z-torrent-editions {
    display: none;
    background: #f7faf4;
    border: 1.5px solid #c5dfa8;
    border-radius: 3px;
    padding: 9px 13px;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--ink3);
    line-height: 1.6;
}
.z-torrent-editions.open { display: block; }
.z-torrent-editions b { color: #4a7c1a; }

.z-editions-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 13px;
    font-family: var(--fb);
    font-size: 0.78rem;
    cursor: pointer;
    background: #f7faf4;
    border-bottom: 1px solid #e4f0d8;
    user-select: none;
    color: #4a7c1a;
    transition: background 0.12s;
}
.z-editions-title:hover { background: #eef7e5; }
.z-editions-title .arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: var(--ink4);
}
.z-editions-title.open .arrow { transform: rotate(180deg); }

.z-editions-list {
    display: none;
    padding: 8px 13px 10px;
    border-bottom: 1px solid #f0f0ec;
}
.z-editions-list.open { display: block; }
.z-editions-group:last-child .z-editions-list { border-bottom: none; }

.z-editions-list ol {
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.z-editions-list li {
    font-size: 0.78rem;
    color: var(--ink3);
    line-height: 1.4;
}