/*
Theme Name: dds_ieltstesthub.com
Author: Анна Соколова
Description: Информационная тема для портала о подготовке к IELTS, обучении за рубежом и жилищном вопросе. Скандинавский минимализм, холодная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: routehome
*/

:root {
    --bg: #F7F9FB;
    --bg-alt: #EAF0F5;
    --head-bg: #FFFFFF;
    --line: #D8E2EA;
    --foot-bg: #1B2A3A;
    --aside-bg: #F0F4F8;
    --ink: #1B2A3A;
    --accent: #2F80ED;
    --accent-dark: #1F6FD0;
    --accent-soft: #56CCF2;
    --muted: #6B7C8C;
    --shell: min(92%, 1180px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, #EAF0F5 0, #EAF0F5 1px, transparent 1px, transparent 24px);
    color: var(--ink);
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: 2%;
    bottom: 3%;
    width: 320px;
    height: 320px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%232F80ED' stroke-width='3'%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Ccircle cx='100' cy='100' r='66'/%3E%3Cpath d='M100 12v18M100 170v18M12 100h18M170 100h18'/%3E%3Cpath d='M136 64 110 110 64 136l26-46z'/%3E%3Ccircle cx='100' cy='100' r='6'/%3E%3C/svg%3E");
}

@media (max-width: 960px) {
    body::after {
        display: none;
    }
}

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

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

.entry-body a,
.widget a,
.crumbs a,
.site-desc a {
    position: relative;
}

.entry-body a::after,
.widget a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 1px;
    background: var(--accent-soft);
    transition: right 0.25s ease;
}

.entry-body a:hover::after,
.widget a:hover::after {
    right: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.7em;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.6em 0;
    padding: 0.2em 0 0.2em 1.4rem;
    border-left: 2px solid var(--accent-soft);
    color: #23384C;
    font-size: 1.05rem;
}

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

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

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

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

pre {
    background: var(--bg-alt);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
}

/* ---------- Контейнеры и раскладки ---------- */

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

.layout-single {
    display: block;
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 4rem;
}

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

/* ---------- Верхняя полоса и шапка ---------- */

.top-strip {
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.site-head {
    position: relative;
    z-index: 2;
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
    position: static;
}

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

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

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

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

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

.site-name {
    display: block;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
    max-width: 44ch;
}

.site-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 58ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.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 {
    display: inline-block;
    color: var(--ink);
    font-size: 0.98rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

.btn {
    display: inline-block;
    border-radius: 6px;
    padding: 0.72rem 1.5rem;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-fill {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-fill:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}

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

.btn-line:hover {
    background: rgba(47, 128, 237, 0.08);
    color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}

.btn-light {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}

.btn-light:hover {
    background: #fff;
    color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 42, 58, 0.25);
}

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

.btn-ghost-light:hover {
    background: #fff;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(27, 42, 58, 0.25);
}

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

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

.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

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

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1.2rem 0 0;
}

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

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

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(27, 42, 58, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(27, 42, 58, 0.1);
    border-color: rgba(47, 128, 237, 0.3);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-alt);
}

.card-thumb-blank {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #EAF0F5 0%, #F7F9FB 100%);
    position: relative;
}

.card-thumb-blank::after {
    content: "";
    position: absolute;
    inset: 22% 32%;
    border: 2px solid rgba(47, 128, 237, 0.25);
    border-radius: 50%;
}

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

.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

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

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

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.card-excerpt {
    color: #33485C;
    font-size: 0.96rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.tag {
    display: inline-block;
    border-radius: 4px;
    padding: 0.15rem 0.55rem;
    font-size: 0.76rem;
    line-height: 1.6;
}

.tag.tone-1 {
    background: rgba(47, 128, 237, 0.1);
    color: #1F6FD0;
}

.tag.tone-2 {
    background: rgba(86, 204, 242, 0.14);
    color: #1F7E9B;
}

.tag.tone-3 {
    background: rgba(107, 124, 140, 0.14);
    color: #4C5E6E;
}

.tag.tone-4 {
    background: rgba(63, 81, 181, 0.1);
    color: #3F51B5;
}

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

.hero {
    position: relative;
    color: #fff;
    background-color: #16263A;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(11, 22, 36, 0.88) 0%, rgba(20, 42, 68, 0.66) 60%, rgba(27, 42, 58, 0.45) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    z-index: 2;
    width: 300px;
    height: 300px;
    opacity: 0.18;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23FFFFFF' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Cpath d='M100 12v16M100 172v16M12 100h16M172 100h16'/%3E%3Cpath d='M138 62 108 108 62 138l30-46z'/%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 6rem 0 6.5rem;
}

.hero h1 {
    color: #fff;
    max-width: 18ch;
    margin-bottom: 1.1rem;
}

.hero p {
    color: #BFE4F5;
    font-size: 1.1rem;
    max-width: 58ch;
    margin-bottom: 1.9rem;
}

.hero-kicker {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 1.1rem;
}

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

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

.front-section.gradient {
    background: linear-gradient(135deg, #EAF0F5 0%, #F7F9FB 100%);
}

.front-lede {
    color: var(--muted);
    max-width: 68ch;
    margin: -0.7rem 0 2.2rem;
}

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

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

.stat-cell {
    min-width: 0;
    padding: 0.4rem 1.6rem;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-num {
    display: block;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
    font-size: 3.1rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.stat-cap {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Сетка карточек-иконок */

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

.icon-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.9rem 1.7rem;
    box-shadow: 0 2px 8px rgba(27, 42, 58, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.icon-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(27, 42, 58, 0.1);
    border-color: rgba(47, 128, 237, 0.3);
}

.icon-card svg {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 1.1rem;
}

.icon-card h3 {
    color: #16263A;
    font-size: 1.22rem;
    margin-bottom: 0.5rem;
}

.icon-card p {
    color: #33485C;
    font-size: 0.96rem;
    margin: 0;
}

/* CTA */

.cta-plate {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(120deg, #1B2A3A 0%, #2F80ED 100%);
    color: #fff;
    padding: 3.2rem 2.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-plate::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 240px;
    height: 240px;
    opacity: 0.16;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%23FFFFFF' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Cpath d='M100 12v16M100 172v16M12 100h16M172 100h16'/%3E%3Cpath d='M138 62 108 108 62 138l30-46z'/%3E%3C/svg%3E");
}

.cta-text {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 62ch;
}

.cta-text h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.6rem;
}

.cta-text p {
    color: #D6E8FB;
    margin: 0;
}

.cta-action {
    position: relative;
    z-index: 1;
}

/* ---------- Запись и страница ---------- */

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

.entry-title {
    margin-bottom: 0.6rem;
    font-size: 2.35rem;
}

.entry-meta {
    font-size: 0.86rem;
    color: var(--muted);
}

.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    margin-bottom: 1.8rem;
}

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

.entry-body h2 {
    margin-top: 1.8em;
    font-size: 1.65rem;
}

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

.entry-body img {
    border-radius: 8px;
}

.entry-foot {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
    font-size: 0.94rem;
}

.page-head {
    padding-top: 0.6rem;
}

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    background: var(--aside-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
}

.sidebar .widget {
    margin-bottom: 1.8rem;
}

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

.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #2A3B4D;
    font-size: 0.95rem;
}

.sidebar .widget a {
    color: #1F3D5A;
}

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

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

.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 1rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    margin: 0;
}

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 5px;
    height: 5px;
    background: var(--accent-soft);
    border-radius: 50%;
}

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

.sidebar .post-date {
    display: block;
    color: #5A6B7C;
    font-size: 0.8rem;
}

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

.site-foot {
    position: relative;
    z-index: 2;
    background: var(--foot-bg);
    color: #C6D4E0;
    margin-top: 2rem;
}

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

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

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    padding-left: 0;
    position: relative;
}

.site-foot .widget-title::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    background: var(--accent-soft);
    margin-top: 0.5rem;
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #C6D4E0;
    font-size: 0.93rem;
}

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

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

.site-foot .widget a::after {
    background: var(--accent-soft);
}

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

.site-foot .widget li {
    margin: 0;
    padding: 0.35rem 0;
}

.site-foot .post-date {
    display: block;
    color: #8CA1B5;
    font-size: 0.8rem;
}

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

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

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

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

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}

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

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

/* ---------- Поиск ---------- */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.65rem 0.9rem;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}

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

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

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

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

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

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

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

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

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

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

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

.comment-respond {
    background: var(--aside-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.8rem 1.6rem;
}

.comment-respond label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
    margin-bottom: 1rem;
}

.comment-respond textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-respond .submit {
    display: inline-block;
    border-radius: 6px;
    padding: 0.72rem 1.5rem;
    font: inherit;
    font-size: 0.98rem;
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-respond .submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 128, 237, 0.25);
}

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

.err-box {
    text-align: left;
    padding: 1rem 0 2rem;
}

.err-code {
    font-family: "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.err-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.6rem 0;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: #16263A;
    color: #D6E3EE;
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}

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

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
    min-width: 0;
    max-width: 78ch;
}

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

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

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

    .sec-title {
        font-size: 1.6rem;
    }

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

    .layout-single {
        width: 92%;
    }

    .hero-inner {
        width: 92%;
        padding: 4.4rem 0 4.8rem;
    }

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

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

    .stat-cell:nth-child(3) {
        border-left: none;
        padding-left: 0;
    }

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

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 0.8rem;
        border-top: 1px solid var(--line);
    }

    .main-nav li {
        border-bottom: 1px solid var(--line);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: none;
    }
}

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

    h1 {
        font-size: 1.85rem;
    }

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

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

    .hero-inner {
        padding: 3.4rem 0 3.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

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

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

    .stat-cell {
        border-left: none;
        padding: 0;
    }

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

    .cta-plate {
        padding: 2rem 1.5rem;
    }

    .cta-text h2 {
        font-size: 1.6rem;
    }

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

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

    .comment-respond {
        padding: 1.3rem 1.2rem;
    }

    .err-code {
        font-size: 3.6rem;
    }
}
