/*
Theme Name: dds_styldoma.ru
Author: Елена Воронова
Description: Тема для информационного сайта об интерьере, уюте и обустройстве дома.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sdoma
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EDF3;
    --panel: #FFFFFF;
    --deep: #1B2A3B;
    --deep-2: #2C4056;
    --ink: #1F2A36;
    --copper: #D48C6B;
    --steel: #82A6B5;
    --muted: #7B8A9A;
    --hair: #DCE4EC;
    --pattern: #E2E9F2;
    --radius: 12px;
    --btn-radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(60deg, rgba(226, 233, 242, 0.55) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(120deg, rgba(226, 233, 242, 0.55) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(226, 233, 242, 0.4) 0 1px, transparent 1px 58px);
    font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -220px;
    right: -180px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 140, 107, 0.22) 0%, rgba(212, 140, 107, 0.08) 45%, rgba(212, 140, 107, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

.site-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Lora", "Literata", Georgia, "Times New Roman", serif;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 500;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.5rem; font-weight: 300; letter-spacing: -0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

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

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

.btn,
.btn-solid {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: var(--btn-radius);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.btn:hover {
    text-decoration: none;
    transform: translateY(2px);
    box-shadow: 0 6px 18px rgba(212, 140, 107, 0.28);
}

.btn-solid {
    border: 1px solid var(--copper);
    background: var(--copper);
    color: #FFFFFF;
}

.btn-solid:hover {
    text-decoration: none;
    transform: translateY(2px);
    box-shadow: 0 6px 20px rgba(212, 140, 107, 0.42);
}

.btn-ghost {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    border-radius: var(--btn-radius);
    color: var(--steel);
    background: transparent;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover { text-decoration: none; color: var(--copper); border-color: rgba(212, 140, 107, 0.45); }

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

.site-head {
    position: relative;
    background: rgba(244, 247, 250, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hair);
}

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

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

.brand:hover { text-decoration: none; }

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

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

.brand-title {
    display: block;
    font-family: "Lora", "Literata", Georgia, serif;
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--ink);
    max-width: 460px;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 460px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--steel);
    border-radius: var(--btn-radius);
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--ink);
    font-size: 0.95rem;
    border-radius: var(--btn-radius);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover {
    text-decoration: none;
    color: var(--copper);
    border-bottom-color: var(--copper);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--copper); border-bottom-color: rgba(212, 140, 107, 0.5); }

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

.breadcrumbs {
    padding: 1.4rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumbs a { color: var(--steel); }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs .sep { margin: 0 0.45rem; color: var(--copper); }

/* ---------- Раскладки ---------- */

.site-main { flex: 1 0 auto; padding: 2.2rem 0 4.5rem; }

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

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

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

.sidebar {
    min-width: 0;
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: 0 12px 30px rgba(27, 42, 59, 0.07);
}

/* ---------- Виджеты ---------- */

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

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin: 0 0 0.9rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--copper);
    line-height: 1.3;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--ink); }

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

.sidebar .widget li {
    padding: 0.55rem 0 0.55rem 1rem;
    position: relative;
    border-bottom: 1px solid var(--hair);
    font-size: 0.94rem;
    line-height: 1.5;
}

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

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

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--copper); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.8rem; }

.site-foot .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0 0 0.9rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--copper);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .widget .textwidget { color: #C7D3DF; font-size: 0.92rem; }

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

.site-foot .widget li { padding: 0.34rem 0; border: none; }

.site-foot .widget a { color: #E3EAF1; }
.site-foot .widget a:hover { color: var(--copper); }
.site-foot .widget .post-date { display: block; color: #8FA1B3; font-size: 0.8rem; }

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

.card-list { display: flex; flex-direction: column; gap: 1.6rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    border-bottom: 4px solid transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(130, 166, 181, 0.28);
    border-bottom-color: var(--copper);
}

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

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

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

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

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

.card-title {
    font-size: 1.3rem;
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--copper); text-decoration: none; }

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
    letter-spacing: 0.02em;
}

.card-excerpt { color: #46545F; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin-top: auto; padding-top: 0.9rem; }

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

.front-section { padding: 3.6rem 0; position: relative; }
.front-section.alt { background: var(--bg-alt); }

.section-head { margin-bottom: 2rem; }

.section-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 2rem;
    margin: 0 0 0.5rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.18em;
    width: 4px;
    border-radius: 2px;
    background: var(--copper);
}

.section-lead { color: var(--muted); max-width: 720px; margin: 0; }

.wave-sep {
    display: block;
    width: 100%;
    height: 26px;
    color: var(--copper);
    opacity: 0.55;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 2.4rem;
    border-radius: 18px;
    margin-top: 2rem;
    background:
        radial-gradient(circle at 52% 45%, rgba(212, 140, 107, 0.4) 0%, rgba(212, 140, 107, 0.12) 34%, rgba(212, 140, 107, 0) 62%),
        linear-gradient(135deg, #E8EDF3 0%, #F4F7FA 100%);
}

.hero-inner { position: relative; max-width: 760px; }

.hero h1 { margin-bottom: 1.1rem; }

.hero h1 .mark {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-size: 100% 4px;
    background-position: 0 100%;
}

.hero-lead { font-size: 1.12rem; color: #3C4A57; max-width: 620px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

/* Чек-лист «заметки на холодильнике» */

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

.note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    background: var(--panel);
    padding: 1.15rem 1.4rem;
    border-radius: 4px;
    box-shadow: 0 6px 16px rgba(27, 42, 59, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.note:nth-child(even) { transform: rotate(-0.35deg); }
.note:nth-child(odd) { transform: rotate(0.3deg); }
.note:hover { transform: none; box-shadow: 0 12px 26px rgba(130, 166, 181, 0.3); }

.note-icon { flex: 0 0 auto; width: 30px; height: 30px; color: var(--steel); }
.note-body { min-width: 0; }
.note-body strong { display: block; font-family: "Lora", "Literata", Georgia, serif; font-size: 1.06rem; margin-bottom: 0.15rem; }
.note-body span { color: var(--muted); font-size: 0.93rem; }

/* Цитата */

.quote-band {
    position: relative;
    padding: 4rem 0;
    background:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(120deg, #1B2A3B 0%, #2C4056 100%);
    background-size: 4px 4px, auto;
}

.quote-plate {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.4rem 2.2rem;
    min-width: 0;
}

.quote-bar {
    flex: 0 0 8px;
    align-self: stretch;
    min-height: 120px;
    background: var(--copper);
    border-radius: 4px;
}

.quote-plate blockquote {
    margin: 0;
    min-width: 0;
    font-family: "Lora", "Literata", Georgia, serif;
    font-size: 2.1rem;
    line-height: 1.35;
    font-weight: 300;
    color: #F1F5F9;
}

.quote-plate cite {
    display: block;
    margin-top: 1rem;
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 0.88rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
}

/* Рубрикатор */

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

.rubric {
    display: block;
    min-width: 0;
    padding: 2rem 1.5rem;
    background: var(--panel);
    border-radius: var(--radius);
    color: var(--ink);
    text-align: left;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.rubric-icon { display: block; width: 42px; height: 42px; color: var(--steel); margin-bottom: 1.1rem; transition: color 0.25s ease; }
.rubric-name { display: block; font-family: "Lora", "Literata", Georgia, serif; font-size: 1.3rem; margin-bottom: 0.35rem; }
.rubric-desc { display: block; font-size: 0.9rem; color: var(--muted); transition: color 0.25s ease; }

.rubric:hover {
    text-decoration: none;
    background: var(--copper);
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(212, 140, 107, 0.32);
}

.rubric:hover .rubric-icon,
.rubric:hover .rubric-desc { color: #FFFFFF; }

/* Лента последних записей на главной */

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

.fcard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    border-bottom: 4px solid transparent;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.fcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 38px rgba(130, 166, 181, 0.28);
    border-bottom-color: var(--copper);
}

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

.fcard-body { flex: 1; min-width: 0; padding: 1.3rem 1.4rem; display: flex; flex-direction: column; }
.fcard-title { font-size: 1.18rem; margin: 0 0 0.5rem; line-height: 1.32; }
.fcard-title a { color: var(--ink); }
.fcard-title a:hover { color: var(--copper); text-decoration: none; }
.fcard-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; }
.fcard-excerpt { font-size: 0.93rem; color: #46545F; }
.fcard-excerpt p { margin: 0 0 0.5em; background: none; }
.fcard-more { margin-top: auto; padding-top: 0.8rem; }

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

/* ---------- Контент записи / страницы ---------- */

.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.6rem; margin-bottom: 0.5rem; }
.entry-meta { font-size: 0.85rem; color: var(--muted); }

.entry-thumb { margin-bottom: 1.8rem; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

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

.entry-content h2,
.entry-content h3 {
    position: relative;
    margin-top: 2rem;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: -1.15rem;
    top: 0.42em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--copper);
}

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.45rem; }

.entry-content img { border-radius: var(--radius); display: block; }

.entry-content blockquote {
    position: relative;
    margin: 1.8rem 0;
    padding: 1.5rem 1.7rem 1.5rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    color: #2F3D49;
    font-family: "Lora", "Literata", Georgia, serif;
    font-size: 1.12rem;
}

.entry-content blockquote::before {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 1rem;
    bottom: 1rem;
    width: 6px;
    border-radius: 3px;
    background: repeating-linear-gradient(180deg, var(--copper) 0 9px, rgba(212, 140, 107, 0.25) 9px 14px, var(--copper) 14px 21px, rgba(212, 140, 107, 0.2) 21px 26px);
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.entry-content table,
.entry-content th,
.entry-content td { border: 1px solid var(--hair); }

.entry-content th,
.entry-content td { padding: 0.7rem 0.85rem; text-align: left; }

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

.entry-content code {
    background: var(--bg-alt);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre {
    background: var(--bg-alt);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2.4rem; }

.post-tags { margin-top: 2rem; font-size: 0.88rem; color: var(--muted); }
.post-tags a {
    display: inline-block;
    margin: 0.2rem 0.3rem 0.2rem 0;
    padding: 0.28rem 0.7rem;
    border: 1px solid var(--hair);
    border-radius: var(--btn-radius);
    color: var(--steel);
}
.post-tags a:hover { text-decoration: none; border-color: var(--copper); color: var(--copper); }

.no-posts { padding: 2rem; background: var(--panel); border-radius: var(--radius); }

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border: 1px solid var(--hair);
    border-radius: var(--btn-radius);
    background: var(--panel);
    color: var(--ink);
    font-size: 0.92rem;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pager a.page-numbers:hover {
    text-decoration: none;
    color: var(--copper);
    border-color: var(--copper);
    transform: translateY(2px);
    box-shadow: 0 6px 14px rgba(212, 140, 107, 0.25);
}

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

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

/* ---------- Формы ---------- */

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

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

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

.search-form button {
    padding: 0.65rem 1.2rem;
    border: 1px solid var(--copper);
    border-radius: var(--btn-radius);
    background: var(--copper);
    color: #FFFFFF;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.search-form button:hover { transform: translateY(2px); box-shadow: 0 6px 18px rgba(212, 140, 107, 0.35); }

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

.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 1rem 0 0; padding-left: 1.6rem; }

.comment-list li article {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

.comment-author { font-weight: 600; font-size: 0.98rem; }
.comment-metadata { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
.comment-metadata a { color: var(--muted); }

.comment-respond {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--hair);
    border-radius: var(--btn-radius);
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

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

.comment-form .submit {
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--copper);
    border-radius: var(--btn-radius);
    background: var(--copper);
    color: #FFFFFF;
    font: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover { transform: translateY(2px); box-shadow: 0 6px 18px rgba(212, 140, 107, 0.35); }

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

.err-box { text-align: center; padding: 3rem 2rem; }
.err-code { font-family: "Lora", "Literata", Georgia, serif; font-size: 6rem; line-height: 1; color: var(--copper); font-weight: 300; }
.err-search { max-width: 460px; margin: 1.8rem auto 1.6rem; }

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

.site-foot {
    background: var(--deep);
    color: #C7D3DF;
    padding: 3.2rem 0 1.6rem;
    margin-top: auto;
}

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

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

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(199, 211, 223, 0.18);
    font-size: 0.85rem;
    color: #8FA1B3;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: rgba(27, 42, 59, 0.96);
    color: #E3EAF1;
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; max-width: 760px; }
.cookie-banner a { color: var(--copper); }

.cookie-banner button {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--copper);
    border-radius: var(--btn-radius);
    background: var(--copper);
    color: #FFFFFF;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cookie-banner button:hover { transform: translateY(2px); box-shadow: 0 6px 18px rgba(212, 140, 107, 0.4); }

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

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

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

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

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

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        padding-bottom: 1rem;
    }

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

    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }

    .main-nav a {
        padding: 0.75rem 0.4rem;
        border-bottom: 1px solid var(--hair);
        border-radius: 0;
    }

    .head-inner { flex-wrap: wrap; }
    .hero { padding: 3.4rem 1.8rem; }
    .quote-plate { gap: 1.4rem; padding: 2rem 1.6rem; }
    .quote-plate blockquote { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.75rem; }
    .section-title { font-size: 1.6rem; }

    .front-section { padding: 2.6rem 0; }
    .hero { padding: 2.4rem 1.3rem; margin-top: 1.2rem; }
    .hero-lead { font-size: 1rem; }

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

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-thumb-wrap a { position: static; }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

    .rubrics { grid-template-columns: minmax(0, 1fr); }
    .front-posts { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }

    .quote-plate { flex-direction: column; align-items: flex-start; padding: 1.8rem 1.4rem; gap: 1.1rem; }
    .quote-bar { flex: none; width: 64px; min-height: 8px; height: 8px; align-self: flex-start; }
    .quote-plate blockquote { font-size: 1.45rem; }

    .note { padding: 1rem 1.15rem; transform: none; }
    .rubric { padding: 1.6rem 1.3rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.2rem; }
    .err-code { font-size: 4.2rem; }
    .brand-desc { display: none; }
}

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