/* ==========================================================================
   ANDROIDI — каталог игр и приложений для Android
   Дизайн-система. Светлая + тёмная тема.
   Порядок подключения: engine.css → styles.css → app.css → forms.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ШРИФТЫ
   -------------------------------------------------------------------------- */
@font-face {
    font-family: "Averta";
    src: url(../fonts/AvertaCY-Regular.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Averta";
    src: url(../fonts/AvertaCY-Semibold.woff2) format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Averta";
    src: url(../fonts/AvertaCY-Bold.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   2. ТОКЕНЫ
   -------------------------------------------------------------------------- */
:root {
    color-scheme: light;

    --brand: #6c4cf1;
    --brand-600: #5b3ce0;
    --brand-700: #4a2bc4;
    --brand-100: #efeaff;
    --brand-50: #f6f3ff;
    --brand-grad: linear-gradient(135deg, #7b5cff 0%, #6242ee 55%, #4a2bc4 100%);

    --green: #12a150;
    --green-100: #e6f8ee;
    --orange: #f79009;
    --orange-100: #fff4e5;
    --red: #e5484d;
    --red-100: #ffecec;

    --bg: #f5f6fa;
    --bg-2: #ffffff;
    --bg-3: #eef0f6;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --surface-brand: #f4f1ff;

    --text: #101828;
    --text-2: #5b6475;
    --text-3: #8b94a5;
    --text-inv: #ffffff;

    --line: #e8eaf1;
    --line-2: #dfe3ec;

    --r-xs: 8px;
    --r-sm: 12px;
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --r-pill: 999px;

    --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
    --sh-2: 0 10px 28px -12px rgba(16, 24, 40, .18);
    --sh-3: 0 24px 60px -24px rgba(16, 24, 40, .28);
    --sh-brand: 0 12px 30px -12px rgba(108, 76, 241, .55);

    --header-h: 68px;
    --container: 1280px;
    --gutter: 24px;

    /* совместимость с engine.css */
    --bg2: var(--surface);
    --engine: var(--surface);
    --engine2: var(--surface-2);
    --text1: var(--text-inv);
    --text2: var(--text-2);
    --color1: var(--brand);
    --color2: var(--brand-600);
    --color3: var(--green);
    --light: rgba(255, 255, 255, .18);
    --light2: rgba(255, 255, 255, .34);
    --dark: rgba(16, 24, 40, .08);
    --radius: var(--r);
}

html[data-theme="dark"] {
    color-scheme: dark;

    --brand: #8b6dff;
    --brand-600: #7a57f5;
    --brand-700: #a48dff;
    --brand-100: #241d3f;
    --brand-50: #1b1730;
    --brand-grad: linear-gradient(135deg, #7b5cff 0%, #6242ee 55%, #4828bd 100%);

    --green: #3ddc84;
    --green-100: #12301f;
    --orange: #ffb020;
    --orange-100: #33260f;
    --red: #ff6b6f;
    --red-100: #34181a;

    --bg: #0d0e14;
    --bg-2: #14161f;
    --bg-3: #1b1e29;
    --surface: #161925;
    --surface-2: #1c1f2c;
    --surface-brand: #1c1834;

    --text: #f2f3f8;
    --text-2: #a8afc0;
    --text-3: #7c8496;
    --text-inv: #0d0e14;

    --line: #242837;
    --line-2: #2f3446;

    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 14px 34px -16px rgba(0, 0, 0, .7);
    --sh-3: 0 28px 70px -28px rgba(0, 0, 0, .85);
    --sh-brand: 0 12px 30px -12px rgba(108, 76, 241, .45);

    --dark: rgba(0, 0, 0, .3);
}

/* --------------------------------------------------------------------------
   3. БАЗА
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: "Averta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
    border: 0;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover {
    color: var(--brand-600);
}

h1,
h2,
h3,
h4,
h5 {
    margin: 0 0 .5em;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--text);
}

h1 {
    font-size: clamp(26px, 3.2vw, 40px);
}

h2 {
    font-size: clamp(21px, 2.3vw, 28px);
}

h3 {
    font-size: clamp(18px, 1.6vw, 21px);
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

ul>li,
ol>li {
    margin-bottom: .4em;
}

figure {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--brand);
    color: #fff;
}

/* --------------------------------------------------------------------------
   4. УТИЛИТЫ
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 40px 0 0;
}

.section--tight {
    padding-top: 24px;
}

.section--brand {
    background: var(--surface-brand);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--brand);
    color: #fff;
    border-radius: var(--r-sm);
    transition: top .2s;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 16px;
    height: 16px;
    stroke-width: 2.1;
}

.icon--xs {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

.icon--lg {
    width: 28px;
    height: 28px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Сетки карточек */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

@media (max-width: 560px) {
    .app-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Рейтинг звёздами */
.stars {
    position: relative;
    display: inline-block;
    color: var(--line-2);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stars::before {
    content: "★★★★★";
}

.stars>span {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: var(--orange);
    white-space: nowrap;
}

.stars>span::before {
    content: "★★★★★";
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-1px);
    color: var(--text);
    background: var(--bg-3);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.btn--primary:hover {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 16px 34px -12px rgba(108, 76, 241, .7);
    filter: brightness(1.04);
}

.btn--download {
    min-height: 54px;
    padding: 0 30px;
    font-size: 17px;
    border-radius: var(--r);
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--sh-brand);
}

.btn--download:hover {
    background: var(--brand-grad);
    color: #fff;
    filter: brightness(1.05);
}

.btn--green {
    background: var(--green);
    color: #fff;
}

.btn--green:hover {
    background: #0f8b45;
    color: #fff;
}

.btn--ghost {
    background: transparent;
    border-color: var(--line-2);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-2);
    border-color: var(--brand);
    color: var(--brand);
}

.btn--soft {
    background: var(--brand-100);
    color: var(--brand);
}

.btn--soft:hover {
    background: var(--brand);
    color: #fff;
}

.btn--block {
    width: 100%;
}

.btn--lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 16px;
}

.btn[disabled] {
    opacity: .55;
    pointer-events: none;
}

/* Бейджи */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge--brand {
    background: var(--brand-100);
    color: var(--brand);
}

.badge--green {
    background: var(--green-100);
    color: var(--green);
}

.badge--orange {
    background: var(--orange-100);
    color: #b54708;
}

html[data-theme="dark"] .badge--orange {
    color: var(--orange);
}

.badge--red {
    background: var(--red-100);
    color: var(--red);
}

/* Чипы (жанры, фильтры) */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chips>li {
    margin: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: .18s ease;
}

.chip:hover,
.chip.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.chip__count {
    font-size: 12px;
    opacity: .65;
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   4.1. Строка подкатегорий на страницах разделов (как в RuStore)
   -------------------------------------------------------------------------- */
.cat-chips-row {
    position: relative;
    margin: 2px 0 20px;
}

.cat-chips-row .cat-chips {
    display: grid;
    grid-template-rows: repeat(2, max-content);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}

.cat-chips-row .cat-chips::-webkit-scrollbar {
    display: none;
}

.cat-chips-row .chip {
    height: 40px;
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    scroll-snap-align: start;
}

.chip__icon {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    object-fit: contain;
    flex: 0 0 auto;
}

.chip .icon--xs {
    color: var(--text-3);
}

.chip.is-active .icon--xs,
.chip:hover .icon--xs {
    color: inherit;
}

.cat-chips__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text-2);
    box-shadow: var(--sh-2);
    transform: translateY(-50%);
    transition: opacity .18s ease, color .18s ease, border-color .18s ease;
}

.cat-chips__arrow:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cat-chips__arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.cat-chips__arrow--prev {
    left: -16px;
}

.cat-chips__arrow--next {
    right: -16px;
}

@media (hover: none) {
    .cat-chips__arrow {
        display: none;
    }
}

@media (max-width: 720px) {
    .cat-chips-row {
        margin-bottom: 14px;
    }

    .cat-chips-row .cat-chips {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    }

    .cat-chips-row .chip {
        flex: 0 0 auto;
        height: 38px;
        font-size: 13.5px;
    }
}

/* Заголовок секции */
.sec-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.sec-head h2,
.sec-head h1 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-head__icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand-100);
    color: var(--brand);
}

.sec-head__link {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.sec-head__link:hover .icon {
    transform: translateX(3px);
}

.sec-head__link .icon {
    transition: transform .18s ease;
}

.sec-sub {
    margin: 6px 0 0;
    color: var(--text-2);
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   5. ХЕДЕР
   -------------------------------------------------------------------------- */
.subnav {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.subnav__in {
    padding-top: 0;
    padding-bottom: 0;
}

.subnav__list {
    display: flex;
    gap: 0;
    margin: 0 -6px;
    padding: 0 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.subnav__list::-webkit-scrollbar {
    display: none;
}

.subnav__link {
    position: relative;
    display: inline-block;
    padding: 11px 10px;
    color: var(--text-2);
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: color .16s;
}

.subnav__link:hover {
    color: var(--brand);
}

.subnav__link.is-active {
    color: var(--brand);
    font-weight: 600;
}

.subnav__link.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
}

@media (max-width: 1024px) {
    .subnav {
        display: none;
    }
}

.hdr {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    transition: box-shadow .2s ease;
}

.hdr.is-scrolled {
    box-shadow: var(--sh-2);
}

.hdr__in {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.logo:hover {
    color: var(--text);
}

.logo__mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--brand-grad);
    box-shadow: var(--sh-brand);
    color: #fff;
}

.logo__mark svg {
    width: 23px;
    height: 23px;
    stroke-width: 2;
}

.logo__text b {
    color: var(--brand);
    font-weight: 700;
}

/* Навигация */
.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 4px;
}

.nav__item {
    position: relative;
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 40px;
    padding: 0 13px;
    border-radius: var(--r-pill);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .16s, color .16s;
}

.nav__link:hover,
.nav__link.is-active,
.nav__item.is-active>.nav__link {
    background: var(--brand-50);
    color: var(--brand);
}

.nav__link .icon {
    width: 15px;
    height: 15px;
    opacity: .55;
    transition: transform .2s;
}

.nav__item:hover>.nav__link .icon {
    transform: rotate(180deg);
}

/* Мега-меню (подкатегории) */
.mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    min-width: 300px;
    max-width: min(760px, 90vw);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.nav__item:hover .mega,
.nav__item:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 26px;
}

.mega a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.mega a:hover {
    background: var(--brand-50);
    color: var(--brand);
}

.mega a .count {
    margin-left: auto;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 600;
}

.mega__all {
    display: inline-flex;
    margin-top: 10px;
    padding: 10px;
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
}

/* Поиск в хедере */
.hsearch {
    position: relative;
    flex: 1 1 auto;
    max-width: 420px;
    margin-left: auto;
}

.hsearch__field {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface-2);
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.hsearch__field:focus-within {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--brand-100);
}

.hsearch__field .icon {
    color: var(--text-3);
}

.hsearch input {
    width: 100%;
    height: 100%;
    border: 0;
    background: none;
    outline: 0;
    font-size: 15px;
}

.hsearch input::placeholder {
    color: var(--text-3);
}

.hsearch__btn {
    display: none;
}

/* Действия */
.hdr__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    transition: .18s ease;
}

.icon-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-50);
}

.icon-btn .icon {
    width: 20px;
    height: 20px;
}

/* Переключатель темы */
.theme-toggle .icon-sun {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

/* Логин / пользователь */
.hdr__user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hdr__user .btn {
    min-height: 42px;
}

/* Бургер */
.burger {
    display: none;
}

/* Мобильное меню */
.mnav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mnav.is-open {
    transform: translateX(0);
}

.mnav__top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--gutter);
    border-bottom: 1px solid var(--line);
}

.mnav__body {
    padding: 16px var(--gutter) 40px;
}

.mnav__search {
    margin-bottom: 18px;
}

.mnav__list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.mnav__list>li {
    margin: 0;
    border-bottom: 1px solid var(--line);
}

.mnav__list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 2px;
    color: var(--text);
    font-size: 17px;
    font-weight: 600;
}

.mnav__list a .icon {
    color: var(--brand);
}

.mnav__list a .count {
    margin-left: auto;
    color: var(--text-3);
    font-size: 13px;
    font-weight: 500;
}

.mnav__title {
    margin: 24px 0 10px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.mnav__sub {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.is-locked {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   6. ГЛАВНАЯ: HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 46px 0 40px;
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(108, 76, 241, .16), transparent 62%),
        radial-gradient(700px 380px at 4% 110%, rgba(18, 161, 80, .10), transparent 60%);
}

html[data-theme="dark"] .hero {
    background:
        radial-gradient(900px 420px at 88% -10%, rgba(108, 76, 241, .30), transparent 62%),
        radial-gradient(700px 380px at 4% 110%, rgba(18, 161, 80, .12), transparent 60%);
}

.hero__in {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 40px;
    align-items: center;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -.035em;
}

.hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.hero__lead {
    max-width: 520px;
    margin: 0 0 24px;
    color: var(--text-2);
    font-size: 17px;
}

.hero__points {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    padding-top: 10px;
}

.hero__points li {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.hero__points .icon {
    color: var(--green);
}

/* Крупный поиск */
.searchbar {
    display: flex;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-2);
}

.searchbar:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100), var(--sh-2);
}

.searchbar__field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
}

.searchbar__field .icon {
    color: var(--text-3);
}

.searchbar input {
    width: 100%;
    height: 100%;
    border: 0;
    background: none;
    outline: 0;
    font-size: 16px;
}

.searchbar__btn {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 26px;
    border-radius: var(--r);
    font-size: 16px;
}

.hero__hint {
    margin: 12px 0 0;
    color: var(--text-3);
    font-size: 13px;
}

.hero__hint a {
    color: var(--text-2);
    border-bottom: 1px dashed var(--line-2);
}

.hero__hint a:hover {
    color: var(--brand);
    border-color: var(--brand);
}

/* Иллюстрация героя */
.hero__art {
    position: relative;
    aspect-ratio: 1 / .92;
    border-radius: var(--r-xl);
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(255, 255, 255, .7), transparent 55%),
        var(--brand-grad);
    box-shadow: var(--sh-3);
    overflow: hidden;
}

.hero__art::before,
.hero__art::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
}

.hero__art::before {
    width: 78%;
    aspect-ratio: 1;
    left: -18%;
    bottom: -22%;
}

.hero__art::after {
    width: 54%;
    aspect-ratio: 1;
    right: -12%;
    top: -14%;
}

.hero__phones {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    padding: 26px 26px 0;
}

.hero__phone {
    position: relative;
    width: 44%;
    max-width: 190px;
    aspect-ratio: 9 / 18.6;
    border: 6px solid rgba(255, 255, 255, .92);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background: #101828;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .28);
    overflow: hidden;
    transform: translateY(14px);
}

.hero__phone--2 {
    transform: translateY(-6px);
    opacity: .92;
}

.hero__phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__bubble {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .95);
    color: #101828;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    animation: floaty 5s ease-in-out infinite;
}

.hero__bubble .icon {
    color: var(--green);
}

.hero__bubble--a {
    left: 18px;
    top: 20px;
}

.hero__bubble--b {
    right: 18px;
    bottom: 20px;
    animation-delay: -2.4s;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

/* --------------------------------------------------------------------------
   7. КРУГЛЫЕ КАТЕГОРИИ (главная)
   -------------------------------------------------------------------------- */
.cat-circles {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.cat-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    color: var(--text);
    text-align: center;
    transition: .18s ease;
}

.cat-circle:hover {
    border-color: var(--line);
    background: var(--surface);
    color: var(--brand);
    box-shadow: var(--sh-2);
}

.cat-circle__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: var(--brand-50);
    color: var(--brand);
    transition: .18s ease;
}

.cat-circle:hover .cat-circle__icon {
    background: var(--brand-grad);
    color: #fff;
    transform: translateY(-2px);
}

.cat-circle__icon .icon {
    width: 26px;
    height: 26px;
}

.cat-circle__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.cat-circle__count {
    display: block;
    margin-top: 2px;
    color: var(--text-3);
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 1080px) {
    .cat-circles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .cat-circles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
    }

    .cat-circle {
        padding: 10px 4px;
    }

    .cat-circle__icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }
}

/* --------------------------------------------------------------------------
   8. КАРТОЧКА ПРИЛОЖЕНИЯ
   -------------------------------------------------------------------------- */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
      min-width: 0;        /* ← добавить */
    max-width: 100%;     /* ← добавить */
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: var(--sh-2);
    color: var(--text);
}

.app-card__top {
    position: relative;
    margin-bottom: 12px;
}

.app-card__icon {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 22%;
    overflow: hidden;
    background: var(--surface-2);
}

.app-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-card__badges {
    position: absolute;
    top: 6px;
    left: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: calc(100% - 12px);
}

.app-card__badges .badge {
    height: 22px;
    padding: 0 7px;
    font-size: 11px;
    backdrop-filter: blur(6px);
}

.app-card__fav {
    position: absolute;
    right: 6px;
    bottom: 6px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: #101828;
    opacity: 0;
    transform: scale(.8);
    transition: .18s ease;
    backdrop-filter: blur(6px);
}

.app-card:hover .app-card__fav,
.app-card__fav.is-on {
    opacity: 1;
    transform: scale(1);
}

.app-card__fav:hover {
    background: var(--brand);
    color: #fff;
}

.app-card__fav.is-on {
    color: var(--red);
}

.app-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--text);
}

.app-card__cat {
    display: block;
     max-width: 100%;     /* ← добавить */
    overflow: hidden;
    margin-bottom: 9px;
    color: var(--text-3);
    font-size: 12.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.app-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text);
}

.app-card__rating .icon {
    width: 14px;
    height: 14px;
    fill: var(--orange);
    stroke: var(--orange);
}

.app-card__dl {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-3);
    font-weight: 500;
}

.app-card__dl .icon {
    width: 13px;
    height: 13px;
}

/* Компактная карточка-строка (списки, поиск) */
.app-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--r);
    color: var(--text);
    transition: background .16s;
}

.app-row:hover {
    background: var(--surface-2);
    color: var(--text);
}

.app-row__icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface-2);
}

.app-row__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-row__body {
    min-width: 0;
}

.app-row__title {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-row__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    color: var(--text-3);
    font-size: 12.5px;
}

/* Горизонтальные полки */
.shelf {
    position: relative;
    overflow: hidden;
}

.shelf__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.shelf__track::-webkit-scrollbar {
    display: none;
}

.shelf__track>* {
    flex: 0 0 176px;
    min-width: 0;
    max-width: 176px;
    scroll-snap-align: start;
}

.shelf__nav {
    position: absolute;
    top: -54px;
    right: 0;
    display: flex;
    gap: 6px;
}

.shelf__nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
}

.shelf__nav button:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.shelf__nav button[disabled] {
    opacity: .4;
    pointer-events: none;
}

@media (max-width: 1360px) {
    .shelf__nav {
        display: none;
    }
}

/* Стрелки полки */
.shelf__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    color: var(--text);
    box-shadow: var(--sh-2);
    opacity: 0;
    transform: translateY(-50%) scale(.94);
    transition: opacity .18s ease, transform .18s ease, border-color .18s;
    backdrop-filter: blur(6px);
}

.shelf:hover .shelf__arrow,
.shelf:focus-within .shelf__arrow {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.shelf__arrow:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.shelf__arrow--prev {
    left: -14px;
}

.shelf__arrow--next {
    right: -14px;
}

.shelf__arrow[disabled] {
    opacity: 0 !important;
    pointer-events: none;
}

@media (hover: none) {
    .shelf__arrow {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   9. ТОП-100 / РЕЙТИНГ
   -------------------------------------------------------------------------- */
.top-list {
    columns: 2;
    column-gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: top;
}

.top-list>li {
    margin: 0 0 4px;
    break-inside: avoid;
    counter-increment: top;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--r);
    color: var(--text);
    transition: background .16s;
}

.top-item:hover {
    background: var(--surface-2);
    color: var(--text);
}

.top-item__num {
    flex: 0 0 auto;
    width: 30px;
    color: var(--text-3);
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.top-item__num::before {
    content: counter(top);
}

.top-item:nth-child(1) .top-item__num,
.top-list>li:nth-child(1) .top-item__num {
    color: var(--orange);
}

.top-list>li:nth-child(2) .top-item__num,
.top-list>li:nth-child(3) .top-item__num {
    color: var(--brand);
}

.top-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    overflow: hidden;
    background: var(--surface-2);
    flex: 0 0 auto;
}

.top-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-item__title {
    display: block;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-item__meta {
    color: var(--text-3);
    font-size: 12px;
}

.top-item__score {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 700;
}

.top-item__score .icon {
    width: 13px;
    height: 13px;
    fill: var(--orange);
    stroke: var(--orange);
}

@media (max-width: 860px) {
    .top-list {
        columns: 1;
    }
}

/* --------------------------------------------------------------------------
   10. ПРОМО-БАННЕРЫ
   -------------------------------------------------------------------------- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 168px;
    padding: 24px 26px;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: #fff;
    background: var(--brand-grad);
}

.promo:hover {
    color: #fff;
}

.promo--green {
    background: linear-gradient(135deg, #17b45c 0%, #0d8f47 60%, #087038 100%);
}

.promo--dark {
    background: linear-gradient(135deg, #1b1f2e 0%, #2b2350 60%, #4a2bc4 100%);
}

.promo::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
}

.promo__body {
    position: relative;
    z-index: 1;
    max-width: 62%;
}

.promo__label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.promo h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 21px;
    line-height: 1.2;
}

.promo p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
}

.promo__img {
    position: relative;
    z-index: 1;
    margin-left: auto;
    width: 108px;
    height: 108px;
    border-radius: 26px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
    transform: rotate(-6deg);
    transition: transform .25s ease;
}

.promo:hover .promo__img {
    transform: rotate(0) scale(1.04);
}

@media (max-width: 760px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo {
        min-height: 140px;
        padding: 20px;
    }

    .promo__body {
        max-width: 70%;
    }

    .promo h3 {
        font-size: 18px;
    }

    .promo__img {
        width: 84px;
        height: 84px;
        border-radius: 22px;
    }
}

/* --------------------------------------------------------------------------
   11. ПОДБОРКИ
   -------------------------------------------------------------------------- */
.collections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.collection {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 200px;
    padding: 20px;
    border-radius: var(--r-lg);
    overflow: hidden;
    color: #fff;
    background: var(--bg-3);
}

.collection:hover {
    color: #fff;
}

.collection__bg {
    position: absolute;
    inset: 0;
    background: var(--brand-grad);
    opacity: .92;
}

.collection__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: .5;
}

.collection__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 12, 25, 0) 20%, rgba(9, 12, 25, .72) 100%);
}

.collection__body {
    position: relative;
    z-index: 1;
}

.collection h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 19px;
}

.collection span {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.collection__icons {
    display: flex;
    margin-bottom: 14px;
}

.collection__icons img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, .9);
    margin-right: -10px;
    object-fit: cover;
    background: #fff;
}

@media (max-width: 900px) {
    .collections {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   12. FAQ (details/summary)
   -------------------------------------------------------------------------- */
.faq {
    display: grid;
    gap: 10px;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    overflow: hidden;
    transition: border-color .18s;
}

.faq__item[open] {
    border-color: var(--brand);
}

.faq__q {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px 52px 17px 20px;
    color: var(--text);
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq__q::-webkit-details-marker {
    display: none;
}

.faq__q::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -6px;
    border-right: 2px solid var(--text-3);
    border-bottom: 2px solid var(--text-3);
    transform: rotate(45deg);
    transition: transform .2s;
}

.faq__item[open] .faq__q::after {
    transform: rotate(-135deg);
    margin-top: -2px;
    border-color: var(--brand);
}

.faq__a {
    padding: 0 20px 18px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.65;
}

.faq__a p:last-child {
    margin: 0;
}

/* --------------------------------------------------------------------------
   13. SEO-ТЕКСТ
   -------------------------------------------------------------------------- */
.seo-text {
    border-top: 1px solid var(--line);
    padding-top: 32px;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.7;
}

.seo-text h2,
.seo-text h3 {
    color: var(--text);
}

.seo-text ul {
    padding-left: 20px;
    list-style: disc;
}

.seo-text--collapsed {
    position: relative;
    max-height: 220px;
    overflow: hidden;
}

.seo-text--collapsed::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.seo-text__more {
    display: block;
    margin: 12px auto 0;
}

.app-desc.seo-text--collapsed {
    position: relative;
    max-height: 320px;
    overflow: hidden;
}

.app-block .app-desc.seo-text--collapsed::after {
    background: linear-gradient(180deg, transparent, var(--surface));
}

@media (max-width: 720px) {
    .app-desc.seo-text--collapsed {
        max-height: 260px;
    }
}

/* --------------------------------------------------------------------------
   14. ПОДВАЛ
   -------------------------------------------------------------------------- */
.ftr {
    margin-top: 56px;
    padding: 44px 0 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.ftr__top {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.ftr__brand .logo {
    margin-bottom: 14px;
}

.ftr__about {
    max-width: 300px;
    margin: 0 0 18px;
    color: var(--text-2);
    font-size: 14px;
}

.ftr__soc {
    display: flex;
    gap: 8px;
}

.ftr__soc a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-2);
}

.ftr__soc a:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.ftr__col h3,
.ftr__col h4 {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ftr__col ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ftr__col li {
    margin: 0 0 9px;
}

.ftr__col a {
    color: var(--text-2);
    font-size: 14px;
}

.ftr__col a:hover {
    color: var(--brand);
}

.ftr__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 36px;
    padding: 20px 0 26px;
    border-top: 1px solid var(--line);
    color: var(--text-3);
    font-size: 13px;
}

.ftr__bottom a {
    color: var(--text-3);
}

.ftr__bottom a:hover {
    color: var(--brand);
}

.ftr__note {
    margin-left: auto;
    max-width: 560px;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .ftr__top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
    }

    .ftr__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .ftr {
        padding-top: 32px;
    }

    .ftr__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .ftr__note {
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   15. ХЛЕБНЫЕ КРОШКИ
   -------------------------------------------------------------------------- */
.crumbs {
    padding: 18px 0 0;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-3);
    font-size: 13px;
}

.crumbs li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.crumbs li+li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-top: 1.5px solid var(--text-3);
    border-right: 1.5px solid var(--text-3);
    transform: rotate(45deg);
    flex: 0 0 auto;
    opacity: .7;
}

.crumbs a {
    color: var(--text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 240px;
}

.crumbs a:hover {
    color: var(--brand);
}

.crumbs span {
    color: var(--text-2);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .crumbs ol {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .crumbs ol::-webkit-scrollbar {
        display: none;
    }

    .crumbs li {
        flex: 0 0 auto;
    }

    .crumbs a,
    .crumbs span {
        max-width: none;
    }
}

/* --------------------------------------------------------------------------
   16. КАТАЛОГ (страницы категорий)
   -------------------------------------------------------------------------- */
.cat-head {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    padding: 22px 0 24px;
}

.cat-head__body {
    min-width: 0;
}

.cat-head h1 {
    margin: 0 0 8px;
}

.cat-head__desc {
    max-width: 760px;
    margin: 0;
    color: var(--text-2);
    font-size: 15px;
}

.cat-head__count {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.cat-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.cat-aside {
    position: sticky;
    top: calc(var(--header-h) + 18px);
}

.aside-block {
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.aside-block__title {
    margin: 0 0 12px;
    color: var(--text-3);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.aside-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.aside-list li {
    margin: 0;
}

.aside-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}

.aside-list a:hover,
.aside-list a.is-active {
    background: var(--brand-50);
    color: var(--brand);
}

.aside-list .count {
    margin-left: auto;
    color: var(--text-3);
    font-size: 12px;
}

.cat-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.cat-toolbar__label {
    color: var(--text-3);
    font-size: 13px;
}

.cat-toolbar__sort {
    margin-left: 0;
}

.select {
    height: 40px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238b94a5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}

.select:focus {
    outline: 0;
    border-color: var(--brand);
}

@media (max-width: 1024px) {
    .cat-layout {
        grid-template-columns: 1fr;
    }

    .cat-aside {
        position: static;
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
    }

    .aside-block {
        margin: 0;
    }
}

/* --------------------------------------------------------------------------
   17. ПАГИНАЦИЯ, СЛУЖЕБНЫЕ БЛОКИ
   -------------------------------------------------------------------------- */
.navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 32px 0 8px;
}

.navigation a,
.navigation span,
.navigation-ajax a,
.navigation-ajax span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    transition: .16s ease;
}

.navigation a:hover,
.navigation-ajax a:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-50);
}

.navigation span,
.navigation-ajax span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.attention {
    margin: 0 0 18px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand);
    border-radius: var(--r);
    background: var(--surface);
    color: var(--text-2);
    font-size: 14.5px;
}

.attention.error,
.attention.danger {
    border-left-color: var(--red);
    background: var(--red-100);
    color: var(--text);
}

.attention.success {
    border-left-color: var(--green);
    background: var(--green-100);
    color: var(--text);
}

.alert-block {
    position: relative;
    padding: 16px 44px 16px 18px;
    border-radius: var(--r);
    background: var(--brand-50);
    color: var(--text);
    font-size: 14.5px;
}

.alert-block.error,
.alert-block.danger {
    background: var(--red-100);
}

.alert-block_close {
    position: absolute;
    top: 10px;
    right: 12px;
    color: inherit;
    opacity: .6;
    cursor: pointer;
}

.empty {
    padding: 60px 20px;
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
    color: var(--text-2);
    text-align: center;
}

.empty h2 {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   18. ТИПОГРАФИКА НОВОСТЕЙ / DLE-ТЕКСТ
   -------------------------------------------------------------------------- */
.dle-text {
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.72;
    overflow-wrap: break-word;
}

.dle-text> :first-child {
    margin-top: 0;
}

.dle-text h2,
.dle-text h3,
.dle-text h4 {
    margin: 2em 0 .7em;
    color: var(--text);
    letter-spacing: -.015em;
}

.dle-text h2 {
    font-size: 24px;
}

.dle-text h3 {
    font-size: 20px;
}

.dle-text p {
    margin: 0 0 1.05em;
}

.dle-text a {
    color: var(--brand);
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
    text-underline-offset: 3px;
}

.dle-text a:hover {
    text-decoration-color: var(--brand);
}

.dle-text img {
    border-radius: var(--r);
    height: auto;
}

.dle-text ul,
.dle-text ol {
    margin: 0 0 1.1em;
    padding-left: 24px;
}

.dle-text ul {
    list-style: disc;
}

.dle-text ol {
    list-style: decimal;
}

.dle-text li {
    margin-bottom: .5em;
}

.dle-text blockquote {
    margin: 1.5em 0;
    padding: 14px 20px;
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--r) var(--r) 0;
    background: var(--surface-2);
    color: var(--text);
}

.dle-text table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    font-size: 14.5px;
}

.dle-text th,
.dle-text td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.dle-text th {
    color: var(--text);
    font-weight: 600;
    background: var(--surface-2);
}

.dle-text code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: .92em;
}

.dle-text pre {
    padding: 16px;
    border-radius: var(--r);
    background: var(--surface-2);
    overflow-x: auto;
}

.dle-text iframe {
    max-width: 100%;
    border-radius: var(--r);
}

.quote,
.title_quote {
    margin: 1.6em 0;
    padding: 18px 22px;
    border-radius: var(--r);
    background: var(--surface-2);
    border-left: 3px solid var(--brand);
    color: var(--text);
}

/* --------------------------------------------------------------------------
   19. АДАПТИВ ХЕДЕРА
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
    .nav__link {
        padding: 0 10px;
        font-size: 14px;
    }

    .hsearch {
        max-width: 300px;
    }
}

@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .burger {
        display: grid;
    }

    .hsearch {
        margin-left: auto;
        max-width: none;
    }
}

@media (max-width: 720px) {
    :root {
        --gutter: 16px;
        --header-h: 60px;
    }

    .hero {
        padding: 28px 0 24px;
    }

    .hero__in {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .hero__art {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
        aspect-ratio: 1 / .8;
    }

    .hero__lead {
        font-size: 15.5px;
    }

    .hero__points {
        font-size: 13px;
        gap: 6px 14px;
    }

    .searchbar {
        flex-direction: column;
        padding: 8px;
    }

    .searchbar__field {
        height: 46px;
    }

    .searchbar__btn {
        width: 100%;
    }

    .hsearch {
        display: none;
    }

    .hdr__in {
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo__mark {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .hdr__actions .btn span {
        display: none;
    }

    .hdr__actions .btn {
        min-width: 42px;
        padding: 0;
    }

    .section {
        padding-top: 28px;
    }

    .sec-head {
        margin-bottom: 14px;
    }

    .sec-head__icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .sec-head__link span {
        display: none;
    }

    .cat-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cat-head__count {
        margin-left: 0;
    }

    .app-grid {
        gap: 10px;
    }

    .app-card {
        padding: 10px;
        border-radius: var(--r);
    }

    .app-card__title {
        font-size: 13.5px;
    }
}

/* --------------------------------------------------------------------------
   20. СЛУЖЕБНЫЕ СТРАНИЦЫ (поиск, статика, ошибки)
   -------------------------------------------------------------------------- */
.page {
    padding: 26px 0 10px;
}

.page__head {
    margin-bottom: 26px;
}

.page__head h1 {
    margin-bottom: 8px;
}

.page__head p {
    margin: 0;
    color: var(--text-2);
}

.search-form {
    max-width: 720px;
    margin-bottom: 28px;
}

.search-form__row {
    display: flex;
    gap: 10px;
}

.search-form input[type="text"],
.search-form input[type="search"] {
    flex: 1 1 auto;
    height: 50px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    outline: 0;
}

.search-form input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-100);
}

.dle-search {
    padding: 26px 0;
}

.dle-search h1 {
    margin-bottom: 20px;
}

.dle-search .search-form {
    margin-bottom: 22px;
}

.dle-fast {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px;
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--sh-3);
}

.dle-fast_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
}

.dle-fast_item:hover {
    background: var(--surface-2);
}

.dle-fast_item img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.dle-fast_item a {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}

.dle-fast_meta {
    color: var(--text-3);
    font-size: 12px;
}

/* Статические страницы */
.static-page {
    max-width: 900px;
    padding: 10px 0 20px;
}

.static-page h1 {
    margin-bottom: 18px;
}

/* Оффлайн */
.offline {
    display: grid;
    place-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    text-align: center;
}

.offline img {
    max-width: 260px;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   21. ТАБЛИЦА ХАРАКТЕРИСТИК (общая)
   -------------------------------------------------------------------------- */
.specs {
    width: 100%;
    border-collapse: collapse;
}

.specs th,
.specs td {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    text-align: left;
    vertical-align: top;
}

.specs th {
    width: 42%;
    color: var(--text-3);
    font-weight: 500;
}

.specs td {
    color: var(--text);
    font-weight: 600;
}

.specs tr:last-child th,
.specs tr:last-child td {
    border-bottom: 0;
}

/* --------------------------------------------------------------------------
   23. ПОПОВЕРЫ (вход, профиль)
   -------------------------------------------------------------------------- */
.pop {
    position: relative;
}

.pop>summary {
    list-style: none;
    cursor: pointer;
}

.pop>summary::-webkit-details-marker {
    display: none;
}

.pop__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: 330px;
    max-width: calc(100vw - 24px);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.pop[open] .pop__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pop__title {
    margin: 0 0 4px;
    font-size: 19px;
}

.pop__sub {
    margin: 0 0 16px;
    color: var(--text-3);
    font-size: 13px;
}

.field {
    display: block;
    margin-bottom: 12px;
}

.field__label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.field input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    color: var(--text);
    outline: 0;
}

.field input:focus {
    border-color: var(--brand);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.pop__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 16px;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-2);
    font-size: 12.5px;
    cursor: pointer;
}

.checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
}

.pop__link {
    font-size: 12.5px;
    font-weight: 600;
}

.pop__foot {
    margin: 14px 0 0;
    color: var(--text-3);
    font-size: 12.5px;
    text-align: center;
}

.login-pop__btn {
    min-height: 42px;
    padding: 0 18px;
}

/* Профиль */
.user-pop__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 10px 0 4px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--surface);
    color: var(--text);
    transition: border-color .18s;
}

.user-pop__btn:hover {
    border-color: var(--brand);
}

.user-pop__ava {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-2);
}

.user-pop__ava--lg {
    width: 46px;
    height: 46px;
}

.user-pop__name {
    max-width: 110px;
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-pop__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.user-pop__head b {
    display: block;
    font-size: 15px;
}

.user-pop__head span {
    color: var(--text-3);
    font-size: 12px;
}

.user-pop__links {
    display: grid;
    gap: 2px;
}

.user-pop__links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.user-pop__links a:hover {
    background: var(--brand-50);
    color: var(--brand);
}

.user-pop__links .icon {
    color: var(--text-3);
}

@media (max-width: 720px) {
    .pop__panel {
        position: fixed;
        top: 68px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }

    .user-pop__name {
        display: none;
    }

    .login-pop__btn span {
        display: none;
    }

    .login-pop__btn {
        min-width: 42px;
        padding: 0;
    }
}

/* --------------------------------------------------------------------------
   24. МЕГА-МЕНЮ (резерв под будущие разделы)
   -------------------------------------------------------------------------- */
.mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--sh-3);
}

.mega__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 22px;
}

.mega__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.mega__link:hover {
    background: var(--brand-50);
    color: var(--brand);
}

.mega__link .count {
    margin-left: auto;
    color: var(--text-3);
    font-size: 12px;
}

.mega__sub {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    padding: 2px 0 10px 12px;
    border-left: 1px solid var(--line);
    margin: 0 0 8px 12px;
}

/* --------------------------------------------------------------------------
   25. ГРУППЫ КАТЕГОРИЙ (сайдбар каталога, чипсы)
   -------------------------------------------------------------------------- */
.cat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 12px;
    margin-bottom: 6px;
    scrollbar-width: none;
}

.cat-chips::-webkit-scrollbar {
    display: none;
}

.cat-chips .chip {
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   26. КАРТОЧКА В РЕЖИМЕ СПИСКА (мобильный каталог)
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
    .app-grid .app-card__cat {
        display: none;
    }

    .app-card__meta {
        font-size: 12px;
    }

    .app-card__badges .badge {
        font-size: 10px;
        height: 20px;
    }
}

/* --------------------------------------------------------------------------
   28. ДОПОЛНЕНИЯ: главная, карточки, блог, шаги
   -------------------------------------------------------------------------- */

/* Звёзды с точным заполнением: style="--p:4.3" */
.stars {
    --p: 0;
    position: relative;
    display: inline-block;
    color: var(--line-2);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.stars>span {
    display: block;
    width: calc(var(--p, 0) * 20%);
    overflow: hidden;
    color: var(--orange);
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

/* Коллаж иконок в hero */
.hero__collage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-content: center;
    gap: 14px;
    padding: 62px 26px;
}

.hero__icon {
    aspect-ratio: 1;
    border-radius: 26%;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
    transform: rotate(-4deg);
    transition: transform .25s ease;
}

.hero__icon:nth-child(2n) {
    transform: rotate(4deg) translateY(-8px);
}

.hero__icon:nth-child(3n) {
    transform: rotate(-2deg) translateY(6px);
}

.hero__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__art:hover .hero__icon {
    transform: rotate(0) translateY(0);
}

/* Кнопки-иконки внутри шапки карточки */
.app-hero__tools>a {
    flex: 1 1 0;
    display: flex;
    text-decoration: none;
}

.app-hero__tools>a .btn {
    width: 100%;
}

.app-hero__tools .btn.is-on {
    color: var(--red);
    border-color: var(--red);
}

.btn__size {
    font-weight: 500;
    opacity: .8;
}

/* Заголовок карточки-ссылки */
.app-card__title a {
    color: inherit;
    text-decoration: none;
}

.app-card__title a:hover {
    color: var(--brand);
}

/* Плейсхолдер, если иконка не задана */
.app-card__icon:empty {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    position: relative;
}

.app-card__icon:empty::after {
    content: "";
    position: absolute;
    inset: 26%;
    background: var(--brand);
    opacity: .5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10.5h10v6.5a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2zM8.5 7 7 4.5M15.5 7 17 4.5M7 7h10v3.5H7z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10.5h10v6.5a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2zM8.5 7 7 4.5M15.5 7 17 4.5M7 7h10v3.5H7z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.cat-body {
    min-width: 0;
}

.hero__body {
    min-width: 0;
}

/* Шаги установки */
.steps {
    counter-reset: step;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.steps li {
    position: relative;
    margin: 0;
    padding: 2px 0 2px 46px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.6;
}

.steps li b {
    color: var(--text);
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
}

/* Блог */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
}

.blog-card__img {
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--brand-50);
    overflow: hidden;
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.blog-card:hover .blog-card__img img {
    transform: scale(1.04);
}

.blog-card__ph {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand-grad);
    opacity: .85;
}

.blog-card__body {
    padding: 16px 18px 18px;
}

.blog-card__cat {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.blog-card__title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.3;
}

.blog-card__title a {
    color: var(--text);
}

.blog-card__title a:hover {
    color: var(--brand);
}

.blog-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--text-2);
    font-size: 13.5px;
    line-height: 1.55;
}

.blog-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
    font-size: 12.5px;
}

@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Промо-иконка вместо картинки */
.promo__img {
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.promo__img .icon {
    width: 46px;
    height: 46px;
    stroke-width: 1.6;
}

/* Модификатор в блоке «Что в моде» */
.mod-box__content ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: 14.5px;
}

.mod-box__content li {
    position: relative;
    margin: 0;
    padding-left: 26px;
}

.mod-box__content li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
}

.mod-box__content p {
    margin: 0 0 .6em;
    color: var(--text);
}

/* Мобильное меню: подкатегории */
.mnav__list a.is-child,
.mnav__list .is-child a {
    padding-left: 18px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-2);
}

.mnav__list .is-child a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line-2);
}

/* Топ в сайдбаре */
.top-list--aside {
    columns: 1;
    column-gap: 0;
}

.top-list--aside .top-item {
    padding: 7px 6px;
    gap: 10px;
}

.top-list--aside .top-item__num {
    width: 22px;
    font-size: 13px;
}

.top-list--aside .top-item__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.top-list--aside .top-item__title {
    font-size: 13px;
}

.top-list--aside .top-item__meta,
.top-list--aside .top-item__score {
    display: none;
}

.top-item__body {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}

/* Сортировка DLE */
.cat-toolbar__sort ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cat-toolbar__sort li {
    margin: 0;
}

.cat-toolbar__sort li > a,
.cat-toolbar__sort li > span {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.cat-toolbar__sort li > a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cat-toolbar__sort li.active > a,
.cat-toolbar__sort li.active > span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.cat-toolbar__sort select {
    height: 40px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background-color: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Адаптив коллажа */
@media (max-width: 720px) {
    .hero__collage {
        gap: 10px;
        padding: 18px;
    }

    .hero__bubble {
        font-size: 12px;
        padding: 7px 11px;
    }
}

/* --------------------------------------------------------------------------
   29. DLE-КОМПОНЕНТЫ: формы, поиск, опросы, статья
   -------------------------------------------------------------------------- */

/* Базовые поля (низкая специфичность, чтобы не ломать кастомные компоненты) */
:where(input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], textarea, select) {
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    outline: 0;
}

:where(input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], textarea) {
    padding: 11px 14px;
}

:where(input:focus, textarea:focus, select:focus) {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.dle-form_flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 12px;
}

.dle-form_flex>input,
.dle-form_flex>textarea {
    flex: 1 1 220px;
}

.dle-form_protec {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 260px;
}

.dle-form_protec label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-3);
    font-size: 12px;
}

.dle-form_protec input {
    width: 100%;
}

/* Страница поиска: DLE выводит таблицу — приводим к карточкам */
.dle-search form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.dle-search form br {
    display: none;
}

.dle-search form input[type="text"],
.dle-search form input[type="search"] {
    flex: 1 1 240px;
    height: 46px;
}

.dle-search form select {
    height: 46px;
    padding: 0 12px;
}

.dle-search .app-card {
    margin-bottom: 10px;
}

/* Опрос */
.dle-vote {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.dle-vote_title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.dle-vote_title h3 {
    margin: 0;
    font-size: 16px;
}

.dle-vote_list>div,
.dle-vote_list label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
    color: var(--text-2);
    font-size: 14px;
    cursor: pointer;
}

.dle-vote_list input[type="radio"] {
    accent-color: var(--brand);
}

.dle-vote_grade {
    margin: 10px 0 12px;
    color: var(--text-3);
    font-size: 12.5px;
}

/* Статья блога */
.article {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 6px;
}

.article__body h1 {
    margin: 14px 0 12px;
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text-3);
    font-size: 13.5px;
}

.article__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article__cover {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    border-radius: var(--r-lg);
}

.article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 8px;
}

.article__tags a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.article__tags a:hover {
    background: var(--brand-100);
    color: var(--brand);
}

.dle-comm_sign {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    color: var(--text-3);
    font-size: 12.5px;
}

/* Комментарии: скрываем лишние служебные обёртки DLE */
.dle-comm .dlempty {
    padding: 18px 0;
    color: var(--text-3);
    font-size: 14px;
}

.dle-comm_det>div {
    display: flex;
    gap: 10px;
    font-size: 13px;
}

/* --------------------------------------------------------------------------
   30. ПРОФИЛЬ
   -------------------------------------------------------------------------- */
.profile-head {
    position: relative;
    margin: 20px 0 28px;
    padding: 0 24px 24px;
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    background: var(--surface);
    overflow: hidden;
}

.profile-head__bg {
    position: absolute;
    inset: 0 0 auto;
    height: 130px;
    background: var(--brand-grad);
    opacity: .9;
}

.profile-head__in {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding-top: 92px;
}

.profile-head__ava {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    border: 4px solid var(--surface);
    border-radius: 50%;
    overflow: hidden;
    background: var(--surface-2);
}

.profile-head__ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-head__title h1 {
    margin: 0 0 4px;
    font-size: 24px;
}

.profile-head__title span {
    color: var(--text-3);
    font-size: 13.5px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 34px;
    margin: 20px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.profile-meta li {
    margin: 0;
}

.profile-meta span {
    display: block;
    color: var(--text-3);
    font-size: 12px;
}

.profile-meta b {
    font-size: 14.5px;
}

.profile-settings {
    margin-bottom: 30px;
}

.profile-settings>summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
}

.profile-settings>summary::-webkit-details-marker {
    display: none;
}

.profile-settings__body {
    margin-top: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}

.profile-settings__title {
    margin: 26px 0 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 17px;
}

.profile-upload {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.profile-upload__preview {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 50%;
    background-color: var(--surface-2);
    background-position: center;
    background-size: cover;
}

.profile-upload__hint {
    margin: 8px 0;
    color: var(--text-3);
    font-size: 12px;
}

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

.profile-settings__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 560px) {
    .profile-head {
        padding: 0 16px 18px;
    }

    .profile-head__in {
        padding-top: 74px;
        gap: 12px;
    }

    .profile-head__ava {
        width: 74px;
        height: 74px;
    }

    .profile-upload {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* --------------------------------------------------------------------------
   27. ПЕЧАТЬ
   -------------------------------------------------------------------------- */
@media print {

    .hdr,
    .ftr,
    .shelf__nav,
    .hero__art,
    .app-card__fav {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}
.installers{list-style:none;margin:0 0 18px;padding:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--bg-2)}
.installers li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;border-top:1px solid var(--line)}
.installers li:first-child{border-top:0}
.installers__name{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:15px;font-weight:600;line-height:1.35}
.installers__note{font-size:12.5px;font-weight:400;color:var(--text-2)}
.installers__link{flex:none;padding:8px 16px;border-radius:999px;background:var(--brand-50);color:var(--brand);font-size:13px;font-weight:600;text-decoration:none}
.installers__link:hover{background:var(--brand);color:#fff}
@media(max-width:560px){.installers li{padding:12px 14px}.installers__name{font-size:14px}.installers__link{padding:7px 12px}}