/*
Theme Name: dds_studioad.ru
Author: Илья Тарасов
Description: Информационная тема о вёрстке и дизайне сайтов. Холодная лавандовая палитра, лёгкий неоморфизм, технологичная сетка на фоне.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: studad
*/

:root {
    --bg: #F4F2F9;
    --bg-alt: #EBE7F2;
    --plum: #1F1A2E;
    --plum-soft: #2A2340;
    --text: #1E1828;
    --accent: #9B6BFF;
    --accent-dark: #7A48E0;
    --accent-soft: #C8A8FF;
    --muted: #8B83A0;
    --white: #FFFFFF;
    --line: rgba(155, 107, 255, .28);
    --shell: min(92%, 1180px);
    --font-head: "Trebuchet MS", "Segoe UI", "Century Gothic", system-ui, sans-serif;
    --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --raise: -6px -6px 14px rgba(255, 255, 255, .95), 6px 6px 16px rgba(120, 100, 165, .22);
    --raise-soft: 0 10px 28px rgba(120, 100, 165, .16);
    --press: inset -4px -4px 10px rgba(255, 255, 255, .9), inset 5px 5px 12px rgba(120, 100, 165, .25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(155, 107, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 107, 255, .06) 1px, transparent 1px);
    background-size: 34px 34px;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: .015em;
}

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 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.25;
    letter-spacing: .01em;
    margin: 0 0 .7em;
}

h1 {
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.home .shell {
    width: min(85%, 1240px);
}

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

/* Полоса сверху страницы */
.topline {
    height: 4px;
    background: var(--accent);
}

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

.entry-body a,
.card-excerpt a,
.widget a,
.crumbs a {
    position: relative;
}

.entry-body a::after,
.card-excerpt a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.entry-body a:hover::after,
.card-excerpt a:hover::after,
.crumbs a:hover::after {
    transform: scaleX(1);
}

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

.btn {
    display: inline-block;
    padding: .72rem 1.5rem;
    border: 0;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    background: var(--accent);
    color: var(--white);
    box-shadow: var(--raise);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(2px);
    box-shadow: var(--press);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: transparent;
    color: var(--accent-dark);
    box-shadow: inset 0 0 0 1px var(--accent-dark);
    transform: translateY(2px);
}

/* --------------------------------------------------------------
 * Шапка
 * ------------------------------------------------------------ */

.site-head {
    position: static;
    background: rgba(244, 242, 249, .88);
    border-bottom: 1px dashed var(--line);
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    margin-right: auto;
}

.brand-mark {
    flex: 0 0 auto;
    display: block;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--bg);
    box-shadow: var(--raise);
    padding: 9px;
}

.brand-mark img,
.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text);
    line-height: 1.35;
}

.brand-name:hover {
    color: var(--accent-dark);
}

.brand-desc {
    margin: .25rem 0 0;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    padding: .6rem 1rem;
    border: 0;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: var(--raise);
    color: var(--text);
    font-family: var(--font-head);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .8rem;
    cursor: pointer;
}

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

.nav-list a {
    position: relative;
    display: inline-block;
    padding: .25rem 0;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .05em;
    color: var(--text);
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

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

.nav-list .current-menu-item > a {
    color: var(--accent-dark);
}

/* --------------------------------------------------------------
 * Общая обвязка страниц
 * ------------------------------------------------------------ */

.site-main {
    display: block;
    padding: 2.4rem 0 3.6rem;
}

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}

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

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

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    column-gap: 6%;
    row-gap: 2.6rem;
    align-items: start;
}

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

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

.page-title {
    font-size: 2.2rem;
    margin-bottom: 1.6rem;
    position: relative;
    padding-left: 1.1rem;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 3px;
    background: var(--accent);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--raise-soft);
    transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 38px rgba(120, 100, 165, .26);
}

.card-thumb {
    position: relative;
    background: var(--bg-alt);
    transition: background .22s ease;
}

.card:hover .card-thumb {
    background: var(--accent-soft);
}

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

.card:hover .card-thumb img {
    opacity: .88;
}

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

.card-meta {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .6rem;
}

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

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

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

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    font-size: .82rem;
    padding: .55rem 1.2rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    padding: .5rem .95rem;
    border-radius: 12px;
    background: var(--bg);
    box-shadow: var(--raise);
    color: var(--text);
    font-family: var(--font-head);
    font-size: .92rem;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.pager a.page-numbers:hover {
    color: var(--white);
    background: var(--accent-dark);
    transform: translateY(2px);
}

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

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

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

.front-section {
    padding: 3.4rem 0;
    border-top: 1px dashed var(--line);
}

.front-section:first-child {
    border-top: 0;
}

.front-section.is-alt {
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
}

.section-title {
    position: relative;
    padding-left: 1.15rem;
    margin-left: -1.15rem;
    margin-bottom: 1.6rem;
    font-size: 2rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    bottom: .16em;
    width: 3px;
    background: var(--accent);
}

.section-lead {
    max-width: 68ch;
    color: #4A4359;
    margin-bottom: 2rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 4.6rem 0 4.2rem;
    background-color: var(--plum);
    background-image:
        linear-gradient(rgba(200, 168, 255, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 168, 255, .09) 1px, transparent 1px);
    background-size: 46px 46px;
}

.hero-glow {
    position: absolute;
    width: 620px;
    height: 620px;
    right: -140px;
    top: -220px;
    border-radius: 50%;
    background: var(--accent-soft);
    filter: blur(110px);
    opacity: .42;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.4rem 3rem;
    align-items: center;
}

.hero-title {
    margin: 0;
    font-size: 3.2rem;
    background: linear-gradient(115deg, #FFFFFF 5%, var(--accent-soft) 55%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: .35rem .9rem;
    border: 1px solid rgba(200, 168, 255, .45);
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.hero-text {
    color: #D9D2EA;
    font-size: .98rem;
    column-count: 2;
    column-gap: 2rem;
}

.hero-text p {
    margin: 0 0 1em;
}

.hero-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-actions .btn-ghost {
    color: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(200, 168, 255, .55);
}

.hero-actions .btn-ghost:hover {
    color: var(--white);
    box-shadow: inset 0 0 0 1px var(--white);
}

/* --------------------------------------------------------------
 * Главная — сетка рубрик (неоморфизм)
 * ------------------------------------------------------------ */

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

.rubric {
    min-width: 0;
    padding: 1.8rem 1.6rem;
    border-radius: 16px;
    background: var(--bg-alt);
    box-shadow: var(--raise);
    transition: box-shadow .22s ease, transform .22s ease;
}

.rubric:hover {
    box-shadow: var(--press);
    transform: translateY(2px);
}

.rubric-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    color: var(--accent);
    display: block;
}

.rubric h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rubric p {
    margin: 0;
    font-size: .92rem;
    color: #4A4359;
}

/* --------------------------------------------------------------
 * Главная — последние записи
 * ------------------------------------------------------------ */

.latest-foot {
    margin-top: 2rem;
}

/* --------------------------------------------------------------
 * Главная — таймлайн
 * ------------------------------------------------------------ */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 3.4rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    top: .6rem;
    bottom: .6rem;
    width: 1px;
    background: linear-gradient(180deg, var(--accent), var(--accent-soft));
}

.timeline-step {
    position: relative;
    min-width: 0;
    margin-bottom: 2rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-num {
    position: absolute;
    left: -3.4rem;
    top: 0;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: var(--raise);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: .92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-step h3 {
    font-size: 1.2rem;
    margin-bottom: .35rem;
}

.timeline-step p {
    margin: 0;
    color: #4A4359;
    font-size: .95rem;
    max-width: 72ch;
}

/* --------------------------------------------------------------
 * Главная — цитата
 * ------------------------------------------------------------ */

.quote-plate {
    position: relative;
    padding: 3rem 3rem 3.2rem;
    border-radius: 16px;
    background: var(--plum);
    color: #EDE8F7;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), calc(100% - 46px) 100%, 0 100%);
}

.quote-plate blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.75rem;
    line-height: 1.45;
    letter-spacing: .01em;
}

.quote-plate em {
    font-style: normal;
    color: var(--accent-soft);
}

.quote-author {
    margin: 1.6rem 0 0;
    font-size: .84rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

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

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

.entry-title {
    font-size: 2.4rem;
    margin-bottom: .6rem;
}

.entry-meta {
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-thumb {
    margin-bottom: 1.8rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--raise-soft);
}

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

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

.entry-body h2,
.entry-body h3,
.entry-body h4 {
    margin-top: 1.9em;
}

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

.entry-body li {
    margin-bottom: .5em;
}

.entry-body blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--accent);
    border-radius: 12px;
    background: var(--bg-alt);
    color: #3A3348;
}

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

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6em;
    border: 1px solid var(--line);
}

.entry-body th,
.entry-body td {
    border: 1px solid var(--line);
    padding: .7rem .85rem;
    text-align: left;
}

.entry-body th {
    background: var(--bg-alt);
    font-family: var(--font-head);
}

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

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

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    padding: 1.5rem 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(155, 107, 255, .18);
    border-radius: 16px;
    background: var(--white);
    color: var(--text);
    box-shadow: var(--raise-soft);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
    padding-left: .8rem;
    position: relative;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 3px;
    background: var(--accent);
}

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

.sidebar .widget li {
    padding: .55rem 0;
    border-bottom: 1px dashed rgba(155, 107, 255, .22);
    font-size: .94rem;
}

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

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

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

.sidebar .widget .post-date {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .06em;
}

.sidebar .widget p {
    color: #4A4359;
    font-size: .94rem;
}

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

.site-foot {
    background: var(--plum);
    color: #D9D2EA;
    padding: 3rem 0 1.8rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(200, 168, 255, .28);
}

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

.site-foot .widget {
    margin-bottom: 1.4rem;
    color: #D9D2EA;
}

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

.site-foot .widget-title {
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: .9rem;
}

.site-foot .widget p {
    color: #C9C2DC;
    font-size: .92rem;
}

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

.site-foot .widget li {
    padding: .38rem 0;
    font-size: .93rem;
}

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

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

.site-foot .widget .post-date {
    display: block;
    font-size: .78rem;
    color: #9C93B4;
}

.foot-bottom {
    padding-top: 1.5rem;
    font-size: .84rem;
    color: #9C93B4;
    letter-spacing: .04em;
}

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

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

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

.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
}

.search-form input[type="search"]:focus {
    outline: 2px solid var(--accent-soft);
}

.comments-area {
    margin-top: 3rem;
    padding: 2rem 2rem 2.2rem;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--raise-soft);
}

.comments-title,
.comment-reply-title {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
}

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

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

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

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

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

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

.comment-text p {
    margin: 0 0 .7em;
}

.comment-actions a {
    font-size: .85rem;
}

.comment-form label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .95rem;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .form-submit input {
    display: inline-block;
    padding: .72rem 1.5rem;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--raise);
}

.comment-form .form-submit input:hover {
    background: var(--accent-dark);
    transform: translateY(2px);
}

.no-comments {
    color: var(--muted);
}

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

.error-box {
    padding: 2.6rem 2.4rem 2.8rem;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--raise-soft);
    max-width: 720px;
}

.error-code {
    font-family: var(--font-head);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: .6rem;
}

.error-actions {
    margin-top: 1.6rem;
}

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

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

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    background: var(--plum-soft);
    color: #E4DEF2;
    box-shadow: 0 18px 40px rgba(20, 15, 35, .35);
}

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

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

.cookie-accept {
    flex: 0 0 auto;
    font-size: .82rem;
    padding: .6rem 1.3rem;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.5rem; }

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

    .layout-single {
        width: 100%;
    }

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

    .hero-text {
        column-count: 1;
    }

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

    .main-nav {
        flex-basis: 100%;
        order: 4;
    }

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

    .nav-list {
        flex-direction: column;
        gap: .6rem;
        padding-top: .8rem;
    }
}

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

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

    h2,
    .section-title { font-size: 1.6rem; }

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

    .home .shell,
    .shell { width: min(92%, 1180px); }

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

    .hero { padding: 3rem 0 2.8rem; }

    .quote-plate {
        padding: 1.9rem 1.5rem 2.1rem;
    }

    .quote-plate blockquote { font-size: 1.3rem; }

    .comments-area {
        padding: 1.5rem 1.3rem 1.7rem;
    }

    .error-box {
        padding: 1.8rem 1.4rem 2rem;
    }

    .rubric {
        padding: 1.5rem 1.3rem;
    }

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

    .timeline {
        padding-left: 2.8rem;
    }

    .timeline::before {
        left: .94rem;
    }

    .timeline-num {
        left: -2.8rem;
        width: 1.9rem;
        height: 1.9rem;
        font-size: .82rem;
    }

    .cookie-banner {
        left: .6rem;
        right: .6rem;
        bottom: .6rem;
        padding: 1rem 1.1rem;
    }
}
