:root {
    --bg: #f5f1e8;
    --surface: #fffdf8;
    --surface-strong: #fbf7ef;
    --text: #1f2321;
    --muted: #62645f;
    --line: rgba(31, 35, 33, 0.12);
    --accent: #a34c22;
    --accent-dark: #713317;
    --max: 1200px;
    --radius: 24px;
    --shadow: 0 20px 60px rgba(59, 41, 18, 0.08);
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: rgba(163, 76, 34, 0.12);
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(163, 76, 34, 0.12), transparent 28%),
        linear-gradient(180deg, #f9f4ea 0%, #f5f1e8 40%, #f1ece2 100%);
    color: var(--text);
    font-family: "Manrope", "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.has-open-menu {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    touch-action: manipulation;
}

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

.site-shell {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(18px);
    background: rgba(245, 241, 232, 0.78);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding-top: env(safe-area-inset-top, 0);
}

.site-brand {
    display: inline-flex;
    flex-direction: column;
}

.site-brand__kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-brand__title {
    font-size: 22px;
    font-weight: 800;
}

.site-header__toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
}

.site-header__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
}

.site-header__toggle:focus-visible,
.button:focus-visible,
.search-form__input:focus-visible,
.lead-form input:focus-visible,
.lead-form textarea:focus-visible {
    outline: 2px solid rgba(163, 76, 34, 0.45);
    outline-offset: 3px;
}

.site-navigation {
    position: fixed;
    inset: 76px 0 auto;
    padding: 20px 16px 28px;
    background: rgba(255, 253, 248, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-navigation.is-open {
    transform: translateY(0);
}

.site-menu,
.menu-fallback,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-menu a,
.menu-fallback a,
.footer-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 600;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

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

.hero {
    padding: 36px 0 18px;
}

.hero__inner {
    display: grid;
    gap: 24px;
}

.hero__content {
    padding: 8px 0 0;
}

.hero__eyebrow,
.section-heading__eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero h1,
.section h1,
.section h2,
.article__title {
    margin: 0;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero h1 {
    max-width: 12ch;
    font-size: clamp(2.3rem, 4.9vw, 4rem);
}

.hero__lead {
    max-width: 52ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1rem;
}

.hero__actions,
.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.hero__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero__signal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.hero__signal-item {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero__signal-item span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero__signal-item strong {
    font-size: 1.02rem;
    line-height: 1.1;
}

.hero__signal-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.hero__highlight {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.82);
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

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

.hero__segment {
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    min-width: 0;
}

.hero__segment span {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.hero__segment p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero__panel {
    display: grid;
    gap: 10px;
}

.hero__panel-card,
.feature-list__item,
.topic-list__item,
.service-points > div,
.cta-banner,
.article,
.post-card__inner {
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero__panel-card {
    padding: 16px 16px 15px;
    border-radius: 20px;
}

.hero__portrait {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    display: grid;
    align-content: start;
    gap: 14px;
    isolation: isolate;
}

.hero__portrait::before {
    content: "";
    position: absolute;
    inset: auto -18% -36% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(163, 76, 34, 0.22) 0%, rgba(163, 76, 34, 0.05) 58%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero__portrait-kicker {
    display: block;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__portrait-visual {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 118px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), transparent 24%),
        linear-gradient(135deg, rgba(163, 76, 34, 0.16), rgba(31, 35, 33, 0.08));
    border: 1px solid rgba(31, 35, 33, 0.08);
}

.hero__portrait-visual--photo {
    padding: 0;
    overflow: hidden;
}

.hero__portrait-visual--photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
}

.hero__portrait-visual span {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 900;
    color: var(--accent-dark);
}

.hero__panel-card--intro strong,
.hero__portrait strong {
    line-height: 1.24;
}

.hero__panel-card--links {
    display: grid;
    gap: 8px;
}

.hero__project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hero__project-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(163, 76, 34, 0.10);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.hero__quicklinks {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.hero__panel-card--summary ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.hero__panel-card--summary li + li {
    margin-top: 6px;
}

.hero__panel-card--links a {
    display: inline-flex;
    width: fit-content;
    color: var(--accent-dark);
    font-weight: 700;
    line-height: 1.3;
}

.hero__panel-card span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero__panel-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.05rem;
}

.hero__panel-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.section {
    padding: 24px 0 36px;
}

.section--muted {
    background: rgba(255, 255, 255, 0.28);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.section-heading h1,
.section-heading h2 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

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

.post-grid--featured {
    margin-top: 6px;
}

.post-card__inner {
    display: grid;
    overflow: hidden;
    border-radius: 26px;
}

.post-card__media {
    aspect-ratio: 1.4 / 1;
    background: linear-gradient(135deg, #d9b395, #faf2e7);
}

.post-card__media img,
.article__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(163, 76, 34, 0.18), rgba(255, 253, 248, 0.8));
}

.post-card__content {
    padding: 18px;
    min-width: 0;
}

.post-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.post-card__badge,
.article__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(163, 76, 34, 0.12);
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.post-card__badge--platform {
    background: rgba(44, 92, 135, 0.12);
    color: #244e72;
}

.post-card__badge--format {
    background: rgba(72, 116, 67, 0.12);
    color: #3f6440;
}

.post-card__badge--technical,
.article__badge--muted {
    background: rgba(98, 100, 95, 0.12);
    color: var(--muted);
}

.post-card--technical .post-card__media {
    background: linear-gradient(135deg, rgba(98, 100, 95, 0.16), rgba(255, 253, 248, 0.92));
}

.post-card__meta,
.article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--muted);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.article__topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    align-items: start;
}

.article__meta--right {
    justify-content: flex-end;
    text-align: right;
}

.post-card__title {
    margin: 10px 0 8px;
    font-size: 1.35rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.post-card__excerpt,
.feature-list__item p,
.service-points p,
.archive-description,
.article__content {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.starter-card__inner {
    display: grid;
    min-height: 100%;
    gap: 12px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(163, 76, 34, 0.13), transparent 34%),
        rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow);
}

.starter-card__eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.starter-card h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.starter-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.starter-card__link {
    align-self: end;
    color: var(--accent-dark);
    font-weight: 800;
}

.feature-list,
.topic-list,
.service-points {
    display: grid;
    gap: 14px;
}

.feature-list__item,
.topic-list__item,
.service-points > div,
.cta-banner,
.article {
    padding: 22px;
    border-radius: 24px;
    min-width: 0;
}

.feature-list__item,
.topic-list__item {
    min-width: 0;
}

.topic-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    font-weight: 700;
}

.topic-list__item span,
.archive-topic-nav__item span {
    display: block;
}

.topic-list__item p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.split-grid {
    display: grid;
    gap: 18px;
    align-items: start;
}

.split-grid--services {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.split-grid__content {
    max-width: 760px;
}

.cta-banner {
    display: grid;
    gap: 20px;
}

.article-shell {
    width: min(calc(100% - 32px), 860px);
}

.article-shell--page-layout {
    width: min(calc(100% - 32px), 1180px);
}

.page-layout {
    display: grid;
    gap: 24px;
}

.page-layout__sidebar {
    display: grid;
    align-content: start;
    gap: 16px;
}

.sidebar-faq {
    display: grid;
    gap: 14px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sidebar-faq__list {
    display: grid;
    gap: 10px;
}

.sidebar-faq__item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
}

.sidebar-faq__item summary {
    cursor: pointer;
    font-weight: 800;
    line-height: 1.3;
    list-style: none;
}

.sidebar-faq__item summary::-webkit-details-marker {
    display: none;
}

.sidebar-faq__item p {
    margin: 10px 0 0;
    color: var(--muted);
}

.page-hero {
    margin-bottom: 26px;
}

.page-hero--hub {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.page-hero p {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.05rem;
}

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

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

.page-hero__fact {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.9);
    color: var(--accent-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.hub-page-feed {
    margin-top: 32px;
}

.article__thumb {
    margin: 26px 0;
    overflow: hidden;
    border-radius: 22px;
}

.article__thumb--lead {
    margin-top: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow);
}

.article__thumb--lead img {
    display: block;
    width: 100%;
    height: auto;
}

.article__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}

.article__gallery-item {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 253, 248, 0.9);
    box-shadow: var(--shadow-soft);
}

.article__gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 520px;
    object-fit: cover;
}

.article__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.article__summary {
    display: grid;
    gap: 18px;
    margin: 24px 0 10px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.article__summary-lead {
    margin: 0;
    color: #353834;
    font-size: 1.08rem;
    font-weight: 600;
}

.article__technical-note {
    display: grid;
    gap: 14px;
    margin: 22px 0 12px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(98, 100, 95, 0.06);
    border: 1px solid rgba(98, 100, 95, 0.14);
}

.article__technical-note h2 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article--technical .article__content {
    color: var(--muted);
}

.article--technical .article__content p:first-child {
    font-size: 1.05rem;
}

.article__summary-grid {
    display: grid;
    gap: 14px;
}

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

.article__insight h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

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

.article__content > *:first-child {
    margin-top: 0;
}

.article__content p,
.article__content li {
    font-size: 1.06rem;
}

.article__content ul,
.article__content ol {
    margin: 1.1em 0;
    padding-left: 1.35em;
    color: var(--text);
}

.article__content li + li {
    margin-top: 0.55em;
}

.article__content ul li::marker,
.article__content ol li::marker {
    color: var(--accent-dark);
    font-weight: 700;
}

.article__content h2,
.article__content h3,
.article__content h4 {
    scroll-margin-top: 108px;
    text-wrap: balance;
}

.article__content p + p {
    margin-top: 1.1em;
}

.article__content p:first-child {
    font-size: 1.2rem;
    color: #353834;
}

.article__content a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.article__content blockquote {
    margin: 1.2em 0;
    padding: 18px 20px;
    border-left: 3px solid rgba(163, 76, 34, 0.32);
    background: rgba(163, 76, 34, 0.06);
    border-radius: 0 18px 18px 0;
    color: #3b3d39;
}

.article__content img,
.article__content iframe,
.article__content table {
    max-width: 100%;
}

.article__content pre,
.article__content code,
.article__content blockquote {
    overflow-wrap: anywhere;
}

.breadcrumbs {
    margin-bottom: 18px;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.breadcrumbs__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    color: rgba(31, 35, 33, 0.4);
}

.breadcrumbs__item a:hover {
    color: var(--accent-dark);
}

.article__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}

.article__cta,
.lead-form-card {
    margin-top: 28px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.related-posts {
    margin-top: 32px;
}

.article__cta p,
.lead-form-card__intro p {
    margin: 0;
    color: var(--muted);
}

.article__cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.lead-form-card__telegram {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.lead-form-card__telegram p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.lead-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.lead-form__field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.lead-form__honeypot {
    display: none !important;
}

.lead-form__field span {
    font-size: 0.95rem;
}

.lead-form input,
.lead-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fffdfa;
    color: var(--text);
    font: inherit;
}

.lead-form textarea {
    resize: vertical;
}

.lead-form-card__notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
}

.lead-form-card__notice--success {
    background: rgba(87, 143, 88, 0.12);
    color: #245227;
}

.lead-form-card__notice--error {
    background: rgba(173, 66, 44, 0.12);
    color: #7b2e18;
}

.sidebar-highlights {
    display: grid;
    gap: 14px;
}

.sidebar-highlights__item {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 253, 248, 0.78);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.sidebar-highlights__item h3 {
    margin: 0;
    font-size: 1.15rem;
}

.sidebar-highlights__item p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-form__field {
    flex: 1 1 260px;
}

.search-form__input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.86);
    color: var(--text);
    font: inherit;
}

.archive-filters {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.archive-filters__grid {
    display: grid;
    gap: 12px;
}

.archive-filters__field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.archive-filters__field span {
    font-size: 0.92rem;
}

.archive-filters__field input,
.archive-filters__field select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fffdfa;
    color: var(--text);
    font: inherit;
}

.archive-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.archive-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.archive-hero__intro {
    max-width: 760px;
}

.archive-hero__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.archive-pill,
.archive-topic-nav__item {
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.archive-pill span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.archive-pill strong {
    display: block;
    margin-top: 4px;
    font-size: 1.1rem;
}

.archive-topic-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.archive-topic-nav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 700;
}

.empty-state {
    display: grid;
    gap: 18px;
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 253, 248, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.empty-state h1,
.empty-state h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    max-width: 60ch;
}

.site-footer {
    padding: 28px 0 40px;
}

.site-footer__inner {
    display: grid;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.site-footer__brand {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.site-footer__copy {
    margin: 8px 0 0;
    color: var(--muted);
}

.pagination {
    margin-top: 28px;
}

.pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-numbers li {
    margin: 0;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 253, 248, 0.82);
    color: var(--text);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.pagination .page-numbers .current {
    background: var(--accent);
    color: #fff;
    border-color: transparent;
}

.footer-menu a {
    padding: 6px 0;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 300;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fffdfa;
    color: var(--text);
    box-shadow: var(--shadow);
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
}

@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;
    }
}

@media (min-width: 768px) {
    .site-shell {
        width: min(calc(100% - 56px), var(--max));
    }

    .site-header__toggle {
        display: none;
    }

    .site-navigation {
        position: static;
        inset: auto;
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 0;
        background: transparent;
        border: 0;
        transform: none;
    }

    .site-menu,
    .menu-fallback {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .site-menu a,
    .menu-fallback a {
        padding: 0;
    }

    .hero {
        padding-top: 56px;
    }

    .hero__inner,
    .cta-banner,
    .site-footer__inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
        align-items: start;
    }

    .hero__content {
        padding-right: 16px;
    }

    .hero__segments {
        grid-column: 1 / -1;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-top: -6px;
    }

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

    .hero__panel-card--summary,
    .hero__panel-card--links {
        display: none;
    }

    .page-layout {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .page-layout__sidebar {
        position: sticky;
        top: 96px;
    }

    .hero__panel {
        align-content: end;
    }

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

    .feature-list,
    .topic-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .archive-filters__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .service-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .site-shell {
        width: min(calc(100% - 24px), var(--max));
    }

    .site-header__inner {
        min-height: 64px;
        gap: 12px;
    }

    .site-brand__kicker {
        font-size: 10px;
        letter-spacing: 0.12em;
    }

    .site-brand__title {
        font-size: 18px;
        line-height: 1.05;
    }

    .site-navigation {
        inset: 64px 0 auto;
        padding: 16px 12px 24px;
        max-height: calc(100svh - 64px);
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0));
    }

    .site-menu a,
    .menu-fallback a {
        padding: 11px 0;
        font-size: 0.98rem;
    }

    .split-grid--services {
        grid-template-columns: 1fr;
    }

    .service-points a {
        min-height: 0;
    }

    .hero__segments,
    .archive-filters__grid {
        grid-template-columns: 1fr;
    }

    .hero__highlights {
        display: none;
    }

    .hero {
        padding: 16px 0 10px;
    }

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

    .hero__content,
    .hero__panel,
    .hero__actions,
    .hero__signal,
    .hero__segments {
        min-width: 0;
        max-width: 100%;
    }

    .hero__content {
        order: 1;
    }

    .hero__segments {
        order: 2;
    }

    .hero__panel {
        order: 3;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(1.7rem, 8.4vw, 2.35rem);
        line-height: 1.04;
        overflow-wrap: anywhere;
    }

    .hero__content {
        padding-top: 0;
    }

    .hero__panel {
        display: grid;
        margin-top: 14px;
    }

    .hero__panel-card--summary,
    .hero__panel-card--links {
        display: none;
    }

    .hero__portrait {
        min-height: 0;
    }

    .hero__portrait-visual {
        min-height: 168px;
    }

    .hero__signal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }

    .hero__signal-item:nth-child(n+3) {
        display: none;
    }

    .hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 16px;
    }

    .hero__actions .button {
        width: 100%;
        min-width: 0;
    }

    .hero__segments {
        display: grid;
        grid-column: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 0;
        overflow: visible;
        width: 100%;
        padding-bottom: 0;
    }

    .hero__segment {
        min-height: 0;
        padding: 14px;
    }

    .article__topline {
        flex-direction: column;
    }

    .article__meta--right {
        text-align: left;
        justify-content: flex-start;
    }

    .section {
        padding: 18px 0 28px;
    }

    .section-heading {
        margin-bottom: 16px;
    }

    .section-heading h1,
    .section-heading h2 {
        font-size: clamp(1.5rem, 7vw, 2.15rem);
    }

    .feature-list__item,
    .topic-list__item,
    .service-points > div,
    .cta-banner,
    .article,
    .lead-form-card,
    .archive-filters {
        padding: 18px;
        border-radius: 20px;
    }

    .post-card__content {
        padding: 16px;
    }

    .post-card__title {
        font-size: 1.15rem;
        line-height: 1.14;
    }

    .post-card__excerpt,
    .feature-list__item p,
    .service-points p,
    .archive-description,
    .topic-list__item p {
        font-size: 0.93rem;
    }

    .archive-hero__tools {
        display: grid;
        grid-template-columns: 1fr;
    }

    .archive-pill,
    .archive-topic-nav__item {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .archive-topic-nav {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(150px, 68vw);
        grid-template-columns: none;
        gap: 10px;
        margin-bottom: 18px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .archive-topic-nav::-webkit-scrollbar {
        display: none;
    }

    .archive-topic-nav__item {
        scroll-snap-align: start;
    }

    .archive-filters {
        gap: 12px;
    }

    .archive-filters__actions {
        gap: 10px;
    }

    .archive-filters__actions .button {
        flex: 1 1 0;
    }

    .empty-state {
        padding: 20px;
        border-radius: 20px;
    }

    .article__summary,
    .article__cta,
    .lead-form-card {
        padding: 18px;
    }

    .article__summary-lead {
        font-size: 1rem;
    }

    .article__content p:first-child {
        font-size: 1.08rem;
    }

    .article__content p,
    .article__content li {
        font-size: 1rem;
    }

    .article__gallery {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article__gallery-item img {
        max-height: none;
        object-fit: contain;
    }

    .breadcrumbs {
        margin-bottom: 14px;
    }

    .page-layout {
        gap: 18px;
    }

    .sidebar-faq,
    .sidebar-highlights__item {
        padding: 18px;
        border-radius: 20px;
    }
}

@media (min-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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