/*
Theme Name: dds_lighthaustheme.com
Description: Тема для аналитического портала о PropTech-решениях для рынка недвижимости. Стеклянный швейцарский стиль: модульная сетка, полупрозрачные элементы, холодная сине-стальная палитра.
Author: Дмитрий Колесников
Version: 1.1
Text Domain: lhaus
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --dark: #0B1D33;
    --ink: #0F1C2E;
    --accent: #2F6FED;
    --aqua: #00C2A8;
    --muted: #6B7C93;
    --line: #D7E1EC;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 6px 24px rgba(15, 28, 46, 0.08);
    --shadow-up: 0 14px 34px rgba(15, 28, 46, 0.14);
    --radius: 12px;
    --font: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- сброс и база ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.7;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(47, 111, 237, 0.055) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(47, 111, 237, 0.055) 0 1px, transparent 1px 44px);
}

body::after {
    content: "";
    position: fixed;
    right: -50px;
    bottom: -40px;
    width: 520px;
    height: 420px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420'%3E%3Cg fill='none' stroke='%230F1C2E' stroke-width='7'%3E%3Cpath d='M50 205 L260 55 L470 205'/%3E%3Cpath d='M105 200 V365 H415 V200'/%3E%3Crect x='205' y='255' width='110' height='110'/%3E%3Cpath d='M205 310 H315 M260 255 V365'/%3E%3Cpath d='M150 240 h50 v50 h-50 z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

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

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

p {
    margin: 0 0 1.1em;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.7em;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.015em;
    color: var(--ink);
}

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.3em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: #fff;
    border-left: 4px solid var(--aqua);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--ink);
    font-size: 1.08rem;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.93em;
}

pre {
    overflow-x: auto;
    padding: 1.1rem 1.3rem;
    background: #0B1D33;
    color: #E6EEF7;
    border-radius: var(--radius);
}

table {
    width: 100%;
    margin: 0 0 1.4em;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: #fff;
}

th, td {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-weight: 700;
}

/* ---------- контейнер ---------- */

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

.site-main {
    position: relative;
    z-index: 1;
    display: block;
    padding: 2.6rem 0 3.4rem;
}

.topline {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--aqua) 100%);
}

/* ---------- ссылки с анимированным подчёркиванием ---------- */

.content-area a:not(.btn):not(.card-link),
.widget a,
.crumbs a,
.main-nav a {
    position: relative;
}

.content-area a:not(.btn):not(.card-link)::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.content-area a:not(.btn):not(.card-link):hover::after,
.crumbs a:hover::after {
    transform: scaleX(1);
}

/* ---------- кнопки ---------- */

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #06251F;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #06251F;
}

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

.btn-light:hover,
.btn-light:focus {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #06251F;
}

/* ---------- шапка ---------- */

.site-top {
    position: relative;
    z-index: 2;
    background: var(--dark);
    color: #E6EEF7;
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px);
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

.brand-logo {
    max-height: 56px;
    width: auto;
}

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

.brand-name {
    display: block;
    color: #fff;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    color: #90A6BF;
    font-size: 0.8rem;
    line-height: 1.45;
    max-width: 44ch;
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    color: #D6E2F0;
    font-size: 0.96rem;
    font-weight: 500;
}

.main-nav a::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 3px;
    background: var(--aqua);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #fff;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    transform: scaleX(1);
}

/* ---------- раскладки ---------- */

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

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

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

.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
}

/* ---------- хлебные крошки ---------- */

.crumbs {
    margin-bottom: 1.6rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.crumbs a {
    color: var(--muted);
}

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

.crumbs-sep {
    margin: 0 0.35rem;
    color: var(--aqua);
}

/* ---------- заголовки секций ---------- */

.sec-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
    font-size: 1.9rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 56px;
    height: 1px;
    background: var(--line);
}

.sec-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--aqua);
    box-shadow: 0 0 0 4px rgba(0, 194, 168, 0.16);
}

.page-title {
    margin-bottom: 1.4rem;
    font-size: 2.3rem;
}

.page-title-sub {
    margin: -0.6rem 0 2rem;
    color: var(--muted);
    max-width: 62ch;
}

/* ---------- карточки записей ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--aqua);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
    z-index: 2;
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}

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

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

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

.card-tag {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.7rem;
    padding: 0.22rem 0.62rem;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.card-tag.tone-steel {
    background: #E1E8F0;
    color: #3C4F66;
}

.card-tag.tone-indigo {
    background: #E0E7FB;
    color: #2A3F8F;
}

.card-tag.tone-aqua {
    background: #D6F4EF;
    color: #04786A;
}

.card-tag.tone-sky {
    background: #DCEEF9;
    color: #14607F;
}

.card-title {
    margin: 0 0 0.6rem;
    font-size: 1.18rem;
    line-height: 1.35;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--accent);
}

.card-excerpt {
    margin-bottom: 1rem;
    color: #3C4B5E;
    font-size: 0.95rem;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}

.card-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

.card-more:hover {
    color: var(--aqua);
}

/* ---------- пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.2rem 0 0;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pager .page-numbers:hover {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #06251F;
    transform: translateY(-2px);
}

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

.pager .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.pager .page-numbers.dots:hover {
    background: transparent;
    color: var(--muted);
    transform: none;
}

/* ---------- запись ---------- */

.entry-head {
    margin-bottom: 1.6rem;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.entry-thumb {
    margin-bottom: 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
}

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

.entry-content {
    font-size: 1.02rem;
}

.entry-content h2 {
    margin-top: 1.8em;
    font-size: 1.7rem;
}

.entry-content h3 {
    margin-top: 1.5em;
}

.entry-content img {
    border-radius: var(--radius);
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

/* ---------- комментарии ---------- */

.comments-block {
    margin-top: 2.6rem;
    padding: 1.8rem 1.8rem 2rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comments-title {
    font-size: 1.35rem;
}

.comment-list {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

.comment-list ul.children {
    margin: 1rem 0 0 1.4rem;
    padding: 0;
    list-style: none;
}

.comment-item {
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
}

.comment-date {
    color: var(--muted);
    font-size: 0.82rem;
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-reply a,
.comment-hold {
    font-size: 0.85rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea {
    min-height: 140px;
}

.comment-form .submit {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #06251F;
    transform: translateY(-2px);
}

/* ---------- форма поиска ---------- */

.search-form {
    display: flex;
    gap: 0.6rem;
    min-width: 0;
}

.search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.search-form .search-submit {
    flex: 0 0 auto;
    padding: 0.62rem 1.1rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-form .search-submit:hover {
    background: var(--aqua);
    border-color: var(--aqua);
    color: #06251F;
}

/* ---------- виджеты ---------- */

.widget {
    margin-bottom: 1.8rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

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

.widget li {
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.93rem;
}

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

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--ink);
}

.sidebar .widget-title {
    color: var(--dark);
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--aqua);
}

.sidebar .widget a {
    color: var(--ink);
}

.sidebar .widget a:hover {
    color: var(--accent);
}

.sidebar .post-date,
.sidebar .widget .rss-date {
    color: var(--muted);
    font-size: 0.8rem;
}

/* ---------- подвал ---------- */

.site-foot {
    position: relative;
    z-index: 1;
    background: var(--dark);
    color: #C7D6E6;
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 12px);
}

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

.foot-col {
    min-width: 0;
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .widget .post-date {
    color: #C7D6E6;
}

.site-foot .widget-title {
    color: #FFFFFF;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.site-foot .widget li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.site-foot .widget a {
    color: #DCE8F4;
}

.site-foot .widget a:hover {
    color: var(--aqua);
}

.foot-bottom {
    padding: 1.1rem 0 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #8FA6BF;
    font-size: 0.85rem;
}

/* ---------- cookie-баннер ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(11, 29, 51, 0.96);
    border-top: 2px solid var(--aqua);
    color: #DCE8F4;
    font-size: 0.88rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 78ch;
}

.cookie-banner a {
    color: var(--aqua);
}

/* ---------- главная ---------- */

.front {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs {
    padding: 3rem 0;
    border-bottom: 1px solid var(--line);
}

.fs:last-child {
    border-bottom: none;
}

.fs-sep {
    height: 1px;
    margin: 0;
    background-image: linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
    background-size: 16px 1px;
    position: relative;
}

.fs-sep::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aqua);
}

/* hero */

.fs-hero {
    padding: 3.6rem 2.6rem;
    margin-top: 0.6rem;
    border: none;
    border-radius: 16px;
    background-color: var(--accent);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 11px),
        linear-gradient(120deg, #2F6FED 0%, #00C2A8 100%);
    color: #fff;
}

.fs-hero h1 {
    margin-bottom: 0.5rem;
    color: #fff;
    max-width: 20ch;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-glass {
    max-width: 62ch;
    margin: 1.6rem 0 1.8rem;
    padding: 1.4rem 1.6rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-glass p {
    margin: 0;
    font-size: 1.02rem;
    color: #F2F8FF;
}

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

/* статистика */

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

.stat-card {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--aqua);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: left;
}

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

.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

/* чек-лист */

.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    max-width: 78ch;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--line);
}

.checklist li:last-child {
    border-bottom: none;
}

.check-mark {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--aqua);
    color: #06251F;
    font-size: 0.8rem;
    font-weight: 800;
}

.check-body {
    min-width: 0;
}

.check-body b {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.02rem;
}

.check-body span {
    color: var(--muted);
    font-size: 0.94rem;
}

/* карта тем */

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

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-tile:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
}

.topic-icon {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 0.9rem;
    color: var(--accent);
    transition: color 0.25s ease;
}

.topic-tile:hover .topic-icon {
    color: #fff;
}

.topic-tile b {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.08rem;
}

.topic-tile span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.25s ease;
}

.topic-tile:hover span {
    color: rgba(255, 255, 255, 0.88);
}

.fs-alt {
    background: var(--bg-alt);
    border-radius: 16px;
    padding: 2.8rem 2.4rem;
    border-bottom: none;
}

.front-more {
    margin-top: 2rem;
    text-align: center;
}

/* ---------- 404 ---------- */

.err-box {
    padding: 2.4rem 2.2rem;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.err-code {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
}

.err-box .search-form {
    margin: 1.4rem 0;
    max-width: 480px;
}

/* ---------- прочее ---------- */

.notice-empty {
    padding: 1.6rem 1.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

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

.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-text {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
    h1 {
        font-size: 2.4rem;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .layout-single,
    .front {
        width: 100%;
    }

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

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

    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        flex: 1 1 100%;
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav a {
        display: block;
        padding: 0.6rem 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

    .sec-title {
        font-size: 1.45rem;
        gap: 0.7rem;
    }

    .sec-title::before {
        flex-basis: 26px;
    }

    .fs {
        padding: 2.2rem 0;
    }

    .fs-hero {
        padding: 2.2rem 1.4rem;
    }

    .fs-alt {
        padding: 1.9rem 1.4rem;
    }

    .hero-glass {
        padding: 1.1rem 1.2rem;
    }

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

    .stat-card {
        padding: 1.2rem 1.2rem;
    }

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

    .topic-tile {
        padding: 1.3rem 1.3rem;
    }

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

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

    .comments-block {
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .err-box {
        padding: 1.7rem 1.3rem;
    }

    .cookie-banner {
        padding: 0.9rem 1.1rem;
    }

    .blockquote,
    blockquote {
        padding: 1.1rem 1.2rem;
    }

    body::after {
        width: 320px;
        height: 260px;
    }
}
