/* ==========================================================================
   NextClient Uzbekistan / Main Stylesheet
   ========================================================================== */

/* ── Шрифт Moderustic (для логотипа/акцентов) ──────────────────────────── */
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Moderustic';
    src: url('/fonts/Moderustic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Milligram';
    src: url('/fonts/MilligramVariable-Roman.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'csfont';
    src: url('/fonts/cs_regular.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ── Дизайн-токены (светлая тема) ─────────────────────────────────────── */
/* Та же логика, что в тёмной: холодный нейтральный серый (hue ≈ 220°, ~14 % насыщенности),
   четыре ступени. Карточка — самая светлая поверхность, но НЕ #fff:
   страница 92 % → карточка 97 % → блок в карточке 94 % → hover 91 % / чип 88 %. */
:root {
    /* шкала серого: страница → карточка → блок в карточке → hover/чип */
    --bg:               #e8eaee;
    --card-bg:          #f6f7f9;
    --bg-section:       #eef0f3;
    --bg-elevated:      #e3e6eb;
    --bg-2:             #d9dde3;
    --text:             #171a1f;
    --text-muted:       #565d6a;
    --text-soft:        #808894;
    --langbtcol:        #d9dde3;
    --border:           #d5d9e0;
    --border-strong:    #bcc3cc;
    /* действие и выбор */
    --accent:           #1f6fd1;
    --accent-hover:     #185fb8;
    --accent-soft:      rgba(31, 111, 209, 0.10);
    --accent-strong:    rgba(31, 111, 209, 0.18);
    --on-accent:        #ffffff;
    /* метки: NEW, рекомендуем, ядро, тип — только тонировкой (tint, не заливка) */
    --accent-2:         #96590a;
    --accent-2-soft:    rgba(240, 168, 54, 0.20);
    /* статусы */
    --success:          #1a8f4e;
    --success-soft:     rgba(26, 143, 78, 0.12);
    --warning:          #b3620a;
    --warning-soft:     rgba(179, 98, 10, 0.12);
    --danger:           #d0353b;
    --danger-soft:      rgba(208, 53, 59, 0.12);
    --info:             #1f6fd1;
    /* тени чуть плотнее, чем на белом — иначе на сером фоне карточки «плывут» */
    --shadow-sm:        0 1px 2px rgba(15, 20, 30, 0.06);
    --shadow:           0 1px 2px rgba(15,20,30,.06), 0 6px 18px rgba(15,20,30,.08);
    --shadow-lg:        0 4px 10px rgba(15,20,30,.10), 0 20px 40px rgba(15,20,30,.12);
    --radius-sm:        4px;
    --radius:           8px;
    --radius-lg:        14px;
    --radius-pill:      999px;
    --transition:       150ms ease;
    --header-h:         60px;
    --container:        1200px;
    --container-narrow: 720px;
    --card-pad:         26px;
    --font-sans:        'Milligram', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[data-theme="dark"] {
    --bg:               #121417;
    --card-bg:          #1a1d22;
    --bg-section:       #22262c;
    --bg-elevated:      #22262c;
    --bg-2:             #2a2f36;
    --text:             #eef0f3;
    --text-muted:       #a7adb7;
    --text-soft:        #6c7380;
    --langbtcol:        #22262c;
    --border:           #2c3139;
    --border-strong:    #3a4049;
    --accent:           #3b8ded;
    --accent-hover:     #5a9ff0;
    --accent-soft:      rgba(59, 141, 237, 0.12);
    --accent-strong:    rgba(59, 141, 237, 0.22);
    --on-accent:        #ffffff;
    --accent-2:         #f0a836;
    --accent-2-soft:    rgba(240, 168, 54, 0.14);
    --success:          #3ecf8e;
    --success-soft:     rgba(62, 207, 142, 0.14);
    --warning:          #f0a836;
    --warning-soft:     rgba(240, 168, 54, 0.14);
    --danger:           #e5484d;
    --danger-soft:      rgba(229, 72, 77, 0.14);
    --info:             #3b8ded;
    --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow:           0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.30);
    --shadow-lg:        0 4px 10px rgba(0,0,0,.45), 0 24px 48px rgba(0,0,0,.40);
}

/* Системная тёмная тема, если пользователь не выбрал */
@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --bg:               #121417;
        --card-bg:          #1a1d22;
        --bg-section:       #22262c;
        --bg-elevated:      #22262c;
        --bg-2:             #2a2f36;
        --text:             #eef0f3;
        --text-muted:       #a7adb7;
        --text-soft:        #6c7380;
        --langbtcol:        #22262c;
        --border:           #2c3139;
        --border-strong:    #3a4049;
        --accent:           #3b8ded;
        --accent-hover:     #5a9ff0;
        --accent-soft:      rgba(59, 141, 237, 0.12);
        --accent-strong:    rgba(59, 141, 237, 0.22);
        --on-accent:        #ffffff;
        --accent-2:         #f0a836;
        --accent-2-soft:    rgba(240, 168, 54, 0.14);
        --success:          #3ecf8e;
        --success-soft:     rgba(62, 207, 142, 0.14);
        --warning:          #f0a836;
        --warning-soft:     rgba(240, 168, 54, 0.14);
        --danger:           #e5484d;
        --danger-soft:      rgba(229, 72, 77, 0.14);
        --info:             #3b8ded;
        --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.35);
        --shadow:           0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.30);
        --shadow-lg:        0 4px 10px rgba(0,0,0,.45), 0 24px 48px rgba(0,0,0,.40);
    }
}


/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition), color var(--transition);
	
	position: relative;
	isolation: isolate;
}

body::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 500px;

	background-position: center -120px;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: url("../images/len_92348.jpeg");

    opacity: 0.1;

    pointer-events: none;

    z-index: -1;

    filter: blur(2px);

    transition: opacity .55s ease;

    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.9) 45%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0) 100%
    );

    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.9) 45%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0) 100%
    );
}

/* ── Hover-слой: при наведении на плитку сборки сюда подставляется
      её скриншот и плавно проявляется поверх фонового len_92348.jpeg.
      Полностью повторяет эффект ::before (позиция, blur, маска). ────────── */
body::after {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 500px;

    background-position: center -120px;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: var(--hero-hover-bg, none);

    opacity: 0;

    pointer-events: none;
    z-index: -1;

    filter: blur(2px);

    transition: opacity .55s ease;

    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.9) 45%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0) 100%
    );

    mask-image: linear-gradient(
        to bottom,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.9) 45%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0) 100%
    );
}

/* Когда курсор на плитке: скриншот проявляется, базовый фон гаснет —
   получается плавная кросс-смена в обе стороны. */
body.has-hero-hover::before { opacity: 0; }
body.has-hero-hover::after  { opacity: 0.1; }

@media (prefers-reduced-motion: reduce) {
    body::before, body::after { transition: none; }
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: none; }

/* Глобальное правило: иконки (Font Awesome <i>, SVG) внутри ЛЮБЫХ
   элементов с подчёркиванием не должны подчёркиваться. text-decoration
   наследуется на inline-потомков, отменить можно через display:inline-block. */
i, svg, .fa, [class*="fa-solid"], [class*="fa-regular"], [class*="fa-brands"] {
    display: inline-block;
    text-decoration: none;
}
a i, button i, summary i, label i,
a svg, button svg, summary svg, label svg {
    text-decoration: none;
}

button { font-family: inherit; cursor: pointer; }

/* Скрытое для скринридеров, но фокусируется */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.focus-visible:focus {
    position: fixed; top: 8px; left: 8px; width: auto; height: auto;
    padding: 8px 14px; background: var(--accent); color: #fff; z-index: 9999;
    border-radius: var(--radius);
}

/* ── Контейнеры ─────────────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 5%; }
.center-text { text-align: center; }

/* ── Top progress bar ──────────────────────────────────────────────────── */
.top-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 9999;
    transition: width 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 103, 184, 0.5);
    opacity: 0;
}
.top-progress.is-active { opacity: 1; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

/* ── Верхний ряд ────────────────────────────────────────────────────────── */
.header-top {
    border-bottom: 1px solid var(--border);
}
.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 5%;
    max-width: var(--container);
    margin: 0 auto;
    min-height: 56px;
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Лого + «Виджеты» рядом, через разделитель */
.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.header-vsep-brand { height: 24px; }
.nav-link-brandtool { padding: 6px 12px; }
/* Копия пункта только для бургер-меню (скрыта на десктопе/планшете) */
.nav-link.nav-link-mobileonly { display: none; }

.header-sep {
    width: 1px;
    height: 18px;
    background: var(--border);
}

/* Логотип */
.logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo-wrap:hover { text-decoration: none; }
.logo-img { width: 28px; height: 28px; object-fit: contain; }
.logo-icon { color: var(--accent); font-size: 1.2rem; }
.logo-main {
    font-family: 'Moderustic', var(--font-sans);
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
}
.logo-tld {
    color: var(--accent);
    font-weight: 600;
}

/* ── Нижний ряд: меню слева + Документация справа ──────────────────────── */
.header-main-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-nav {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
    padding: 4px 0;
    flex-wrap: wrap;
}

.site-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Вертикальный сепаратор между основным меню и блоком Документации */
.header-vsep {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.nav-link {
    padding: 10px 16px;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
    font-size: 0.95rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); }

/* Иконки внутри nav-link — выравнивание baseline с текстом */
.nav-link .nav-link-icon,
.nav-link .nav-link-external {
    font-size: 0.85em;
    line-height: 1;
}
.nav-link-icon { opacity: 0.85; }
.nav-link-external {
    opacity: 0.5;
    font-size: 0.7em !important;
}

/* Документация — особый акцент (как «внешняя» ссылка) */
.nav-link-docs {
    color: var(--text) !important;
}
.nav-link-docs:hover {
    color: var(--accent) !important;
}
.nav-link-docs .nav-link-icon {
    color: var(--accent);
    opacity: 1;
}

/* ── Dropdown-меню в шапке ─────────────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-trigger {
    /* display: inline-flex; */
	display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
}
.nav-dropdown-trigger .nav-dropdown-arrow {
    font-size: 9px;
    line-height: 1;
    opacity: .65;
    transition: transform var(--transition);
    margin-top: 1px;
}
.nav-dropdown.is-open .nav-dropdown-trigger {
    color: var(--text);
    background: var(--accent-soft);
}
.nav-dropdown.is-open .nav-dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    min-width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 1000;
}
.nav-dropdown.is-open .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* Правая dropdown — открывается ВЛЕВО от своего края, а не по центру */
.nav-dropdown-right .nav-dropdown-panel {
    left: auto;
    right: 0;
    transform: translateY(-4px);
    min-width: 340px;
}
.nav-dropdown-right.is-open .nav-dropdown-panel {
    transform: translateY(0);
}

/* Элемент в dropdown — flex с иконкой слева, текстом, и внешней стрелкой справа */
.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: background var(--transition);
}
.nav-dropdown-item:hover {
    background: var(--accent-soft);
    text-decoration: none;
}
.nav-dropdown-item.is-active {
    background: var(--accent-soft);
}
.nav-dropdown-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 7px;
    font-size: 13px;
	line-height: 1;
}
.nav-dropdown-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.nav-dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.3;
    color: var(--text);
}
.nav-dropdown-item-desc {
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--text-muted);
}
.nav-dropdown-external {
    flex-shrink: 0;
    font-size: 11px !important;
    opacity: 0.45;
    color: var(--text-muted);
    align-self: flex-start;
    margin-top: 4px;
}
.nav-dropdown-item:hover .nav-dropdown-external {
    opacity: 0.8;
    color: var(--accent);
}

.nav-dropdown-sep {
    height: 1px;
    margin: 6px 8px;
    background: var(--border);
}
.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--transition);
}
.nav-dropdown-link:hover {
    background: var(--accent-soft);
    text-decoration: none;
}
.nav-dropdown-link i {
    font-size: 10px;
    opacity: .8;
}

.header-controls { display: flex; align-items: center; gap: 12px; }


/* Общий fix выравнивания FontAwesome иконок внутри шапки —
   FA имеет смещение по baseline, line-height: 1 и flex-aligned контейнеры
   убирают визуальный сдвиг */
.site-header i.fa-solid,
.site-header i.fas {
    line-height: 1;
    vertical-align: -1px;
}
.site-header .header-utils i,
.site-header .nav-link i,
.site-header .lang-btn i,
.site-header button > i {
    vertical-align: 0;  /* в flex-контейнерах смещение не нужно */
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: var(--radius);
    background: var(--bg-section);
    border: 1px solid var(--border);
}
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    color: var(--text-soft);
    border: 0;
    border-radius: 5px;
    padding: 5px 10px;
    font-weight: 500;
    font-size: 0.82rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}
.lang-flag {
    width: 16px; height: 16px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    opacity: .7;
    display: block;
    transition: opacity var(--transition);
}
.lang-name { display: inline-block; }
.lang-btn:hover { color: var(--text); }
.lang-btn:hover .lang-flag { opacity: 1; }
.lang-btn.is-active {
    background: var(--bg-2);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}
.lang-btn.is-active .lang-flag { opacity: 1; }
/* .lang-btn.is-active .lang-flag { box-shadow: 0 0 0 1px rgba(255,255,255,.45); } */

.theme-toggle, .mobile-menu-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    width: 34px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.theme-toggle:hover, .mobile-menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.mobile-menu-toggle { display: none; }

/* ── Main / Hero ───────────────────────────────────────────────────────── */
.main-content { flex: 1; }

.hero {
    padding: 70px 0 60px;
    border-bottom: 1px solid var(--border);
}
.hero-compact { padding: 48px 0 36px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-2-soft);
    color: var(--accent-2);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1;
}
.hero-badge i { font-size: 0.9rem; }
.hero-badge-muted {
    background: var(--bg-section);
    color: var(--text-muted);
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.15;
    max-width: 800px;
}
.hero-title .accent { color: var(--accent); }
.hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 640px;
    max-width: 620px;
    font-weight: 400;
}

h1.hero-title { font-family: 'csfont', var(--font-sans); }
#download h2.section-title { font-family: 'csfont', var(--font-sans); }
#changelog h2.section-title { font-family: 'csfont', var(--font-sans); }
#buildsPage h2.section-title { font-family: 'csfont', var(--font-sans); }
h1.hero-title .accent { font-family: 'Moderustic', var(--font-sans); }

/* ── Кнопки ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn i { flex-shrink: 0; }
.btn span { display: inline-block; }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }

.btn-primary {
    background: var(--accent);
    color: var(--on-accent) !important;
    border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 6px 18px var(--accent-strong);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted) !important;
    border-color: var(--border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted) !important;
    border-color: transparent;
}
.btn-ghost:hover:not(:disabled) {
    background: var(--bg-elevated);
    color: var(--text) !important;
}
.btn-ghost .btn-trailing {
    font-size: 0.75em;
    opacity: 0.65;
    margin-left: 2px;
}

.hero-cta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
/* Мобильные: кнопки hero в колонку и одинаковой ширины */
@media (max-width: 560px) {
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .hero-cta .btn { width: 100%; justify-content: center; }
}
.btn-secondary:hover:not(:disabled) {
    color: var(--text) !important;
    border-color: var(--text-soft);
    background: var(--bg-elevated);
}

/* ── Секции ────────────────────────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-section); }

.section-header { margin-bottom: 50px; max-width: 800px; }
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.25;
}
.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 68ch;
}

/* ── About: верхний блок (2 фичи + слайдер) ────────────────────────────── */
.about-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 24px;
}
.about-top > * { min-width: 0; }

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-list-top .feature-card { align-items: flex-start; }

.feature-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.feature-card {
    display: flex;
    gap: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.feature-card-compact {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}
.feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.feature-body { flex: 1; }
.feature-body h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
}
.feature-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.feature-body a { color: var(--accent); font-weight: 600; }

.feature-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* ── Карусель ──────────────────────────────────────────────────────────── */
.carousel-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 10;
    min-width: 0;
    width: 100%;
}
.carousel-inner { position: relative; width: 100%; height: 100%; }
.carousel-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.carousel-slide[hidden] { display: none; }

.carousel-controls {
    position: absolute;
    bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    padding: 6px 10px;
    border-radius: var(--radius);
}
.carousel-arrow {
    background: transparent;
    color: #fff;
    border: none;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
    font-size: 0.85rem;
}
.carousel-arrow:hover { background: rgba(255,255,255,.2); }

.carousel-dots { display: flex; gap: 6px; }
.carousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    transition: background var(--transition);
}
.carousel-dot.is-active, .carousel-dot.active { background: #fff; }

/* ── Карточки сборок ───────────────────────────────────────────────────── */
.builds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

/* Кнопка «Остальные сборки» на главной (ведёт на /builds) */
.builds-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.builds-more-btn .builds-more-arrow { transition: transform var(--transition); }
.builds-more-btn:hover .builds-more-arrow { transform: translateX(4px); }

/* ── Одна сборка на главной → «featured»-блок ───────────────────────── */
.builds-grid.builds-grid--single { display: block; }
.builds-grid--single .build-card {
    max-width: 940px;
    margin: 0 auto;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(0, 0, 0, .38);
}
.build-featured-badge {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    margin-bottom: 14px; padding: 5px 12px;
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--accent-2); background: var(--accent-2-soft); border-radius: var(--radius-sm);
}
.build-featured-badge i { font-size: .72rem; }

/* Десктоп: скриншот слева, информация справа */
@media (min-width: 860px) {
    .builds-grid--single .build-card { flex-direction: row; align-items: stretch; }
    .builds-grid--single .build-card-top { display: none; }
    .builds-grid--single .build-card-media {
        flex: 0 0 47%; aspect-ratio: auto; min-height: 380px; align-self: stretch;
    }
    .builds-grid--single .build-card-body {
        flex: 1; padding: var(--card-pad); justify-content: center;
    }
    .builds-grid--single .build-name { font-size: 1.6rem; }
}
.build-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.build-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }

.build-card-top {
    height: 4px;
    background: var(--accent);
}
.build-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}
.build-media-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.build-media-img[hidden] { display: none; }
.build-media-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: var(--border-strong); font-size: 2.5rem;
}
.build-media-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,.4), transparent);
    pointer-events: none;
}
.build-card-media .carousel-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    width: 32px; height: 32px;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition), background var(--transition);
}
.build-card:hover .build-card-media .carousel-arrow { opacity: 1; }
.build-card-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 45%);
}
.build-card-media .carousel-arrow, .build-card-media .build-media-count { z-index: 2; }
.build-card-media .carousel-arrow.prev { left: 10px; }
.build-card-media .carousel-arrow.next { right: 10px; }

.build-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.build-name { font-size: 1.45rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; }

/* Версии-табы */
.b-versions {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.v-tag {
    background: var(--bg-section);
    color: var(--text-muted);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}
.v-tag:hover { border-color: var(--accent); }
.v-tag.is-active, .v-tag.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent);
}
.v-tag-new {
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.4px;
}
.v-tag-beta {
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.4px;
}


.build-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px;
    flex-grow: 1;
    line-height: 1.6;
}
.build-desc strong { color: var(--text); }
.build-desc a { color: var(--accent); }

.build-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 10px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.build-stat { display: inline-flex; align-items: center; gap: 5px; }
.build-stat i { color: var(--accent); }
.build-stat strong { color: var(--text); }
.build-stat[hidden] { display: none !important; }

.build-actions {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.build-actions .btn {
    flex: 1;
    min-width: 130px;
    padding: 11px 14px;
    font-size: 0.9rem;
}

/* ── Партнёры ──────────────────────────────────────────────────────────── */
.partners {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 30px 0 0;
    margin-top: 40px;
    border-top: 1px solid var(--border);
}
.partner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    padding: 6px 4px;
}
.partner-link i { color: var(--accent); font-size: 1rem; }
.partner-link:hover { color: var(--accent); }
.partner-link span { display: inline-block; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    padding: 22px 5%;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}
.footer-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.footer-text a { color: var(--text-muted); }
.footer-text a:hover { color: var(--accent); }
.footer-counters {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    flex-wrap: wrap;
}
.counter-link,
.counter-tasix {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: opacity var(--transition);
}
.counter-link:hover,
.counter-tasix:hover { opacity: 1; }

/* LiveInternet — 88×15 пиксельный бейдж */
.counter-link img {
    display: block;
    width: 88px; height: 15px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

/* Tas-IX через myip.uz/badge.js — НЕ трогаем его внутреннюю верстку,
   только убираем подчёркивание и выравниваем по середине */
.counter-tasix > * {
    vertical-align: middle;
}
.counter-tasix a { text-decoration: none; }

/* ── Серверы (страница) ────────────────────────────────────────────────── */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    padding: 18px 22px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition);
    line-height: 1;
}
.filter-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}
.filter-chip.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent);
}
.filter-chip.is-active:hover { color: var(--accent); }

.servers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 768px) {
    .servers-grid { grid-template-columns: 1fr; }
}
.server-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    /* В сетке все карточки растягиваются на одинаковую высоту */
    height: 100%;
}
.server-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Скриншот сверху */
.server-card-shot {
    aspect-ratio: 16 / 9;
    background: var(--bg-section);
    overflow: hidden;
    cursor: zoom-in;
    flex-shrink: 0;
}
.server-card-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.server-card:hover .server-card-shot img { transform: scale(1.05); }

/* Тело карточки — flex column, дно прибито к низу */
.server-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.server-card-head {
    display: flex; gap: 8px; flex-wrap: wrap;
    align-items: center;
}
.server-os-badge, .server-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.4;
}
.server-os-windows { background: var(--bg-2); color: var(--text-muted); }
.server-os-linux   { background: var(--bg-2); color: var(--text-muted); }
.server-type-clean  { background: var(--success-soft); color: var(--success); }
.server-type-modded { background: var(--accent-soft); color: var(--accent); }

.server-version-pill,
.server-engine-pill {
    display: inline-block;
    background: var(--bg-section);
    color: var(--text-muted);
    padding: 3px 9px;
    border-radius: var(--radius);
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.server-title { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

.server-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}
.server-desc p:not(:last-child) { margin-bottom: 0.6em; }

.server-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.server-tag {
    background: var(--bg-section);
    color: var(--text-muted);
    padding: 3px 9px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Дно — прибито к низу через margin-top:auto */
.server-card-foot {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Минимальные требования — компактная плашка */
.server-req {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    background: var(--bg-section);
    border-left: 3px solid var(--accent);
    padding: 8px 12px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text);
}
.server-req i {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.server-stats {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.server-stats i { color: var(--accent); }
.server-stats strong { color: var(--text); font-weight: 600; }

.server-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.server-actions .btn { flex: 1; min-width: 120px; padding: 10px 14px; font-size: 0.9rem; }

/* Кнопка инструкции — текстовая, не громоздкая */
.server-guide-btn {
    background: transparent;
    border: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    text-align: left;
    transition: color var(--transition);
    align-self: flex-start;
    font-family: inherit;
}
.server-guide-btn:hover { text-decoration: underline; }
.server-guide-btn i { font-size: 1rem; display: inline-block; text-decoration: none; }

/* Содержимое инструкции — отображается только в модалке */
.server-guide-body {
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.7;
}
.server-guide-body > *:first-child { margin-top: 0; }
.server-guide-body > *:last-child { margin-bottom: 0; }

.server-guide-body h1,
.server-guide-body h2,
.server-guide-body h3 {
    color: var(--text);
    font-weight: 600;
    line-height: 1.3;
    margin: 1.2em 0 0.5em;
}
.server-guide-body h1 { font-size: 1.3rem; }
.server-guide-body h2 { font-size: 1.15rem; }
.server-guide-body h3 { font-size: 1.05rem; }

.server-guide-body p { 
    margin: 0 0 0.9em;
    overflow-wrap: anywhere;
    word-break: normal;
}

.server-guide-body ol,
.server-guide-body ul {
    margin: 0.6em 0 1em 0;
    padding-left: 1.5em;
}
.server-guide-body li { margin-bottom: 0.5em; }
.server-guide-body li::marker { color: var(--accent); font-weight: 600; }

.server-guide-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.server-guide-body a:hover { text-decoration-thickness: 2px; }

.server-guide-body strong { color: var(--text); font-weight: 600; }
.server-guide-body em { color: var(--text-muted); }

.server-guide-body code {
    background: var(--bg-section);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    border: 1px solid var(--border);
}
.server-guide-body pre {
    background: var(--bg-section);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 0.88em;
    line-height: 1.55;
    margin: 1em 0;
}
.server-guide-body pre code {
    background: transparent;
    padding: 0;
    border: 0;
    color: var(--text);
}

.server-guide-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 14px;
    background: var(--bg-section);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1em 0;
    color: var(--text-muted);
    font-style: italic;
}
.server-guide-body blockquote p { margin: 0.4em 0; }

.server-guide-body hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.5em 0;
}

.server-guide-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 1em 0;
    border: 1px solid var(--border);
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 3rem; color: var(--border-strong); margin-bottom: 16px; display: block; }
.empty-state p { margin-bottom: 20px; font-size: 1.05rem; }

/* ── Changelog ─────────────────────────────────────────────────────────── */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}
.changelog-entry {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 22px 26px;
    transition: box-shadow var(--transition);
}
.changelog-entry:hover { box-shadow: var(--shadow); }
.changelog-entry.is-hidden { display: none; }
.changelog-entry.is-revealed {
    display: block;
    animation: fadeUpIn 0.4s ease both;
}
@keyframes fadeUpIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.changelog-head {
    display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.changelog-version {
    font-size: 1.15rem; font-weight: 700;
    color: var(--accent);
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center; gap: 8px;
}
.changelog-beta {
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
}
.changelog-date { font-size: 0.85rem; color: var(--text-muted); }
.changelog-items { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.changelog-items li {
    position: relative;
    /*padding-left: 22px;*/
    font-size: 0.92rem;
    line-height: 1.55;
}
/*
.changelog-items li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}*/
.changelog-toggle-wrap {
    display: flex; justify-content: center; margin-top: 28px;
}
#changelogToggleIcon { transition: transform 0.3s ease; }

added, fixed, deleted {
	display: block;
	margin: 10px 0;
	text-align: justify;
}

added:before, fixed:before, deleted:before {
	color: #FFF;
	font-weight: 500;
	border-radius: 10px;
	margin-right: 12px;
	padding: 2px 0;
	line-height: 1.5;

	background: var(--bg);
	box-shadow: 6px 0 0 var(--bg), 
				-6px 0 0 var(--bg);
}

added:before {
	content: "new";
	--bg: #00c98826;
    color: #16c316;
}

fixed:before {
	content: "fix";
    --bg: #e3a80026;
    color: #d17512;
}

/* ── Опросник удаления ─────────────────────────────────────────────────── */
.survey-form { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

.survey-reasons { border: 0; padding: 0; margin-bottom: 24px; }
.survey-reasons legend {
    font-size: 1.05rem; font-weight: 600;
    margin-bottom: 16px;
    display: block;
}
.reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.reason-tile { cursor: pointer; }
.reason-tile input { position: absolute; opacity: 0; pointer-events: none; }
.reason-tile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 14px;
    background: var(--bg-section);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    height: 100%;
}
.reason-tile-inner:hover { border-color: var(--accent); }
.reason-tile input:checked + .reason-tile-inner {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.reason-tile input:focus-visible + .reason-tile-inner {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.reason-icon {
    width: 44px; height: 44px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}
.reason-text { font-size: 0.9rem; color: var(--text); }

.form-row { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.form-textarea, .form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-textarea:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── Спасибо-страница ──────────────────────────────────────────────────── */
.section-thanks { padding: 80px 0; }
.thanks-icon {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: rgba(16, 124, 16, 0.12);
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
.thanks-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 14px; }
.thanks-lead { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.thanks-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 24px;
}
.thanks-hint { color: var(--text-soft); font-size: 0.85rem; font-style: italic; }

/* ── Лайтбокс ──────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 1000;
    justify-content: center; align-items: center;
    padding: 5vh 5vw;
    cursor: zoom-out;
}
.lightbox.is-open, .lightbox.show { display: flex; animation: fadeIn 0.25s ease; }
.lightbox img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    color: #fff;
    font-size: 2.5rem; line-height: 1;
    background: transparent; border: 0;
    z-index: 1001;
}
.lightbox-close:hover { color: var(--accent); }

.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: var(--radius);
    cursor: pointer; z-index: 1001;
    transition: background .15s ease, transform .15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-nav:active { transform: translateY(-50%) scale(.94); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav[hidden] { display: none; }
.lightbox-count {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: .9rem; letter-spacing: .02em;
    padding: 6px 14px; background: rgba(0,0,0,.5);
    border-radius: var(--radius); z-index: 1001;
}
.lightbox-count[hidden] { display: none; }
@media (max-width: 600px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 1.2rem; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Тосты ─────────────────────────────────────────────────────────────── */
.toasts {
    position: fixed;
    top: 80px; right: 16px;
    z-index: 1100;
    display: flex; flex-direction: column; gap: 10px;
    max-width: calc(100vw - 32px);
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--info);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 280px;
    max-width: 380px;
    font-size: 0.9rem;
    animation: toastIn 0.3s ease;
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast i { font-size: 1.05rem; color: var(--info); }
.toast-success i { color: var(--success); }
.toast-error i   { color: var(--danger); }
.toast-warning i { color: var(--warning); }
.toast span { flex: 1; }
.toast-close {
    background: transparent; border: 0;
    color: var(--text-muted);
    font-size: 1.2rem; line-height: 1;
    padding: 0 4px;
}
.toast.is-leaving { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); }   to { opacity: 0; transform: translateX(20px); } }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 1200;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal.is-open {
    display: flex;
    animation: modalFadeIn .25s ease-out;
}
.modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    animation: modalBackdropIn .25s ease-out;
}
.modal-dialog {
    position: relative;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05);
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalDialogIn .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-dialog-lg { max-width: 760px; }

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalBackdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalDialogIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--bg-section) 0%, var(--card-bg) 100%);
    flex-shrink: 0;
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.modal-close {
    background: transparent;
    border: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform .15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.modal-close:hover {
    background: var(--bg-section);
    color: var(--text);
    transform: rotate(90deg);
}
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-strong, var(--border)); border-radius: 4px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Модалка reCAPTCHA — оформление ─────────────────────────────────── */
#captchaModal .modal-dialog { max-width: 412px; }
#captchaModal .modal-header h3 { display: flex; align-items: center; gap: 10px; }
#captchaModal .modal-header h3 i { color: var(--accent); font-size: 1.05rem; }
#captchaModal .modal-body { text-align: center; padding: 30px 24px 26px; }
#captchaModal .captcha-icon {
    width: 66px; height: 66px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-size: 1.7rem;
    box-shadow: 0 0 0 8px var(--accent-soft);
}
#captchaModal .captcha-lead {
    margin: 0 auto 22px; max-width: 320px;
    color: var(--text-muted); line-height: 1.5; font-size: .98rem;
}
#captchaModal .captcha-widget {
    display: flex; justify-content: center; min-height: 78px;
}
#captchaModal .captcha-note {
    margin: 20px 0 0; font-size: .82rem; color: var(--text-soft);
    display: flex; align-items: center; justify-content: center; gap: 7px;
}
#captchaModal .captcha-note i { font-size: .78rem; }

/* ── Модалка гео-ограничения скачивания ─────────────────────────────── */
#geoModal .modal-dialog { max-width: 440px; }
#geoModal .modal-header h3 { display: flex; align-items: center; gap: 10px; }
#geoModal .modal-header h3 i { color: var(--accent); font-size: 1.05rem; }
#geoModal .modal-body { text-align: center; padding: 30px 26px 26px; }
#geoModal .geo-icon {
    width: 70px; height: 70px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--accent-soft); color: var(--accent);
    font-size: 1.85rem;
    box-shadow: 0 0 0 8px var(--accent-soft);
}
#geoModal .geo-lead {
    margin: 0 auto 22px; max-width: 360px;
    color: var(--text-muted); line-height: 1.55; font-size: .98rem;
}
#geoModal .geo-actions {
    display: flex; flex-direction: column; gap: 10px;
    max-width: 320px; margin: 0 auto;
}
#geoModal .geo-actions .btn { width: 100%; justify-content: center; }
#geoModal .geo-note {
    margin: 20px auto 0; max-width: 340px;
    font-size: .82rem; color: var(--text-soft); line-height: 1.5;
    display: flex; align-items: flex-start; justify-content: center; gap: 7px;
    text-align: left;
}
#geoModal .geo-note i { font-size: .82rem; margin-top: 2px; color: var(--accent); flex-shrink: 0; }

/* Заголовок модалки инструкции */
.guide-modal-header { padding: 22px 24px 18px; }
.guide-modal-title {
    display: flex;
    gap: 14px;
    align-items: center;
    flex: 1;
    min-width: 0;
}
.guide-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: var(--accent-soft, var(--bg-section));
    color: var(--accent);
    border-radius: 10px;
    flex-shrink: 0;
    font-size: 1.15rem;
}
.guide-modal-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}
.guide-modal-title h3 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin: 0;
    color: var(--text);
    word-break: break-word;
}

@media (max-width: 640px) {
    .modal { padding: 12px; }
    .modal-dialog { max-height: 92vh; }
    .modal-header { padding: 14px 18px; }
    .modal-body { padding: 18px; }
    .modal-header h3 { font-size: 1.05rem; }
}

/* ── Cookie consent ────────────────────────────────────────────────────── */
.cookie-consent {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 900;
    max-width: 720px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: cookieIn 0.4s ease;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    flex-wrap: wrap;
}
.cookie-consent-inner i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; }
.cookie-consent-inner span { flex: 1; font-size: 0.9rem; color: var(--text-muted); min-width: 200px; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Skeleton loaders ──────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg,
        var(--bg-section) 0%,
        var(--border) 50%,
        var(--bg-section) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.short { width: 60%; }
.skeleton-img { width: 100%; aspect-ratio: 16 / 9; }
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Страницы ошибок ───────────────────────────────────────────────────── */
.error-body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.error-page {
    text-align: center;
    max-width: 520px;
    padding: 40px 20px;
}
.error-icon {
    width: 96px; height: 96px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem;
}
.error-icon-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.error-icon-danger  { background: rgba(209, 52, 56, 0.12);  color: var(--danger); }

.error-code {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -2px;
}
.error-title { font-size: 1.6rem; font-weight: 600; margin-bottom: 14px; }
.error-text { color: var(--text-muted); margin-bottom: 12px; line-height: 1.65; }
.error-hint { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 24px; }
.error-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Адаптив ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Рядом с лого «Виджеты» — только иконка, экономим место */
    .header-brand { gap: 8px; }
    .header-brand .nav-link-label { display: none; }
    .nav-link-brandtool { padding: 8px 10px; }
}

@media (max-width: 980px) {
    .about-top { grid-template-columns: 1fr; gap: 24px; }
    .feature-list-top { flex-direction: row; gap: 16px; }
    .feature-list-top .feature-card { flex: 1; }
}

@media (max-width: 768px) {
    .hero { padding: 50px 0 40px; }
    .section { padding: 50px 0; }

    /* Верхний ряд — компактнее */
    .header-top-inner { padding: 10px 5%; gap: 8px; min-height: 52px; }
    .header-utils { gap: 6px; }
    .header-sep { display: none; }
    .logo-tld { display: none; }  /* экономим место — оставляем DOWNLOAD-CS */

    /* Нижний ряд — скрыт, превращается в выезжающее меню */
    .header-main { display: none; }
    .header-main.is-open {
        display: block;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .header-main.is-open .header-main-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 4px;
    }
    .header-main.is-open .site-nav {
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 2px;
    }
    .header-main.is-open .site-nav-right {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }
    .header-vsep {
        display: none;  /* на мобильном — отделяем горизонтальной чертой через padding-top */
    }
    .header-main.is-open .site-nav-right {
        border-top: 1px solid var(--border);
        margin-top: 4px;
        padding-top: 6px;
    }
    .nav-link { padding: 10px 14px; }

    /* Dropdown в мобильном — inline-список */
    .nav-dropdown { display: block; width: 100%; }
    .nav-dropdown-trigger {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        text-align: left;
    }
    .nav-dropdown-trigger .nav-dropdown-arrow { margin-left: auto; }
    .nav-dropdown-panel,
    .nav-dropdown-right .nav-dropdown-panel {
        position: static;
        transform: none;
        left: auto;
        right: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 2px 0 4px 28px;
        min-width: 0;
        display: none;
    }
    .nav-dropdown.is-open .nav-dropdown-panel {
        display: block;
        transform: none;
    }
    .nav-dropdown-item { padding: 8px 12px; }
    .nav-dropdown-item-desc { display: none; }
    .nav-dropdown-link { padding: 8px 12px; }

    .mobile-menu-toggle { display: inline-flex; }

    /* «Виджеты» уходит из верхней брендовой зоны в бургер-меню */
    .header-brand .nav-link-brandtool { display: none; }
    .header-brand .header-vsep-brand { display: none; }
    .header-main.is-open .nav-link-mobileonly { display: inline-flex; }

    .footer-inner { flex-direction: column; text-align: center; }
    .build-actions .btn,
    .server-actions .btn { width: 100%; min-width: 0; }
    .feature-list-top { flex-direction: column; }
    .toasts { top: auto; bottom: 16px; left: 16px; right: 16px; }
    .toast { min-width: 0; max-width: none; }
}

@media (max-width: 480px) {
    .header-top-inner { gap: 4px; }
    .lang-switch .lang-btn { padding: 6px 9px; gap: 0; }
    /* На узких экранах подписи скрываем — остаются только флаги */
    .lang-switch .lang-name { display: none; }
    .build-card-body { padding: 18px; }
    .reason-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Страница /share (генератор бейджей) ───────────────────────────────── */
.hero-compact { padding: 36px 0 24px; }

.share-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}
.share-tab {
    background: transparent;
    border: 0;
    padding: 12px 18px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
    font-family: inherit;
}
.share-tab:hover { color: var(--text); }
.share-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.share-pane { display: none; }
.share-pane.is-active { display: block; }

.share-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 22px;
}
.share-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.share-card-head h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}
.share-slug {
    background: var(--bg-section);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-family: 'SF Mono', Monaco, monospace;
}

.share-card-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 900px) {
    .share-card-body { grid-template-columns: 280px 1fr; }
}

.badge-previews {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.badge-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}
.badge-preview-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}
.badge-preview img {
    display: block;
}

.share-snippets {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.share-snippet label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.share-snippet-row {
    display: flex;
    gap: 6px;
}
.share-snippet-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-section);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.82rem;
    color: var(--text);
    overflow-x: auto;
}
.share-snippet-input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.copy-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    cursor: pointer;
    transition: background .15s;
}
.copy-btn.is-copied {
    background: var(--success, #107c10) !important;
    color: #fff !important;
    border-color: var(--success, #107c10) !important;
}

.share-help {
    margin-top: 36px;
    padding: 20px 24px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--accent);
}
.share-help h3 { font-size: 1rem; margin-bottom: 10px; }
.share-help p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 6px; }
.share-help code {
    background: var(--card-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
    border: 1px solid var(--border);
}

/* ── Минимальный layout (формы /uninstallform и т.п.) ──────────────────── */
.minimal-page { min-height: 100vh; display: flex; flex-direction: column; }
.minimal-brand { display: flex; justify-content: center; padding: 22px 16px 6px; }
.minimal-brand-link {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); font-weight: 700; letter-spacing: .02em; text-decoration: none;
    transition: opacity var(--transition);
}
.minimal-brand-link:hover { opacity: .8; }
.minimal-brand-logo { width: 30px; height: 30px; object-fit: contain; }
.minimal-brand-link span { font-size: 1.05rem; font-family: 'Moderustic', var(--font-sans); font-weight: 800; letter-spacing: .3px; }
.minimal-main {
    flex: 1; display: flex; justify-content: center; align-items: flex-start;
    padding: 30px 16px 64px;
}
.minimal-wrap { width: 100%; max-width: 640px; }
.minimal-head { text-align: center; margin-bottom: 26px; }
.minimal-badge {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; margin-bottom: 16px;
    font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft);
    border-radius: var(--radius);
}
.minimal-title { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: var(--text); }
.minimal-lead { color: var(--text-muted); font-size: 1.02rem; line-height: 1.55; margin: 0 auto; max-width: 520px; }
.minimal-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm);
}
.minimal-card.center-text { text-align: center; }
.minimal-thanks { padding: 42px 28px; }
@media (max-width: 560px) {
    .minimal-title { font-size: 1.5rem; }
    .minimal-card { padding: 20px; }
    .minimal-main { padding: 18px 12px 48px; }
}

/* ── Hero: витрина сборок ──────────────────────────────────────────────── */
.hero-builds { margin-top: 32px; }
.hero-builds-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
    color: var(--text-soft); font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
}
.hero-builds-head i { color: var(--accent); }
.hero-builds-row { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-build-tile {
    position: relative; width: 172px; height: 108px; flex-shrink: 0;
    border-radius: var(--radius); overflow: hidden; text-decoration: none;
    border: 1px solid var(--border); background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(16px) scale(.98);
    animation: heroTileIn .55s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--i) * .09s + .15s);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.hero-build-tile:hover {
    transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent);
}
.hero-build-tile-img {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transition: transform .45s ease;
}
.hero-build-tile:hover .hero-build-tile-img { transform: scale(1.09); }
.hero-build-tile-shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.3) 100%);
}
.hero-build-tile-name {
    position: absolute; left: 11px; right: 11px; bottom: 9px; z-index: 2;
    color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
}
.hero-build-tile-badge {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; font-weight: 600;
    padding: 2px 8px; border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
}
/* блик при наведении */
.hero-build-tile::after {
    content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%; z-index: 3;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg);
}
.hero-build-tile:hover::after { left: 130%; transition: left .75s ease; }

.hero-build-all {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    width: 116px; height: 108px; flex-shrink: 0;
    border-radius: var(--radius); border: 1px dashed var(--border-strong);
    color: var(--text-muted); text-decoration: none; font-size: .82rem; font-weight: 600; text-align: center;
    opacity: 0; transform: translateY(16px);
    animation: heroTileIn .55s cubic-bezier(.16, 1, .3, 1) forwards;
    animation-delay: calc(var(--i) * .09s + .15s);
    transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.hero-build-all:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.hero-build-all-icon {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent);
    transition: transform .25s ease;
}
.hero-build-all:hover .hero-build-all-icon { transform: translateX(3px); }

@keyframes heroTileIn { to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 560px) {
    .hero-builds-row {
        flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .hero-builds-row::-webkit-scrollbar { display: none; }
    .hero-build-tile { width: 156px; height: 98px; }
    .hero-build-all { width: 104px; height: 98px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-build-tile, .hero-build-all { animation: none; opacity: 1; transform: none; }
    .hero-build-tile::after { display: none; }
}

@media (max-width: 768px) {
    .download-btn .dl-size { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ПРОГРАММЫ (/soft) — карточки со скриншотами
   ═══════════════════════════════════════════════════════════════ */

.soft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    align-items: stretch;
}
@media (max-width: 480px) {
    .soft-grid { grid-template-columns: 1fr; }
}

.soft-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition);
}
.soft-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Медиа: карусель скриншотов, кликабельная в лайтбокс */
.soft-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-section);
    overflow: hidden;
    flex-shrink: 0;
}
.soft-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    display: block;
    transition: transform .35s ease;
}
.soft-media-img[hidden] { display: none; }
.soft-card:hover .soft-media-img { transform: scale(1.03); }

.soft-card-media .carousel-arrow {
    opacity: 0;
    transition: opacity var(--transition);
}
.soft-card:hover .soft-card-media .carousel-arrow { opacity: 1; }

.soft-media-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: var(--radius);
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.soft-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 2.6rem;
}
.soft-media-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
}

.soft-card-body {
    padding: var(--card-pad);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.soft-card-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.soft-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--bg-section);
}
.soft-head-text { min-width: 0; }
.soft-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}

.soft-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.4;
    background: var(--bg-section);
    color: var(--text-muted);
}
.soft-badge-kind { background: var(--accent-2-soft); color: var(--accent-2); }
.soft-os-windows { background: var(--bg-2); color: var(--text-muted); }
.soft-os-linux   { background: var(--bg-2); color: var(--text-muted); }
.soft-badge-ver  { font-family: 'Courier New', monospace; text-transform: none; }

.soft-short {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.soft-card-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 6px;
}
.soft-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-soft);
}
.soft-meta i { margin-right: 4px; color: var(--text-soft); }
.soft-meta strong { color: var(--text); font-weight: 600; }

.soft-actions { display: flex; gap: 8px; }
.soft-actions .btn { flex: 1; justify-content: center; }

.soft-links { display: flex; gap: 14px; flex-wrap: wrap; }
.soft-link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}
.soft-link-btn:hover { color: var(--accent); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   REHLDS (/rehlds) — ядро + список компонентов
   ═══════════════════════════════════════════════════════════════ */

/* ── Ядро ── */
.re-core {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-2);
    border-radius: var(--radius-lg);
    padding: 28px 28px 22px;
    margin-bottom: 44px;
    box-shadow: var(--shadow-sm);
}
.re-core-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    background: var(--accent-2-soft);
    color: var(--accent-2);
    border: 1px solid var(--card-bg);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.re-core-grid {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 640px) {
    .re-core-grid { grid-template-columns: 1fr; }
    .re-core-icon { width: 72px; height: 72px; }
}
.re-core-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    overflow: hidden;
}
.re-core-icon img { width: 100%; height: 100%; object-fit: contain; }

.re-core-title { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.re-core-short {
    font-size: 1.02rem;
    color: var(--text);
    margin: 8px 0 10px;
    line-height: 1.5;
}
.re-core-desc {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 18px;
}
.re-core-desc p:not(:last-child) { margin-bottom: .6em; }

.re-core-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.re-core-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-soft);
}
.re-core-meta i { margin-right: 4px; }

/* Мини-карта стека под ядром */
.re-stack {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.re-stack-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-right: 4px;
}
.re-stack-chip {
    padding: 4px 11px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
}
.re-stack-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ── Заголовок секции ── */
.re-section-head { margin: 0 0 16px; }
.re-section-head h2 { font-size: 1.3rem; font-weight: 700; }
.re-section-head p  { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ── Список компонентов ── */
.re-list {
    list-style: none;
    margin: 0 0 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    overflow: hidden;
    counter-reset: re-step;
}
.re-row {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.re-row:last-child { border-bottom: 0; }
.re-row:hover { background: var(--bg-elevated); }
.re-row:target { background: var(--accent-soft); }

.re-row-main {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
}
@media (max-width: 720px) {
    .re-row-main { grid-template-columns: 44px 1fr; }
    .re-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Номер шага + иконка/инициалы */
.re-row-icon {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--bg-section);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: .5px;
    overflow: visible;
}
.re-row-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.re-row-icon::before {
    counter-increment: re-step;
    content: counter(re-step);
    position: absolute;
    top: -6px;
    left: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--card-bg);
}

.re-row-text { min-width: 0; }
.re-row-title-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.re-row-title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.re-row-short {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
    margin-top: 4px;
}
.re-requires {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-soft);
}
.re-requires:hover { color: var(--accent); text-decoration: none; }

.re-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1.5;
    background: var(--bg-section);
    color: var(--text-muted);
}
.re-pill-ver  { font-family: 'Courier New', monospace; text-transform: none; }
.re-pill-kind { background: var(--accent-2-soft); color: var(--accent-2); }

.re-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.re-icon-link {
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.re-icon-link:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.re-toggle i { transition: transform var(--transition); }
.re-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.re-toggle[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }

/* Раскрывающиеся детали */
.re-row-details {
    padding: 4px 20px 20px 88px;
    display: grid;
    gap: 14px;
}
@media (max-width: 720px) {
    .re-row-details { padding-left: 20px; }
}
.re-details-block {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.re-details-block h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.re-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-soft);
}
.re-details-meta i { margin-right: 4px; }
.re-details-meta a { color: var(--text-soft); }
.re-details-meta a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   Дропдаун «Ещё» в шапке — активное состояние триггера
   ═══════════════════════════════════════════════════════════════ */
.nav-dropdown-trigger.is-active { color: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   Каналы обновлений на карточке сборки (заменяют версии-табы)
   Кнопки сохраняют класс .v-tag для совместимости с JS.
   ═══════════════════════════════════════════════════════════════ */

.b-channels-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--text-soft);
    margin-bottom: 8px;
}

.b-channels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}
.b-channels:has(> :only-child) { grid-template-columns: 1fr; }

/* Переопределяем базовый .v-tag (пилюля) — здесь это карточка-выбор */
.build-card .b-channels .v-tag.ch-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 11px 13px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.3;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.build-card .b-channels .v-tag.ch-tab:hover {
    border-color: var(--border-strong);
    background: var(--bg-2);
}
.build-card .b-channels .v-tag.ch-tab.is-active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: none;
}

.ch-tab-head {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    font-weight: 600;
    font-size: 0.9rem;
}
.ch-tab-head i {
    color: var(--text-soft);
    font-size: 0.85rem;
    width: 14px;
    text-align: center;
}
.ch-tab.is-active .ch-tab-head i,
.ch-tab.is-active .ch-tab-title { color: var(--accent); }

.ch-tab-rec {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: var(--accent-2-soft);
    color: var(--accent-2);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ch-tab-sub {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.35;
}

/* Строка «Установщик 2.5.3 · NEW · обновится при первом запуске» */
.build-installer {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 8px 10px;
    border-radius: var(--radius);
    background: var(--bg-section);
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}
.build-installer > i {
    color: var(--accent);
    margin-top: 3px;
    flex-shrink: 0;
}
.build-installer-text { display: inline; }
.build-installer-ver {
    color: var(--text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}
.build-installer-sep { margin: 0 4px; color: var(--text-soft); }
.build-installer .v-tag-new,
.build-installer .v-tag-beta { margin-left: 4px; vertical-align: 1px; }
.build-installer [hidden] { display: none !important; }

/* Компактный режим (главная / выделенная сборка на /builds):
   подпись прячем в title, чтобы вкладки были в одну строку */
@media (max-width: 420px) {
    .b-channels { grid-template-columns: 1fr; }
}
.build-card--fcompact .ch-tab-sub { display: none; }
.build-card--fcompact .build-card .b-channels .v-tag.ch-tab { padding: 8px 12px; }

/* Старые бейджи NEW/BETA внутри .v-tag больше не используются в карточке,
   но правило .v-tag.is-active .v-tag-new оставлено в style.css — безвредно. */

/* ═══════════════════════════════════════════════════════════════
   Партнёрский блок — тихая горизонтальная карточка, один на страницу
   ═══════════════════════════════════════════════════════════════ */
.partner-widget {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding: 14px 18px 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card-bg);
    transition: border-color var(--transition);
}
.partner-widget:hover { border-color: var(--border-strong); }

.partner-widget-tag {
    position: absolute;
    top: -9px;
    right: 14px;
    padding: 2px 8px;
    border-radius: var(--radius);
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    background: var(--bg-section);
    color: var(--text-soft);
}

.partner-widget-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-section);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}
.partner-widget-logo img { width: 100%; height: 100%; object-fit: contain; }

.partner-widget-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.partner-widget-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
}
.partner-widget-title:hover { color: var(--accent); text-decoration: none; }
.partner-widget-desc {
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.partner-widget-btn { flex-shrink: 0; }
.partner-widget-btn i { font-size: 0.75rem; }

@media (max-width: 520px) {
    .partner-widget { flex-wrap: wrap; }
    .partner-widget-desc { white-space: normal; }
    .partner-widget-btn { width: 100%; justify-content: center; }
}

/* На /builds после пагинации нужен отступ сверху, на главной он идёт перед .partners */
#buildsPage .partner-widget { margin-top: 30px; }

/* ═══════════════════════════════════════════════════════════════
   Карточка сборки v2: описание в 2 строки, каналы у кнопки,
   одна строка метаданных
   ═══════════════════════════════════════════════════════════════ */
.build-card .build-desc {
    flex-grow: 0;
    margin-bottom: 6px;
}
.build-card .build-desc br { display: none; }        /* абзацы через <br> схлопываем в текст */
.build-card .build-desc.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.build-card .build-desc.is-clamped.is-open {
    display: block;
    -webkit-line-clamp: unset;
}
.build-desc-more {
    align-self: flex-start;
    background: none;
    border: 0;
    padding: 0;
    margin: 0 0 4px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.build-desc-more i { font-size: 0.7rem; transition: transform var(--transition); }
.build-desc-more.is-open i { transform: rotate(180deg); }

/* Пружина: всё, что ниже, прижимается к низу карточки */
.build-card-spacer { flex-grow: 1; min-height: 12px; }

/* Каналы — сразу над строкой метаданных */
.build-card .b-channels-label { margin-top: 4px; }
.build-card .b-channels { margin-bottom: 10px; }

/* Одна строка метаданных вместо .build-installer + .build-stats */
.build-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 10px 0;
    margin-bottom: 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    color: var(--text-muted);
}
.build-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.build-meta-item i { color: var(--text-soft); font-size: 0.8rem; }
.build-meta-item > span:not(.v-tag-new):not(.v-tag-beta) { color: var(--text); font-weight: 600; }
.build-installer-ver { font-family: 'Courier New', monospace; }
.build-meta-item[hidden] { display: none !important; }
.build-meta .v-tag-new, .build-meta .v-tag-beta { margin-left: 2px; }
.build-meta [hidden] { display: none !important; }

.build-meta-note {
    flex-basis: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    font-size: 0.78rem;
}
.build-meta-note i { color: var(--text-soft); }

/* Компактный режим (главная, одна сборка): всё в один ряд, примечание прячем */
.build-card--fcompact .build-meta-note { display: none; }

/* ═══════════════════════════════════════════════════════════════
   Универсальный тулбар списков (/servers, /soft) — визуально тот же,
   что на /builds (.bld-*), но не привязан к #buildsPage
   ═══════════════════════════════════════════════════════════════ */
.lt-toolbar {
    display: flex; flex-direction: column; gap: 16px;
    margin-bottom: 30px; padding: 18px;
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.lt-search { position: relative; width: 100%; }
.lt-search i {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-soft); font-size: 14px; pointer-events: none;
}
.lt-search-input {
    width: 100%; padding: 12px 16px 12px 40px; font: inherit; font-size: 15px; color: var(--text);
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color var(--transition), box-shadow var(--transition);
}
.lt-search-input::placeholder { color: var(--text-soft); }
.lt-search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.lt-controls {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.lt-groups { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.lt-group  { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lt-group-label { font-size: 13px; color: var(--text-soft); font-weight: 600; margin-right: 2px; }

.lt-chip {
    display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
    padding: 9px 15px; font: inherit; font-size: 14px; line-height: 1; color: var(--text-muted);
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius); transition: all var(--transition);
}
.lt-chip:hover { color: var(--text); border-color: var(--border-strong); }
.lt-chip.is-active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); font-weight: 500; }
.lt-chip-n {
    font-size: 12px; padding: 1px 7px; border-radius: var(--radius);
    background: var(--accent-soft); color: var(--accent);
}
.lt-chip.is-active .lt-chip-n { background: var(--accent-strong); color: var(--accent); }

.lt-sort { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; white-space: nowrap; }
.lt-sort-select {
    font: inherit; font-size: 14px; color: var(--text); background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 9px 34px 9px 13px; cursor: pointer;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; background-size: 14px;
}
.lt-sort-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Скрытые фильтром карточки */
.servers-grid > [hidden], .soft-grid > [hidden] { display: none !important; }
.lt-empty[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   SHA-256 файла — свёрнутый блок с копированием
   ═══════════════════════════════════════════════════════════════ */
.file-hash { margin: 0 0 12px; font-size: 0.78rem; }
.file-hash[hidden] { display: none !important; }
.file-hash summary {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; list-style: none; user-select: none;
    color: var(--text-soft); font-weight: 600;
}
.file-hash summary::-webkit-details-marker { display: none; }
.file-hash summary i { color: var(--text-soft); font-size: 0.8rem; }
.file-hash summary:hover { color: var(--accent); }
.file-hash-hint { font-weight: 400; color: var(--text-soft); }
.file-hash-hint::before { content: "· "; }
.file-hash[open] summary { color: var(--text-muted); margin-bottom: 6px; }

.file-hash-body {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 8px; border-radius: var(--radius);
    background: var(--bg-section); border: 1px solid var(--border);
}
.file-hash-value {
    flex: 1; min-width: 0;
    font-family: 'Courier New', monospace; font-size: 0.72rem; line-height: 1.4;
    color: var(--text); word-break: break-all; user-select: all;
}
.file-hash-copy {
    flex-shrink: 0; width: 28px; height: 28px;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card-bg); color: var(--text-muted); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all var(--transition);
}
.file-hash-copy:hover { border-color: var(--accent); color: var(--accent); }
.file-hash-copy.is-done { border-color: var(--success); color: var(--success); }
.build-card .build-hash { margin-top: -6px; }
.re-row-details .file-hash { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════════
   Плашка для не-Windows посетителей вместо кнопок скачивания
   ═══════════════════════════════════════════════════════════════ */
.notwin, .build-notwin {
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 14px 14px 10px;
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.notwin-head, .build-notwin-head {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.9rem; line-height: 1.45; color: var(--text);
}
.notwin-head i, .build-notwin-head i { color: var(--accent); font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.notwin-actions, .build-notwin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.notwin-actions .btn, .build-notwin-actions .btn { flex: 1; min-width: 130px; justify-content: center; }
.notwin-anyway, .build-notwin-anyway {
    align-self: center;
    background: none; border: 0; padding: 4px 0; cursor: pointer;
    color: var(--text-soft); font-size: 0.78rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.notwin-anyway:hover, .build-notwin-anyway:hover { color: var(--accent); }
.notwin-anyway[hidden], .build-notwin-anyway[hidden] { display: none !important; }
.notwin + [data-notwin-actions], .build-notwin + .build-actions { margin-top: 12px; }
[data-notwin-actions][hidden], .notwin[hidden], .build-actions[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   /share — конструктор бейджей
   ═══════════════════════════════════════════════════════════════ */
.bb {
    display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 28px;
    align-items: start; margin-bottom: 40px;
}
@media (max-width: 900px) { .bb { grid-template-columns: 1fr; } }

.bb-controls {
    display: flex; flex-direction: column; gap: 18px;
    padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--card-bg); box-shadow: var(--shadow-sm);
}
.bb-row { display: grid; grid-template-columns: 1.20fr 1fr; gap: 14px; }
.bb-row > [hidden] { display: none; }
.bb-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.bb-field[hidden] { display: none; }
.bb-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-soft); }
.bb-label small, .bb-label output { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-soft); }
.bb-label output { font-weight: 600; color: var(--accent); }

.bb-select, .bb-input {
    width: 100%; padding: 10px 12px; font: inherit; font-size: 0.92rem; color: var(--text);
    background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
}
.bb-select:focus, .bb-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.bb-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-elevated); }
.bb-seg button {
    flex: 1; padding: 8px 12px; border: 0; background: none; font: inherit; font-size: 0.85rem; font-weight: 500;
    color: var(--text-muted); cursor: pointer; white-space: nowrap; transition: all var(--transition);
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.bb-seg button + button { border-left: 1px solid var(--border); }
.bb-seg button:hover { color: var(--text); }
.bb-seg button.is-active { background: var(--accent-soft); color: var(--accent); }

.bb-colors { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bb-color {
    width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
    background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); position: relative; transition: transform var(--transition);
}
.bb-color:hover { transform: scale(1.08); }
.bb-color.is-active { border-color: var(--text); box-shadow: 0 0 0 2px var(--card-bg), inset 0 0 0 1px rgba(0,0,0,.15); }
.bb-color-custom { background: var(--bg-section); display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.75rem; overflow: hidden; }
.bb-color-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.bb-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 0.88rem; color: var(--text); }
.bb-checks label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.bb-checks label[hidden] { display: none; }
.bb-checks input { accent-color: var(--accent); }

.bb-range { width: 100%; accent-color: var(--accent); }

.bb-reset {
    align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--text-soft); font-size: 0.82rem; display: inline-flex; align-items: center; gap: 6px;
}
.bb-reset:hover { color: var(--accent); }

.bb-output { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bb-preview {
    position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
    background: var(--card-bg); padding: 16px 16px 12px; box-shadow: var(--shadow-sm);
}
.bb-preview-label { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--text-soft); margin-bottom: 10px; }
.bb-preview-stage {
    display: flex; align-items: center; justify-content: center; min-height: 140px; padding: 24px;
    border-radius: var(--radius); background: #fff; transition: background var(--transition);
}
.bb-preview-stage[data-bg="dark"] { background: #111827; }
.bb-preview-stage[data-bg="checker"] {
    background-color: #eee;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.bb-preview-stage img { max-width: 100%; height: auto; display: block; }
.bb-preview-bg { position: absolute; top: 12px; right: 14px; display: flex; gap: 6px; }
.bb-preview-bg button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); cursor: pointer; padding: 0; }
.bb-preview-bg button[data-bg="light"] { background: #fff; }
.bb-preview-bg button[data-bg="dark"]  { background: #111827; }
.bb-preview-bg button[data-bg="checker"] { background: repeating-conic-gradient(#ccc 0 25%, #fff 0 50%) 0 0 / 8px 8px; }
.bb-preview-bg button.is-active { border-color: var(--accent); }

.bb-snippets .share-snippet-input { font-size: 0.8rem; }

/* ── Кнопки карточек: «Скачать» тянется, второстепенная — нет ── */
.build-actions .btn-primary, .soft-actions .btn-primary, .server-actions .btn-primary { flex: 1; }
.build-actions .btn-secondary, .soft-actions .btn-secondary, .server-actions .btn-secondary { flex: 0 0 auto; }
@media (max-width: 480px) {
    .build-actions .btn-secondary, .soft-actions .btn-secondary, .server-actions .btn-secondary { flex: 1; }
}

/* ── «О клиенте»: bento-сетка + цифры ─────────────────────────────── */
.about-bento {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 20px;
}
.about-media { grid-row: 1 / 3; aspect-ratio: auto; min-height: 380px; box-shadow: none; }
.about-media .carousel-slide { cursor: zoom-in; }
.about-media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 40%);
}
.about-media-caption {
    position: absolute; left: 22px; bottom: 58px; z-index: 2;
    display: flex; flex-direction: column; gap: 4px;
    color: #fff; font-size: 0.95rem; font-weight: 500; pointer-events: none;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.about-media-eyebrow {
    font-size: 0.68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    color: var(--accent-2); text-shadow: none;
}
.about-media .carousel-controls { z-index: 3; }

.feature-card { border-radius: var(--radius-lg); padding: 24px; }
.feature-card:hover { border-color: var(--border-strong); transform: none; box-shadow: var(--shadow); }
.feature-card-lead { flex-direction: column; gap: 16px; justify-content: flex-start; }
.feature-card-lead .feature-icon { width: 48px; height: 48px; font-size: 1.25rem; border-radius: 12px; }
.feature-card-lead h3 { font-size: 1.1rem; font-weight: 500; }
.feature-card-lead p  { font-size: 0.95rem; }
.feature-body h3 { font-weight: 500; }
.feature-tag { background: var(--accent-2-soft); color: var(--accent-2); border-radius: var(--radius-sm); font-weight: 600; }
.feature-grid-bottom { gap: 20px; }
.feature-card-compact { padding: 22px; }

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}
.about-stat {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    display: flex; flex-direction: column; gap: 6px;
}
.about-stat-value {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 300;
    letter-spacing: -.02em;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.about-stat-label { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 960px) {
    .about-bento { grid-template-columns: 1fr; }
    .about-media { grid-row: auto; min-height: 260px; aspect-ratio: 16 / 10; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-stat { padding: 16px; }
}

/* ── «О клиенте»: мозаика скриншотов ──────────────────────────────── */
.about-mosaic {
    grid-row: 1 / 3;
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 8px;
    padding: 8px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    align-content: start;
}
.about-mosaic-item {
    position: relative;
    padding: 0; border: 0; background: var(--bg-2);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: zoom-in;
    transition: transform var(--transition), box-shadow var(--transition);
}
.about-mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.about-mosaic-item:hover { transform: scale(1.03); box-shadow: var(--shadow); z-index: 2; }
.about-mosaic-item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
.about-mosaic-more {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: 1.3rem; font-weight: 500; backdrop-filter: blur(2px);
}
.about-mosaic-caption {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 10px;
    padding: 6px 6px 2px;
    font-size: 0.82rem; color: var(--text-muted);
}
.about-mosaic-caption .about-media-eyebrow { text-shadow: none; }
@media (max-width: 960px) {
    .about-mosaic { grid-row: auto; }
}
@media (max-width: 480px) {
    .about-mosaic { grid-template-columns: repeat(2, 1fr); }
    .about-mosaic-item:first-child { grid-column: 1 / 3; grid-row: 1 / 2; aspect-ratio: 16 / 9; }
}

/* ── Анимации: появление hero, секций, счётчики ─────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .hero-anim .hero-badge,
    .hero-anim .hero-title,
    .hero-anim .hero-lead,
    .hero-anim .hero-cta,
    .hero-anim .hero-builds {
        opacity: 0; transform: translateY(14px);
        animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards;
    }
    .hero-anim .hero-title  { animation-delay: .08s; }
    .hero-anim .hero-lead   { animation-delay: .16s; }
    .hero-anim .hero-cta    { animation-delay: .24s; }
    .hero-anim .hero-builds { animation-delay: .34s; }
    @keyframes heroIn { to { opacity: 1; transform: none; } }

    [data-reveal] {
        opacity: 0; transform: translateY(18px);
        transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
        transition-delay: calc(var(--i, 0) * 60ms);
    }
    [data-reveal].is-in { opacity: 1; transform: none; }

    /* Лёгкий параллакс фона hero (JS двигает --hero-shift на body) */
    body::before, body::after { background-position: center calc(-120px + var(--hero-shift, 0px)); }
}

/* ── «О клиенте»: список + окно со скриншотом ─────────────────────── */
.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: start;
}
.about-list { list-style: none; margin: 0; padding: 0; }
.about-item {
    display: flex; gap: 18px; align-items: flex-start;
    padding: 22px 0;
    border-top: 1px solid var(--border);
}
.about-item:first-child { border-top: 0; padding-top: 0; }
.about-item-icon {
    flex-shrink: 0; width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 1rem;
}
.about-item-body h3 {
    font-size: 1.05rem; font-weight: 500; margin: 0 0 6px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.35;
}
.about-item-body p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin: 0; }
.about-item-body a { color: var(--accent); font-weight: 500; }

.about-window {
    position: sticky; top: calc(var(--header-h) + 50px);
    max-width: 503px; justify-self: end; width: 100%;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.about-window-bar {
    display: flex; gap: 6px; padding: 10px 12px;
    background: var(--bg-section); border-bottom: 1px solid var(--border);
}
.about-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-2); }
.about-window-screen {
    aspect-ratio: 503 / 387;          /* натуральный размер слайдов — без увеличения */
    border: 0; border-radius: 0; box-shadow: none; background: #000;
}
.about-window-screen .carousel-slide { object-fit: contain; }
.about-window-nav {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 10px 12px; background: var(--bg-section); border-top: 1px solid var(--border);
}
.about-window-nav .carousel-arrow { color: var(--text-muted); text-shadow: none; }
.about-window-nav .carousel-arrow:hover { background: var(--bg-2); color: var(--text); }
.about-window-nav .carousel-dot { background: var(--bg-2); }
.about-window-nav .carousel-dot.is-active { background: var(--accent); }
.about-window-hint { padding: 0 12px 10px; background: var(--bg-section); font-size: 0.75rem; color: var(--text-soft); text-align: center; }

@media (max-width: 900px) {
    .about-split { grid-template-columns: 1fr; gap: 32px; }
    .about-window { position: static; justify-self: center; }
}

/* ── Карточка сервера v2: спецификация вместо скриншота ───────────── */
.server-card { border-radius: var(--radius-lg); }
.server-card-body { padding: var(--card-pad); gap: 14px; }
.srv-head { display: flex; align-items: center; gap: 14px; }
.srv-os {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-section); color: var(--text-muted); font-size: 1.3rem;
}
.srv-head-text { flex: 1; min-width: 0; }
.srv-head-text .server-title { font-size: 1.15rem; font-weight: 500; margin: 0; }
.srv-sub { font-size: 0.82rem; color: var(--text-soft); margin-top: 3px; }
.srv-type {
    flex-shrink: 0; font-size: 0.7rem; font-weight: 600; letter-spacing: .3px; text-transform: uppercase;
    padding: 4px 9px; border-radius: var(--radius-sm);
}
.server-type-modded { background: var(--bg-2); color: var(--text-muted); }

.srv-spec {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
    margin: 0 0 14px; padding: 14px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.srv-spec > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srv-spec-wide { grid-column: 1 / -1; }
.srv-spec dt { font-size: 0.72rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .3px; }
.srv-spec dd { margin: 0; font-size: 0.9rem; color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.server-actions .btn-ghost { flex: 0 0 auto; }
.re-row-notwin { padding: 0 20px 16px 88px; }
@media (max-width: 720px) { .re-row-notwin { padding-left: 20px; } }

/* ═══════════════════════════════════════════════════════════════
   v3.1 — тех-режим, счётчики, опросник удаления, карточки /soft
   ═══════════════════════════════════════════════════════════════ */

/* ── Счётчики в футере: обёртка для кода из админки ─────────────────── */
.footer-counters .counter {
    display: inline-flex; align-items: center; line-height: 1;
    transition: opacity var(--transition);
}
.footer-counters .counter:hover { opacity: 1; }
.footer-counters .counter img { display: block; }
.footer-counters .counter a { text-decoration: none; }

/* ── Плашка для админа на публичном сайте (тех-режим включён) ─────────── */
.admin-maint-bar {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 8px 18px;
    background: var(--warning-soft);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    font-size: 0.84rem;
}
.admin-maint-bar i { color: var(--warning); }
.admin-maint-bar a { color: var(--accent); font-weight: 600; text-decoration: none; }
.admin-maint-bar a:hover { text-decoration: underline; }
.admin-maint-sep { width: 1px; height: 14px; background: var(--border-strong); }

/* ── Страница тех-обслуживания (503) ───────────────────────────────────── */
.maint-body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    min-height: 100vh;
    margin: 0;
}
.maint-shell {
    min-height: 100vh;
    display: flex; flex-direction: column;
    max-width: 760px; margin: 0 auto;
    padding: 0 16px;
}
.maint-top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 22px 0 8px;
}
.maint-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--text); text-decoration: none;
    font-family: 'Moderustic', var(--font-sans); font-weight: 800; letter-spacing: .3px; font-size: 1.05rem;
    transition: opacity var(--transition);
}
.maint-brand:hover { opacity: .8; }
.maint-brand-logo { width: 30px; height: 30px; object-fit: contain; }
.maint-utils { display: flex; align-items: center; gap: 10px; }

.maint-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 0 40px; }
.maint-card {
    width: 100%; max-width: 560px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 34px 32px 28px;
    text-align: center;
}
.maint-status {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; margin-bottom: 22px;
    background: var(--warning-soft); color: var(--warning);
    border-radius: var(--radius);
    font-size: .78rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.maint-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--warning);
    animation: maint-pulse 1.8s ease-in-out infinite;
}
@keyframes maint-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.maint-status-code {
    padding-left: 8px; border-left: 1px solid currentColor; opacity: .7;
    font-family: 'Courier New', monospace; letter-spacing: 0;
}
.maint-icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-section); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
}
.maint-title { font-size: 1.75rem; font-weight: 700; line-height: 1.2; margin: 0 0 12px; letter-spacing: -.2px; }
.maint-text { color: var(--text-muted); line-height: 1.6; font-size: 1rem; }
.maint-text p { margin: 0 0 .6em; }
.maint-text p:last-child { margin-bottom: 0; }
.maint-eta {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 18px; padding: 9px 14px;
    background: var(--bg-section); border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .9rem; color: var(--text-muted);
}
.maint-eta i { color: var(--accent); }
.maint-eta strong { color: var(--text); font-weight: 600; }
.maint-actions { margin-top: 24px; display: flex; justify-content: center; gap: 10px; }
.maint-hint { margin: 18px 0 0; font-size: .82rem; color: var(--text-soft); line-height: 1.5; }
.maint-foot { padding: 0 0 22px; text-align: center; font-size: .8rem; color: var(--text-soft); }

@media (max-width: 560px) {
    .maint-card { padding: 26px 20px 22px; }
    .maint-title { font-size: 1.4rem; }
    .maint-utils .lang-name { display: none; }
    .maint-utils .lang-btn { padding: 6px 8px; }
}

/* ── Minimal layout: утилиты справа от бренда ──────────────────────────── */
.minimal-brand {
    justify-content: space-between;
    width: 100%; max-width: 672px; margin: 0 auto;
    padding: 18px 16px 6px;
}
.minimal-utils { display: flex; align-items: center; gap: 10px; }
@media (max-width: 560px) {
    .minimal-utils .lang-name { display: none; }
    .minimal-utils .lang-btn { padding: 6px 8px; }
}

/* ── Опросник удаления (/uninstallform) ────────────────────────────────── */
.usv { width: 100%; }
.usv-head { text-align: center; margin-bottom: 26px; }
.usv-icon {
    width: 72px; height: 72px; margin: 0 auto 18px;
    border-radius: var(--radius-lg);
    background: var(--bg-section); color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
}
.usv-icon-ok { background: var(--success-soft); color: var(--success); }
.usv-title { font-size: 2rem; font-weight: 700; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.3px; color: var(--text); }
.usv-lead { color: var(--text-muted); font-size: 1rem; line-height: 1.55; margin: 0 auto; max-width: 540px; }

.usv-form {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 26px 26px 24px;
}
.usv-reasons { border: 0; padding: 0; margin: 0; min-width: 0; }
.usv-question {
    display: block; width: 100%;
    font-size: 1.15rem; font-weight: 700; text-align: center;
    margin: 0 0 18px; padding: 0;
}
.usv-list { display: flex; flex-direction: column; gap: 8px; border-radius: var(--radius); }
.usv-list.is-invalid { box-shadow: 0 0 0 2px var(--danger-soft); }
.usv-row {
    position: relative;
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.usv-row:hover { border-color: var(--border-strong); background: var(--bg-elevated); }
.usv-row input { position: absolute; opacity: 0; pointer-events: none; }
.usv-radio {
    flex: 0 0 auto;
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border-strong);
    background: var(--card-bg);
    display: inline-flex; align-items: center; justify-content: center;
    transition: border-color var(--transition), background var(--transition);
}
.usv-radio::after {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--on-accent); transform: scale(0);
    transition: transform var(--transition);
}
.usv-label { font-size: .96rem; color: var(--text); line-height: 1.35; }
.usv-row input:checked ~ .usv-radio { border-color: var(--accent); background: var(--accent); }
.usv-row input:checked ~ .usv-radio::after { transform: scale(1); }
.usv-row input:checked ~ .usv-label { font-weight: 600; }
.usv-row:has(input:checked),
.usv-row.is-checked { border-color: var(--accent); background: var(--accent-soft); }
.usv-row input:focus-visible ~ .usv-radio { outline: 2px solid var(--accent); outline-offset: 2px; }

.usv-more { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.usv-more[hidden] { display: none; }
.usv-optional { color: var(--text-soft); font-weight: 400; margin-left: 4px; }
.usv-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.usv-actions .btn-primary { flex: 1 1 auto; }
.usv-actions-center { justify-content: center; }
.usv-actions-center .btn-primary { flex: 0 1 auto; }
.usv-foot {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin: 18px 0 0; font-size: .82rem; color: var(--text-soft);
}
.usv-foot i { opacity: .7; }
.usv-thanks .usv-head { margin-bottom: 30px; }

@media (max-width: 560px) {
    .usv-title { font-size: 1.55rem; }
    .usv-form { padding: 18px 16px; }
    .usv-row { padding: 12px 14px; }
    .usv-actions .btn { width: 100%; }
}

/* ── Карточки /soft: больше фактов на самой карточке ───────────────────── */
.soft-highlights {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.soft-highlights li {
    display: flex; align-items: flex-start; gap: 9px;
    font-size: .86rem; line-height: 1.45; color: var(--text-muted);
}
.soft-highlights li i {
    flex: 0 0 auto; margin-top: 4px;
    font-size: .68rem; color: var(--success);
}
.soft-spec { margin: 0; padding: 12px 0; }
.soft-spec dd { font-size: .88rem; }
.soft-secondary { display: flex; flex-wrap: wrap; gap: 4px; margin-top: -4px; }
.soft-secondary .btn-ghost { padding: 6px 10px; font-size: .84rem; }
.soft-secondary .btn-ghost i { font-size: .9em; }


/* ===== Recommended servers (cs-top.uz feed) — deliberately quiet ===== */
.fsrv { margin: 28px auto 0; max-width: 1040px; padding: 16px 18px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); }
.fsrv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fsrv-title { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-soft); }
.fsrv-title i { margin-right: 6px; color: var(--accent); opacity: .8; }
.fsrv-source { font-size: 12px; color: var(--text-soft); text-decoration: none; }
.fsrv-source i { font-size: 10px; margin-left: 3px; }
.fsrv-source:hover { color: var(--accent); }
.fsrv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.fsrv-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 12px; min-width: 0; overflow: hidden; padding: 10px; border-radius: 10px; background: var(--bg-section); border: 1px solid transparent; transition: border-color .15s ease; }
.fsrv-item:hover { border-color: var(--border-strong); }
.fsrv-item.is-offline .fsrv-thumb img { filter: grayscale(1); opacity: .6; }
.fsrv-thumb { position: relative; display: block; width: 96px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--bg-2); color: var(--text-soft); }
.fsrv-thumb i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 20px; opacity: .5; }
.fsrv-thumb img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.fsrv-tier { position: absolute; z-index: 2; left: 6px; top: 6px; font-size: 9px; font-weight: 800; letter-spacing: .08em; line-height: 1; padding: 3px 6px; border-radius: 4px; color: #fff; background: var(--text-soft); box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.fsrv-tier--super_vip { background: #d98a1f; }
.fsrv-tier--top5 { background: var(--accent); }
.fsrv-body { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 20px 20px 30px; align-content: space-between; min-width: 0; height: 78px; overflow: hidden; }
.fsrv-body > * { min-width: 0; max-width: 100%; }
.fsrv-main { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.fsrv-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47,191,113,.15); }
.is-offline .fsrv-dot { background: var(--text-soft); box-shadow: none; }
.fsrv-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; line-height: 20px; color: var(--text); text-decoration: none; }
.fsrv-name:hover { color: var(--accent); }
.fsrv-meta { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; font-size: 12px; line-height: 20px; color: var(--text-soft); white-space: nowrap; }
.fsrv-map { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-family: 'Courier New', monospace; font-size: 12px; }
.fsrv-players { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.fsrv-players i { font-size: 10px; }
.fsrv-bar { display: inline-block; width: 44px; height: 4px; border-radius: 2px; background: var(--bg-2); overflow: hidden; }
.fsrv-bar > span { display: block; height: 100%; border-radius: 2px; background: #2fbf71; }
.fsrv-tasix { flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 16px; padding: 0 6px; border-radius: 4px; color: #2fbf71; background: rgba(47,191,113,.12); }
.fsrv-tasix.is-hidden { visibility: hidden; }
.fsrv-actions { display: flex; align-items: center; gap: 6px; min-width: 0; height: 30px; }
.fsrv-addr { flex: 1; min-width: 0; height: 30px; line-height: 28px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 10px; border-radius: 6px; background: var(--card-bg); border: 1px solid var(--border); font-size: 12px; color: var(--text); cursor: copy; }
.fsrv-addr:hover { border-color: var(--border-strong); }
.fsrv-addr.is-done { border-color: #2fbf71; color: #2fbf71; }
.fsrv-btn { flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-soft); text-decoration: none; cursor: pointer; font: inherit; font-size: 12px; transition: color .15s ease, border-color .15s ease; }
.fsrv-btn:hover { color: var(--accent); border-color: var(--accent); }
.fsrv-btn.is-done { color: #2fbf71; border-color: #2fbf71; }
.fsrv-btn--join:hover { color: #2fbf71; border-color: #2fbf71; }
@media (max-width: 820px) { .fsrv-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .fsrv { padding: 14px; } }

/* single-version card (channels retired): version line only */
.build-version-line { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; padding: 6px 10px; border-radius: 8px; background: var(--bg-section); font-size: 13px; color: var(--text-soft); }
.build-version-line b { color: var(--text); font-family: 'Courier New', monospace; font-weight: 700; }
.build-version-line i { color: var(--accent); font-size: 12px; }
