:root {
    --ink: #181c32;
    --ink-soft: #344054;
    --muted: #667085;
    --line: #e4e9f1;
    --blue: #009ef7;
    --blue-dark: #087dbb;
    --blue-soft: #eef8ff;
    --yellow: #ffe107;
    --yellow-soft: #fffbea;
    --green: #17a673;
    --green-soft: #eaf8f2;
    --red: #d92d20;
    --red-soft: #fff1f0;
    --violet: #7a5af8;
    --surface: #ffffff;
    --background: #f5f7fb;
    --radius: 22px;
    --shadow: 0 16px 46px rgba(30, 43, 69, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--background);
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.68;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 0 24%, rgba(0, 158, 247, 0.05), transparent 24rem),
        radial-gradient(circle at 100% 70%, rgba(255, 225, 7, 0.08), transparent 22rem);
}

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

button,
input {
    font: inherit;
}

a {
    color: var(--blue-dark);
}

a:hover {
    color: var(--blue);
}

code {
    padding: 2px 7px;
    color: #165f87;
    background: var(--blue-soft);
    border: 1px solid #ccecff;
    border-radius: 7px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.91em;
    overflow-wrap: anywhere;
}

pre {
    max-width: 100%;
    margin: 14px 0 17px;
    padding: 15px 17px;
    color: #d9ecf7;
    background: #172334;
    border-radius: 13px;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
}

pre code {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: inherit;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 10px 14px;
    color: #fff;
    background: var(--ink);
    border-radius: 10px;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 233, 240, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 184px;
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-link,
.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.header-link {
    color: var(--ink);
}

.header-link:hover,
.header-link[aria-current="page"] {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.header-button {
    margin-left: 4px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 8px 22px rgba(0, 158, 247, 0.22);
}

.header-button:hover {
    color: #fff;
    background: #008fdc;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 134px;
    color: #fff;
    background:
        radial-gradient(circle at 82% 14%, rgba(255, 225, 7, 0.25), transparent 22%),
        radial-gradient(circle at 8% 92%, rgba(0, 158, 247, 0.38), transparent 29%),
        linear-gradient(135deg, #181c32 0%, #202b4a 57%, #173e5c 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 330px;
    height: 330px;
    top: -220px;
    left: 42%;
    border: 42px solid rgba(0, 158, 247, 0.09);
}

.hero::after {
    width: 370px;
    height: 370px;
    right: -150px;
    bottom: -250px;
    border: 48px solid rgba(255, 225, 7, 0.11);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 8px 13px;
    color: #d5f4ff;
    background: rgba(0, 158, 247, 0.15);
    border: 1px solid rgba(115, 210, 255, 0.3);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 225, 7, 0.11);
}

h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(38px, 5.5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-lead {
    max-width: 760px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(17px, 2vw, 20px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.hero-chip strong {
    color: var(--yellow);
}

.finder-wrap {
    position: relative;
    z-index: 3;
    margin-top: -72px;
}

.finder {
    padding: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(229, 233, 240, 0.9);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(22, 34, 57, 0.16);
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 21px;
    height: 21px;
    color: #98a2b3;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    min-height: 56px;
    padding: 13px 48px 13px 52px;
    color: var(--ink);
    background: #f8fafc;
    border: 1px solid #dfe5ed;
    border-radius: 15px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.search-input::placeholder {
    color: #98a2b3;
}

.search-input:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 158, 247, 0.11);
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 11px;
    display: none;
    width: 34px;
    height: 34px;
    padding: 0;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    transform: translateY(-50%);
}

.search-clear.is-visible {
    display: grid;
    place-items: center;
}

.search-clear:hover {
    color: var(--ink);
    background: #eef2f6;
}

.expand-button {
    min-height: 56px;
    padding: 12px 18px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid #ccecff;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
}

.expand-button:hover {
    background: #e1f3ff;
}

.filter-row {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-bottom: 1px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.filter-button {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    color: #475467;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.filter-button:hover {
    color: var(--blue-dark);
    border-color: #b8dff5;
}

.filter-button.is-active {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 13px;
}

.telegram-source {
    font-weight: 600;
    text-decoration: none;
}

.main-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    padding: 44px 0 76px;
}

.category-nav {
    position: sticky;
    top: 100px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(30, 43, 69, 0.06);
}

.category-nav h2 {
    margin: 0 0 12px;
    font-size: 15px;
}

.category-nav ul {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    color: var(--muted);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
}

.category-nav a:hover,
.category-nav a:focus-visible {
    color: var(--blue-dark);
    background: var(--blue-soft);
}

.nav-count {
    flex: 0 0 auto;
    min-width: 24px;
    padding: 2px 6px;
    color: #667085;
    background: #f2f4f7;
    border-radius: 999px;
    font-size: 10px;
    text-align: center;
}

.faq-content {
    min-width: 0;
}

.category-section {
    margin-bottom: 42px;
}

.category-section.is-empty {
    display: none;
}

.category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.category-kicker {
    margin: 0 0 4px;
    color: var(--blue-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.category-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 31px);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.category-description {
    max-width: 490px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(30, 43, 69, 0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--blue);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.faq-item:hover {
    border-color: #d4dce7;
    box-shadow: 0 12px 34px rgba(30, 43, 69, 0.075);
}

.faq-item[open] {
    border-color: #cfe9f8;
    box-shadow: var(--shadow);
}

.faq-item[open]::before,
.faq-item.is-target::before {
    opacity: 1;
}

.faq-item.is-target {
    border-color: #83cff7;
    box-shadow: 0 0 0 4px rgba(0, 158, 247, 0.1), var(--shadow);
}

.faq-item.is-hidden {
    display: none;
}

.faq-question {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 80px;
    padding: 17px 20px;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue), #38b8ff);
    border-radius: 13px;
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 8px 18px rgba(0, 158, 247, 0.2);
}

.question-text {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 600;
    line-height: 1.42;
}

.chevron {
    position: relative;
    width: 34px;
    height: 34px;
    color: #667085;
    background: #f5f7fa;
    border-radius: 10px;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chevron::before,
.chevron::after {
    content: "";
    position: absolute;
    top: 16px;
    width: 8px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.chevron::before {
    left: 10px;
    transform: rotate(45deg);
}

.chevron::after {
    right: 10px;
    transform: rotate(-45deg);
}

.faq-item[open] .chevron {
    color: var(--blue-dark);
    background: var(--blue-soft);
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 25px 76px;
}

.answer-inner {
    padding-top: 19px;
    color: var(--ink-soft);
    border-top: 1px solid #edf0f4;
}

.answer-inner p {
    margin: 0 0 13px;
}

.answer-inner p:last-child {
    margin-bottom: 0;
}

.answer-inner ul,
.answer-inner ol {
    margin: 12px 0 16px;
    padding-left: 24px;
}

.answer-inner li {
    margin: 7px 0;
    padding-left: 3px;
}

.answer-inner strong {
    color: var(--ink);
}

.callout {
    margin: 17px 0;
    padding: 15px 17px;
    color: #245b47;
    background: var(--green-soft);
    border: 1px solid #ccebdd;
    border-radius: 13px;
    font-size: 14px;
}

.callout.warning {
    color: #7a271a;
    background: var(--red-soft);
    border-color: #ffd1cd;
}

.callout.info {
    color: #175d83;
    background: var(--blue-soft);
    border-color: #ccecff;
}

.callout.note {
    color: #665f2e;
    background: var(--yellow-soft);
    border-color: #f1e6a2;
}

.answer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.copy-link,
.source-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.copy-link {
    color: var(--blue-dark);
    background: var(--blue-soft);
    border: 1px solid #ccecff;
    cursor: pointer;
}

.copy-link:hover {
    background: #dff2ff;
}

.source-link {
    color: #475467;
    background: #f6f7f9;
    border: 1px solid #e5e9ef;
}

.source-link:hover {
    color: var(--blue-dark);
    background: #f0f7fb;
}

.button-icon {
    width: 15px;
    height: 15px;
}

.empty-state {
    display: none;
    padding: 52px 24px;
    color: var(--muted);
    background: #fff;
    border: 1px dashed #ccd5e0;
    border-radius: 20px;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.empty-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    color: var(--blue-dark);
    background: var(--blue-soft);
    border-radius: 16px;
    font-size: 25px;
}

.empty-state h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 21px;
}

.empty-state p {
    margin: 0;
}

.help-card {
    position: relative;
    overflow: hidden;
    margin-top: 46px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 225, 7, 0.21), transparent 24%),
        linear-gradient(135deg, #181c32, #213b58);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.help-card h2 {
    margin: 0 0 7px;
    font-size: clamp(23px, 3vw, 30px);
}

.help-card > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 23px;
}

.help-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.help-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.help-button.primary {
    color: var(--ink);
    background: var(--yellow);
    border-color: var(--yellow);
}

.help-button.primary:hover {
    color: var(--ink);
    background: #ffea4e;
}

.site-footer {
    padding: 26px 0 34px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.site-footer a {
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 980px) {
    .header-link.optional {
        display: none;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .category-nav {
        position: static;
    }

    .category-nav ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand img {
        width: 150px;
    }

    .header-link {
        display: none;
    }

    .header-button {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .hero {
        padding: 56px 0 112px;
    }

    .hero-meta {
        display: grid;
    }

    .finder-wrap {
        margin-top: -76px;
    }

    .finder {
        padding: 17px;
        border-radius: 19px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .expand-button {
        min-height: 44px;
    }

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

    .main-layout {
        gap: 26px;
        padding: 30px 0 50px;
    }

    .category-nav {
        padding: 17px;
    }

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

    .category-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .category-description {
        text-align: left;
    }

    .faq-question {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 72px;
        padding: 14px 14px;
    }

    .faq-number {
        width: 37px;
        height: 37px;
        border-radius: 11px;
        font-size: 11px;
    }

    .chevron {
        width: 30px;
        height: 30px;
    }

    .chevron::before,
    .chevron::after {
        top: 14px;
        width: 7px;
    }

    .chevron::before {
        left: 9px;
    }

    .chevron::after {
        right: 9px;
    }

    .faq-answer {
        padding: 0 17px 20px 17px;
    }

    .help-card {
        padding: 26px 21px;
        border-radius: 18px;
    }
}

@media (max-width: 470px) {
    .category-nav ul {
        grid-template-columns: 1fr;
    }

    .faq-question {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .chevron {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
