/* ===== layouts/public ===== */
:root {
            --page: #f3f3f3;
            --card: #ffffff;
            --text: #1b1b1b;
            --muted: #5d5d5d;
            --line: #e5e5e5;
            --line-strong: #d6d6d6;
            --blue: #0067c0;
            --green: #0f7b0f;
            --green-dark: #0c5e0c;
            --soft-blue: #eaf1fb;
            --soft-green: #e6f4e6;
            --shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
        }

        * { box-sizing: border-box; }

        body {
            margin: 0;
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: var(--page);
            color: var(--text);
            line-height: 1.55;
        }

        a { color: var(--blue); text-decoration: none; }
        a:hover { text-decoration: underline; }

        .site-header {
            position: sticky;
            top: 0;
            z-index: 20;
            background: rgba(255, 255, 255, 0.94);
            border-bottom: 1px solid var(--line);
            backdrop-filter: blur(12px);
        }

        .site-header__inner {
            max-width: 1180px;
            margin: 0 auto;
            padding: 14px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }

        .site-logo {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            flex: 0 0 auto;
            color: var(--text);
            font-size: 18px;
            font-weight: 900;
            letter-spacing: -0.02em;
            white-space: nowrap;
        }

        .site-logo:hover { text-decoration: none; }

        .site-logo__mark {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            background: linear-gradient(135deg, var(--blue), #4cc2ff);
            box-shadow: 0 8px 18px rgba(37, 99, 235, 0.24);
            font-weight: 900;
            font-size: 13px;
        }

        .site-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            flex: 1 1 auto;
            min-width: 0;
            flex-wrap: nowrap;
        }

        .site-nav a {
            color: var(--win-text);
            font-weight: 750;
            font-size: 14px;
            padding: 8px 10px;
            border-radius: 999px;
            white-space: nowrap;
            flex: 0 0 auto;
        }

        .site-nav a:hover {
            background: var(--win-bg);
            color: var(--blue);
            text-decoration: none;
        }

        .site-nav__item {
            position: relative;
            display: inline-flex;
            align-items: center;
            flex: 0 0 auto;
        }

        .site-nav__trigger {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            border: 0;
            background: transparent;
            color: var(--win-text);
            font: inherit;
            font-weight: 750;
            font-size: 14px;
            line-height: 1.2;
            padding: 8px 10px;
            border-radius: 999px;
            white-space: nowrap;
            cursor: pointer;
        }

        .site-nav__trigger:hover,
        .site-nav__item:focus-within .site-nav__trigger {
            background: var(--win-bg);
            color: var(--blue);
        }

        .site-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            z-index: 95;
            display: none;
            min-width: 230px;
            padding: 12px 8px 8px;
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background: var(--win-surface);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
        }

        .site-nav__item:hover .site-dropdown,
        .site-nav__item:focus-within .site-dropdown {
            display: grid;
            gap: 2px;
        }

        .site-dropdown a {
            display: block;
            flex: none;
            padding: 9px 11px;
            border-radius: 8px;
            color: var(--win-text);
            font-size: 14px;
            font-weight: 750;
            white-space: nowrap;
        }

        .site-dropdown a:hover {
            background: var(--win-bg-alt);
            color: var(--blue);
            text-decoration: none;
        }

        .site-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex: 0 1 auto;
            min-width: 0;
        }

        .site-actions .button--ghost {
            flex: 0 0 auto;
            white-space: nowrap;
        }

        .container {
            width: 100%;
            max-width: 1180px;
            margin: 0 auto;
            padding: 28px 18px 64px;
        }

        .hero {
            background:
                radial-gradient(circle at 86% 18%, rgba(37, 99, 235, 0.14), transparent 30%),
                linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 32px 34px;
            box-shadow: var(--shadow);
            overflow: hidden;
        }

        .hero__grid {
            display: grid;
            grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
            gap: 24px;
            align-items: center;
        }

        .hero__content { max-width: 760px; }

        .hero__eyebrow {
            display: inline-flex;
            align-items: center;
            color: var(--blue);
            background: var(--soft-blue);
            border-radius: 999px;
            padding: 5px 11px;
            font-weight: 700;
            font-size: 12px;
            margin-bottom: 10px;
        }

        .hero__title {
            margin: 0 0 10px;
            font-size: clamp(26px, 3.4vw, 40px);
            line-height: 1.12;
            letter-spacing: -0.03em;
        }

        .hero__text {
            margin: 0;
            max-width: 720px;
            color: var(--win-text);
            font-size: 16.5px;
            line-height: 1.5;
        }

        .hero__panel {
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 16px 18px;
            background: rgba(255, 255, 255, 0.76);
        }

        .hero__panel-title {
            margin: 0 0 8px;
            font-size: 15px;
            font-weight: 900;
        }

        .hero__list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 7px;
            color: var(--win-text);
            font-size: 13.5px;
        }

        .hero__list li {
            display: flex;
            gap: 9px;
            align-items: flex-start;
        }

        .hero__list li::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 999px;
            background: var(--green);
            margin-top: 7px;
            flex: 0 0 auto;
        }

        .search-box {
            display: flex;
            gap: 10px;
            padding: 10px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--win-surface);
        }

        .section { margin-top: 34px; }

        .section__header {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 14px;
            margin-bottom: 14px;
        }

        .section__title {
            margin: 0;
            font-size: 24px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .section__more {
            font-weight: 850;
            font-size: 14px;
        }

        .grid {
            display: grid;
            gap: 16px;
        }

        .grid--programs {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .grid--categories {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .card {
            min-width: 0;
            overflow-wrap: break-word;
            background: var(--card);
            border: 1px solid var(--line);
            border-radius: 4px;
            padding: 18px;
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
        }

        .card:hover { border-color: var(--line-strong); }

        .category-card {
            display: block;
            color: var(--text);
        }

        .category-card:hover {
            text-decoration: none;
            border-color: #cfe4f7;
        }

        .category-card__title {
            display: block;
            font-weight: 900;
            margin-bottom: 6px;
        }

        .category-card__desc {
            color: var(--muted);
            font-size: 14px;
        }

        .program-card {
            display: grid;
            grid-template-columns: 64px minmax(0, 1fr);
            gap: 14px;
            align-items: start;
            min-height: 100%;
            padding: 16px;
            transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
        }

        .program-card:hover {
            transform: translateY(-1px);
            border-color: #cfe4f7;
            box-shadow: 0 14px 30px rgba(15, 23, 42, 0.075);
        }

        .program-card__logo {
            width: 64px;
            height: 64px;
            flex: 0 0 64px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 4px;
            background: linear-gradient(135deg, #eaf1fb, #fafafa);
            color: var(--blue);
            font-weight: 950;
            font-size: 18px;
            letter-spacing: -0.04em;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        .program-card__logo:hover {
            text-decoration: none;
            border-color: #cfe4f7;
        }

        .program-card__logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            padding: 0;
            background: transparent;
        }

        /* Логотипы — готовые плитки со скруглением, рамка не нужна */
        .program-card__logo:has(img) {
            border-color: transparent;
            border-radius: 14px;
            background: transparent;
        }

        .program-card__logo:has(img):hover {
            border-color: transparent;
        }

        .program-title-logo:has(img) {
            border-color: transparent;
            border-radius: 16px;
            background: transparent;
        }

        .program-card__body {
            display: grid;
            gap: 8px;
            min-width: 0;
        }

        .program-card__title {
            min-width: 0;
            margin: 0;
            font-size: 18px;
            line-height: 1.25;
            letter-spacing: -0.015em;
        }

        .program-card__title a { color: var(--text); }
        .program-card__title a:hover { color: var(--blue); }

        .program-card__desc {
            color: var(--win-text-secondary);
            font-size: 14px;
            line-height: 1.55;
            margin: 0;
        }

        .program-card__meta {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 2px;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: 12px;
            line-height: 1.3;
            font-weight: 850;
            background: var(--win-bg);
            color: var(--win-text-secondary);
        }

        .badge--green {
            background: var(--soft-green);
            color: var(--win-success-strong);
        }

        .badge--blue {
            background: var(--soft-blue);
            color: #005ba1;
        }

        .badge--gray {
            background: var(--win-bg);
            color: var(--win-text-secondary);
        }

        .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 42px;
            padding: 10px 16px;
            border-radius: 8px;
            border: 1px solid transparent;
            font-weight: 900;
            line-height: 1.2;
            white-space: nowrap;
        }

        .button:hover { text-decoration: none; }

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

        .button--primary:hover { background: var(--green-dark); }

        .button--ghost {
            color: var(--blue);
            background: var(--win-surface);
            border-color: #cfe4f7;
        }

        .button--ghost:hover { background: var(--win-accent-light); }

        .empty {
            background: var(--win-surface);
            border: 1px dashed #d6d6d6;
            border-radius: 4px;
            padding: 18px;
            color: var(--muted);
        }

        .pagination {
            margin-top: 24px;
            display: grid;
            gap: 10px;
        }

        .pagination__summary {
            color: var(--muted);
            font-size: 14px;
        }

        .pagination__links {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
        }

        .pagination__link,
        .pagination__dots {
            min-width: 38px;
            min-height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 8px 12px;
            background: var(--win-surface);
            color: var(--win-text);
            font-size: 14px;
            font-weight: 850;
            line-height: 1;
        }

        .pagination__link:hover {
            border-color: #cfe4f7;
            background: var(--win-accent-light);
            color: var(--blue);
            text-decoration: none;
        }

        .pagination__link--active {
            border-color: var(--blue);
            background: var(--blue);
            color: #fff;
        }

        .pagination__link--active:hover {
            background: var(--blue);
            color: #fff;
        }

        .pagination__link--disabled,
        .pagination__dots {
            background: var(--win-bg-alt);
            color: var(--win-text-tertiary);
            cursor: default;
        }

        .pagination__link--disabled:hover {
            border-color: var(--line);
            background: var(--win-bg-alt);
            color: var(--win-text-tertiary);
        }


        .page-wrap {
            max-width: 960px;
        }

        .page-card {
            padding: 30px;
        }

        .page-title {
            margin: 0 0 12px;
            font-size: clamp(32px, 4vw, 46px);
            line-height: 1.1;
            letter-spacing: -0.035em;
        }

        .page-lead {
            margin: 0;
            max-width: 780px;
            color: var(--win-text);
            font-size: 18px;
        }

        .page-section {
            margin-top: 26px;
            padding-top: 22px;
            border-top: 1px solid var(--line);
        }

        .page-section__title {
            margin: 0 0 10px;
            font-size: 22px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .page-section p {
            margin: 0;
            color: var(--win-text);
            font-size: 16px;
        }

        .page-section p + p {
            margin-top: 10px;
        }

        .page-list {
            margin: 0;
            padding-left: 22px;
            color: var(--win-text);
            font-size: 16px;
        }

        .page-list li + li {
            margin-top: 7px;
        }

        .bbcode-list {
            margin: 6px 0 14px;
            padding-left: 24px;
            color: var(--win-text);
        }

        .bbcode-list li {
            margin: 0;
        }

        .bbcode-list li + li {
            margin-top: 5px;
        }

        .bbcode-code {
            margin: 10px 0 16px;
        }

        .bbcode-quote {
            margin: 0 0 18px;
        }

        .page-note {
            margin-top: 20px;
            padding: 16px;
            border: 1px solid #cfe4f7;
            border-radius: 8px;
            background: var(--win-accent-light);
            color: #005ba1;
            font-size: 16px;
        }

        .page-note a {
            font-weight: 900;
        }

        .site-footer {
            border-top: 1px solid var(--line);
            background: var(--win-surface);
        }

        .site-footer__inner {
            max-width: 1180px;
            margin: 0 auto;
            padding: 30px 18px;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 1.4fr 1fr 1fr;
            gap: 24px;
        }

        .footer-title {
            margin: 0 0 10px;
            color: var(--text);
            font-weight: 900;
        }

        .footer-muted {
            color: var(--muted);
            font-size: 14px;
        }

        .footer-note {
            margin: 12px 0 0;
            max-width: 520px;
            color: var(--win-text-secondary);
            font-size: 14px;
            line-height: 1.55;
        }

        .footer-copy {
            margin: 14px 0 0;
            color: var(--muted);
            font-size: 13px;
        }

        .footer-list {
            margin: 0;
            padding: 0;
            list-style: none;
            display: grid;
            gap: 8px;
            font-size: 14px;
        }

        .footer-list a {
            color: var(--win-text-secondary);
            font-weight: 650;
        }


        .search-form {
            position: relative;
            width: 100%;
        }

        .search-form__field {
            display: flex;
            align-items: stretch;
            gap: 8px;
            padding: 8px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--win-surface);
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
        }

        .search-form__input {
            width: 100%;
            min-width: 0;
            border: 0;
            outline: 0;
            background: transparent;
            color: var(--text);
            font: inherit;
            font-size: 15px;
            padding: 9px 10px;
        }

        .search-form__input::placeholder { color: var(--win-text-tertiary); }

        .search-form__button {
            border: 0;
            border-radius: 8px;
            background: var(--green);
            color: #fff;
            cursor: pointer;
            font: inherit;
            font-weight: 900;
            padding: 9px 14px;
            white-space: nowrap;
        }

        .search-form__button:hover { background: var(--green-dark); }

        .search-form--compact {
            flex: 0 1 260px;
            width: clamp(180px, 18vw, 280px);
        }

        .search-form--compact .search-form__field {
            padding: 5px;
            border-radius: 8px;
            box-shadow: none;
        }

        .search-form--compact .search-form__input {
            font-size: 14px;
            padding: 7px 8px;
        }

        .search-form--compact .search-form__button {
            min-height: 34px;
            padding: 7px 10px;
            border-radius: 4px;
            font-size: 13px;
        }

        .search-form--hero {
            max-width: 720px;
            margin-top: 16px;
        }

        .search-form--hero .search-form__field,
        .search-form--page .search-form__field {
            padding: 10px;
            border-radius: 4px;
        }

        .search-form--hero .search-form__input,
        .search-form--page .search-form__input {
            font-size: 17px;
            padding: 11px 12px;
        }

        .search-form--hero .search-form__button,
        .search-form--page .search-form__button {
            padding: 11px 18px;
        }

        .search-form--catalog {
            margin: 0 0 18px;
        }

        .search-form--page {
            max-width: 760px;
            margin-top: 18px;
        }

        .search-suggest {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 8px);
            z-index: 90;
            overflow: hidden;
            border: 1px solid var(--line-strong);
            border-radius: 8px;
            background: var(--win-surface);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
        }

        .search-suggest__item {
            display: block;
            padding: 11px 13px;
            border-bottom: 1px solid var(--line);
            color: var(--text);
        }

        .search-suggest__item:hover {
            background: var(--win-bg-alt);
            text-decoration: none;
        }

        .search-suggest__type {
            display: block;
            color: var(--blue);
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .search-suggest__title {
            display: block;
            margin-top: 2px;
            font-weight: 900;
            line-height: 1.25;
        }

        .search-suggest__desc {
            display: block;
            margin-top: 3px;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.35;
        }

        .search-suggest__empty {
            padding: 13px;
            color: var(--muted);
            font-size: 14px;
        }

        .search-suggest__more {
            display: block;
            padding: 12px 13px;
            background: var(--win-bg-alt);
            color: var(--blue);
            font-weight: 900;
        }

        .search-suggest__more:hover {
            background: var(--win-accent-light);
            text-decoration: none;
        }

        .search-page h1 {
            margin: 0;
            font-size: clamp(28px, 4vw, 42px);
            line-height: 1.1;
            letter-spacing: -0.035em;
        }

        .search-page__note {
            margin: 16px 0 0;
            color: var(--muted);
        }

        .search-results {
            display: grid;
            gap: 30px;
            margin-top: 30px;
        }

        .search-results__section {
            min-width: 0;
        }

        .search-results__grid {
            display: grid;
            gap: 14px;
        }

        .search-card__type {
            color: var(--blue);
            font-size: 12px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.03em;
        }

        .search-card__title {
            margin: 6px 0 0;
            font-size: 18px;
            line-height: 1.25;
        }

        .search-card__desc {
            margin: 8px 0 0;
            color: var(--win-text);
        }

        @media (max-width: 1180px) {
            .site-actions .button--ghost {
                display: none;
            }
        }

        @media (max-width: 900px) {
            .site-header__inner {
                align-items: flex-start;
                flex-direction: column;
            }

            .site-nav {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }

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

            .site-dropdown {
                position: static;
                min-width: 0;
                width: 100%;
                margin-top: 4px;
                box-shadow: none;
            }

            .site-actions {
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }

            .site-actions .search-form--compact {
                flex: 1 1 320px;
                width: min(100%, 520px);
            }

            .site-actions .button--ghost {
                display: inline-flex;
            }

            .hero { padding: 24px; }
            .hero__grid { grid-template-columns: 1fr; }
            .grid--programs { grid-template-columns: 1fr; }
            .grid--categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .footer-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 560px) {
            .container { padding-top: 20px; }
            .hero { padding: 18px; border-radius: 4px; }
            .grid--categories { grid-template-columns: 1fr; }
            .site-nav { width: 100%; }
            .site-nav a { padding-left: 0; }
            .site-actions { width: 100%; }
            .site-actions .search-form--compact { width: 100%; }
            .search-form__field { flex-direction: column; }
            .search-form--compact .search-form__field { flex-direction: row; }
        }

        @media (max-width: 720px) {
            .program-card {
                grid-template-columns: 56px minmax(0, 1fr);
                gap: 12px;
                padding: 14px;
            }

            .program-card__logo {
                width: 56px;
                height: 56px;
                flex-basis: 56px;
                border-radius: 8px;
                font-size: 16px;
            }
        }

/* ===== posts/show ===== */
        .post-wrap {
            max-width: 940px;
        }

        .post-card {
            padding: 28px;
        }

        .post-card h1 {
            font-size: clamp(30px, 4vw, 46px);
            line-height: 1.08;
            letter-spacing: -0.035em;
            margin: 0 0 14px;
        }

        .post-card h2 {
            font-size: 26px;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 30px 0 12px;
        }

        .post-card h3 {
            font-size: 21px;
            margin: 24px 0 10px;
        }

        .post-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 14px 0 22px;
            color: var(--muted);
            font-size: 14px;
        }

        .post-excerpt {
            font-size: 18px;
            color: var(--win-text);
            margin: 0 0 20px;
        }

        .post-content {
            font-size: 17px;
            line-height: 1.68;
        }

        .post-content p {
            margin: 0 0 16px;
        }

        .bbcode-quote {
            margin: 16px 0;
            padding: 12px 14px;
            border-left: 4px solid var(--line);
            background: var(--win-bg-alt);
            border-radius: 8px;
            color: var(--win-text);
        }

        .bbcode-code {
            max-width: 100%;
            overflow-x: auto;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 14px;
            line-height: 1.55;
            background: #1b1b1b;
            color: #e5e5e5;
            border-radius: 8px;
            padding: 12px;
        }

        .bbcode-list {
            margin: 12px 0 18px 22px;
        }

        .bbcode-list--ordered {
            list-style: decimal;
        }

        .bbcode-list li {
            margin: 6px 0;
        }

        .bbcode-hr {
            border: 0;
            border-top: 1px solid var(--line);
            margin: 22px 0;
        }

        .main-image {
            width: 100%;
            border-radius: 8px;
            border: 1px solid var(--line);
            margin: 18px 0 22px;
            background: var(--win-bg-alt);
        }

        .muted {
            color: var(--muted);
        }

        @media (max-width: 760px) {
            .post-card {
                padding: 22px;
            }

            .comments__row {
                grid-template-columns: 1fr;
            }
        }

        .comments {
            margin-top: 28px;
            padding: 26px 28px 30px;
            border: 1px solid var(--win-stroke);
            border-radius: 8px;
            background: var(--win-surface);
        }

        .comments__title {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 18px;
            font-size: 24px;
        }

        .comments__count {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 28px;
            height: 28px;
            padding: 0 8px;
            border-radius: 999px;
            background: var(--win-accent-light);
            color: #005ba1;
            font-size: 14px;
            font-weight: 600;
        }

        .comments__empty {
            margin: 0 0 22px;
            color: var(--muted);
        }

        .comments__list {
            display: grid;
            gap: 14px;
            margin: 0 0 24px;
            padding: 0;
            list-style: none;
        }

        .comment {
            padding: 14px 16px;
            border: 1px solid var(--win-stroke);
            border-radius: 8px;
            background: var(--win-bg-alt);
        }

        .comment__meta {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: baseline;
            margin-bottom: 6px;
            font-size: 13px;
            color: var(--muted);
        }

        .comment__author {
            font-weight: 600;
            color: var(--win-text);
        }

        .comment__body {
            font-size: 15px;
            line-height: 1.6;
            color: var(--win-text);
            white-space: pre-line;
            overflow-wrap: anywhere;
        }

        .comments__form {
            display: grid;
            gap: 12px;
        }

        .comments__row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .comments__form input,
        .comments__form textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--win-stroke-strong);
            border-radius: 4px;
            font: inherit;
            color: var(--win-text);
            background: var(--win-surface);
        }

        .comments__form textarea {
            resize: vertical;
        }

        .comments__form input:focus,
        .comments__form textarea:focus {
            outline: none;
            border-color: #0067c0;
            box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
        }

        .comments__hint {
            margin: 0;
            font-size: 13px;
            color: var(--muted);
        }

        .comments__submit {
            justify-self: start;
            padding: 11px 22px;
            border: 0;
            border-radius: 4px;
            background: #0067c0;
            color: #fff;
            font: inherit;
            font-weight: 600;
            cursor: pointer;
        }

        .comments__submit:hover {
            background: #005ba1;
        }

        .comments__note {
            margin-bottom: 16px;
            padding: 10px 12px;
            border-radius: 4px;
            font-size: 14px;
        }

        .comments__note--ok {
            border: 1px solid #cfe8cf;
            background: var(--win-success-light);
            color: var(--win-success);
        }

        .comments__note--err {
            border: 1px solid #f4c7c3;
            background: var(--win-danger-light);
            color: var(--win-danger);
        }

        .comments__honeypot {
            position: absolute;
            left: -9999px;
            width: 1px;
            height: 1px;
            overflow: hidden;
            opacity: 0;
        }

/* ===== programs/show ===== */
        .program-layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 340px;
            gap: 22px;
            align-items: start;
        }

        .program-main {
            min-width: 0;
        }

        .program-sidebar {
            display: grid;
            gap: 16px;
            min-width: 0;
        }

        .program-layout,
        .program-main,
        .program-sidebar,
        .download-card,
        .info-card,
        .program-content {
            min-width: 0;
        }

        .program-lead {
            max-width: 760px;
            font-size: 17px;
            line-height: 1.6;
            color: var(--win-text);
            margin: 0;
        }

        .program-content {
            font-size: 16px;
        }

        .program-title-row {
            display: flex;
            align-items: center;
            gap: 16px;
            min-width: 0;
            margin-bottom: 16px;
        }

        .program-title-row__body {
            display: grid;
            gap: 6px;
            min-width: 0;
        }

        .program-title-logo {
            width: 72px;
            height: 72px;
            flex: 0 0 72px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: linear-gradient(135deg, #eaf1fb, #fafafa);
            color: var(--blue);
            font-size: 22px;
            letter-spacing: -0.04em;
            font-weight: 950;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }

        .program-title-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            padding: 0;
            background: transparent;
        }

        .program-content h1 {
            font-size: clamp(26px, 2.4vw, 32px);
            line-height: 1.16;
            letter-spacing: -0.025em;
            margin: 0;
        }

        .program-content h2 {
            font-size: 22px;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 22px 0 10px;
        }

        .download-card h2,
        .info-card h2 {
            font-size: 22px;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 28px 0 12px;
            margin-top: 0;
        }

        .program-content h3 {
            font-size: 18px;
            line-height: 1.3;
            margin: 18px 0 8px;
        }

        .program-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin: 14px 0 20px;
        }

        .program-meta {
            display: grid;
            gap: 10px;
            margin: 0;
        }

        .program-meta div {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            border-bottom: 1px solid var(--line);
            padding-bottom: 8px;
            min-width: 0;
        }

        .program-meta dt,
        .program-meta dd {
            min-width: 0;
        }

        .program-meta dt {
            color: var(--muted);
            flex: 0 0 auto;
        }

        .program-meta dd {
            margin: 0;
            text-align: right;
            font-weight: 800;
            overflow-wrap: anywhere;
            word-break: normal;
        }

        .screens {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 14px;
            margin-top: 10px;
        }

        .screen-item {
            min-width: 0;
            margin: 0;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--win-bg-alt);
            transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
        }

        .screen-item:hover {
            transform: translateY(-1px);
            border-color: #cfe4f7;
            box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
        }

        .screen-item img {
            display: block;
            width: 100%;
            aspect-ratio: 16 / 10;
            object-fit: cover;
            background: var(--win-bg-alt);
        }

        .screen-item figcaption {
            padding: 9px 12px 10px;
            border-top: 1px solid var(--line);
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .screen-lightbox-trigger {
            display: block;
            width: 100%;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: zoom-in;
            text-align: left;
        }

        .screen-lightbox-trigger:focus-visible {
            outline: 3px solid #9cc7ea;
            outline-offset: 3px;
        }

        .bbcode-image {
            margin: 16px 0 18px;
            max-width: 100%;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--win-bg-alt);
        }

        .bbcode-image__trigger {
            display: block;
            width: 100%;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: zoom-in;
        }

        .bbcode-image__trigger:focus-visible {
            outline: 3px solid #9cc7ea;
            outline-offset: 3px;
        }

        .bbcode-image img {
            display: block;
            width: 100%;
            max-height: 620px;
            object-fit: contain;
            background: var(--win-surface);
        }

        .screen-lightbox {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: grid;
            place-items: center;
            padding: 24px;
            background: rgba(15, 23, 42, 0.86);
        }

        .screen-lightbox[hidden] {
            display: none !important;
        }

        .screen-lightbox__dialog {
            position: relative;
            width: min(1180px, 96vw);
            max-height: 92vh;
            display: grid;
            gap: 12px;
        }

        .screen-lightbox__close {
            justify-self: end;
            width: 42px;
            height: 42px;
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.85);
            color: #fff;
            cursor: pointer;
            font-size: 28px;
            line-height: 1;
        }

        .screen-lightbox__close:hover {
            background: rgba(30, 41, 59, 0.95);
        }

        .screen-lightbox__image {
            display: block;
            width: 100%;
            max-height: calc(92vh - 58px);
            object-fit: contain;
            border-radius: 8px;
            background: var(--win-surface);
            box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
        }

        .faq-item,
        .version-item {
            border-top: 1px solid var(--line);
            padding: 14px 0;
        }

        .notice {
            margin-bottom: 16px;
            border-color: #cfe8cf;
            color: var(--win-success-strong);
            background: var(--win-success-light);
        }

        .download-card,
        .info-card {
            position: relative;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .program-sidebar a,
        .program-sidebar p,
        .program-sidebar dd,
        .program-sidebar .badge {
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .program-sidebar .badge {
            white-space: normal;
            text-align: center;
        }

        .program-download-button {
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin: 16px 0 8px;
            white-space: normal;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .hash {
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-all;
            font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: 13px;
            background: var(--win-bg-alt);
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 10px;
        }

        .bbcode-quote {
            margin: 16px 0;
            padding: 12px 14px;
            border-left: 4px solid var(--line);
            background: var(--win-bg-alt);
            border-radius: 8px;
            color: var(--win-text);
        }

        .bbcode-code {
            max-width: 100%;
            overflow-x: auto;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
            font-size: 14px;
            line-height: 1.55;
            background: #1b1b1b;
            color: #e5e5e5;
            border-radius: 8px;
            padding: 12px;
        }

        .bbcode-list {
            margin: 12px 0 18px 22px;
        }

        .bbcode-list--ordered {
            list-style: decimal;
        }

        .bbcode-list li {
            margin: 6px 0;
        }

        .bbcode-hr {
            border: 0;
            border-top: 1px solid var(--line);
            margin: 22px 0;
        }

        .muted {
            color: var(--muted);
        }

        @media (max-width: 900px) {
            .program-layout {
                grid-template-columns: minmax(0, 1fr);
            }

            .screens {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 560px) {
            .program-title-row {
                align-items: flex-start;
                gap: 12px;
                margin-bottom: 14px;
            }

            .program-title-logo {
                width: 56px;
                height: 56px;
                flex-basis: 56px;
                border-radius: 8px;
                font-size: 17px;
            }

            .program-content h1 {
                font-size: clamp(24px, 7vw, 30px);
                line-height: 1.14;
            }

            .program-lead {
                font-size: 16px;
            }

            .screen-lightbox {
                padding: 12px;
            }

            .screen-lightbox__dialog {
                width: 100%;
            }

            .screen-lightbox__close {
                width: 38px;
                height: 38px;
                font-size: 24px;
            }

            .bbcode-image img {
                max-height: 420px;
            }

            .program-meta div {
                flex-direction: column;
                gap: 2px;
                align-items: flex-start;
            }

            .program-meta dd {
                text-align: left;
            }
        }

/* ===== categories/show ===== */
        .category-hero h1 {
            font-size: clamp(30px, 4vw, 44px);
            line-height: 1.08;
            letter-spacing: -0.035em;
            margin: 0 0 12px;
        }

        .category-lead {
            font-size: 18px;
            color: var(--win-text);
            margin: 0;
            max-width: 820px;
        }

        .children {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 18px;
        }

        .pill {
            display: inline-flex;
            align-items: center;
            border: 1px solid var(--line-strong);
            border-radius: 999px;
            padding: 7px 12px;
            background: var(--win-surface);
            color: var(--win-text);
            font-weight: 800;
            font-size: 14px;
        }

        .pill:hover {
            background: var(--win-accent-light);
            border-color: #cfe4f7;
            color: var(--blue);
            text-decoration: none;
        }

        .program-list {
            display: grid;
            gap: 14px;
        }

        .pagination {
            margin-top: 24px;
        }

        .seo-text {
            margin-top: 28px;
            color: var(--win-text);
        }

/* ===== downloads/show ===== */
.download-wrap {
            max-width: 900px;
        }

        .download-card {
            padding: 28px;
        }

        .download-back {
            margin: 0 0 18px;
            color: var(--muted);
            font-size: 14px;
        }

        .download-back a {
            color: var(--win-text-secondary);
            font-weight: 700;
        }

        .download-title {
            font-size: clamp(30px, 4vw, 44px);
            line-height: 1.08;
            letter-spacing: -0.035em;
            margin: 0 0 12px;
        }

        .download-lead {
            font-size: 18px;
            color: var(--win-text);
            margin: 0 0 20px;
        }

        .download-meta {
            display: grid;
            gap: 10px;
            margin: 20px 0;
        }

        .download-meta div {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            border-bottom: 1px solid var(--line);
            padding-bottom: 8px;
        }

        .download-meta dt {
            color: var(--muted);
        }

        .download-meta dd {
            margin: 0;
            text-align: right;
            font-weight: 800;
        }

        .download-warning {
            background: var(--win-warning-light);
            border: 1px solid #f2d98c;
            color: #8a5300;
            border-radius: 8px;
            padding: 14px;
            margin-top: 18px;
        }

        .download-hash {
            word-break: break-all;
            font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
            font-size: 13px;
            background: var(--win-bg-alt);
            border: 1px solid var(--line);
            border-radius: 8px;
            padding: 10px;
        }

        .download-button {
            width: 100%;
            margin: 22px 0 10px;
        }

        .download-note {
            color: var(--muted);
            margin: 10px 0 0;
        }

        .download-card h2 {
            font-size: 22px;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 0 0 12px;
        }

        @media (max-width: 760px) {
            .download-card {
                padding: 22px;
            }

            .download-meta div {
                display: grid;
                gap: 4px;
            }

            .download-meta dd {
                text-align: left;
            }
        }

/* ===== program-reports/create ===== */
.report-wrap {
            max-width: 820px;
        }

        .report-card {
            padding: 26px;
        }

        .report-back {
            margin: 0 0 16px;
            color: var(--muted);
            font-size: 14px;
        }

        .report-back a {
            color: var(--win-text-secondary);
            font-weight: 700;
        }

        .report-title {
            margin: 0 0 12px;
            font-size: clamp(30px, 4vw, 42px);
            line-height: 1.1;
            letter-spacing: -0.035em;
        }

        .report-muted {
            color: var(--muted);
        }

        .report-notice {
            background: var(--win-accent-light);
            border: 1px solid #cfe4f7;
            color: #005ba1;
            border-radius: 8px;
            padding: 14px;
            margin: 18px 0;
        }

        .report-form {
            margin-top: 18px;
        }

        .report-field {
            margin-top: 18px;
        }

        .report-label {
            display: block;
            font-weight: 800;
            margin: 0 0 7px;
        }

        .report-input {
            width: 100%;
            border: 1px solid var(--win-stroke-strong);
            border-radius: 8px;
            padding: 11px 12px;
            font: inherit;
            background: var(--win-surface);
        }

        .report-input:focus {
            outline: 2px solid rgba(37, 99, 235, 0.22);
            border-color: #9cc7ea;
        }

        textarea.report-input {
            min-height: 140px;
            resize: vertical;
        }

        .report-error {
            margin-top: 6px;
            color: var(--win-danger);
            font-size: 14px;
        }

        .report-submit {
            margin-top: 20px;
            border: 0;
            cursor: pointer;
        }

/* ===== program-requests/create ===== */
.request-wrap {
            max-width: 900px;
        }

        .request-card {
            padding: 28px;
        }

        .request-title {
            margin: 0 0 12px;
            font-size: clamp(30px, 4vw, 44px);
            line-height: 1.1;
            letter-spacing: -0.035em;
        }

        .request-muted {
            color: var(--muted);
            margin: 0;
        }

        .request-notice {
            margin: 18px 0 0;
            padding: 16px;
            border: 1px solid #cfe4f7;
            border-radius: 8px;
            background: var(--win-accent-light);
            color: #005ba1;
        }

        .request-success {
            margin: 0 0 18px;
            padding: 14px 16px;
            border: 1px solid #cfe8cf;
            border-radius: 8px;
            background: var(--win-success-light);
            color: var(--win-success-strong);
            font-weight: 750;
        }

        .request-form {
            margin-top: 22px;
            display: grid;
            gap: 18px;
        }

        .request-field {
            min-width: 0;
        }

        .request-label {
            display: block;
            margin: 0 0 7px;
            font-weight: 850;
        }

        .request-input {
            width: 100%;
            border: 1px solid var(--win-stroke-strong);
            border-radius: 8px;
            padding: 11px 12px;
            background: var(--win-surface);
            color: var(--text);
            font: inherit;
        }

        .request-input:focus {
            outline: 2px solid rgba(37, 99, 235, 0.22);
            border-color: #9cc7ea;
        }

        textarea.request-input {
            min-height: 150px;
            resize: vertical;
        }

        .request-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            color: var(--win-text);
            font-size: 14px;
        }

        .request-checkbox input {
            margin-top: 3px;
        }

        .request-error {
            margin-top: 6px;
            color: var(--win-danger);
            font-size: 14px;
        }

        .request-submit {
            border: 0;
            cursor: pointer;
            justify-self: start;
        }

        .request-help-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 16px;
            margin-top: 22px;
        }

        .request-help-grid h2 {
            margin: 0 0 10px;
            font-size: 20px;
            letter-spacing: -0.02em;
        }

        .request-help-grid ul {
            margin: 0;
            padding-left: 20px;
            color: var(--win-text);
        }

        .request-help-grid li + li {
            margin-top: 7px;
        }

        .request-policy {
            margin: 0;
            color: var(--win-text);
        }

        .request-feedback {
            margin-top: 22px;
            padding: 22px;
            border: 1px solid #cfe4f7;
            border-radius: 4px;
            background: var(--win-surface);
            box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
        }

        .request-feedback__title {
            margin: 0 0 10px;
            font-size: 22px;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }

        .request-feedback__text {
            margin: 0;
            color: var(--win-text);
            font-size: 16px;
        }

        .request-feedback__text + .request-feedback__text {
            margin-top: 12px;
        }

        .request-feedback__email {
            font-weight: 900;
        }

        @media (max-width: 760px) {
            .request-card {
                padding: 22px;
            }

            .request-help-grid {
                grid-template-columns: 1fr;
            }
        }
