/* =========================================================
 * PROРусич Blog — main.css
 * Визуальное направление: фирменный синий, голубые/золотые
 * акценты, белый фон, скруглённые блоки, фото теплоходов.
 * ========================================================= */

/* ---------- 1. Переменные ---------- */
:root {
    --c-brand: #0b4ea2;
    --c-brand-dark: #073a7c;
    --c-brand-light: #3aa9e0;
    --c-brand-soft: #eaf3fc;
    --c-gold: #d9a441;
    --c-gold-dark: #b7882a;
    --c-ink: #1c2a3a;
    --c-ink-soft: #46586d;
    --c-mute: #7d8a9a;
    --c-line: #e3e8ef;
    --c-bg: #ffffff;
    --c-bg-soft: #f5f9fd;
    --c-warning: #c0392b;

    --container-max: 1240px;
    --gap: 24px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(11, 78, 162, 0.06);
    --shadow: 0 8px 24px rgba(11, 78, 162, 0.10);
    --shadow-lg: 0 20px 50px rgba(11, 78, 162, 0.16);

    --ff-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    --ff-heading: var(--ff-base);

    --t-fast: 0.15s ease;
    --t: 0.25s ease;
}

/* ---------- 2. Reset / Normalize ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font-family: var(--ff-base);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--c-brand);
    text-decoration: none;
    transition: color var(--t-fast);
}

a:hover,
a:focus-visible {
    color: var(--c-brand-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--c-brand-light);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    color: var(--c-ink);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1em;
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}

img {
    border-radius: 0;
}

hr {
    border: 0;
    border-top: 1px solid var(--c-line);
    margin: 2em 0;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    border-left: 4px solid var(--c-brand);
    background: var(--c-brand-soft);
    color: var(--c-ink);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

code {
    background: var(--c-bg-soft);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.95em;
}

pre {
    background: var(--c-bg-soft);
    padding: 1em;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

th, td {
    padding: 0.6em 0.8em;
    border: 1px solid var(--c-line);
    text-align: left;
}

th {
    background: var(--c-brand-soft);
    color: var(--c-ink);
    font-weight: 600;
}

/* ---------- 3. Утилиты ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--c-brand);
    color: #fff;
    padding: 0.6em 1em;
    z-index: 9999;
    transition: top var(--t-fast);
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

.meta-sep {
    color: var(--c-mute);
    margin: 0 0.2em;
}

/* ---------- 4. Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    min-height: 44px;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    border: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
    line-height: 1.2;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--c-brand);
    color: #fff;
    border-color: var(--c-brand);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--c-brand-dark);
    color: #fff;
    border-color: var(--c-brand-dark);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.btn--lg {
    min-height: 52px;
    padding: 0.85em 1.8em;
    font-size: 16px;
}

/* ---------- 5. Шапка ---------- */
.site-header {
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.topbar {
    background: var(--c-brand);
    color: #fff;
    font-size: 14px;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar__text {
    opacity: 0.95;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topbar__link,
.topbar__phone {
    color: #fff;
    opacity: 0.95;
    text-decoration: none;
    font-weight: 500;
}

.topbar__link:hover,
.topbar__phone:hover,
.topbar__link:focus-visible,
.topbar__phone:focus-visible {
    color: var(--c-gold);
    opacity: 1;
}

.header__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 84px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
}

.site-branding {
    flex: 0 0 auto;
    margin-right: auto;
}

.site-logo,
.site-logo--default {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--c-ink);
    text-decoration: none;
}

.site-logo__mark {
    flex: 0 0 auto;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-ink);
    letter-spacing: -0.01em;
}

.site-description {
    font-size: 13px;
    color: var(--c-mute);
    margin-top: 2px;
}

.primary-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.primary-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.primary-nav__list--empty {
    opacity: 0.6;
}

.primary-nav__item > a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--c-ink);
    font-weight: 500;
    transition: background var(--t-fast), color var(--t-fast);
}

.primary-nav__item > a:hover,
.primary-nav__item > a:focus-visible,
.primary-nav__item.current-menu-item > a {
    background: var(--c-brand-soft);
    color: var(--c-brand);
}

.primary-nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    position: absolute;
    min-width: 220px;
    display: none;
}

.primary-nav__item {
    position: relative;
}

.primary-nav__item:hover > .sub-menu,
.primary-nav__item:focus-within > .sub-menu {
    display: block;
}

.primary-nav .sub-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--c-ink);
}

.header__cta {
    flex: 0 0 auto;
}

.header__btn {
    min-height: 44px;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: var(--c-brand);
    color: #fff;
    border: 0;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
}

.menu-toggle__icon {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #fff;
    vertical-align: middle;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform var(--t-fast);
}

.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after  { top: 7px; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 58, 124, 0.55) 0%, rgba(7, 58, 124, 0.70) 60%, rgba(7, 58, 124, 0.85) 100%),
        linear-gradient(120deg, rgba(11, 78, 162, 0.55) 0%, rgba(58, 169, 224, 0.25) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    max-width: 880px;
}

.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(217, 164, 65, 0.95);
    color: var(--c-ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 18px;
}

.hero__title {
    font-size: clamp(32px, 6vw, 56px);
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.hero__desc {
    font-size: clamp(16px, 2.4vw, 20px);
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
    margin: 0 0 28px;
}

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

/* ---------- 7. Секции ---------- */
.section {
    padding: 64px 0;
}

.section--directions {
    background: var(--c-bg-soft);
}

.section__header {
    text-align: center;
    margin-bottom: 40px;
}

.section__title {
    font-size: clamp(24px, 4vw, 36px);
    margin: 0 0 8px;
    color: var(--c-ink);
}

.section__sub {
    color: var(--c-ink-soft);
    font-size: 17px;
    margin: 0;
}

.section__eyebrow {
    color: var(--c-gold);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.section__footer {
    text-align: center;
    margin-top: 36px;
}

/* ---------- 8. Сетки ---------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid--directions {
    grid-template-columns: repeat(3, 1fr);
}

.grid--articles {
    grid-template-columns: repeat(3, 1fr);
}

.grid--ships {
    grid-template-columns: repeat(2, 1fr);
    max-width: 920px;
    margin: 0 auto;
}

/* ---------- 9. Карточки ---------- */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--t), transform var(--t);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.card__media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--c-brand-soft);
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card__media img {
    transform: scale(1.03);
}

.card__body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.card__title {
    font-size: 20px;
    margin: 4px 0 12px;
    line-height: 1.3;
}

.card__title a {
    color: var(--c-ink);
}

.card__title a:hover,
.card__title a:focus-visible {
    color: var(--c-brand);
}

.card__external {
    font-size: 0.7em;
    margin-left: 4px;
    color: var(--c-gold);
    font-weight: 700;
}

.card__desc {
    color: var(--c-ink-soft);
    margin: 0 0 18px;
    flex: 1 1 auto;
    font-size: 15px;
}

.card__more {
    align-self: flex-start;
    color: var(--c-brand);
    font-weight: 600;
    margin-top: auto;
    position: relative;
}

.card__more:hover,
.card__more:focus-visible {
    color: var(--c-brand-dark);
}

.card__more::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--c-gold);
    transition: width var(--t-fast);
}

.card__more:hover::after,
.card__more:focus-visible::after {
    width: 100%;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--c-mute);
    margin-bottom: 10px;
}

.entry-meta a {
    color: var(--c-brand);
    font-weight: 500;
}

.entry-category a {
    display: inline-block;
    background: var(--c-brand-soft);
    color: var(--c-brand);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Превью с кликабельными ссылками */
.card__excerpt {
    color: var(--c-ink-soft);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 14px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.card__excerpt a {
    color: var(--c-brand);
    text-decoration: underline;
    text-decoration-color: rgba(11, 78, 162, 0.35);
    text-underline-offset: 3px;
    transition: color var(--t-fast), text-decoration-color var(--t-fast);
}

.card__excerpt a:hover,
.card__excerpt a:focus-visible {
    color: var(--c-brand-dark);
    text-decoration-color: var(--c-gold);
}

.fallback-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- 10. О блоге ---------- */
.section--about {
    background: #fff;
}

.about__inner {
    max-width: 880px;
    margin: 0 auto;
}

.about__lead {
    font-size: 19px;
    color: var(--c-ink);
    font-weight: 500;
    margin-bottom: 16px;
}

.about__body p {
    color: var(--c-ink-soft);
    font-size: 16px;
}

/* ---------- 11. Преимущества (Что входит) ---------- */
.features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.features__item {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    border: 1px solid var(--c-line);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color var(--t), box-shadow var(--t);
}

.features__item:hover {
    border-color: var(--c-brand-light);
    box-shadow: var(--shadow);
}

.features__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-brand-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.features__title {
    font-size: 17px;
    margin: 0 0 6px;
    color: var(--c-ink);
}

.features__text {
    margin: 0;
    color: var(--c-ink-soft);
    font-size: 14px;
}

/* ---------- 12. Записи — single ---------- */
.entry {
    background: #fff;
}

.entry__head {
    padding-top: 32px;
    padding-bottom: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.entry__title {
    font-size: clamp(28px, 4.2vw, 44px);
    margin: 8px 0 0;
    line-height: 1.2;
    color: var(--c-ink);
}

.entry__hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.entry__hero img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.entry__content-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 40px;
}

.entry__content {
    font-size: 17px;
    line-height: 1.75;
    color: var(--c-ink);
}

.entry__content h2 {
    font-size: 28px;
    margin-top: 1.5em;
    color: var(--c-brand-dark);
}

.entry__content h3 {
    font-size: 22px;
    margin-top: 1.3em;
}

.entry__content a {
    color: var(--c-brand);
    text-decoration: underline;
    text-decoration-color: rgba(11, 78, 162, 0.35);
    text-underline-offset: 3px;
}

.entry__content a:hover,
.entry__content a:focus-visible {
    color: var(--c-brand-dark);
    text-decoration-color: var(--c-gold);
}

.entry__content img {
    border-radius: var(--radius);
    margin: 1.5em 0;
}

.entry__content figure {
    margin: 1.5em 0;
}

.entry__content figcaption {
    font-size: 14px;
    color: var(--c-mute);
    text-align: center;
    margin-top: 8px;
}

.entry__content ul,
.entry__content ol {
    padding-left: 1.6em;
}

.entry__content .wp-block-button__link {
    background: var(--c-brand);
    color: #fff;
    padding: 0.7em 1.4em;
    border-radius: 999px;
    text-decoration: none;
}

.entry__content .wp-block-button__link:hover {
    background: var(--c-brand-dark);
}

.entry__content .alignwide {
    margin-left: calc(-1 * min(120px, 5vw));
    margin-right: calc(-1 * min(120px, 5vw));
    max-width: calc(100% + min(240px, 10vw));
}

.entry__content .alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.entry__footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
}

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

.entry__tags-label {
    color: var(--c-mute);
    font-weight: 600;
}

.entry__tag {
    background: var(--c-brand-soft);
    color: var(--c-brand);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
}

/* ---------- 13. Хлебные крошки ---------- */
.breadcrumbs {
    color: var(--c-mute);
    font-size: 14px;
}

.breadcrumbs__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
}

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

.breadcrumbs__item + .breadcrumbs__item::before {
    content: "›";
    margin-right: 8px;
    color: var(--c-mute);
}

.breadcrumbs__item a {
    color: var(--c-brand);
}

.breadcrumbs__item[aria-current="page"] {
    color: var(--c-ink-soft);
}

/* ---------- 14. Пагинация ---------- */
.pagination {
    margin: 40px 0 0;
    display: flex;
    justify-content: center;
}

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

.nav-links a,
.nav-links span {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--c-line);
    color: var(--c-ink);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: var(--c-brand);
    color: #fff;
    border-color: var(--c-brand);
}

.nav-links .current {
    background: var(--c-brand);
    color: #fff;
    border-color: var(--c-brand);
}

/* ---------- 15. Похожие записи ---------- */
.post-navigation {
    border-top: 1px solid var(--c-line);
    padding-top: 32px;
    padding-bottom: 32px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.post-navigation .nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation .nav-links > div {
    flex: 1 1 0;
    max-width: 48%;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.post-navigation .nav-links > div:hover {
    border-color: var(--c-brand-light);
}

.post-navigation .nav-sub {
    display: block;
    font-size: 13px;
    color: var(--c-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    color: var(--c-brand);
}

.post-navigation .nav-next {
    text-align: right;
    margin-left: auto;
}

/* ---------- 16. Комментарии ---------- */
.comments-area {
    max-width: 820px;
    margin: 0 auto;
    padding: 32px 20px;
}

.comments-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.comment-list .comment-body {
    background: var(--c-bg-soft);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid var(--c-line);
}

.comment-form .submit {
    background: var(--c-brand);
    color: #fff;
    border: 0;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--c-brand-dark);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    margin-bottom: 10px;
}

/* ---------- 17. Подвал ---------- */
.site-footer {
    background: var(--c-brand-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: 56px 0 0;
    margin-top: 64px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--c-gold);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.site-footer__title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.site-footer__about {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0 0 14px;
}

.site-footer__site-link {
    font-weight: 600;
}

.site-footer__heading {
    color: #fff;
    font-size: 16px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__list li {
    margin-bottom: 8px;
    font-size: 14px;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__bottom a:hover,
.site-footer__bottom a:focus-visible {
    color: var(--c-gold);
}

/* ---------- 18. Поиск ---------- */
.search-form__row {
    display: flex;
    gap: 8px;
    margin: 0 auto;
    max-width: 520px;
}

.search-form__input {
    flex: 1 1 auto;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
}

.search-404 {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
}

.search-404 .search-form {
    margin-bottom: 20px;
}

.section--search .section__title span,
.section--blog .section__title {
    margin: 0;
}

/* ---------- 19. 404 ---------- */
.section--404 {
    padding: 80px 0;
    text-align: center;
}

.section--404 .section__eyebrow {
    font-size: 64px;
    color: var(--c-brand-light);
    font-weight: 800;
    margin-bottom: 0;
}

/* ---------- 20. Архив description ---------- */
.archive-description {
    text-align: center;
    color: var(--c-ink-soft);
    font-size: 17px;
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- 21. Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* =========================================================
 * 22. Адаптивность
 * ========================================================= */

/* 1280px */
@media (max-width: 1280px) {
    .grid--articles,
    .grid--directions {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 1024px */
@media (max-width: 1024px) {
    .grid--articles,
    .grid--directions {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--ships {
        grid-template-columns: 1fr;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer__inner {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
    .site-footer__col:last-child {
        grid-column: 1 / -1;
    }
}

/* 768px */
@media (max-width: 768px) {
    .header__inner {
        gap: 12px;
    }
    .primary-nav {
        order: 4;
        flex: 1 1 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--t);
    }
    .primary-nav.is-open {
        max-height: 700px;
        overflow: auto;
    }
    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0;
        border-top: 1px solid var(--c-line);
    }
    .primary-nav__item > a {
        display: block;
        padding: 14px 12px;
        border-radius: 0;
    }
    .primary-nav .sub-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 16px;
        background: var(--c-bg-soft);
    }
    .menu-toggle {
        display: inline-flex;
    }
    .header__cta {
        margin-left: auto;
    }
    .header__btn {
        padding: 0.6em 1em;
        font-size: 14px;
    }
    .section {
        padding: 48px 0;
    }
    .hero {
        min-height: 480px;
    }
    .hero__content {
        padding: 64px 20px;
    }
    .site-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .site-footer__col:first-child {
        grid-column: 1 / -1;
    }
}

/* 480px */
@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    .topbar__inner {
        font-size: 13px;
    }
    .topbar__right {
        gap: 12px;
    }
    .grid--articles,
    .grid--directions {
        grid-template-columns: 1fr;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .site-footer__inner {
        grid-template-columns: 1fr;
    }
    .hero__title {
        font-size: 32px;
    }
    .hero__desc {
        font-size: 16px;
    }
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero__actions .btn {
        width: 100%;
    }
    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
    .post-navigation .nav-links {
        flex-direction: column;
    }
    .post-navigation .nav-links > div {
        max-width: 100%;
        text-align: left;
    }
    .post-navigation .nav-next {
        text-align: left;
    }
    .section__title {
        font-size: 24px;
    }
    .entry__title {
        font-size: 26px;
    }
    .entry__content {
        font-size: 16px;
    }
}

/* 375px и ниже */
@media (max-width: 375px) {
    .header__inner {
        flex-wrap: wrap;
    }
    .site-branding {
        flex: 1 1 60%;
    }
    .header__cta {
        flex: 0 0 auto;
    }
    .menu-toggle {
        order: 3;
    }
    .site-title {
        font-size: 18px;
    }
    .site-description {
        font-size: 12px;
    }
}

/* 320px — критический минимум */
@media (max-width: 320px) {
    .topbar {
        font-size: 12px;
    }
    .hero__title {
        font-size: 26px;
    }
    .hero__eyebrow {
        font-size: 11px;
    }
    .btn {
        font-size: 14px;
    }
    .card__body {
        padding: 16px;
    }
}
