/*
Theme Name: dds_jaklynlarsen.com
Theme URI: https://jaklynlarsen.com/
Author: Яна Ларина
Author URI: https://jaklynlarsen.com/
Description: Контентный журнал об интерьерах и оформлении жилых пространств с акцентом на практичные решения для квартир и домов в России.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_jaklynlarsen
*/

/* ---------- палитра и переменные ---------- */
:root {
    --cream: #FAF5EC;
    --cream-deep: #F3EBDB;
    --paper: #FDF9F1;
    --terracotta: #B14A3A;
    --terracotta-dark: #8E3A2E;
    --terracotta-soft: #D47A68;
    --sage: #8FA17E;
    --sage-dark: #6C7F5C;
    --sage-pale: #C9D3BC;
    --pink-dust: #D9A8A0;
    --pink-pale: #EFD3CE;
    --sand: #E5D3B1;
    --sand-deep: #CEB783;
    --graphite: #2F2A26;
    --ink: #3A3632;
    --muted: #78716A;
    --line: #DFD5C3;
    --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' seed='5'/><feColorMatrix values='0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0 0.30  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--cream);
    background-image: var(--grain);
    background-size: 220px 220px;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sage-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

article a, .card-excerpt a, .entry-content a {
    color: var(--sage-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
article a:hover, .card-excerpt a:hover, .entry-content a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Georgia", serif;
    color: var(--terracotta-dark);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.005em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

blockquote {
    border-left: 3px solid var(--pink-dust);
    background: var(--pink-pale);
    padding: 1em 1.4em;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--graphite);
    border-radius: 0 14px 14px 0;
}

ul, ol { padding-left: 1.4em; }
li { margin: 0.25em 0; }

code, pre {
    background: var(--cream-deep);
    border-radius: 6px;
    font-family: "SF Mono", Consolas, monospace;
    font-size: 0.92em;
}
code { padding: 0.1em 0.4em; }
pre { padding: 1em; overflow-x: auto; }

hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.7em 0.9em;
    text-align: left;
}
th { background: var(--cream-deep); color: var(--graphite); }

/* ---------- прогресс-бар чтения ---------- */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    background: var(--sage);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ---------- раскладка ---------- */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

.site-main { padding: 40px 0 60px; }

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}
.layout.has-sidebar {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
}
.layout.wide .content-area { max-width: 100%; }
.layout.narrow .content-area { max-width: 85%; }

/* ---------- шапка ---------- */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 26px 0 20px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.brand-block {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}
.brand-block:hover { text-decoration: none; }
.brand-stamp {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border: 2px solid var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--terracotta);
    background: var(--cream);
}
.brand-logo {
    max-width: 68px;
    max-height: 68px;
    object-fit: contain;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.4rem;
    color: var(--terracotta-dark);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.brand-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 4px;
    max-width: 52ch;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.main-nav a {
    color: var(--graphite);
    font-size: 0.98rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--terracotta);
    border-bottom-color: var(--terracotta);
    text-decoration: none;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 11px;
    cursor: pointer;
    color: var(--graphite);
}

/* ---------- кнопки ---------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, border-color .18s, background .18s;
    line-height: 1.2;
}
.btn-primary {
    background: var(--terracotta);
    color: var(--cream);
}
.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    border-color: var(--sage);
    text-decoration: none;
    color: var(--cream);
}
.btn-secondary {
    background: var(--sand);
    color: var(--terracotta-dark);
}
.btn-secondary:hover {
    background: var(--sand-deep);
    transform: translateY(-2px);
    border-color: var(--sage);
    text-decoration: none;
}
.btn-readmore {
    display: inline-block;
    padding: 7px 2px 8px;
    color: var(--terracotta-dark);
    font-size: 0.93rem;
    font-weight: 500;
    border-bottom: 1px dashed var(--terracotta);
    text-decoration: none;
    transition: border-color .15s;
}
.btn-readmore:hover {
    border-bottom: 1px solid var(--terracotta);
    text-decoration: none;
}

/* ---------- хлебные крошки ---------- */
.breadcrumbs {
    margin: 0 0 24px;
    font-size: 0.88rem;
    color: var(--muted);
}
.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--muted);
}
.breadcrumbs a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); text-decoration: none; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }
.breadcrumbs .current { color: var(--graphite); }

/* ---------- карточки записей ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin: 28px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -18px rgba(47, 42, 38, 0.3);
}

.card-thumb {
    position: relative;
    overflow: hidden;
    background: var(--cream-deep);
}
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--terracotta);
    color: var(--cream);
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-family: "Inter", system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-decoration: none;
}
.card-category.cat-sage { background: var(--sage-dark); }
.card-category.cat-pink { background: var(--pink-dust); color: var(--graphite); }

.card-body {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
}
.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 0 0 8px;
    font-family: "Inter", system-ui, sans-serif;
}
.card-meta .dot { margin: 0 7px; opacity: 0.5; }
.card-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.22rem;
    line-height: 1.3;
    margin: 0 0 12px;
    color: var(--graphite);
}
.card-title a { color: inherit; text-decoration: none; border-bottom: none; }
.card-title a:hover { color: var(--terracotta); text-decoration: none; }
.card-excerpt {
    color: var(--ink);
    font-size: 0.96rem;
    margin: 0 0 14px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

/* ---------- горизонтальная карточка (плитка с превью слева) ---------- */
.card.card-row {
    flex-direction: row;
    align-items: stretch;
}
.card.card-row .card-thumb {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card.card-row .card-thumb a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card.card-row .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: auto;
    display: block;
}

/* ---------- сайдбар ---------- */
.sidebar { font-family: "Inter", system-ui, sans-serif; font-size: 0.95rem; }
.widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 22px;
    margin-bottom: 24px;
}
.widget-title {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.08rem;
    color: var(--terracotta-dark);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
    padding: 7px 0;
    border-bottom: 1px dotted var(--line);
}
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--graphite); text-decoration: none; }
.widget a:hover { color: var(--terracotta); text-decoration: underline; }

/* ---------- виджет «идеи по комнатам» — в сайдбаре подзаголовком отдельно добавим, но используется в тематическом блоке ---------- */
.rooms-ideas { display: flex; flex-direction: column; }
.rooms-ideas a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    color: var(--graphite);
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    font-size: 0.96rem;
}
.rooms-ideas a:last-child { border-bottom: none; }
.rooms-ideas a:hover { color: var(--terracotta); text-decoration: none; }
.rooms-ideas .icon {
    width: 8px;
    height: 28px;
    border-radius: 3px;
    background: var(--terracotta);
    flex: 0 0 auto;
}
.rooms-ideas a:nth-child(2) .icon { background: var(--sage); }
.rooms-ideas a:nth-child(3) .icon { background: var(--sand-deep); }
.rooms-ideas a:nth-child(4) .icon { background: var(--pink-dust); }
.rooms-ideas a:nth-child(5) .icon { background: var(--terracotta-soft); }
.rooms-ideas a:nth-child(6) .icon { background: var(--sage-dark); }

/* ---------- главная — тематические блоки ---------- */
.hero-block {
    background: var(--pink-pale);
    background-image: var(--grain);
    background-size: 220px 220px;
    border-radius: 24px;
    padding: 48px 44px;
    margin: 10px 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.hero-block .hero-text h1 {
    color: var(--terracotta-dark);
    margin-top: 0;
    font-size: 2.3rem;
}
.hero-block .hero-text p {
    font-size: 1.08rem;
    color: var(--graphite);
}
.hero-block .hero-quote {
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--graphite);
    border-left: 3px solid var(--terracotta);
    padding: 6px 0 6px 18px;
    margin: 18px 0 22px;
}
.hero-block .hero-quote small {
    display: block;
    font-style: normal;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 8px;
}
.hero-image {
    background: var(--sand);
    border-radius: 18px;
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
}
.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, var(--terracotta-soft) 0%, transparent 40%),
        linear-gradient(225deg, var(--sage-pale) 0%, transparent 50%),
        var(--sand);
}
.hero-image::after {
    content: "";
    position: absolute;
    left: 18%; right: 18%; bottom: 12%;
    height: 40%;
    border: 2px solid var(--graphite);
    border-radius: 12px 12px 0 0;
    opacity: 0.15;
}

.theme-block {
    margin: 54px 0;
}
.theme-block .block-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.theme-block .block-heading h2 {
    margin: 0;
    font-size: 1.7rem;
}
.theme-block .block-heading .block-sub {
    color: var(--muted);
    font-size: 0.94rem;
    font-family: "Inter", system-ui, sans-serif;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}
.room-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 18px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .15s, border-color .15s;
    text-decoration: none;
    color: var(--graphite);
}
.room-card:hover {
    transform: translateY(-2px);
    border-color: var(--terracotta);
    text-decoration: none;
}
.room-card .ribbon {
    width: 34px;
    height: 6px;
    background: var(--terracotta);
    border-radius: 3px;
}
.room-card:nth-child(2) .ribbon { background: var(--sage); }
.room-card:nth-child(3) .ribbon { background: var(--pink-dust); }
.room-card:nth-child(4) .ribbon { background: var(--sand-deep); }
.room-card:nth-child(5) .ribbon { background: var(--terracotta-soft); }
.room-card:nth-child(6) .ribbon { background: var(--sage-dark); }
.room-card strong {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.1rem;
    color: var(--graphite);
}
.room-card small {
    color: var(--muted);
    font-size: 0.85rem;
    font-family: "Inter", system-ui, sans-serif;
}

.steps-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.step-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 22px 20px;
}
.step-item .step-num {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 2.2rem;
    color: var(--terracotta);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}
.step-item h3 { margin-top: 0; font-size: 1.15rem; }
.step-item p { color: var(--ink); margin: 0; font-size: 0.96rem; }

.tips-block {
    background: var(--sage-pale);
    background-image: var(--grain);
    background-size: 220px 220px;
    border-radius: 22px;
    padding: 42px 44px;
}
.tips-block h2 { color: var(--sage-dark); margin-top: 0; }
.tips-block ul {
    columns: 2;
    column-gap: 40px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}
.tips-block li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--sage);
    color: var(--graphite);
    break-inside: avoid;
}

/* ---------- одиночная запись ---------- */
.entry-header { margin-bottom: 32px; }
.entry-header h1 { margin: 0 0 14px; font-size: 2.1rem; color: var(--terracotta-dark); }
.entry-meta {
    color: var(--muted);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.9rem;
}
.entry-meta span { margin-right: 18px; }
.entry-thumb { margin: 0 0 28px; border-radius: 18px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content {
    font-size: 1.02rem;
}
.entry-content img { border-radius: 14px; margin: 1.4em 0; }
.entry-footer {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.entry-tags { font-size: 0.9rem; color: var(--muted); }
.entry-tags a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 3px 10px;
    border: 1px solid var(--sand-deep);
    border-radius: 12px;
    color: var(--terracotta-dark);
    text-decoration: none;
}
.entry-tags a:hover { background: var(--sand); text-decoration: none; }

.save-idea {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 18px;
    border: 1px solid var(--terracotta);
    border-radius: 14px;
    background: transparent;
    color: var(--terracotta);
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.save-idea:hover { background: var(--pink-pale); }
.save-idea.saved { background: var(--terracotta); color: var(--cream); }

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--terracotta);
    border: 2px solid var(--terracotta);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 500;
    box-shadow: 0 6px 20px -8px rgba(0,0,0,0.2);
    transition: background .2s, color .2s;
}
.to-top:hover { background: var(--terracotta); color: var(--cream); }
.to-top.visible { display: flex; }

/* ---------- комментарии ---------- */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.comments-area h2 {
    font-size: 1.4rem;
    margin-top: 0;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.comment-list li { margin: 0 0 20px; }
.comment-body {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.avatar-initials {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sage-pale);
    color: var(--sage-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    flex: 0 0 auto;
}
.comment-author { font-weight: 600; color: var(--graphite); font-family: "Inter", system-ui, sans-serif; font-size: 0.95rem; }
.comment-date { color: var(--muted); font-size: 0.85rem; font-family: "Inter", system-ui, sans-serif; margin-left: auto; }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--terracotta-dark);
    font-size: 0.88rem;
    border-bottom: 1px dashed var(--terracotta);
    text-decoration: none;
    padding-bottom: 1px;
}
.comment-reply-link:hover { border-bottom-style: solid; text-decoration: none; }
.children {
    list-style: none;
    padding-left: 30px;
    margin-top: 16px;
    border-left: 2px dashed var(--line);
}
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea,
.search-field {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--paper);
    color: var(--ink);
}
.comment-form textarea { resize: vertical; min-height: 120px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 6px; font-size: 0.9rem; color: var(--graphite); font-family: "Inter", system-ui, sans-serif; }
.comment-form .form-submit input { cursor: pointer; }

/* ---------- форма поиска ---------- */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
}
.search-form .search-field { flex: 1; }
.search-form button {
    padding: 11px 20px;
    border: none;
    border-radius: 12px;
    background: var(--terracotta);
    color: var(--cream);
    cursor: pointer;
    font-family: inherit;
}
.search-form button:hover { background: var(--terracotta-dark); }

/* ---------- пагинация ---------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0 20px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--graphite);
    background: var(--paper);
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.94rem;
    text-decoration: none;
    min-width: 40px;
    text-align: center;
}
.pagination a:hover {
    border-color: var(--terracotta);
    color: var(--terracotta);
    text-decoration: none;
}
.pagination .current {
    background: var(--terracotta);
    color: var(--cream);
    border-color: var(--terracotta);
}
.pagination .dots { border: none; background: transparent; }

/* ---------- подвал ---------- */
.site-footer {
    background: var(--graphite);
    color: var(--cream-deep);
    padding: 50px 0 24px;
    margin-top: 80px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 36px;
}
.footer-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}
.footer-col .widget-title {
    color: var(--sand);
    border-bottom: 1px solid rgba(229, 211, 177, 0.2);
    padding-bottom: 10px;
}
.footer-col .widget ul li {
    border-bottom-color: rgba(229, 211, 177, 0.12);
}
.footer-col .widget a { color: var(--cream-deep); }
.footer-col .widget a:hover { color: var(--terracotta-soft); text-decoration: none; }
.footer-col .widget p { color: var(--cream-deep); }

.site-copy {
    padding-top: 24px;
    border-top: 1px solid rgba(229, 211, 177, 0.15);
    text-align: center;
    font-size: 0.88rem;
    color: var(--sand);
    font-family: "Inter", system-ui, sans-serif;
}

/* ---------- cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 20px; right: 20px; bottom: 20px;
    z-index: 800;
    background: var(--graphite);
    color: var(--cream);
    padding: 18px 22px;
    border-radius: 16px;
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.93rem;
}
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner button {
    background: var(--terracotta);
    color: var(--cream);
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.92rem;
}
.cookie-banner button:hover { background: var(--terracotta-dark); }

/* ---------- 404 ---------- */
.error-404 {
    text-align: center;
    padding: 50px 0;
}
.error-404 h1 {
    font-size: 4rem;
    color: var(--terracotta);
    margin-bottom: 10px;
}
.error-404 .search-form { margin: 24px auto; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
    .hero-block {
        grid-template-columns: 1fr;
        padding: 36px 28px;
    }
    .hero-block .hero-text h1 { font-size: 1.8rem; }
    .hero-image { aspect-ratio: 16 / 10; order: -1; }
    .layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout.narrow .content-area { max-width: 100%; }
    .footer-cols { grid-template-columns: 1fr; gap: 30px; }
    .tips-block ul { columns: 1; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }

    .header-inner { gap: 14px; }
    .brand-block { width: 100%; }
    .brand-stamp { width: 56px; height: 56px; }
    .brand-name { font-size: 1.15rem; }
    .brand-desc { font-size: 0.82rem; }

    .main-nav { width: 100%; }
    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 8px 0;
        margin-top: 12px;
    }
    .main-nav.open ul { display: flex; }
    .main-nav ul li {
        border-bottom: 1px dotted var(--line);
    }
    .main-nav ul li:last-child { border-bottom: none; }
    .main-nav a {
        display: block;
        padding: 10px 16px;
        border-bottom: none;
    }
    .main-nav a:hover { border-bottom: none; }
    .nav-toggle { display: inline-block; margin-left: auto; }

    .hero-block { padding: 28px 20px; }
    .hero-block .hero-text h1 { font-size: 1.5rem; }
    .tips-block { padding: 28px 22px; }

    .card.card-row { flex-direction: column; }
    .card.card-row .card-thumb {
        flex: none;
        width: 100%;
        position: static;
    }
    .card.card-row .card-thumb a {
        position: static;
    }
    .card.card-row .card-thumb img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .site-footer { padding: 36px 0 20px; margin-top: 50px; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cookie-banner button { width: 100%; }
    .to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}
