/*
Theme Name: dds_lasireneabarbe.com
Author: Мария Ветрова
Description: Тема для научно-практического портала о доказательных исследованиях юмора и клинических инструментах смехотерапии. Дизайн «Лабораторный минимализм»: холодная стерильная палитра, инженерная типографика, графичные тени.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: smehlab
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --paper: #F4F7F9;
    --paper-alt: #EAF0F6;
    --steel: #0B1E2D;
    --ink: #1A2B3C;
    --accent: #E63946;
    --accent2: #4A90E2;
    --muted: #6D7E8F;
    --white: #FFFFFF;
    --hair: rgba(11, 30, 45, 0.14);
    --card-shadow: 6px 6px 0 rgba(11, 30, 45, 0.15);
    --card-shadow-hover: 8px 8px 0 rgba(11, 30, 45, 0.22);
    --font-head: "Futura", "Avenir Next", "Century Gothic", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --font-body: "Charter", "Literata", Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image:
        radial-gradient(rgba(26, 43, 60, 0.08) 1px, transparent 1.2px),
        radial-gradient(rgba(74, 144, 226, 0.08) 1px, transparent 1.2px);
    background-size: 78px 78px, 53px 53px;
    background-position: 0 0, 29px 41px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--steel);
    line-height: 1.14;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.3rem, 7.2vw, 4.2rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.3rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1.15em;
}

a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--muted);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.16s linear, text-decoration-thickness 0.16s linear;
}

a:hover,
a:focus {
    text-decoration-thickness: 2px;
    text-decoration-color: var(--accent2);
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 60;
    background: var(--accent);
    color: var(--white);
    padding: 0.6rem 1rem;
}

/* =========================================================
   2. Кнопки, заголовки секций, декор
   ========================================================= */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.72rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.14s linear, color 0.14s linear;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
}

.btn-light {
    border-color: var(--white);
    color: var(--white);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--white);
    color: var(--steel);
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 72px;
    height: 2px;
    background: var(--accent2);
}

.sec-kicker {
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.xray {
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%) 1;
}

.gap-line {
    display: block;
    width: 100%;
    height: 26px;
    opacity: 0.55;
}

/* =========================================================
   3. Шапка
   ========================================================= */

.top {
    position: relative;
    background: var(--steel);
    color: #DCE6EE;
    border-bottom: 2px solid rgba(74, 144, 226, 0.35);
}

.top::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(74, 144, 226, 0.22), rgba(74, 144, 226, 0) 68%);
    pointer-events: none;
}

.top-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0 1.4rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo,
.brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--white);
    max-width: 46ch;
}

.brand-tag {
    display: none;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #92A9BC;
    max-width: 62ch;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 2px solid rgba(220, 230, 238, 0.4);
    border-radius: 4px;
    color: #DCE6EE;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
    color: var(--white);
}

.nav-bars {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.nav-bars::before,
.nav-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-bars::before {
    top: -6px;
}

.nav-bars::after {
    top: 6px;
}

.main-nav[hidden] {
    display: none !important;
}

.main-nav {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 1.1rem;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.main-nav a {
    display: block;
    padding: 0.6rem 0;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #DCE6EE;
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 230, 238, 0.12);
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--white);
    border-bottom-color: var(--accent);
}

/* =========================================================
   4. Хлебные крошки
   ========================================================= */

.trail {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 1.3rem 0 0;
}

.trail a {
    color: var(--muted);
    text-decoration-color: rgba(109, 126, 143, 0.5);
}

.trail a:hover {
    color: var(--ink);
}

.trail-sep {
    color: var(--accent2);
    margin: 0 0.25rem;
}

/* =========================================================
   5. Раскладки
   ========================================================= */

.layout {
    padding: 2rem 0 4rem;
}

.layout-single .content-area {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: block;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
    margin-top: 2.6rem;
}

.page-head {
    margin-bottom: 2rem;
}

.page-head h1 {
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    margin-bottom: 0.4rem;
}

.page-head .page-sub {
    color: var(--muted);
    margin: 0;
}

/* =========================================================
   6. Карточки записей
   ========================================================= */

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.16s linear, transform 0.16s linear;
    min-width: 0;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
}

.card-thumb-wrap {
    position: static;
    overflow: hidden;
    background: var(--paper-alt);
    min-width: 0;
}

.card-thumb-wrap a {
    display: block;
    position: static;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.7rem 1.7rem;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.card-meta a {
    color: var(--accent2);
    text-decoration-color: rgba(74, 144, 226, 0.4);
}

.meta-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    margin: 0 0.35rem 0.1rem;
    vertical-align: middle;
}

.card-title {
    font-size: 1.28rem;
    margin: 0 0 0.6rem;
}

.card-title a {
    text-decoration: none;
    color: var(--steel);
}

.card-title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--accent2);
}

.card-excerpt {
    color: #3A4C5D;
    font-size: 0.98rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin-top: auto;
    padding-top: 1rem;
}

/* =========================================================
   7. Пагинация
   ========================================================= */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.8rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--hair);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.14s linear, color 0.14s linear, border-color 0.14s linear;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    min-width: 24px;
    padding-left: 0;
    padding-right: 0;
}

/* =========================================================
   8. Запись и страница
   ========================================================= */

.entry {
    background: var(--white);
    box-shadow: var(--card-shadow);
    padding: 2rem 1.6rem 2.4rem;
}

.entry-head {
    margin-bottom: 1.6rem;
    padding-bottom: 1.4rem;
    border-bottom: 2px solid var(--paper-alt);
}

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.8rem;
}

.entry-meta a {
    color: var(--accent2);
}

.entry-thumb {
    margin: 0 0 1.8rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.9em;
    position: relative;
}

.entry-content h2 {
    padding-left: 1.1rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 5px;
    height: 0.72em;
    background: var(--accent);
}

.entry-content ul,
.entry-content ol {
    padding-left: 0;
    margin: 0 0 1.3em;
}

.entry-content ul {
    list-style: none;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5em;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    background: var(--accent);
    transform: translateY(-2px);
}

.entry-content ol {
    padding-left: 1.4rem;
}

.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.5rem;
    background: var(--paper-alt);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%) 1;
    font-size: 1.06rem;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content img {
    display: block;
    height: auto;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: 0.95rem;
    border: 1px solid var(--hair);
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--hair);
    padding: 0.7rem 0.8rem;
    text-align: left;
}

.entry-content th {
    background: var(--paper-alt);
    font-family: var(--font-head);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.entry-tags {
    margin-top: 2rem;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
}

.entry-nav a {
    display: block;
    background: var(--white);
    box-shadow: var(--card-shadow);
    padding: 1rem 1.2rem;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--steel);
}

.entry-nav a:hover {
    box-shadow: var(--card-shadow-hover);
}

.entry-nav span {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent2);
    margin-bottom: 0.3rem;
}

/* =========================================================
   9. Комментарии
   ========================================================= */

.talk {
    margin-top: 2.6rem;
    background: var(--white);
    box-shadow: var(--card-shadow);
    padding: 1.8rem 1.6rem 2rem;
}

.talk-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.talk-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    border-left: 2px solid var(--paper-alt);
}

.talk-item {
    margin-bottom: 1.4rem;
}

.talk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.7rem;
    margin-bottom: 0.4rem;
}

.talk-author {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--steel);
}

.talk-date,
.talk-hold {
    font-size: 0.8rem;
    color: var(--muted);
}

.talk-text p {
    margin: 0 0 0.7em;
}

.talk-actions {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.talk-actions a {
    color: var(--accent);
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 2px solid var(--hair);
    border-radius: 4px;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent2);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.72rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--accent);
    color: var(--white);
}

/* =========================================================
   10. Форма поиска
   ========================================================= */

.searchform {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.searchform input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--hair);
    border-radius: 4px;
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
}

.searchform input[type="search"]:focus {
    outline: none;
    border-color: var(--accent2);
}

.searchform button {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 1.1rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

.searchform button:hover {
    background: var(--accent);
    color: var(--white);
}

/* =========================================================
   11. Виджеты — боковая колонка
   ========================================================= */

.sidebar .widget {
    background: var(--white);
    box-shadow: var(--card-shadow);
    padding: 1.4rem 1.4rem 1.5rem;
    margin-bottom: 1.8rem;
    color: var(--ink);
}

.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1rem;
}

.sidebar .widget-title::before {
    content: "";
    flex: 0 0 26px;
    height: 2px;
    background: var(--accent2);
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li {
    position: relative;
    padding: 0 0 0.7rem 1.2rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid var(--paper-alt);
    font-size: 0.96rem;
}

.sidebar .widget li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: translateY(-2px);
}

.sidebar .widget a {
    color: var(--ink);
    text-decoration-color: rgba(109, 126, 143, 0.45);
}

.sidebar .widget a:hover {
    text-decoration-color: var(--accent2);
}

.sidebar .widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.sidebar .widget p {
    color: #3A4C5D;
    font-size: 0.96rem;
}

/* =========================================================
   12. Подвал
   ========================================================= */

.bottom {
    position: relative;
    margin-top: 3rem;
    background: var(--steel);
    color: #C7D5E0;
}

.bottom::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}

.bottom-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding: 3rem 0 2.4rem;
}

.bottom .widget {
    min-width: 0;
    color: #C7D5E0;
}

.bottom .widget-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1rem;
}

.bottom .widget-title::before {
    content: "";
    flex: 0 0 24px;
    height: 2px;
    background: var(--accent);
}

.bottom .widget p {
    color: #A8BCCB;
    font-size: 0.94rem;
}

.bottom .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bottom .widget li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 0.94rem;
}

.bottom .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--accent2);
    transform: translateY(-2px);
}

.bottom .widget a {
    color: #DCE6EE;
    text-decoration-color: rgba(220, 230, 238, 0.35);
}

.bottom .widget a:hover {
    color: var(--white);
    text-decoration-color: var(--accent);
}

.bottom .widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #92A9BC;
}

.copyright {
    border-top: 1px solid rgba(220, 230, 238, 0.16);
    padding: 1.4rem 0 2rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: #92A9BC;
}

/* =========================================================
   13. Cookie-баннер
   ========================================================= */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: var(--steel);
    color: #DCE6EE;
    border-top: 2px solid var(--accent);
    padding: 1.1rem 1.4rem;
    font-size: 0.92rem;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 260px;
    min-width: 0;
}

.cookie-banner a {
    color: #DCE6EE;
}

.cookie-banner .btn {
    border-color: var(--accent);
    color: var(--white);
}

.cookie-banner .btn:hover {
    background: var(--accent);
}

/* =========================================================
   14. Главная страница
   ========================================================= */

.front-wrap {
    display: block;
}

.front-section {
    position: relative;
    padding: 3.4rem 0;
}

.front-section .shell {
    position: relative;
    z-index: 2;
}

.front-alt {
    background: var(--paper-alt);
}

.blob {
    position: absolute;
    top: -40px;
    right: -70px;
    width: 300px;
    height: 300px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

/* --- Hero --- */

.fs-hero {
    background: var(--steel);
    color: #DCE6EE;
    padding: 3.2rem 0 4.6rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 42px), 0 100%);
}

.fs-hero .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.fs-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.hero-lead {
    color: #A8BCCB;
    font-size: 1.06rem;
    max-width: 58ch;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* --- Статистика --- */

.stat-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.stat-cell {
    min-width: 0;
    padding: 1.2rem 1.4rem;
    background: var(--white);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%) 1;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    line-height: 1;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.stat-note {
    margin-top: 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
    max-width: 74ch;
}

/* --- Таймлайн --- */

.tline {
    position: relative;
    padding-left: 2.2rem;
}

.tline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--accent2);
}

.tline-item {
    position: relative;
    padding-bottom: 2.2rem;
}

.tline-item:last-child {
    padding-bottom: 0;
}

.tline-item::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--paper);
    border: 3px solid var(--accent);
    transform: translateX(0);
}

.tline-year {
    display: block;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--steel);
    letter-spacing: -0.02em;
}

.tline-body {
    position: relative;
    z-index: 2;
}

.tline-body h3 {
    margin: 0.35rem 0 0.4rem;
    font-size: 1.1rem;
}

.tline-body p {
    margin: 0;
    color: #3A4C5D;
    font-size: 0.98rem;
    max-width: 70ch;
}

.tline-ghost {
    position: absolute;
    right: 0;
    top: -0.6rem;
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(26, 43, 60, 0.07);
    z-index: 1;
    pointer-events: none;
}

/* --- Рубрикатор «пробирки» --- */

.tubes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.tube {
    display: block;
    min-width: 0;
    background: var(--white);
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow 0.16s linear;
}

.tube:hover {
    box-shadow: var(--card-shadow-hover);
    text-decoration: none;
}

.tube-neck {
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 1.3rem;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}

.tube-1 .tube-neck {
    background: var(--accent);
}

.tube-2 .tube-neck {
    background: var(--accent2);
}

.tube-3 .tube-neck {
    background: var(--muted);
}

.tube-body {
    display: block;
    padding: 1.4rem 1.4rem 1.6rem;
}

.tube-title {
    display: block;
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--steel);
}

.tube-desc {
    display: block;
    color: #3A4C5D;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tube-more {
    display: inline-block;
    margin-top: 1rem;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- Лента последних записей на главной --- */

.fs-latest .front-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.front-head .btn {
    flex: 0 0 auto;
}

.fs-cta {
    background: var(--steel);
    color: #DCE6EE;
    padding: 2.6rem 1.6rem;
    border-radius: 4px;
    background-image: repeating-linear-gradient(115deg, rgba(74, 144, 226, 0.05) 0 26px, rgba(74, 144, 226, 0) 26px 74px);
}

.fs-cta h2 {
    color: var(--white);
}

.fs-cta p {
    color: #A8BCCB;
    max-width: 68ch;
}

.empty-note {
    background: var(--white);
    box-shadow: var(--card-shadow);
    padding: 1.6rem 1.6rem;
}

/* =========================================================
   15. 404
   ========================================================= */

.err-box {
    background: var(--white);
    box-shadow: var(--card-shadow);
    padding: 2.2rem 1.7rem 2.4rem;
    text-align: left;
}

.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(26, 43, 60, 0.12);
    letter-spacing: -0.04em;
}

.err-box .searchform {
    margin: 1.4rem 0 1.6rem;
    max-width: 460px;
}

/* =========================================================
   16. Брейкпоинты
   ========================================================= */

@media (max-width: 600px) {
    .front-section {
        padding: 2.4rem 0;
    }

    .fs-cta {
        padding: 1.9rem 1.3rem;
    }

    .entry,
    .talk,
    .err-box {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .tline-ghost {
        display: none;
    }
}

@media (min-width: 601px) {
    .stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .entry,
    .talk,
    .err-box {
        padding: 2.4rem 2.2rem 2.6rem;
    }

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

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

@media (min-width: 721px) {
    .card {
        flex-direction: row;
    }

    .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
    }

    .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }
}

@media (min-width: 961px) {
    body {
        font-size: 17.5px;
    }

    .brand-tag {
        display: block;
    }

    .brand-name {
        font-size: 1.12rem;
    }

    .top-inner {
        padding: 1.9rem 0 1.7rem;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav[hidden] {
        display: block !important;
    }

    .main-nav {
        width: auto;
        flex: 0 0 auto;
        padding-bottom: 0;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 1.6rem;
        align-items: center;
    }

    .main-nav a {
        padding: 0.3rem 0;
        border-bottom: 2px solid transparent;
    }

    .layout {
        padding: 2.4rem 0 5rem;
    }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }

    .sidebar {
        margin-top: 0;
    }

    .front-section {
        padding: 4.6rem 0;
    }

    .fs-hero {
        padding: 4.6rem 0 6rem;
    }

    .fs-hero .hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 3rem;
    }

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

    .stat-cell {
        border-left: 1px solid rgba(74, 144, 226, 0.45);
        border-image: none;
        padding: 0.4rem 1.6rem;
    }

    .stat-cell:first-child {
        border-left: 4px solid transparent;
        border-image: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%) 1;
    }

    .stat-row .stat-cell {
        background: transparent;
    }

    .stat-num {
        font-size: 3rem;
    }

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

    .tline {
        padding-left: 3rem;
    }

    .tline-item::before {
        left: -3rem;
    }

    .tline::before {
        left: 7px;
    }

    .fs-cta {
        padding: 3.2rem 3rem;
    }

    .bottom-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3rem;
    }
}

/* =========================================================
   17. Служебное
   ========================================================= */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.sticky .card-title::after {
    content: " ■";
    color: var(--accent);
}
