/*
Theme Name: dds_quickbetterbooks.com
Author: Светлана Корнеева
Description: Тема для информационного сайта о бухгалтерских программах и поддержке. Японский минимализм с лавандовым акцентом.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: qbbooks
*/

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

:root {
    --bg: #F5F3F7;
    --bg-alt: #F0EDF5;
    --dark: #1E1B2E;
    --panel: #FDFCFF;
    --ink: #1A1729;
    --accent: #7C6DF0;
    --accent-soft: #B8A9F5;
    --muted: #9A94A8;
    --hard-shadow: rgba(214, 207, 229, 0.4);
    --line: #E8E2F0;
    --sans: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Lora", "Source Serif Pro", 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(--bg);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

p {
    margin: 0 0 1.1em;
}

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

h1 {
    font-size: 3.2rem;
    letter-spacing: 0.02em;
}

h2 {
    font-size: 1.85rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.12rem;
}

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: var(--bg-alt);
    border-left: 4px solid var(--accent);
    font-style: italic;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.96rem;
}

table, th, td {
    border: 1px solid var(--line);
}

th, td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

/* Квадратная точка перед H2/H3 в текстовом контенте */
.entry-body h2::before,
.entry-body h3::before,
.sec-head h2::before,
.sec-head h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    background: var(--accent);
    vertical-align: 0.08em;
}

/* =========================================================
   2. Контейнер, полоса сверху, ссылки, кнопки
   ========================================================= */

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

.topline {
    height: 4px;
    background: var(--accent);
}

.text-link,
.entry-body a,
.side-block a,
.trail a {
    position: relative;
    color: var(--ink);
}

.entry-body a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.24s ease;
}

.entry-body a:hover::after,
.text-link:hover::after {
    transform: scaleX(1);
}

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.7rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: filter 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    filter: brightness(1.12);
    box-shadow: inset 0 1px 6px rgba(255, 255, 255, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--accent);
}

.btn-ghost:hover {
    background: rgba(124, 109, 240, 0.2);
    filter: none;
    box-shadow: none;
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-soft);
}

.btn-ghost-light:hover {
    background: rgba(184, 169, 245, 0.2);
    filter: none;
    box-shadow: none;
}

/* Заголовок секции: линия со смещением влево + квадратная точка на конце */
.sec-head {
    margin-bottom: 2.2rem;
}

.sec-head h2,
.sec-head .h2 {
    display: block;
    margin: 0;
    padding-bottom: 1.1rem;
    text-align: left;
    letter-spacing: 0.01em;
    background-image:
        linear-gradient(rgba(124, 109, 240, 0.6), rgba(124, 109, 240, 0.6)),
        linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 58% 2px, 8px 8px;
    background-position: left bottom 9px, left 58% bottom 6px;
}

.sec-head p {
    margin: 1rem 0 0;
    color: var(--muted);
    max-width: 62ch;
}

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

.site-head {
    background: var(--dark);
    color: #fff;
    padding: 1.6rem 0;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

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

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

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

.brand-name {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.02em;
    display: block;
    max-width: 52ch;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #B4AEC6;
    max-width: 62ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent-soft);
    border-radius: 4px;
    color: #fff;
    font-family: var(--sans);
    font-size: 0.9rem;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

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

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    position: relative;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #EFEDF6;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.24s ease;
}

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

/* =========================================================
   4. Каркас страницы
   ========================================================= */

.page-body {
    padding: 3rem 0 4rem;
}

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

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

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

.trail {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--line);
}

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

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

.trail .sep {
    margin: 0 0.35rem;
    color: var(--accent-soft);
}

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

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: none;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--hard-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 10px 10px 0 rgba(198, 188, 222, 0.55);
}

.card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
    flex: 1;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

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

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

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

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

.post-meta {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    letter-spacing: 0.03em;
}

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

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

.meta-sep {
    margin: 0 0.3rem;
}

.card-excerpt {
    color: #4A4459;
    font-size: 0.98rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--sans);
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--accent);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

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

/* =========================================================
   6. Главная — секции
   ========================================================= */

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

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

/* 6.1 Hero */
.hero {
    background-color: var(--dark);
    background-image:
        repeating-linear-gradient(0deg, rgba(124, 109, 240, 0.1) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(124, 109, 240, 0.1) 0 1px, transparent 1px 40px);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 3.2rem;
    letter-spacing: 0.02em;
}

.hero p {
    color: #CFCADE;
    font-size: 1.06rem;
    max-width: 60ch;
    margin-bottom: 1.9rem;
}

.hero-figure {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.hero-figure svg {
    width: 100%;
    max-width: 340px;
    height: auto;
    filter: blur(0.4px);
}

/* 6.2 Пошаговый блок (таймлайн) */
.steps {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.2rem;
    position: relative;
    border-left: 1px solid rgba(124, 109, 240, 0.6);
}

.steps li {
    position: relative;
    margin-bottom: 2.2rem;
    padding-right: 1rem;
    min-width: 0;
}

.steps li:last-child {
    margin-bottom: 0;
}

.steps li::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    transform: translateX(-50%);
}

.steps h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
    max-width: 74ch;
}

/* 6.3 Статистика */
.stats-plate {
    padding: 3rem 2.4rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.55);
    background-image:
        linear-gradient(135deg, rgba(124, 109, 240, 0.15), rgba(184, 169, 245, 0.15));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

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

.stat-item {
    min-width: 0;
}

.stat-num {
    display: block;
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.01em;
}

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

.grid-paper {
    background-image:
        repeating-linear-gradient(0deg, rgba(232, 226, 240, 0.3) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(232, 226, 240, 0.3) 0 1px, transparent 1px 40px);
}

.blob-corner {
    position: relative;
}

.blob-corner::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.08;
    filter: blur(30px);
    pointer-events: none;
}

/* 6.4 Карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--panel);
    border-radius: 0;
    padding: 2rem 1.6rem;
    box-shadow: 4px 4px 0 var(--hard-shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.topic-tile:hover {
    background: rgba(124, 109, 240, 0.1);
    transform: translateY(-4px);
}

.topic-tile svg {
    display: block;
    margin-bottom: 1.2rem;
}

.topic-tile span {
    font-family: var(--sans);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

/* Лента последних записей на главной */
.front-latest .card-list {
    margin-bottom: 2rem;
}

.front-actions {
    margin-top: 2rem;
}

/* =========================================================
   7. Сайдбар
   ========================================================= */

.sidebar {
    min-width: 0;
}

.side-block {
    background: var(--panel);
    color: var(--ink);
    padding: 1.6rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: 5px 5px 0 var(--hard-shadow);
}

.side-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.8rem;
    color: var(--ink);
    background-image:
        linear-gradient(rgba(124, 109, 240, 0.6), rgba(124, 109, 240, 0.6)),
        linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 60% 2px, 8px 8px;
    background-position: left bottom 7px, left 60% bottom 4px;
}

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

.side-block li {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.96rem;
    color: var(--ink);
}

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

.side-block a {
    color: var(--ink);
}

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

.side-block .post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

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

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

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
}

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

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

.entry-body {
    font-size: 1.03rem;
}

.entry-body img {
    display: block;
    margin: 1.4em 0;
}

.entry-body h2 {
    margin-top: 1.8em;
}

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

.entry-tags {
    margin-top: 2rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
}

.entry-tags a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--line);
    font-family: var(--sans);
    font-size: 0.9rem;
}

.post-nav a {
    min-width: 0;
}

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

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

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

.pager .page-numbers {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

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

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

/* =========================================================
   10. Формы поиска и комментариев
   ========================================================= */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form label {
    flex: 1;
    min-width: 200px;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 0.98rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form .btn {
    flex: 0 0 auto;
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--line);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.comment-list ol.children {
    list-style: none;
    margin: 1.2rem 0 0;
    padding-left: 1.6rem;
    border-left: 2px solid var(--line);
}

.comment-item {
    background: var(--panel);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.2rem;
    box-shadow: 4px 4px 0 var(--hard-shadow);
}

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

.comment-author {
    font-family: var(--sans);
    font-weight: 700;
}

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

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

.comment-actions {
    margin-top: 0.6rem;
    font-family: var(--sans);
    font-size: 0.85rem;
}

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

.comment-respond {
    background: var(--bg-alt);
    padding: 1.8rem 1.8rem;
    border-radius: 6px;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-top: 0;
}

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

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.87rem;
    margin-bottom: 0.35rem;
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 1.7rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.comment-form .submit:hover {
    filter: brightness(1.12);
}

.comment-hold {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.site-foot {
    background: var(--dark);
    color: #D6D2E2;
    padding: 3.5rem 0 2rem;
    margin-top: 2rem;
}

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

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

.foot-block {
    margin-bottom: 1.6rem;
    color: #D6D2E2;
    font-size: 0.95rem;
}

.foot-title {
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    background-image:
        linear-gradient(rgba(184, 169, 245, 0.8), rgba(184, 169, 245, 0.8)),
        linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 55% 2px, 8px 8px;
    background-position: left bottom 7px, left 55% bottom 4px;
}

.foot-block p {
    color: #C4BFD4;
}

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

.foot-block li {
    margin-bottom: 0.7rem;
}

.foot-block a {
    color: #EDEAF6;
}

.foot-block a:hover {
    color: var(--accent-soft);
}

.foot-block .post-date {
    display: block;
    font-size: 0.78rem;
    color: #9F99B4;
}

.foot-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 169, 245, 0.2);
    font-family: var(--sans);
    font-size: 0.85rem;
    color: #A8A2BC;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: var(--dark);
    color: #E4E1EE;
    font-size: 0.9rem;
    border-top: 3px solid var(--accent);
}

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

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

/* =========================================================
   13. 404 и служебные
   ========================================================= */

.notice-block {
    background: var(--panel);
    padding: 2.2rem 2.2rem;
    box-shadow: 6px 6px 0 var(--hard-shadow);
}

.notice-block p:last-child {
    margin-bottom: 0;
}

.err-code {
    font-family: var(--sans);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 1rem;
}

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

/* =========================================================
   14. Адаптив
   ========================================================= */

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

    .hero h1 {
        font-size: 2.4rem;
    }

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

    .hero-figure {
        order: -1;
    }

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

    .layout-single {
        width: 100%;
    }

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

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

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

    .card-thumb-wrap {
        flex: 0 0 220px;
    }
}

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

    h1,
    .hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .entry-title {
        font-size: 1.85rem;
    }

    .page-title {
        font-size: 1.7rem;
    }

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.9rem;
        margin-top: 1rem;
    }

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

    .hero {
        padding: 3.2rem 0;
    }

    .card-inner {
        flex-direction: column;
    }

    .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;
    }

    .card-body {
        padding: 1.4rem 1.3rem;
    }

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

    .stats-plate {
        padding: 2rem 1.4rem;
    }

    .notice-block,
    .comment-respond {
        padding: 1.6rem 1.3rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
    }

    .steps {
        padding-left: 1.6rem;
    }

    .steps li::before {
        left: -1.6rem;
    }

    .blob-corner::after {
        width: 200px;
        height: 200px;
    }
}
