:root {
    color-scheme: dark;
    --am-bg: #0d0d12;
    --am-bg-raised: #15151b;
    --am-bg-soft: #1c1c23;
    --am-bg-hover: #26262e;
    --am-text: #f7f5f0;
    --am-text-soft: #c4c1bc;
    --am-muted: #8d8b88;
    --am-line: rgb(247 245 240 / 0.14);
    --am-line-strong: rgb(247 245 240 / 0.24);
    --am-accent: #a3ff0f;
    --am-accent-ink: #11140d;
    --am-accent-soft: rgb(163 255 15 / 0.12);
    --am-forest: #a3ff0f;
    --am-forest-dark: #75bd00;
    --am-forest-soft: rgb(163 255 15 / 0.13);
    --am-blue: #22d3ee;
    --am-blue-soft: rgb(34 211 238 / 0.12);
    --am-red: #ff725e;
    --am-red-soft: rgb(255 114 94 / 0.12);
    --am-yellow: #f5b642;
    --am-yellow-soft: rgb(245 182 66 / 0.13);
    --am-shadow: 0 24px 70px rgb(0 0 0 / 0.55);
    --am-header-height: 76px;
    --am-radius: 8px;
    --am-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--am-header-height) + 20px);
}

body,
button,
input,
textarea,
select {
    font-family: "Manrope", "Segoe UI", sans-serif;
    letter-spacing: 0;
}

body {
    margin: 0;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    display: block;
}

::selection {
    color: var(--am-accent-ink);
    background: var(--am-accent);
}

:focus-visible {
    outline: 2px solid var(--am-accent);
    outline-offset: 4px;
}

.am-body {
    min-width: 320px;
    color: var(--am-text);
    background: var(--am-bg);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

.am-metrika-pixel {
    position: absolute;
    left: -9999px;
}

.am-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;
}

.am-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    padding: 11px 16px;
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 180ms var(--am-ease);
}

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

.am-shell {
    width: min(1600px, calc(100% - 80px));
    margin-inline: auto;
}

.am-main {
    min-height: 70vh;
    background: var(--am-bg);
}

.am-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Header */
.am-header {
    position: relative;
    z-index: 120;
    min-height: var(--am-header-height);
    padding: 12px 24px;
    background: var(--am-bg);
}

.am-home-page .am-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: transparent;
}

.am-header__inner {
    position: relative;
    width: min(1700px, 100%);
    min-height: 58px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto auto minmax(220px, 460px) auto auto;
    align-items: center;
    gap: 18px;
    padding: 8px 10px 8px 16px;
    background: rgb(13 13 18 / 0.8);
    border: 1px solid var(--am-line);
    border-radius: 26px;
    box-shadow: 0 18px 60px rgb(0 0 0 / 0.35);
    backdrop-filter: blur(18px);
}

.am-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--am-text);
    text-decoration: none;
    white-space: nowrap;
}

.am-brand__logo {
    display: block;
    width: 120px;
    height: 30px;
    object-fit: contain;
    object-position: left center;
}

.am-brand__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background: var(--am-accent);
    border-radius: 50%;
    box-shadow: 0 0 18px rgb(163 255 15 / 0.46);
}

.am-brand__name {
    font-family: "Unbounded", "Arial Black", sans-serif;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
}

.am-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

.am-nav a {
    padding: 10px 13px;
    color: rgb(247 245 240 / 0.64);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: color 170ms ease, background-color 170ms ease;
}

.am-nav a:hover,
.am-nav a[aria-current="page"] {
    color: var(--am-text);
    background: rgb(247 245 240 / 0.07);
}

.am-nav__telegram {
    display: none;
}

.am-search {
    position: relative;
    width: 100%;
    min-width: 0;
}

.am-search__icon {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    width: 16px;
    height: 16px;
    color: rgb(247 245 240 / 0.4);
}

.am-search__input {
    width: 100%;
    height: 40px;
    padding: 0 64px 0 40px;
    color: var(--am-text);
    background: rgb(247 245 240 / 0.045);
    border: 1px solid var(--am-line);
    border-radius: 999px;
    font-size: 12px;
    outline: 0;
    transition: border-color 170ms ease, background-color 170ms ease;
}

.am-search__input::placeholder {
    color: rgb(247 245 240 / 0.34);
}

.am-search__input:focus {
    background: rgb(247 245 240 / 0.07);
    border-color: var(--am-accent);
}

.am-search__key {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 6px;
    color: rgb(247 245 240 / 0.42);
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line);
    border-radius: 6px;
    font-size: 9px;
    line-height: 16px;
}

.am-search__progress {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 12px;
    height: 12px;
    border: 2px solid var(--am-line-strong);
    border-top-color: var(--am-accent);
    border-radius: 50%;
    animation: am-spin 700ms linear infinite;
}

.htmx-request .am-search__key,
.am-search__progress:not(.htmx-request) {
    display: none;
}

@keyframes am-spin {
    to { transform: rotate(360deg); }
}

.am-search-results {
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 160;
    width: 100%;
}

.am-search-panel {
    padding: 8px;
    background: #15151b;
    border: 1px solid var(--am-line-strong);
    border-radius: 18px;
    box-shadow: var(--am-shadow);
}

.am-search-result {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
}

.am-search-result:hover,
.am-search-result:focus-visible {
    background: rgb(247 245 240 / 0.06);
}

.am-search-result strong {
    display: block;
    font-size: 13px;
    line-height: 1.35;
}

.am-search-result small {
    display: block;
    margin-top: 4px;
    color: var(--am-muted);
    font-size: 10px;
}

.am-search-result__arrow {
    color: var(--am-accent);
}

.am-search-empty {
    margin: 0;
    padding: 14px;
    color: var(--am-muted);
    font-size: 13px;
}

.am-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    color: var(--am-text);
    background: transparent;
    border: 1px solid var(--am-line-strong);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms var(--am-ease);
}

.am-button:hover {
    transform: translateY(-2px);
}

.am-button--telegram,
.am-button--primary {
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border-color: var(--am-accent);
}

.am-button--telegram:hover,
.am-button--primary:hover {
    background: #b6ff3f;
    border-color: #b6ff3f;
}

.am-button--secondary {
    color: var(--am-text);
    background: rgb(247 245 240 / 0.04);
}

.am-button--secondary:hover {
    border-color: var(--am-accent);
}

.am-button--light {
    color: var(--am-accent-ink);
    background: var(--am-text);
    border-color: var(--am-text);
}

.am-icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--am-text);
    background: transparent;
    border: 1px solid var(--am-line-strong);
    border-radius: 50%;
    cursor: pointer;
}

.am-menu-button {
    display: none;
}

/* Home hero */
.am-cinematic-hero {
    position: relative;
    min-height: 850px;
    overflow: hidden;
    background: var(--am-bg);
}

.am-cinematic-hero__picture,
.am-cinematic-hero__shade,
.am-film-grain {
    position: absolute;
    inset: 0;
}

.am-cinematic-hero__picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.am-cinematic-hero__shade {
    background: rgb(13 13 18 / 0.4);
    box-shadow: inset 48vw 0 190px rgb(13 13 18 / 0.76), inset 0 -130px 120px rgb(13 13 18 / 0.75);
}

.am-film-grain {
    z-index: 1;
    pointer-events: none;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.am-cinematic-hero__inner {
    position: relative;
    z-index: 2;
    min-height: 850px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 34px;
    align-items: end;
    padding-top: 150px;
    padding-bottom: 42px;
}

.am-hero-copy {
    max-width: 1150px;
    align-self: center;
    padding-top: 36px;
}

.am-hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 22px;
    color: var(--am-accent);
    font-size: 11px;
    font-weight: 800;
}

.am-hero-kicker > span {
    width: 48px;
    height: 1px;
    background: var(--am-accent);
}

.am-hero-copy h1 {
    margin: 0;
    font-size: 76px;
    font-weight: 800;
    line-height: 0.96;
}

.am-hero-copy h1 span {
    display: block;
}

.am-hero-copy h1 span:last-child {
    color: var(--am-accent);
}

.am-hero-lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgb(247 245 240 / 0.69);
    font-size: 18px;
    line-height: 1.75;
}

.am-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 18px 0 0;
    padding: 0;
    color: rgb(247 245 240 / 0.67);
    font-size: 13px;
    list-style: none;
}

.am-hero-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.am-hero-benefits li > span {
    width: 6px;
    height: 6px;
    background: var(--am-accent);
    border-radius: 50%;
}

.am-hero-search {
    position: relative;
    width: min(900px, 100%);
}

.am-hero-search h2 {
    margin: 0;
    font-size: 20px;
}

.am-hero-search > div:first-child > p {
    margin: 4px 0 0;
    color: rgb(247 245 240 / 0.5);
    font-size: 13px;
}

.am-hero-search__form {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 9px;
    background: rgb(13 13 18 / 0.9);
    border: 1px solid rgb(247 245 240 / 0.22);
    border-radius: 32px;
    box-shadow: 0 24px 90px rgb(0 0 0 / 0.54);
    backdrop-filter: blur(12px);
}

.am-hero-search__form:focus-within {
    border-color: var(--am-accent);
}

.am-hero-search__form input {
    min-width: 0;
    flex: 1;
    height: 56px;
    padding: 0 18px;
    color: var(--am-text);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
}

.am-hero-search__form input::placeholder {
    color: rgb(247 245 240 / 0.38);
}

.am-hero-search__form button {
    min-width: 176px;
    height: 56px;
    padding: 0 24px;
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border: 0;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms var(--am-ease), background-color 180ms ease;
}

.am-hero-search__form button:hover {
    background: #b6ff3f;
    transform: translateY(-2px);
}

.am-search-results--hero {
    top: calc(100% - 44px);
    max-width: 730px;
}

.am-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.am-suggestion-list a {
    padding: 8px 14px;
    color: rgb(247 245 240 / 0.6);
    background: rgb(0 0 0 / 0.14);
    border: 1px solid rgb(247 245 240 / 0.18);
    border-radius: 999px;
    font-size: 11px;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.am-suggestion-list a:hover {
    color: var(--am-text);
    border-color: var(--am-accent);
}

.am-reveal {
    animation: am-reveal 800ms var(--am-ease) both;
}

.am-reveal--delay {
    animation-delay: 100ms;
}

@keyframes am-reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
}

/* Home content */
.am-showcase,
.am-paths,
.am-more {
    position: relative;
    background: var(--am-bg);
}

.am-showcase {
    padding: 100px 0;
}

.am-showcase__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.am-showcase__head > div > p,
.am-paths__intro > p,
.am-telegram-stage p {
    margin: 0 0 16px;
    color: var(--am-accent);
    font-size: 11px;
    font-weight: 800;
}

.am-showcase__head h2,
.am-paths__intro h2,
.am-telegram-stage h2 {
    margin: 0;
    font-size: 62px;
    font-weight: 800;
    line-height: 1;
}

.am-showcase__quote {
    max-width: 470px;
    margin: 0;
}

.am-showcase__quote p {
    margin: 0;
    color: rgb(247 245 240 / 0.5);
    font-size: 15px;
    line-height: 1.65;
}

.am-showcase__quote cite {
    display: block;
    margin-top: 12px;
    color: var(--am-accent);
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.am-feature-story {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    border: 1px solid var(--am-line);
    border-radius: 32px;
}

.am-feature-story__space,
.am-feature-story__shade {
    position: absolute;
    inset: 0;
}

.am-feature-story__space {
    background: var(--am-bg) url("../images/hero-space-hq-v1.png") center / cover no-repeat;
    transition: transform 900ms var(--am-ease);
}

.am-feature-story:hover .am-feature-story__space {
    transform: scale(1.018);
}

.am-feature-story__shade {
    background: rgb(13 13 18 / 0.34);
    box-shadow: inset 56vw 0 210px rgb(13 13 18 / 0.82), inset 0 -160px 120px rgb(13 13 18 / 0.62);
}

.am-feature-story__content {
    position: absolute;
    right: 48px;
    bottom: 48px;
    left: 48px;
    max-width: 800px;
}

.am-feature-story__content > p {
    margin: 0;
    color: var(--am-accent);
    font-size: 11px;
    font-weight: 800;
}

.am-feature-story h3 {
    margin: 16px 0 0;
    font-size: 52px;
    line-height: 1.05;
}

.am-feature-story__content > span {
    display: block;
    max-width: 660px;
    margin-top: 18px;
    color: rgb(247 245 240 / 0.66);
    font-size: 14px;
    line-height: 1.75;
}

.am-feature-story__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
}

.am-feature-story__actions small {
    color: rgb(247 245 240 / 0.5);
    font-size: 11px;
}

.am-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    background: var(--am-line);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
    overflow: hidden;
}

.am-story-card {
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--am-bg);
    text-decoration: none;
    transition: background-color 180ms ease;
}

.am-story-card:hover {
    background: var(--am-bg-soft);
}

.am-story-card__number {
    color: var(--am-accent);
    font-size: 12px;
}

.am-story-card h3 {
    margin: 54px 0 0;
    font-size: 23px;
    line-height: 1.3;
}

.am-story-card p {
    margin: 13px 0 0;
    color: rgb(247 245 240 / 0.46);
    font-size: 12px;
    line-height: 1.65;
}

.am-story-card small {
    margin-top: auto;
    padding-top: 22px;
    color: var(--am-muted);
    font-size: 10px;
}

.am-story-card__arrow {
    position: absolute;
    right: 26px;
    bottom: 24px;
    color: var(--am-accent);
}

.am-paths {
    padding: 72px 0;
    border-top: 1px solid var(--am-line);
    border-bottom: 1px solid var(--am-line);
}

.am-paths__layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
    gap: 54px;
}

.am-paths__intro h2 {
    max-width: 8ch;
    font-size: 52px;
}

.am-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--am-line);
}

.am-path-grid a {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--am-bg);
    text-decoration: none;
    transition: background-color 180ms ease;
}

.am-path-grid a:hover {
    background: var(--am-bg-soft);
}

.am-path-grid span {
    color: var(--am-accent);
    font-size: 12px;
}

.am-path-grid h3 {
    margin: auto 0 10px;
    font-size: 18px;
}

.am-path-grid p {
    margin: 0;
    color: rgb(247 245 240 / 0.46);
    font-size: 12px;
    line-height: 1.7;
}

.am-telegram-stage {
    position: relative;
    overflow: hidden;
    padding: 94px 0;
    color: var(--am-accent-ink);
    background: var(--am-accent);
}

.am-telegram-stage::after {
    position: absolute;
    top: -170px;
    right: -130px;
    width: 500px;
    height: 500px;
    content: "";
    border: 94px solid rgb(17 20 13 / 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.am-telegram-stage__layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: end;
    gap: 70px;
}

.am-telegram-stage p {
    color: var(--am-accent-ink);
}

.am-telegram-stage h2 {
    max-width: 11ch;
}

.am-telegram-stage__layout > div:first-child > span {
    display: block;
    max-width: 620px;
    margin-top: 24px;
    color: rgb(17 20 13 / 0.7);
    line-height: 1.7;
}

.am-telegram-stage__panel {
    padding: 16px;
    color: var(--am-accent);
    background: var(--am-accent-ink);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgb(17 20 13 / 0.22);
}

.am-telegram-stage__panel > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border-bottom: 1px solid rgb(163 255 15 / 0.18);
    font-size: 10px;
}

.am-telegram-stage__panel > strong {
    display: block;
    padding: 34px 20px;
    color: var(--am-text);
    font-size: 26px;
    line-height: 1.35;
}

.am-telegram-stage__panel > a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border-radius: 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.am-more {
    padding: 72px 0 84px;
}

.am-more header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.am-more h2 {
    margin: 0;
    font-size: 36px;
}

.am-more header > a {
    color: var(--am-accent);
    font-size: 12px;
    text-decoration: none;
}

.am-more__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.am-more__list > a {
    max-width: 440px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    color: rgb(247 245 240 / 0.66);
    border: 1px solid var(--am-line);
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
}

.am-more__list > a:hover {
    color: var(--am-text);
    border-color: var(--am-accent);
}

.am-more__list strong {
    font-weight: 600;
}

.am-more__list span {
    flex: 0 0 auto;
    color: var(--am-accent);
    font-size: 10px;
}

/* General pages */
.am-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 36px;
    padding: 76px 0 38px;
    border-bottom: 1px solid var(--am-line-strong);
}

.am-eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--am-accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.am-page-title {
    max-width: 1000px;
    margin: 0;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.03;
}

.am-page-lead {
    max-width: 700px;
    margin: 18px 0 0;
    color: rgb(247 245 240 / 0.56);
    font-size: 17px;
    line-height: 1.7;
}

.am-count {
    min-width: 130px;
    padding: 16px 0 4px 24px;
    border-left: 1px solid var(--am-line-strong);
}

.am-count strong,
.am-count span {
    display: block;
}

.am-count strong {
    color: var(--am-accent);
    font-size: 34px;
    line-height: 1;
}

.am-count span {
    margin-top: 8px;
    color: var(--am-muted);
    font-size: 11px;
}

.am-section {
    padding: 38px 0;
    border-bottom: 1px solid var(--am-line);
}

.am-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.am-section__head h2 {
    margin: 0;
    font-size: 24px;
}

.am-text-link {
    color: var(--am-accent);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.am-text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.am-empty-state {
    padding: 30px;
    color: var(--am-muted);
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
}

.am-empty-state strong,
.am-empty-state span {
    display: block;
}

.am-empty-state span {
    margin-top: 5px;
    font-size: 12px;
}

/* Catalog */
.am-catalog {
    padding-bottom: 60px;
}

.am-catalog-list {
    border-top: 1px solid var(--am-line-strong);
}

.am-catalog-item {
    min-height: 142px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 150px 36px;
    align-items: center;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--am-line);
    text-decoration: none;
}

.am-catalog-item:hover .am-catalog-item__title {
    color: var(--am-accent);
}

.am-catalog-item__number {
    color: var(--am-accent);
    font-size: 22px;
    font-weight: 500;
}

.am-catalog-item__title {
    display: block;
    max-width: 900px;
    font-size: 22px;
    line-height: 1.35;
    transition: color 170ms ease;
}

.am-catalog-item__description {
    display: block;
    max-width: 800px;
    margin-top: 8px;
    color: rgb(247 245 240 / 0.45);
    font-size: 13px;
    line-height: 1.6;
}

.am-catalog-item__meta {
    color: var(--am-muted);
    font-size: 10px;
    text-align: right;
}

.am-catalog-item__meta span {
    display: block;
    margin-bottom: 5px;
}

.am-catalog-item__arrow {
    color: var(--am-accent);
    font-size: 22px;
    text-align: right;
}

.am-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 38px;
}

.am-pagination a,
.am-pagination span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--am-line);
    border-radius: 999px;
    font-size: 11px;
    text-decoration: none;
}

.am-pagination a:hover,
.am-pagination [aria-current="page"] {
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border-color: var(--am-accent);
}

/* Article */
.am-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 220;
    width: 0;
    height: 3px;
    background: var(--am-accent);
}

.am-article-header {
    max-width: 1364px;
    margin-inline: auto;
    padding: 64px 0 38px;
    border-bottom: 1px solid var(--am-line-strong);
}

.am-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--am-muted);
    font-size: 11px;
}

.am-breadcrumbs a {
    color: rgb(247 245 240 / 0.62);
    text-decoration: none;
}

.am-breadcrumbs a:hover {
    color: var(--am-accent);
}

.am-article-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--am-accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.am-article-header h1 {
    max-width: 1100px;
    margin: 0;
    font-size: 54px;
    font-weight: 800;
    line-height: 1.08;
}

.am-article-header__description {
    max-width: 820px;
    margin: 20px 0 0;
    color: rgb(247 245 240 / 0.55);
    font-size: 18px;
    line-height: 1.7;
}

.am-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    color: var(--am-muted);
    font-size: 11px;
}

.am-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.am-article-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 760px) 280px;
    justify-content: center;
    gap: 32px;
    align-items: start;
    padding-top: 36px;
}

[data-article-page].is-toc-collapsed .am-article-layout {
    grid-template-columns: 56px minmax(0, 760px) 280px;
}

.am-toc {
    position: sticky;
    top: 22px;
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    padding: 16px;
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
}

.am-toc__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.am-toc__heading h2 {
    margin: 0;
    color: rgb(247 245 240 / 0.82);
    font-size: 11px;
    text-transform: uppercase;
}

.am-toc__toggle {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--am-muted);
    background: transparent;
    border: 1px solid var(--am-line);
    border-radius: 50%;
    cursor: pointer;
}

.am-toc__toggle:hover {
    color: var(--am-accent);
    border-color: var(--am-accent);
}

.am-toc__toggle .am-icon {
    width: 14px;
    height: 14px;
    transform: rotate(180deg);
}

.am-toc__reading {
    display: grid;
    gap: 6px;
    margin: 14px 0 12px;
    padding: 12px 0;
    border-top: 1px solid var(--am-line);
    border-bottom: 1px solid var(--am-line);
}

.am-toc__reading > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--am-muted);
    font-size: 9px;
}

.am-toc__reading strong {
    color: var(--am-accent);
    font-size: 12px;
}

.am-toc__reading small {
    color: var(--am-text-soft);
    font-size: 10px;
    line-height: 1.4;
}

.am-toc.is-collapsed {
    padding: 12px;
}

.am-toc.is-collapsed .am-toc__heading {
    justify-content: center;
}

.am-toc.is-collapsed .am-toc__heading h2,
.am-toc.is-collapsed .am-toc__reading,
.am-toc.is-collapsed .am-toc__list {
    display: none;
}

.am-toc.is-collapsed .am-toc__toggle .am-icon {
    transform: rotate(0);
}

.am-toc__list {
    display: grid;
    gap: 3px;
}

.am-toc__link {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px;
    color: var(--am-muted);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.4;
    text-decoration: none;
}

.am-toc__link:hover,
.am-toc__link.is-active {
    color: var(--am-text);
    background: var(--toc-soft, var(--am-accent-soft));
}

.am-toc__number {
    color: var(--toc-color, var(--am-accent));
    font-weight: 800;
}

.am-mobile-toc {
    display: none;
}

.am-article-column {
    min-width: 0;
}

.am-article-summary {
    margin-bottom: 38px;
    padding: 24px;
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line-strong);
    border-radius: var(--am-radius);
}

.am-article-summary__heading {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    align-items: baseline;
    gap: 16px;
    margin-bottom: 18px;
}

.am-article-summary__heading > span {
    color: var(--am-accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.am-article-summary h2 {
    margin: 0;
    font-size: 20px;
}

.am-article-summary ol {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--am-line);
}

.am-article-summary li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--am-line);
}

.am-article-summary li > span {
    color: var(--am-accent);
    font-size: 11px;
    font-weight: 800;
}

.am-article-summary li p {
    margin: 0;
    color: var(--am-text-soft);
    font-size: 13px;
    line-height: 1.55;
}

.am-article-content {
    max-width: 74ch;
    color: rgb(247 245 240 / 0.82);
    font-size: 17px;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.am-article-rail {
    position: sticky;
    top: 22px;
    display: grid;
    gap: 18px;
}

.am-rail-telegram,
.am-rail-related {
    padding: 20px;
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
}

.am-rail-telegram > span {
    color: var(--am-accent);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.am-rail-telegram h2 {
    margin: 11px 0 9px;
    font-size: 18px;
    line-height: 1.25;
}

.am-rail-telegram p {
    margin: 0 0 16px;
    color: var(--am-muted);
    font-size: 11px;
    line-height: 1.55;
}

.am-rail-telegram a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--am-accent);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.am-rail-telegram a:hover {
    color: #c2ff62;
}

.am-rail-telegram .am-icon {
    width: 15px;
    height: 15px;
}

.am-rail-related h2 {
    margin: 0 0 10px;
    font-size: 14px;
}

.am-rail-related a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 13px 0;
    border-top: 1px solid var(--am-line);
    text-decoration: none;
}

.am-rail-related a > span {
    color: var(--am-accent);
    font-size: 10px;
    font-weight: 800;
}

.am-rail-related strong {
    font-size: 11px;
    line-height: 1.4;
}

.am-rail-related small {
    grid-column: 2;
    color: var(--am-muted);
    font-size: 9px;
}

.am-rail-related a:hover strong {
    color: var(--am-accent);
}

.am-article-content > :first-child {
    margin-top: 0;
}

.am-article-content h2,
.am-article-content h3,
.am-article-content h4 {
    color: var(--am-text);
    line-height: 1.3;
}

.am-article-content h2 {
    margin: 48px 0 20px;
    padding-bottom: 12px;
    color: var(--section-color, var(--am-accent));
    border-bottom: 1px solid var(--section-color, var(--am-accent));
    font-size: 27px;
}

.am-article-content h2::before {
    min-width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    margin-right: 11px;
    color: var(--am-bg);
    background: var(--section-color, var(--am-accent));
    border-radius: 50%;
    content: attr(data-section-number);
    font-size: 12px;
    vertical-align: 3px;
}

.am-article-content h3 {
    margin: 34px 0 13px;
    font-size: 21px;
}

.am-article-content h4 {
    margin: 26px 0 10px;
    font-size: 18px;
}

.am-article-content p,
.am-article-content ul,
.am-article-content ol,
.am-article-content blockquote,
.am-article-content pre,
.am-article-content table {
    margin-top: 0;
    margin-bottom: 22px;
}

.am-article-content a {
    color: var(--am-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.am-article-content a:hover {
    color: #c2ff62;
}

.am-article-content ul,
.am-article-content ol {
    padding-left: 25px;
}

.am-article-content li {
    margin: 9px 0;
    padding-left: 4px;
}

.am-article-content li::marker {
    color: var(--section-color, var(--am-accent));
    font-weight: 800;
}

.am-article-content strong {
    color: var(--am-text);
}

.am-article-content blockquote,
.am-article-content .am-callout {
    padding: 20px;
    color: var(--am-text);
    background: var(--section-soft, var(--am-accent-soft));
    border: 1px solid var(--section-color, var(--am-accent));
    border-radius: var(--am-radius);
}

.am-article-content blockquote p:last-child,
.am-article-content .am-callout p:last-child {
    margin-bottom: 0;
}

.am-table-scroll {
    width: 100%;
    max-width: 100%;
    margin-bottom: 22px;
    overflow-x: auto;
    border: 1px solid var(--am-line-strong);
    border-radius: var(--am-radius);
    scrollbar-color: var(--am-line-strong) var(--am-bg-raised);
}

.am-table-scroll:focus-visible {
    outline-offset: 3px;
}

.am-article-content .am-table-scroll table {
    width: 100% !important;
    display: table;
    margin: 0;
    color: var(--am-text);
    background: var(--am-bg);
    border: 0 !important;
    border-collapse: collapse;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.55;
}

.am-article-content th,
.am-article-content td {
    min-width: 140px;
    padding: 12px 14px;
    color: var(--am-text) !important;
    background: var(--am-bg) !important;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--am-line-strong) !important;
}

.am-article-content th {
    color: var(--am-text) !important;
    background: var(--am-bg-soft) !important;
    font-weight: 800;
}

.am-article-content tbody tr:nth-child(even) td {
    background: var(--am-bg-raised) !important;
}

.am-article-content tbody tr:hover td {
    background: var(--am-bg-hover) !important;
}

.am-article-content tr > :first-child {
    border-left: 0 !important;
}

.am-article-content tr > :last-child {
    border-right: 0 !important;
}

.am-article-content thead tr:first-child th {
    border-top: 0 !important;
}

.am-article-content tbody tr:last-child td {
    border-bottom: 0 !important;
}

.am-article-content caption {
    padding: 0 0 10px;
    color: var(--am-text-soft);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.am-article-content code {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.86em;
}

.am-article-content :not(pre) > code {
    padding: 2px 6px;
    color: var(--am-red);
    background: var(--am-red-soft);
    border: 1px solid rgb(255 114 94 / 0.28);
    border-radius: 4px;
}

.am-article-content pre {
    position: relative;
    max-width: 100%;
    padding: 20px;
    color: #e8ece9;
    background: #09090d;
    border: 1px solid var(--am-line-strong);
    border-radius: var(--am-radius);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.65;
}

.am-article-content pre code {
    font-size: inherit;
}

.am-article-content img,
.am-article-content video,
.am-article-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: var(--am-radius);
}

.am-article-content hr {
    margin: 38px 0;
    border: 0;
    border-top: 1px solid var(--am-line);
}

.am-copy-button {
    position: absolute;
    top: 9px;
    right: 9px;
    min-height: 32px;
    padding: 0 10px;
    color: rgb(247 245 240 / 0.68);
    background: var(--am-bg-soft);
    border: 1px solid var(--am-line-strong);
    border-radius: 999px;
    font-size: 10px;
    cursor: pointer;
}

.am-article-end {
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--am-line-strong);
}

.am-article-telegram {
    padding: 28px;
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border-radius: var(--am-radius);
}

.am-article-telegram h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.am-article-telegram p {
    margin: 0 0 18px;
    color: rgb(17 20 13 / 0.68);
    font-size: 13px;
}

.am-article-telegram .am-button--light {
    color: var(--am-text);
    background: var(--am-accent-ink);
    border-color: var(--am-accent-ink);
}

.am-next-read {
    position: relative;
    min-height: 170px;
    display: grid;
    align-content: end;
    gap: 8px;
    margin-top: 12px;
    padding: 28px 72px 28px 28px;
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line-strong);
    border-radius: var(--am-radius);
    text-decoration: none;
}

.am-next-read:hover {
    border-color: var(--am-accent);
}

.am-next-read > span {
    color: var(--am-accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.am-next-read strong {
    max-width: 30ch;
    font-size: 21px;
    line-height: 1.3;
}

.am-next-read small {
    color: var(--am-muted);
    font-size: 10px;
}

.am-next-read > .am-icon {
    position: absolute;
    right: 28px;
    bottom: 30px;
    width: 26px;
    height: 26px;
    color: var(--am-accent);
}

.am-related {
    margin-top: 38px;
}

.am-related h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.am-related__list {
    border-top: 1px solid var(--am-line-strong);
}

.am-related__item {
    min-height: 70px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--am-line);
    text-decoration: none;
}

.am-related__item span:first-child {
    color: var(--am-accent);
    font-weight: 800;
}

.am-related__item strong {
    font-size: 13px;
}

.am-related__item small {
    color: var(--am-muted);
    font-size: 10px;
}

.am-article-neighbors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.am-article-neighbors a {
    min-height: 84px;
    padding: 16px;
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
    text-decoration: none;
}

.am-article-neighbors a:hover {
    border-color: var(--am-accent);
}

.am-article-neighbors small {
    display: block;
    margin-bottom: 6px;
    color: var(--am-muted);
    font-size: 10px;
}

.am-article-neighbors strong {
    display: block;
    font-size: 12px;
    line-height: 1.4;
}

/* Static pages and forms */
.am-prose-page {
    max-width: 920px;
    padding-bottom: 60px;
}

.am-prose-page__body {
    padding-top: 32px;
    color: rgb(247 245 240 / 0.8);
    font-size: 16px;
    line-height: 1.8;
}

.am-prose-page__body h2 {
    margin: 42px 0 14px;
    padding-bottom: 10px;
    color: var(--am-text);
    border-bottom: 1px solid var(--am-line-strong);
    font-size: 25px;
}

.am-prose-page__body h3 {
    margin: 28px 0 9px;
    color: var(--am-text);
    font-size: 19px;
}

.am-prose-page__body p,
.am-prose-page__body ul,
.am-prose-page__body ol {
    margin: 0 0 19px;
}

.am-prose-page__body li {
    margin: 8px 0;
}

.am-prose-page__body a {
    color: var(--am-accent);
}

.am-principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 22px 0;
    background: var(--am-line);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
    gap: 1px;
    overflow: hidden;
}

.am-principle {
    min-height: 140px;
    padding: 22px;
    background: var(--am-bg);
}

.am-principle strong {
    display: block;
    margin-bottom: 8px;
    color: var(--am-accent);
}

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

.am-note {
    padding: 20px;
    color: var(--am-text);
    background: var(--am-yellow-soft);
    border: 1px solid var(--am-yellow);
    border-radius: var(--am-radius);
}

.am-note p:last-child {
    margin-bottom: 0;
}

.am-advertising-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 36px;
    align-items: start;
    padding: 34px 0 70px;
}

.am-form {
    min-width: 0;
    padding: 28px;
    background: var(--am-bg-raised);
    border: 1px solid var(--am-line-strong);
    border-radius: var(--am-radius);
}

.am-status {
    margin-bottom: 22px;
    padding: 15px;
    border: 1px solid;
    border-radius: var(--am-radius);
    font-size: 13px;
}

.am-status--success {
    color: var(--am-accent);
    background: var(--am-accent-soft);
}

.am-status--error {
    color: var(--am-red);
    background: var(--am-red-soft);
}

.am-service-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 28px;
}

.am-service-option {
    min-width: 0;
}

.am-service-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.am-service-option label {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--am-bg);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
    cursor: pointer;
    transition: border-color 170ms ease, background-color 170ms ease;
}

.am-service-option label:hover,
.am-service-option input:focus-visible + label {
    border-color: var(--am-accent);
}

.am-service-option input:checked + label {
    background: var(--am-accent-soft);
    border-color: var(--am-accent);
}

.am-service-option small {
    color: var(--am-accent);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.am-service-option strong {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.35;
}

.am-service-option b {
    margin-top: 16px;
    color: var(--am-text);
    font-size: 22px;
}

.am-service-option p {
    margin: auto 0 0;
    padding-top: 18px;
    color: var(--am-muted);
    font-size: 11px;
    line-height: 1.55;
}

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

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

.am-field--full {
    grid-column: 1 / -1;
}

.am-field label,
.am-field__label {
    display: block;
    margin-bottom: 7px;
    color: rgb(247 245 240 / 0.76);
    font-size: 11px;
    font-weight: 700;
}

.am-field input,
.am-field textarea {
    width: 100%;
    color: var(--am-text);
    background: var(--am-bg);
    border: 1px solid var(--am-line);
    border-radius: var(--am-radius);
    outline: 0;
    transition: border-color 170ms ease;
}

.am-field input {
    height: 48px;
    padding: 0 14px;
}

.am-field textarea {
    min-height: 140px;
    padding: 14px;
    resize: vertical;
}

.am-field input:focus,
.am-field textarea:focus {
    border-color: var(--am-accent);
}

.am-field input::placeholder,
.am-field textarea::placeholder {
    color: rgb(247 245 240 / 0.28);
}

.am-field__help,
.am-field__error {
    display: block;
    margin-top: 6px;
    font-size: 10px;
}

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

.am-field__error {
    color: var(--am-red);
}

.am-form__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--am-line);
}

.am-form__actions p {
    margin: 0;
    color: var(--am-muted);
    font-size: 11px;
}

.am-sticky-note {
    position: sticky;
    top: 20px;
    padding: 24px;
    color: var(--am-accent-ink);
    background: var(--am-accent);
    border-radius: var(--am-radius);
}

.am-sticky-note h2 {
    margin: 0 0 16px;
    font-size: 21px;
}

.am-sticky-note ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
}

.am-sticky-note li {
    margin: 9px 0;
}

.am-sticky-note p {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgb(17 20 13 / 0.22);
    font-size: 11px;
}

.am-error-page {
    min-height: 62vh;
    display: grid;
    grid-template-columns: auto minmax(0, 650px);
    align-items: center;
    justify-content: center;
    gap: 42px;
}

.am-error-page__code {
    color: var(--am-accent);
    font-family: "Unbounded", "Arial Black", sans-serif;
    font-size: 100px;
    font-weight: 800;
}

.am-error-page h1 {
    margin: 0 0 10px;
    font-size: 36px;
}

.am-error-page p {
    margin: 0 0 22px;
    color: var(--am-muted);
}

/* Footer */
.am-footer {
    padding: 54px 0 40px;
    color: rgb(247 245 240 / 0.68);
    background: #09090d;
    border-top: 1px solid var(--am-line);
}

.am-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.8fr 1.1fr;
    gap: 50px;
}

.am-footer h2 {
    margin: 0 0 16px;
    color: var(--am-text);
    font-size: 11px;
    text-transform: uppercase;
}

.am-footer a:not(.am-button):not(.am-brand) {
    display: block;
    width: fit-content;
    margin: 8px 0;
    color: rgb(247 245 240 / 0.55);
    font-size: 12px;
    text-decoration: none;
}

.am-footer a:hover {
    color: var(--am-accent);
}

.am-brand--footer {
    color: var(--am-text);
}

.am-brand--footer .am-brand__logo {
    width: 140px;
    height: 35px;
}

.am-footer__brand p,
.am-footer__telegram p {
    max-width: 35ch;
    margin: 17px 0;
    color: rgb(247 245 240 / 0.46);
    font-size: 12px;
    line-height: 1.7;
}

.am-footer__brand > span {
    color: rgb(247 245 240 / 0.3);
    font-size: 10px;
}

.am-footer__telegram {
    padding-left: 26px;
    border-left: 1px solid var(--am-line);
}

@media (max-width: 1370px) {
    .am-article-layout {
        grid-template-columns: 210px minmax(0, 800px);
        gap: 40px;
    }

    [data-article-page].is-toc-collapsed .am-article-layout {
        grid-template-columns: 56px minmax(0, 800px);
    }

    .am-article-rail {
        display: none;
    }
}

@media (max-width: 1240px) {
    .am-shell {
        width: min(100% - 56px, 1160px);
    }

    .am-header {
        padding-inline: 18px;
    }

    .am-header__inner {
        grid-template-columns: auto minmax(220px, 1fr) auto auto;
    }

    .am-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: 270px;
        display: none;
        padding: 10px;
        background: var(--am-bg-raised);
        border: 1px solid var(--am-line-strong);
        border-radius: 18px;
        box-shadow: var(--am-shadow);
    }

    .am-nav.is-open {
        display: grid;
    }

    .am-nav a {
        padding: 12px;
        border-radius: 10px;
    }

    .am-nav__telegram {
        display: block;
        color: var(--am-accent) !important;
    }

    .am-menu-button {
        display: inline-grid;
    }

    .am-hero-copy h1 {
        font-size: 62px;
    }

    .am-showcase__head h2,
    .am-telegram-stage h2 {
        font-size: 52px;
    }

    .am-paths__layout {
        grid-template-columns: 1fr;
    }

    .am-paths__intro h2 {
        max-width: 12ch;
    }
}

@media (max-width: 900px) {
    :root {
        --am-header-height: 70px;
    }

    .am-shell {
        width: min(100% - 36px, 760px);
    }

    .am-header {
        padding: 10px 12px;
    }

    .am-header__inner {
        min-height: 54px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 6px 8px 6px 14px;
    }

    .am-header__telegram {
        display: none;
    }

    .am-cinematic-hero,
    .am-cinematic-hero__inner {
        min-height: 800px;
    }

    .am-cinematic-hero__inner {
        padding-top: 122px;
    }

    .am-hero-copy h1 {
        font-size: 52px;
    }

    .am-hero-lead {
        font-size: 16px;
    }

    .am-showcase {
        padding: 76px 0;
    }

    .am-showcase__head {
        align-items: start;
        flex-direction: column;
        gap: 20px;
    }

    .am-feature-story {
        min-height: 520px;
    }

    .am-feature-story h3 {
        font-size: 40px;
    }

    .am-story-grid,
    .am-path-grid {
        grid-template-columns: 1fr;
    }

    .am-story-card,
    .am-path-grid a {
        min-height: 220px;
    }

    .am-telegram-stage__layout {
        grid-template-columns: 1fr;
    }

    .am-article-layout {
        display: block;
        padding-top: 0;
    }

    .am-toc {
        display: none;
    }

    .am-mobile-toc {
        position: sticky;
        top: 0;
        z-index: 90;
        display: grid;
        gap: 9px;
        margin: 0 -18px 26px;
        padding: 10px 18px;
        background: rgb(13 13 18 / 0.95);
        border-top: 1px solid var(--am-line);
        border-bottom: 1px solid var(--am-line);
        backdrop-filter: blur(12px);
    }

    .am-mobile-toc__status {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-width: 0;
    }

    .am-mobile-toc__status strong {
        min-width: 0;
        color: var(--am-text-soft);
        font-size: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .am-mobile-toc__status > span {
        flex: 0 0 auto;
        color: var(--am-muted);
        font-size: 9px;
    }

    .am-mobile-toc__links {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .am-mobile-toc__links::-webkit-scrollbar {
        display: none;
    }

    .am-mobile-toc__links a {
        min-width: 180px;
        height: 42px;
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 0 11px;
        color: var(--mobile-color, var(--am-accent));
        border: 1px solid currentColor;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 800;
        text-decoration: none;
    }

    .am-mobile-toc__number {
        color: inherit;
    }

    .am-mobile-toc__label {
        color: var(--am-text-soft);
        font-size: 10px;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .am-mobile-toc__links a.is-active {
        background: var(--am-bg-raised);
        box-shadow: inset 0 0 0 1px currentColor;
    }

    .am-mobile-toc__links a.is-active .am-mobile-toc__label {
        color: var(--am-text);
    }

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

    .am-sticky-note {
        position: static;
    }

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

@media (max-width: 620px) {
    .am-shell {
        width: calc(100% - 24px);
    }

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

    .am-brand__name {
        font-size: 11px;
    }

    .am-search__key {
        display: none;
    }

    .am-search__input {
        padding-right: 12px;
        font-size: 11px;
    }

    .am-cinematic-hero,
    .am-cinematic-hero__inner {
        min-height: 790px;
    }

    .am-cinematic-hero__picture img {
        object-position: 76% center;
    }

    .am-cinematic-hero__shade {
        background: rgb(13 13 18 / 0.58);
        box-shadow: inset 90vw 0 140px rgb(13 13 18 / 0.66), inset 0 -100px 80px rgb(13 13 18 / 0.75);
    }

    .am-cinematic-hero__inner {
        gap: 25px;
        padding-top: 108px;
        padding-bottom: 24px;
    }

    .am-hero-copy {
        padding-top: 18px;
    }

    .am-hero-kicker {
        margin-bottom: 16px;
        font-size: 9px;
    }

    .am-hero-kicker > span {
        width: 32px;
    }

    .am-hero-copy h1 {
        font-size: 40px;
        line-height: 1;
    }

    .am-hero-lead {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.65;
    }

    .am-hero-benefits {
        gap: 8px 18px;
        font-size: 11px;
    }

    .am-hero-search h2 {
        font-size: 17px;
    }

    .am-hero-search__form {
        min-height: 0;
        display: grid;
        padding: 8px;
        border-radius: 24px;
    }

    .am-hero-search__form input {
        height: 48px;
        padding-inline: 14px;
        font-size: 13px;
    }

    .am-hero-search__form button {
        width: 100%;
        min-width: 0;
        height: 48px;
        border-radius: 18px;
    }

    .am-search-results--hero {
        top: calc(100% - 36px);
    }

    .am-suggestion-list {
        display: none;
    }

    .am-showcase,
    .am-telegram-stage {
        padding: 62px 0;
    }

    .am-showcase__head h2,
    .am-paths__intro h2,
    .am-telegram-stage h2 {
        font-size: 40px;
    }

    .am-feature-story {
        min-height: 500px;
        border-radius: 22px;
    }

    .am-feature-story__content {
        right: 24px;
        bottom: 26px;
        left: 24px;
    }

    .am-feature-story h3 {
        font-size: 31px;
    }

    .am-feature-story__content > span {
        font-size: 12px;
    }

    .am-feature-story__actions {
        align-items: start;
        flex-direction: column;
    }

    .am-story-card,
    .am-path-grid a {
        min-height: 205px;
        padding: 22px;
    }

    .am-story-card h3 {
        margin-top: 36px;
        font-size: 20px;
    }

    .am-paths {
        padding: 58px 0;
    }

    .am-paths__layout {
        gap: 36px;
    }

    .am-telegram-stage__layout {
        gap: 38px;
    }

    .am-telegram-stage__panel {
        border-radius: 20px;
    }

    .am-more {
        padding: 54px 0 64px;
    }

    .am-more h2 {
        font-size: 28px;
    }

    .am-more__list {
        display: grid;
    }

    .am-more__list > a {
        max-width: none;
        justify-content: space-between;
        border-radius: 14px;
    }

    .am-page-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 44px 0 26px;
    }

    .am-page-title {
        font-size: 38px;
    }

    .am-page-lead {
        font-size: 15px;
    }

    .am-count {
        padding: 12px 0 0;
        border-top: 1px solid var(--am-line);
        border-left: 0;
    }

    .am-catalog-item {
        grid-template-columns: 38px minmax(0, 1fr) 22px;
        gap: 12px;
        min-height: 126px;
        padding: 19px 0;
    }

    .am-catalog-item__number {
        font-size: 17px;
    }

    .am-catalog-item__title {
        font-size: 17px;
    }

    .am-catalog-item__description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 11px;
    }

    .am-catalog-item__meta {
        grid-column: 2;
        text-align: left;
    }

    .am-catalog-item__meta span {
        display: inline;
        margin-right: 9px;
    }

    .am-catalog-item__arrow {
        grid-column: 3;
        grid-row: 1 / 3;
    }

    .am-article-header {
        padding: 42px 0 26px;
    }

    .am-article-header h1 {
        font-size: 36px;
    }

    .am-article-header__description {
        font-size: 15px;
    }

    .am-article-meta .am-button {
        width: 42px;
        padding: 0;
    }

    .am-article-meta .am-button span {
        display: none;
    }

    .am-article-content {
        font-size: 16px;
        line-height: 1.74;
    }

    .am-article-summary {
        margin-bottom: 30px;
    }

    .am-article-content h2 {
        margin-top: 38px;
        font-size: 22px;
    }

    .am-article-content h2::before {
        min-width: 27px;
        height: 27px;
        margin-right: 8px;
        font-size: 11px;
    }

    .am-article-content h3 {
        font-size: 18px;
    }

    .am-article-neighbors,
    .am-form__grid,
    .am-principles,
    .am-service-options {
        grid-template-columns: 1fr;
    }

    .am-article-summary {
        padding: 18px;
    }

    .am-article-summary__heading {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .am-article-summary li {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }

    .am-next-read {
        min-height: 150px;
        padding: 22px 54px 22px 20px;
    }

    .am-next-read strong {
        font-size: 18px;
    }

    .am-next-read > .am-icon {
        right: 20px;
        bottom: 24px;
    }

    .am-form {
        padding: 18px;
    }

    .am-service-option label {
        min-height: 210px;
    }

    .am-form__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .am-form__actions .am-button {
        width: 100%;
    }

    .am-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .am-footer__telegram {
        padding: 24px 0 0;
        border-top: 1px solid var(--am-line);
        border-left: 0;
    }

    .am-error-page {
        grid-template-columns: 1fr;
        gap: 12px;
        padding-block: 70px;
    }

    .am-error-page__code {
        font-size: 64px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
