/*
Theme Name: dds_sixthfingermagazine.com
Author: Губанов Игорь
Description: Тема для журнала об искусстве и моде. Эстетика «шестого пальца» — элегантный авангард, минимализм с нарушающими спокойствие акцентами.
Version: 1.1
Text Domain: dds_sixthfingermagazine
*/

/* ============================================================
   БАЗА
   ============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Spectral', 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #F5EFE6;
    background-color: #121212;
    background-image:
        radial-gradient(rgba(245, 239, 230, 0.018) 1px, transparent 1px),
        radial-gradient(rgba(245, 239, 230, 0.012) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #6B9B92;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #FF6B5C;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Unbounded', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #F5EFE6;
    margin: 1.4em 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.4rem; letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
    margin: 0 0 1.1em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1.2em 1.5em;
    border-left: 3px solid #6B9B92;
    background: #1a1a1a;
    font-style: italic;
    color: #F5EFE6;
    position: relative;
}

blockquote::before {
    content: '\201C';
    color: #FF6B5C;
    font-size: 3rem;
    line-height: 0;
    position: absolute;
    left: 0.4em;
    top: 0.8em;
    font-family: Georgia, serif;
}

code, pre {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    background: #1d1d1d;
    color: #FF6B5C;
    border-radius: 4px;
}

code {
    padding: 0.15em 0.4em;
    font-size: 0.92em;
}

pre {
    padding: 1em 1.2em;
    overflow-x: auto;
    border: 1px solid #2B2B2B;
    color: #F5EFE6;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

hr {
    border: 0;
    border-top: 1px solid #2B2B2B;
    margin: 2em 0;
}

ul, ol {
    padding-left: 1.5em;
    margin: 0 0 1.1em;
}

li { margin-bottom: 0.4em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid #2B2B2B;
}

th, td {
    padding: 0.7em 1em;
    border: 1px solid #2B2B2B;
    text-align: left;
}

th {
    background: #1d1d1d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #FF6B5C;
}

tr:nth-child(even) td {
    background: rgba(43, 43, 43, 0.3);
}

::selection {
    background: #FF6B5C;
    color: #121212;
}

/* ============================================================
   КОНТЕЙНЕР
   ============================================================ */

.wrap {
    width: 92%;
    max-width: 1280px;
    margin: 0 auto;
}

.layout-grid {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    margin: 2.5em 0;
}

.layout-grid.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-grid.no-sidebar.full-width {
    max-width: 85%;
}

/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
    background: #0d0d0d;
    border-bottom: 1px solid #2B2B2B;
    padding: 1.2em 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2em;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1em;
    text-decoration: none;
    color: #F5EFE6;
}

.brand:hover .brand-title {
    color: #FF6B5C;
}

.brand-logo {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #F5EFE6;
    letter-spacing: -0.005em;
    transition: color 0.3s ease;
}

.brand-tagline {
    font-size: 0.78rem;
    color: #6B9B92;
    margin-top: 0.25em;
    font-family: 'Spectral', serif;
    font-style: italic;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
}

.primary-nav a {
    display: inline-block;
    padding: 0.55em 1.1em;
    color: #F5EFE6;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 28px;
    transition: all 0.25s ease;
    position: relative;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #FF6B5C;
}

.primary-nav .current-menu-item > a::before,
.primary-nav .current_page_item > a::before {
    content: '';
    position: absolute;
    left: 1.1em;
    right: 1.1em;
    bottom: 0.35em;
    height: 2px;
    background: #FF6B5C;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid #FF6B5C;
    color: #F5EFE6;
    padding: 0.5em 0.9em;
    border-radius: 28px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.menu-toggle:hover {
    background: #FF6B5C;
    color: #121212;
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */

.crumbs {
    margin: 1.5em 0;
    padding: 0.7em 0;
    font-size: 0.85rem;
    color: #6B9B92;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 1px dashed #2B2B2B;
}

.crumbs a {
    color: #6B9B92;
}

.crumbs a:hover {
    color: #FF6B5C;
}

.crumbs .sep {
    margin: 0 0.5em;
    color: #2B2B2B;
}

.crumbs .current {
    color: #F5EFE6;
}

/* ============================================================
   ОСНОВНОЕ СОДЕРЖИМОЕ
   ============================================================ */

.main {
    min-height: 60vh;
    padding: 1em 0 3em;
}

.entry-header {
    margin-bottom: 1.5em;
    padding-bottom: 1.2em;
    border-bottom: 1px solid #2B2B2B;
}

.entry-title {
    margin: 0.2em 0 0.4em;
}

.entry-meta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #6B9B92;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: center;
}

.entry-meta a {
    color: #6B9B92;
}

.entry-meta a:hover {
    color: #FF6B5C;
}

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

.entry-content img {
    border-radius: 4px;
    margin: 1em 0;
}

.entry-content figure {
    margin: 1.5em 0;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: #6B9B92;
    text-align: center;
    margin-top: 0.6em;
    font-style: italic;
}

.cat-tag {
    display: inline-block;
    padding: 0.3em 0.8em;
    background: #6B9B92;
    color: #121212;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 3px;
    margin-right: 0.3em;
    transition: all 0.25s ease;
}

.cat-tag:hover {
    background: #FF6B5C;
    color: #121212;
}

/* ============================================================
   КАРТОЧКИ ЗАПИСЕЙ — A8 / A10
   ============================================================ */

.feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8em;
    margin: 1.5em 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #2B2B2B;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: #FF6B5C;
    transform: translateY(-2px);
}

.card.card-row {
    flex-direction: row;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
}

.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;
    transition: transform 0.5s ease;
}

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

/* «Шестой палец» — вертикальная карточка с инвертированным расположением */
.card.card-vertical {
    flex-direction: column;
    border-color: #FF6B5C;
    position: relative;
}

.card.card-vertical::before {
    content: 'VI';
    position: absolute;
    top: 0.6em;
    right: 0.8em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #FF6B5C;
    letter-spacing: 0.1em;
    z-index: 2;
    background: rgba(18, 18, 18, 0.85);
    padding: 0.2em 0.6em;
    border-radius: 3px;
}

.card.card-vertical .card-thumb-wrap {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
}

.card.card-vertical .card-thumb-wrap a {
    position: absolute;
}

.card-body {
    flex: 1;
    padding: 1.4em 1.5em;
    display: flex;
    flex-direction: column;
}

.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-bottom: 0.8em;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 0.5em;
    line-height: 1.3;
}

.card-title a {
    color: #F5EFE6;
}

.card-title a:hover {
    color: #FF6B5C;
}

.card-meta {
    font-size: 0.82rem;
    color: #6B9B92;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.7em;
}

.card-excerpt {
    flex: 1;
    color: #d9d3ca;
    font-size: 0.96rem;
    line-height: 1.6;
}

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

.card-footer {
    margin-top: 1em;
}

/* ============================================================
   КНОПКИ
   ============================================================ */

.btn,
.btn-primary,
.wp-block-button__link,
.entry-content .more-link {
    display: inline-block;
    padding: 0.7em 1.7em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #FF6B5C;
    background: transparent;
    border: 1.5px solid #FF6B5C;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px transparent;
}

.btn:hover,
.btn-primary:hover,
.wp-block-button__link:hover,
.entry-content .more-link:hover {
    background: #FF6B5C;
    color: #121212;
    box-shadow: inset 0 0 0 1px rgba(18, 18, 18, 0.2);
}

.btn-secondary {
    display: inline-block;
    padding: 0.5em 1.1em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #121212;
    background: #6B9B92;
    border: 1.5px solid #6B9B92;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    position: relative;
}

.btn-secondary:hover {
    color: #121212;
    background: #6B9B92;
    box-shadow: 0 0 0 3px rgba(107, 155, 146, 0.25);
}

/* Кнопка «слушать/смотреть» — пульсирующий край для медиа */
.btn-media {
    position: relative;
    border-color: #6B9B92;
    color: #6B9B92;
    animation: pulse-media 2.4s ease-in-out infinite;
}

.btn-media:hover {
    background: #6B9B92;
    color: #121212;
    animation: none;
}

@keyframes pulse-media {
    0%, 100% { box-shadow: 0 0 0 0 rgba(107, 155, 146, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(107, 155, 146, 0); }
}

/* ============================================================
   ФОРМЫ
   ============================================================ */

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.7em 1em;
    background: #1a1a1a;
    color: #F5EFE6;
    border: 1px solid #2B2B2B;
    border-radius: 6px;
    font-family: 'Spectral', serif;
    font-size: 1rem;
    transition: border-color 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #FF6B5C;
}

input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 0.7em 1.7em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #FF6B5C;
    background: transparent;
    border: 1.5px solid #FF6B5C;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: #FF6B5C;
    color: #121212;
}

label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #6B9B92;
    margin-bottom: 0.4em;
}

.search-form {
    display: flex;
    gap: 0.6em;
    align-items: stretch;
    margin: 1em 0;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-form input[type="submit"] {
    flex-shrink: 0;
}

/* ============================================================
   САЙДБАР
   ============================================================ */

.sidebar {
    align-self: start;
    position: sticky;
    top: 1em;
}

.widget {
    background: #2B2B2B;
    border-radius: 4px;
    padding: 1.4em 1.5em;
    margin-bottom: 1.5em;
    border-left: 3px solid #6B9B92;
}

.widget-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    color: #FF6B5C;
    margin: 0 0 0.9em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid #6B9B92;
    letter-spacing: 0.02em;
}

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

.widget li {
    padding: 0.45em 0;
    border-bottom: 1px dashed rgba(107, 155, 146, 0.3);
}

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

.widget li a {
    color: #F5EFE6;
    font-size: 0.95rem;
}

.widget li a:hover {
    color: #FF6B5C;
}

/* ============================================================
   ГЛАВНАЯ
   ============================================================ */

.front-section {
    padding: 3em 0;
    border-bottom: 1px solid #2B2B2B;
}

.front-section:last-child {
    border-bottom: 0;
}

.front-section.alt {
    background: #1a1a1a;
}

.front-section-head {
    margin-bottom: 2em;
    text-align: left;
}

.front-section-head .eyebrow {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #FF6B5C;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.4em;
}

.front-section-head h2 {
    margin: 0 0 0.5em;
    font-size: 2.2rem;
}

.front-section-head .lede {
    color: #d9d3ca;
    font-size: 1.05rem;
    max-width: 65ch;
    margin: 0;
}

/* «Лесенка» категорий */
.cat-stairs {
    display: flex;
    align-items: flex-end;
    gap: 0.5em;
    margin-bottom: 1em;
}

.cat-stairs span {
    display: inline-block;
    padding: 0.5em 0.9em 0.4em;
    background: #6B9B92;
    color: #121212;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 3px 3px 0 0;
}

.cat-stairs span:nth-child(1) { padding-top: 1.6em; background: #FF6B5C; }
.cat-stairs span:nth-child(2) { padding-top: 1.2em; background: #6B9B92; }
.cat-stairs span:nth-child(3) { padding-top: 0.9em; background: #4f7e76; }
.cat-stairs span:nth-child(4) { padding-top: 0.6em; background: #2B2B2B; color: #F5EFE6; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5em;
    margin-top: 1.5em;
}

.feature-tile {
    background: #1a1a1a;
    border: 1px solid #2B2B2B;
    border-radius: 4px;
    padding: 1.6em 1.5em;
    transition: all 0.3s ease;
    position: relative;
}

.feature-tile:hover {
    border-color: #FF6B5C;
}

.feature-tile h3 {
    font-size: 1.2rem;
    margin: 0 0 0.6em;
    color: #FF6B5C;
}

.feature-tile p {
    margin: 0;
    color: #d9d3ca;
    font-size: 0.96rem;
}

.feature-tile .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #2B2B2B;
    line-height: 1;
    margin-bottom: 0.3em;
    display: block;
}

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2em;
    counter-reset: step-counter;
}

.step {
    background: #1a1a1a;
    border: 1px solid #2B2B2B;
    padding: 1.4em 1.3em;
    border-radius: 4px;
    counter-increment: step-counter;
    position: relative;
    padding-top: 2.5em;
}

.step::before {
    content: counter(step-counter, decimal-leading-zero);
    position: absolute;
    top: 0.6em;
    left: 1.3em;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #FF6B5C;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.step h3 {
    font-size: 1.05rem;
    margin: 0 0 0.5em;
}

.step p {
    margin: 0;
    font-size: 0.9rem;
    color: #d9d3ca;
}

/* Цитата дня — для футера */
.quote-of-day {
    color: #F5EFE6;
    font-family: 'Spectral', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.55;
    position: relative;
    padding: 0 1em;
}

.quote-of-day::before {
    content: '\201C';
    color: #FF6B5C;
    font-size: 3.5rem;
    line-height: 0;
    position: absolute;
    left: -0.05em;
    top: 0.5em;
    font-family: Georgia, serif;
}

.quote-of-day::after {
    content: '\201D';
    color: #FF6B5C;
    font-size: 3.5rem;
    line-height: 0;
    position: absolute;
    right: 0;
    bottom: -0.2em;
    font-family: Georgia, serif;
}

.quote-author {
    display: block;
    margin-top: 0.6em;
    font-style: normal;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #6B9B92;
    letter-spacing: 0.04em;
}

/* Раскраска подложек на главной */
.tone-band {
    margin-top: 1.4em;
    padding: 1.4em 1.5em;
    border-left: 3px solid #FF6B5C;
    background: rgba(255, 107, 92, 0.04);
}

.tone-band p { margin: 0; }

/* ============================================================
   ПАГИНАЦИЯ
   ============================================================ */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    justify-content: center;
    margin: 2.5em 0 1em;
    font-family: 'Montserrat', sans-serif;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4em;
    padding: 0.5em 0.9em;
    background: transparent;
    color: #F5EFE6;
    border: 1px solid #2B2B2B;
    border-radius: 6px;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.pagination .page-numbers:hover {
    border-color: #FF6B5C;
    color: #FF6B5C;
}

.pagination .page-numbers.current {
    background: #FF6B5C;
    color: #121212;
    border-color: #FF6B5C;
    font-weight: 700;
}

.pagination .page-numbers.dots {
    border-color: transparent;
    color: #6B9B92;
}

/* ============================================================
   КОММЕНТАРИИ
   ============================================================ */

.comments-area {
    margin-top: 3em;
    padding-top: 1.5em;
    border-top: 1px solid #2B2B2B;
}

.comments-title,
.comment-reply-title {
    font-size: 1.4rem;
    margin-bottom: 1em;
}

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

.comment-list .children {
    list-style: none;
    padding-left: 1.8em;
    margin-top: 1em;
}

.comment-body {
    background: #1a1a1a;
    padding: 1.2em 1.4em;
    border-radius: 4px;
    margin-bottom: 1em;
    border-left: 2px solid #6B9B92;
}

.comment-author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #FF6B5C;
}

.comment-meta {
    font-size: 0.82rem;
    color: #6B9B92;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.6em;
}

.comment-meta a { color: #6B9B92; }

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

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

/* ============================================================
   ПОДВАЛ
   ============================================================ */

.site-footer {
    background: #0a0a0a;
    border-top: 1px solid #2B2B2B;
    padding: 3em 0 1.5em;
    margin-top: 2em;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 2.5em;
    margin-bottom: 2.5em;
}

.footer-col .widget {
    background: transparent;
    border-left: 0;
    padding: 0;
    margin-bottom: 0;
}

.footer-col .widget-title {
    color: #FF6B5C;
    border-bottom: 1px solid #2B2B2B;
    padding-bottom: 0.5em;
}

.footer-col .widget li {
    border-bottom: 1px dashed #2B2B2B;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5em;
    border-top: 1px solid #2B2B2B;
    color: #6B9B92;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   COOKIE-БАННЕР — A11
   ============================================================ */

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

.cookie-banner {
    position: fixed;
    left: 1em;
    right: 1em;
    bottom: 1em;
    z-index: 9999;
    background: #1a1a1a;
    border: 1px solid #FF6B5C;
    border-radius: 6px;
    padding: 1.1em 1.4em;
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: wrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    margin: 0 auto;
}

.cookie-banner__text {
    flex: 1;
    min-width: 240px;
    color: #F5EFE6;
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-banner__btn {
    flex-shrink: 0;
    padding: 0.6em 1.4em;
    background: transparent;
    color: #FF6B5C;
    border: 1.5px solid #FF6B5C;
    border-radius: 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-banner__btn:hover {
    background: #FF6B5C;
    color: #121212;
}

/* ============================================================
   404
   ============================================================ */

.error-404 {
    text-align: center;
    padding: 3em 1em;
}

.error-404 .num {
    font-family: 'Montserrat', sans-serif;
    font-size: 7rem;
    font-weight: 700;
    color: #FF6B5C;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.04em;
}

.error-404 h1 {
    margin: 0.4em 0 0.4em;
}

.error-404 .search-form {
    max-width: 520px;
    margin: 1.5em auto;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 960px) {
    body { font-size: 17px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.65rem; }

    .layout-grid {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }

    .layout-grid.no-sidebar,
    .layout-grid.no-sidebar.full-width {
        max-width: 100%;
    }

    .sidebar {
        position: static;
    }

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

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

    .footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 2em;
    }

    .footer-cols .footer-col:last-child {
        grid-column: 1 / -1;
    }
}

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

    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .header-inner {
        gap: 1em;
    }

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

    .primary-nav {
        flex-basis: 100%;
        display: none;
    }

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

    .primary-nav ul {
        flex-direction: column;
        gap: 0.2em;
    }

    .primary-nav a {
        display: block;
        padding: 0.7em 1em;
    }

    .card.card-row {
        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;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .cookie-banner {
        left: 0.5em;
        right: 0.5em;
        bottom: 0.5em;
        padding: 0.9em 1em;
    }

    .error-404 .num {
        font-size: 5rem;
    }

    .front-section {
        padding: 2em 0;
    }
}
