/**
 * theme-1631 — базовая типографика и layout.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-bg);
}

body.theme-1631 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.theme-1631 .site-main {
    flex: 1 0 auto;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    text-decoration: none;
}

.container {
    width: min(100% - 2 * var(--space-md), var(--container-max));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 1;
    background: #fbfaf7;
    border-bottom: 1px solid #e3ded3;
    box-shadow: none;
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
}

@media (min-width: 1024px) {
    .site-header__inner {
        flex-wrap: nowrap;
        gap: 32px;
    }
}

.site-branding {
    flex: 1 1 auto;
    min-width: 0;
}

.site-title {
    margin: 0;
    font-size: inherit;
    line-height: 1;
    font-weight: inherit;
}

.site-brand {
    display: inline-block;
    color: #1a1a18;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
}

.site-brand:hover {
    color: #1a1a18;
    opacity: 0.86;
}

@media (min-width: 1024px) {
    .site-brand {
        font-size: 26px;
    }
}

.site-description {
    display: none;
}

.site-header__menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 40px;
    padding: 0 14px;
    margin-left: auto;
    border-radius: 12px;
    border: 1px solid #d6d0c4;
    background: #fbfaf7;
    color: #1a1a18;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: none;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .site-header--js .site-header__menu-toggle {
        display: inline-flex;
    }
}

.site-header__menu-toggle:focus-visible {
    outline: 2px solid rgba(15, 110, 86, 0.35);
    outline-offset: 2px;
}

.site-header__menu {
    width: 100%;
    flex-basis: 100%;
    background: #fbfaf7;
}

@media (max-width: 1023px) {
    .site-header__menu {
        display: block;
        border-top: 1px solid #e3ded3;
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .site-header.site-header--js:not(.site-header--menu-open) .site-header__menu {
        display: none;
        border-top: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .site-header.site-header--js.site-header--menu-open .site-header__menu {
        display: block;
        border-top: 1px solid #e3ded3;
        padding-top: 12px;
        padding-bottom: 14px;
    }
}

@media (min-width: 1024px) {
    .site-header__menu {
        display: block;
        width: auto;
        flex-basis: auto;
        padding: 0;
        margin: 0;
        border: 0;
    }
}

.site-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .site-nav__list {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 28px;
    }
}

.site-nav__list a {
    position: relative;
    display: block;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #1a1a18;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
}

@media (min-width: 1024px) {
    .site-nav__list a {
        display: inline-block;
        padding-top: 6px;
        padding-bottom: 6px;
        color: #5f5c55;
        font-size: 16px;
        line-height: 1.4;
    }
}

.site-nav__list a:hover {
    color: #1a1a18;
}

.site-nav__list li.is-active > a,
.site-nav__list a[aria-current="page"] {
    color: #1a1a18;
}

@media (min-width: 1024px) {
    .site-nav__list li.is-active > a::after,
    .site-nav__list a[aria-current="page"]::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: #0f6e56;
    }
}

.site-main {
    padding-block: var(--space-2xl);
    min-height: 50vh;
}

.entry-header {
    margin-bottom: var(--space-lg);
}

.entry-title {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: var(--line-height-heading);
    font-weight: 600;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.site-footer__inner {
    padding-block: var(--space-lg);
}

.site-footer__copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.site-footer__copy a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: var(--space-sm) var(--space-md);
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.skip-link:focus {
    left: var(--space-md);
    top: var(--space-md);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.pagination {
    margin-top: var(--space-xl);
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

/* Страница «Политика конфиденциальности» (шаблон из темы) */
.t1631-privacy-policy h2 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

.t1631-privacy-policy p {
    margin: 0 0 1rem;
}

.t1631-privacy-policy ul {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.t1631-privacy-policy ul ul {
    margin: 0.35rem 0 0.5rem;
}

.t1631-privacy-policy li + li {
    margin-top: 0.25rem;
}
