:root {
    --gost-bg: #f5f7fb;
    --gost-surface: #ffffff;
    --gost-text: #172033;
    --gost-muted: #647084;
    --gost-line: #dfe6f1;
    --gost-accent: #0f6b5f;
    --gost-accent-2: #1c4f8f;
    --gost-soft: #e9f5f2;
    --gost-warn: #f5b84b;
    --gost-shadow: 0 16px 48px rgba(23, 32, 51, .10);
}

html {
    scroll-behavior: smooth;
}

body.gost10303-ux {
    background: var(--gost-bg);
    color: var(--gost-text);
    overflow-x: hidden;
}

.gost10303-ux a {
    text-underline-offset: 3px;
}

.gost10303-ux .site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid rgba(223, 230, 241, .9);
    box-shadow: 0 8px 28px rgba(23, 32, 51, .05);
    backdrop-filter: blur(14px);
}

.gost10303-ux .main-navigation {
    position: sticky;
    top: 75px;
    z-index: 70;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 230, 241, .9);
    box-shadow: 0 8px 22px rgba(23, 32, 51, .04);
    backdrop-filter: blur(12px);
}

.gost10303-ux .site-header-inner,
.gost10303-ux .main-navigation-inner,
.gost10303-ux .site-content.fixed,
.gost-hero__inner,
.gost-topic-nav__inner {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
}

.gost-header-inner {
    min-height: 74px;
    display: grid;
    grid-template-columns: auto minmax(230px, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    margin: 0 auto;
}

.gost-menu-toggle {
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.gost-menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 3px auto;
    background: var(--gost-text);
    border-radius: 2px;
}

.gost-branding {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gost-branding__mark,
.gost-footer-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gost-accent), var(--gost-accent-2));
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 26px rgba(15, 107, 95, .22);
}

.gost-branding__body {
    min-width: 0;
}

.gost-branding__title {
    margin: 0;
    color: var(--gost-text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.gost-branding__title a {
    color: inherit;
    text-decoration: none;
}

.gost-branding__description {
    margin: 4px 0 0;
    color: var(--gost-muted);
    font-size: 13px;
    line-height: 1.25;
}

.gost-header-topics {
    display: flex;
    gap: 8px;
    justify-content: center;
    min-width: 0;
}

.gost-header-topics a {
    max-width: 150px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    overflow: hidden;
    border: 1px solid var(--gost-line);
    border-radius: 999px;
    background: var(--gost-bg);
    color: var(--gost-accent-2);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.gost-header-link,
.gost-header-search {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
}

.gost-header-link {
    padding: 0 12px;
    color: var(--gost-text);
}

.gost-header-search {
    gap: 8px;
    padding: 0 14px;
    border: 0;
    background: var(--gost-accent);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(15, 107, 95, .2);
}

.gost-header-search .search-icon {
    filter: brightness(0) invert(1);
}

.gost10303-ux .main-navigation-inner {
    min-height: 48px;
    margin: 0 auto;
}

.gost10303-ux .main-navigation a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--gost-text);
    font-weight: 800;
    text-decoration: none;
}

.gost10303-ux .main-navigation a:hover,
.gost-header-topics a:hover,
.gost-header-link:hover {
    color: var(--gost-accent);
}

.gost-hero {
    padding: 34px 0 22px;
    background:
        radial-gradient(circle at 12% 20%, rgba(15, 107, 95, .12), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #eef4fb 60%, #e9f5f2 100%);
    border-bottom: 1px solid var(--gost-line);
}

.gost-hero__inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
    gap: 28px;
    align-items: center;
}

.gost-eyebrow,
.gost-section-head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--gost-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gost-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--gost-text);
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.gost-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    color: #3c485c;
    font-size: 18px;
    line-height: 1.65;
}

.gost-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.gost-button,
.gost-hero-search button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.gost-button:hover,
.gost-hero-search button:hover,
.gost-card:hover {
    transform: translateY(-2px);
}

.gost-button--primary,
.gost-hero-search button {
    background: var(--gost-accent);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 107, 95, .24);
}

.gost-button--ghost {
    background: #fff;
    color: var(--gost-accent-2);
    border-color: var(--gost-line);
}

.gost-hero-search {
    padding: 22px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(223, 230, 241, .95);
    border-radius: 8px;
    box-shadow: var(--gost-shadow);
}

.gost-hero-search label {
    display: block;
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 800;
}

.gost-hero-search div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.gost-hero-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    font-size: 16px;
}

.gost-topic-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--gost-line);
    backdrop-filter: blur(10px);
}

.gost-topic-nav__inner {
    min-height: 58px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gost-topic-nav span,
.gost-topic-nav a {
    flex: 0 0 auto;
}

.gost-topic-nav span {
    color: var(--gost-muted);
    font-weight: 800;
}

.gost-topic-nav a {
    padding: 9px 13px;
    border: 1px solid var(--gost-line);
    border-radius: 999px;
    background: #fff;
    color: var(--gost-text);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.gost-home-block,
.gost-trust-band {
    margin: 34px 0;
}

.gost-home-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.gost-section-head {
    margin-bottom: 18px;
}

.gost-section-head--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.gost-section-head h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.18;
    letter-spacing: 0;
}

.gost-section-head--row > a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--gost-accent-2);
    font-weight: 800;
}

.gost-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gost-card-grid--featured {
    grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
}

.gost-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--gost-surface);
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(23, 32, 51, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gost-card:hover {
    border-color: rgba(15, 107, 95, .32);
    box-shadow: var(--gost-shadow);
}

.gost-card__image {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0f6b5f, #1c4f8f);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.gost-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gost-card:hover .gost-card__image img {
    transform: scale(1.04);
}

.gost-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.gost-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
    color: var(--gost-muted);
    font-size: 13px;
    font-weight: 700;
}

.gost-card__meta a {
    color: var(--gost-accent);
    text-decoration: none;
}

.gost-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: 0;
}

.gost-card h3 a {
    color: var(--gost-text);
    text-decoration: none;
}

.gost-card p {
    margin: 10px 0 0;
    color: var(--gost-muted);
    font-size: 15px;
    line-height: 1.55;
}

.gost-card--featured h3 {
    font-size: 23px;
}

.gost-trust-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    background: var(--gost-line);
}

.gost-trust-band div {
    padding: 18px;
    background: #fff;
}

.gost-trust-band strong,
.gost-trust-band span {
    display: block;
}

.gost-trust-band strong {
    margin-bottom: 5px;
    font-size: 18px;
}

.gost-trust-band span {
    color: var(--gost-muted);
    line-height: 1.45;
}

.gost-archive-hub {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 22px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(23, 32, 51, .06);
}

.gost-archive-hub h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.14;
    letter-spacing: 0;
}

.gost-archive-hub__text {
    max-width: 820px;
    color: #3c485c;
    font-size: 18px;
    line-height: 1.65;
}

.gost-entity-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.gost-entity-links span,
.gost-entity-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

.gost-entity-links span {
    color: var(--gost-muted);
    font-weight: 800;
}

.gost-entity-links a {
    padding: 8px 12px;
    border: 1px solid var(--gost-line);
    border-radius: 999px;
    background: var(--gost-bg);
    color: var(--gost-accent-2);
    font-weight: 700;
    text-decoration: none;
}

.gost10303-ux .site-content-inner {
    gap: 28px;
}

.gost10303-ux .content-area,
.gost10303-ux .widget-area {
    min-width: 0;
}

.gost10303-ux.single-post .content-area {
    max-width: 840px;
}

.gost10303-ux.single-post .article-post {
    background: #fff;
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    padding: clamp(20px, 4vw, 42px);
    box-shadow: 0 10px 34px rgba(23, 32, 51, .06);
}

.gost10303-ux.single-post .entry-title {
    max-width: 820px;
    margin-bottom: 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

.gost10303-ux .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--gost-muted);
    font-size: 14px;
}

.gost10303-ux .entry-excerpt {
    margin: 22px 0;
    padding: 16px 18px;
    border-left: 4px solid var(--gost-accent);
    border-radius: 0 8px 8px 0;
    background: var(--gost-soft);
    color: #253347;
    font-size: 18px;
    line-height: 1.65;
}

.gost10303-ux .entry-content {
    color: #20293a;
    font-size: 18px;
    line-height: 1.72;
}

.gost10303-ux .entry-content > * {
    max-width: 780px;
}

.gost10303-ux .entry-content p,
.gost10303-ux .entry-content ul,
.gost10303-ux .entry-content ol {
    margin-top: 0;
    margin-bottom: 1.15em;
}

.gost10303-ux .entry-content h2,
.gost10303-ux .entry-content h3 {
    margin-top: 1.55em;
    margin-bottom: .65em;
    color: var(--gost-text);
    line-height: 1.22;
    letter-spacing: 0;
}

.gost10303-ux .entry-content h2 {
    font-size: clamp(25px, 3vw, 34px);
}

.gost10303-ux .entry-content h3 {
    font-size: clamp(21px, 2.2vw, 27px);
}

.gost10303-ux .entry-content blockquote {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--gost-warn);
    border-radius: 0 8px 8px 0;
    background: #fff7e7;
    color: #2f3545;
    font-size: 19px;
}

.gost10303-ux .entry-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 16px;
}

.gost10303-ux .entry-content th,
.gost10303-ux .entry-content td {
    padding: 12px 14px;
    border: 1px solid var(--gost-line);
    vertical-align: top;
}

.gost10303-ux .entry-content th {
    background: #eef4fb;
}

.gost10303-ux .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gost-toc {
    max-width: 780px;
    margin: 0 0 26px;
    padding: 16px;
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    background: #f8fbff;
}

.gost-toc__toggle {
    width: 100%;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gost-text);
    font: inherit;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
}

.gost-toc ol {
    margin: 8px 0 0;
    padding-left: 20px;
}

.gost-toc li {
    margin: 6px 0;
}

.gost-toc a {
    color: var(--gost-accent-2);
    font-weight: 700;
}

.gost-toc.is-collapsed ol {
    display: none;
}

.gost-article-note {
    max-width: 780px;
    margin-top: 30px;
    padding: 18px;
    border: 1px solid rgba(15, 107, 95, .24);
    border-radius: 8px;
    background: var(--gost-soft);
}

.gost-article-note strong,
.gost-article-note span {
    display: block;
}

.gost-article-note strong {
    margin-bottom: 6px;
    font-size: 18px;
}

.gost-article-note span {
    color: #3c485c;
    line-height: 1.55;
}

.gost-faq,
.gost-author-box,
.gost-related-cluster {
    max-width: 780px;
    margin-top: 30px;
}

.gost-faq {
    padding: 20px;
    border: 1px solid var(--gost-line);
    border-radius: 8px;
    background: #fff;
}

.gost-faq h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
}

.gost-faq details {
    border-top: 1px solid var(--gost-line);
}

.gost-faq details:first-of-type {
    border-top: 0;
}

.gost-faq summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    color: var(--gost-text);
    font-weight: 800;
    cursor: pointer;
}

.gost-faq p {
    margin: 0 0 16px;
    color: #3c485c;
    line-height: 1.65;
}

.gost-author-box {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(28, 79, 143, .22);
    border-radius: 8px;
    background: #f7fbff;
}

.gost-author-box__avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gost-accent-2);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.gost-author-box__label {
    display: block;
    margin-bottom: 4px;
    color: var(--gost-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.gost-author-box strong {
    display: block;
    font-size: 20px;
}

.gost-author-box p {
    margin: 8px 0 12px;
    color: #3c485c;
    line-height: 1.6;
}

.gost-author-box__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: var(--gost-muted);
    font-size: 14px;
    font-weight: 700;
}

.gost-related-cluster .gost-card-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gost-related-cluster .gost-card h3 {
    font-size: 17px;
}

.gost-footer-container {
    margin-top: 48px;
    background: #101827;
}

.gost-site-footer {
    background:
        linear-gradient(135deg, rgba(15, 107, 95, .18), transparent 34%),
        linear-gradient(180deg, #101827 0%, #0c1220 100%);
    color: #e7edf7;
}

.gost-footer-inner {
    width: min(1180px, calc(100% - 32px));
    max-width: none;
    margin: 0 auto;
    padding: 42px 0 22px;
}

.gost-footer-main {
    display: grid;
    grid-template-columns: minmax(260px, 1.25fr) repeat(3, minmax(0, .75fr));
    gap: 30px;
    align-items: start;
}

.gost-footer-brand h2,
.gost-footer-col h3 {
    margin: 0;
    color: #fff;
    letter-spacing: 0;
}

.gost-footer-brand h2 {
    margin-top: 14px;
    font-size: 25px;
}

.gost-footer-brand p {
    max-width: 380px;
    margin: 10px 0 18px;
    color: #aeb9cb;
    font-size: 15px;
    line-height: 1.65;
}

.gost-footer-search {
    max-width: 420px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.gost-footer-search input,
.gost-footer-search button {
    min-height: 46px;
    border-radius: 8px;
    font-size: 15px;
}

.gost-footer-search input {
    width: 100%;
    padding: 0 13px;
    border: 1px solid rgba(223, 230, 241, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.gost-footer-search input::placeholder {
    color: #aeb9cb;
}

.gost-footer-search button {
    padding: 0 16px;
    border: 0;
    background: var(--gost-warn);
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}

.gost-footer-col {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 10px;
}

.gost-footer-col h3 {
    margin-bottom: 4px;
    font-size: 16px;
}

.gost-footer-col a {
    color: #c8d2e2;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
}

.gost-footer-col a:hover {
    color: #fff;
    text-decoration: underline;
}

.gost-footer-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
    padding: 15px;
    border: 1px solid rgba(223, 230, 241, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .05);
}

.gost-footer-trust span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #d6deeb;
    font-size: 13px;
    font-weight: 800;
}

.gost-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(223, 230, 241, .14);
    color: #9aa7ba;
    font-size: 14px;
}

.gost-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gost-footer-meta a {
    color: #c8d2e2;
    text-decoration: none;
}

.gost-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    height: 4px;
    background: transparent;
}

.gost-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gost-accent), var(--gost-accent-2));
}

.gost-fixed-tools {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 999;
    display: grid;
    gap: 10px;
}

.gost-tool {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: var(--gost-accent);
    color: #fff;
    box-shadow: var(--gost-shadow);
    cursor: pointer;
    transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.gost-tool:hover {
    transform: translateY(-2px);
    background: var(--gost-accent-2);
}

.gost-tool-top {
    opacity: 0;
    pointer-events: none;
}

.gost-tool-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.gost-tool span {
    position: relative;
    width: 20px;
    height: 20px;
}

.gost-tool-search span::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    left: 1px;
    top: 1px;
}

.gost-tool-search span::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    right: 1px;
    bottom: 3px;
}

.gost-tool-top span::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-left: 2px solid #fff;
    border-top: 2px solid #fff;
    transform: rotate(45deg);
}

.gost10303-ux .search-screen.active,
.gost10303-ux .search-screen-overlay.active {
    display: block;
}

.gost10303-ux .search-screen input[type="search"] {
    min-height: 48px;
    font-size: 17px;
}

@media (max-width: 1024px) {
    .gost-header-inner {
        grid-template-columns: auto minmax(220px, 1fr) auto;
    }

    .gost-header-topics {
        display: none;
    }

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

    .gost-hero__inner {
        grid-template-columns: 1fr;
    }

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

    .gost10303-ux .site-content-inner {
        display: block;
    }

    .gost10303-ux .widget-area {
        margin-top: 26px;
    }
}

@media (max-width: 768px) {
    .gost10303-ux .site-header-inner,
    .gost10303-ux .main-navigation-inner,
    .gost10303-ux .site-content.fixed,
    .gost-hero__inner,
    .gost-topic-nav__inner,
    .gost-home-shell {
        width: min(100% - 24px, 1180px);
    }

    .gost10303-ux .site-header {
        position: sticky;
    }

    .gost10303-ux .main-navigation {
        position: fixed;
        top: 74px;
        left: 12px;
        right: 12px;
        z-index: 90;
        display: none;
        overflow: hidden;
        border: 1px solid var(--gost-line);
        border-radius: 8px;
        box-shadow: var(--gost-shadow);
    }

    .gost10303-ux .main-navigation.gost-navigation-open,
    .gost-menu-open .main-navigation {
        display: block;
    }

    .gost10303-ux .main-navigation-inner {
        width: 100%;
        max-height: calc(100vh - 96px);
        display: block;
        overflow-y: auto;
        padding: 8px;
        background: #fff;
    }

    .gost10303-ux .main-navigation ul,
    .gost10303-ux .main-navigation li {
        display: block;
        width: 100%;
    }

    .gost10303-ux .main-navigation a {
        width: 100%;
        min-height: 48px;
        padding: 10px 12px;
        border-radius: 8px;
    }

    .gost-header-inner {
        min-height: 72px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
    }

    .gost-menu-toggle {
        display: grid;
    }

    .gost-branding__mark {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .gost-branding__title {
        font-size: 19px;
    }

    .gost-branding__description {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .gost-header-link {
        display: none;
    }

    .gost-header-search {
        width: 46px;
        height: 46px;
        padding: 0;
    }

    .gost-header-search span:last-child {
        display: none;
    }

    .gost-footer-inner {
        width: min(100% - 24px, 1180px);
        padding-top: 34px;
    }

    .gost-footer-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .gost-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .gost-hero {
        padding-top: 24px;
    }

    .gost-hero h1 {
        font-size: 34px;
    }

    .gost-hero p,
    .gost10303-ux .entry-content,
    .gost10303-ux .entry-excerpt {
        font-size: 17px;
    }

    .gost-card-grid,
    .gost-card-grid--featured,
    .gost-related-cluster .gost-card-grid--compact,
    .gost-trust-band {
        grid-template-columns: 1fr;
    }

    .gost-section-head--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .gost10303-ux.single-post .article-post {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .gost-branding__description {
        display: none;
    }

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

    .gost-footer-search button {
        width: 100%;
    }

    .gost-hero-search {
        padding: 16px;
    }

    .gost-hero-search div {
        grid-template-columns: 1fr;
    }

    .gost-button,
    .gost-hero-search button {
        width: 100%;
    }

    .gost-hero h1 {
        font-size: 31px;
    }

    .gost-card__body {
        padding: 14px;
    }

    .gost-fixed-tools {
        right: 12px;
        bottom: 12px;
    }

    .gost-tool {
        width: 46px;
        height: 46px;
    }

    .gost-author-box {
        grid-template-columns: 1fr;
    }

    .gost-author-box__avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 360px) {
    .gost10303-ux .site-header-inner,
    .gost10303-ux .main-navigation-inner,
    .gost10303-ux .site-content.fixed,
    .gost-hero__inner,
    .gost-topic-nav__inner,
    .gost-home-shell,
    .gost-archive-hub,
    .gost-footer-inner {
        width: min(100% - 18px, 1180px);
    }

    .gost-header-inner {
        gap: 8px;
    }

    .gost-branding__mark {
        width: 40px;
        height: 40px;
    }

    .gost-branding__title {
        font-size: 17px;
    }

    .gost-hero h1 {
        font-size: 28px;
    }

    .gost-card h3 {
        font-size: 18px;
    }
}
