/*
Theme Name: dds_traitdunion-saintcyrsurmer.com
Theme URI: https://traitdunion-saintcyrsurmer.com
Author: Гончарова Татьяна
Author URI: https://traitdunion-saintcyrsurmer.com
Description: Тема для сайта «Дизайн интерьера и выбор мебели». Идеи оформления интерьеров, подбор мебели и декора. Эстетика и функциональность.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: traitdunion
*/

/* ===== Шрифты ===== */
@import url("/assets/f40fd43c972911f04e56.css");

/* ===== Сброс ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: #F9F6F0;
    color: #2C2A29;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 19px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a { color: #C46A5B; text-decoration: none; transition: color .2s ease; }
a:hover { color: #B05A4C; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Manrope', sans-serif;
    color: #1E1E1E;
    font-weight: 600;
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

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

blockquote {
    margin: 1.5em 0;
    padding: 1.2em 1.4em;
    background: #F0EDE6;
    border-left: 5px solid #9BB0A4;
    font-style: italic;
    color: #2C2A29;
    border-radius: 2px;
}
blockquote p:last-child { margin-bottom: 0; }

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

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #E2DCD3;
    font-size: 0.95em;
}
th, td {
    border: 1px solid #E2DCD3;
    padding: 0.7em 0.9em;
    text-align: left;
    vertical-align: top;
}
th {
    background: #F0EDE6;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #1E1E1E;
}

code, pre {
    font-family: 'JetBrains Mono', Consolas, monospace;
    background: #F0EDE6;
    border-radius: 2px;
}
code { padding: 0.15em 0.4em; font-size: 0.9em; }
pre { padding: 1em; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }

/* ===== Контейнер ===== */
.layout-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Кнопки ===== */
.btn,
button.btn,
input[type="submit"].btn {
    display: inline-block;
    padding: 0.75em 1.6em;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 4px;
    border: 1px solid #C46A5B;
    background: #C46A5B;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, color .2s ease;
    text-align: center;
    line-height: 1.3;
}
.btn:hover {
    background: #B05A4C;
    border-color: #B05A4C;
    color: #fff;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

.btn-ghost {
    background: transparent;
    color: #C46A5B;
    border: 1px solid #C46A5B;
}
.btn-ghost:hover {
    background: rgba(196, 106, 91, 0.1);
    color: #C46A5B;
    box-shadow: none;
}

/* ===== Шапка ===== */
.site-top {
    background: #F9F6F0;
    border-bottom: 1px solid #E2DCD3;
    padding: 1.4em 0 1em;
}
.site-top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}
.brand-logo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: contain;
    display: block;
}
.brand svg.brand-logo { fill: #C46A5B; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.05rem;
    line-height: 1.15;
    color: #1E1E1E;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.brand-tag {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.92rem;
    color: #6e6a66;
    margin-top: 2px;
    line-height: 1.25;
    max-width: 420px;
}

/* Декоративная линия trait d'union, разрываемая логотипом */
.brand-line {
    flex: 1;
    height: 1px;
    background: #C46A5B;
    opacity: 0.55;
    min-width: 40px;
}

/* Главное меню */
.primary-nav[hidden] { display: none !important; }

.primary-nav { margin-left: auto; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 28px;
}
.primary-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1E1E1E;
    font-weight: 500;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    color: #C46A5B;
    border-bottom-color: #C46A5B;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    border: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    padding: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    background: #1E1E1E;
    height: 1.5px;
    width: 24px;
    border-radius: 2px;
    transition: transform .25s ease;
}
.menu-toggle span { position: relative; margin: 0 auto; }
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ===== Основной макет ===== */
.site-main {
    padding: 36px 0 60px;
}
.layout-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
}
.layout-grid.has-sidebar {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
}
.layout-grid.no-sidebar .content {
    max-width: 85%;
    margin: 0 auto;
}
.layout-grid.full-width .content {
    max-width: 85%;
    margin: 0 auto;
}

/* ===== Хлебные крошки ===== */
.crumbs {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6e6a66;
    margin: 0 0 1.5em;
}
.crumbs a { color: #6e6a66; }
.crumbs a:hover { color: #C46A5B; }
.crumbs .sep {
    margin: 0 0.5em;
    color: #C46A5B;
    opacity: 0.6;
}
.crumbs .current { color: #1E1E1E; }

/* ===== Карточки записей (правила A8, A10) ===== */
.cards-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    margin: 0 0 36px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E2DCD3;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: #C46A5B; }

.card-thumb-wrap {
    width: 100%;
    overflow: hidden;
    background: #F0EDE6;
    position: relative;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: filter .35s ease, opacity .35s ease;
}
.card:hover .card-thumb-wrap img {
    filter: blur(0.5px);
    opacity: 0.95;
}

.card-body {
    flex: 1;
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 0.5em;
}
.card-title a { color: #1E1E1E; }
.card-title a:hover { color: #C46A5B; }

.card-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #8a857f;
    margin: 0 0 0.7em;
    letter-spacing: 0.02em;
}
.card-meta a { color: #8a857f; }
.card-meta a:hover { color: #C46A5B; }

.card-excerpt {
    color: #2C2A29;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 0 1em;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-foot {
    margin-top: auto;
    padding-top: 0.6em;
}
.card-more {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #C46A5B;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color .2s ease;
}
.card-more:hover { border-bottom-color: #C46A5B; }

/* «Сохранить идею» — уголок-закладка */
.card-save {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.8);
    border: 1px solid #E2DCD3;
    border-radius: 50%;
    color: #C46A5B;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
    font-size: 14px;
}
.card:hover .card-save { opacity: 1; transform: translateY(-2px); }

/* ===== Запись и страница ===== */
.entry-head {
    margin-bottom: 1.5em;
    padding-bottom: 1.2em;
    border-bottom: 1px solid #E2DCD3;
}
.entry-title {
    margin: 0 0 0.3em;
    font-size: 2.2rem;
    line-height: 1.2;
}
.entry-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #8a857f;
    letter-spacing: 0.02em;
}
.entry-meta a { color: #8a857f; }
.entry-meta a:hover { color: #C46A5B; }

.entry-thumb {
    margin: 0 0 1.6em;
    border-radius: 4px;
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.05rem; }
.entry-content img { border-radius: 3px; display: block; margin: 1em 0; }
.entry-content figure { margin: 1.2em 0; }
.entry-content figcaption {
    font-size: 0.88rem;
    color: #8a857f;
    text-align: center;
    margin-top: 0.4em;
    font-family: 'Inter', sans-serif;
}

.entry-foot {
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px solid #E2DCD3;
}
.entry-tags {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6e6a66;
}
.entry-tags a {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 4px 4px 0;
    background: #F0EDE6;
    color: #2C2A29;
    border-radius: 999px;
    font-size: 0.82rem;
    transition: background .2s ease;
}
.entry-tags a:hover { background: #E2DCD3; color: #C46A5B; }

/* ===== Сайдбар ===== */
.sidebar { font-size: 0.95rem; }
.widget {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E2DCD3;
}
.widget:last-child { border-bottom: 0; }
.widget-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1E1E1E;
    margin: 0 0 1em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid #C46A5B;
    display: inline-block;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px dashed #E2DCD3;
    line-height: 1.4;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: #2C2A29; }
.widget ul li a:hover { color: #C46A5B; }

/* ===== Подвал ===== */
.site-bottom {
    background: #1E1E1E;
    color: #d8d2c8;
    padding: 50px 0 24px;
    margin-top: 60px;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
.foot-col .widget {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}
.foot-col .widget-title { color: #fff; border-bottom-color: #C46A5B; }
.foot-col,
.foot-col p,
.foot-col li,
.foot-col a { color: #d8d2c8; }
.foot-col a:hover { color: #C46A5B; }
.foot-col ul li { border-bottom-color: rgba(226, 220, 211, 0.15); }

.foot-bottom {
    border-top: 1px solid rgba(226, 220, 211, 0.15);
    padding-top: 22px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #a8a39a;
}

/* ===== Поиск ===== */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1em 0;
}
.search-form input[type="search"] {
    flex: 1;
    border: 0;
    border-bottom: 1px solid #C46A5B;
    background: transparent;
    padding: 8px 4px;
    font: inherit;
    color: #2C2A29;
    outline: none;
}
.search-form input[type="search"]:focus { border-bottom-color: #B05A4C; }
.search-form .search-go {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #C46A5B;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
    flex: 0 0 38px;
}
.search-form .search-go:hover { background: #B05A4C; }

/* ===== Пагинация ===== */
.paginate {
    margin: 30px 0 10px;
    font-family: 'Inter', sans-serif;
}
.paginate .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.paginate .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #E2DCD3;
    border-radius: 4px;
    color: #2C2A29;
    font-size: 0.9rem;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.paginate .page-numbers:hover {
    border-color: #C46A5B;
    color: #C46A5B;
}
.paginate .page-numbers.current {
    background: #C46A5B;
    border-color: #C46A5B;
    color: #fff;
}
.paginate .page-numbers.dots { border: 0; }

/* ===== Главная ===== */
.front-section {
    margin: 0 0 56px;
    padding: 36px 0;
    border-bottom: 1px solid #E2DCD3;
}
.front-section:last-child { border-bottom: 0; }
.front-section .section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1.4em;
}
.front-section .section-title {
    margin: 0;
    font-size: 1.85rem;
}
.front-section .section-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #6e6a66;
    font-size: 1.05rem;
}

.feat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 1em;
}
.feat-card {
    padding: 26px 24px;
    background: #fff;
    border: 1px solid #E2DCD3;
    border-radius: 4px;
    transition: border-color .25s ease;
}
.feat-card:hover { border-color: #9BB0A4; }
.feat-card h3 {
    margin: 0 0 0.5em;
    font-size: 1.15rem;
}
.feat-card p { margin: 0; font-size: 1rem; color: #2C2A29; }
.feat-num {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: #C46A5B;
    letter-spacing: 0.18em;
    margin-bottom: 0.5em;
    text-transform: uppercase;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 1em;
}
.step {
    padding: 22px 24px;
    background: #F0EDE6;
    border-left: 4px solid #9BB0A4;
    border-radius: 2px;
}
.step h3 { margin: 0 0 0.4em; font-size: 1.1rem; }
.step p { margin: 0; }

.tip-block {
    background: #F0EDE6;
    border-left: 5px solid #9BB0A4;
    padding: 1.2em 1.4em;
    margin: 1.5em 0;
    font-style: italic;
    border-radius: 2px;
}

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding: 50px 0;
}
.not-found .big {
    font-family: 'Inter', sans-serif;
    font-size: 6rem;
    color: #C46A5B;
    line-height: 1;
    margin: 0;
    font-weight: 700;
}
.not-found h1 { margin-top: 0.3em; }
.not-found .search-form { max-width: 460px; margin: 1.5em auto; }

/* ===== Комментарии ===== */
.comments-area { margin-top: 3em; }
.comments-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1em;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { margin: 0 0 1.2em; padding: 1em 1.2em; background: #fff; border: 1px solid #E2DCD3; border-radius: 3px; }
.comment-list .children { list-style: none; padding-left: 1.5em; margin-top: 1em; }
.comment-meta {
    font-size: 0.85rem;
    color: #8a857f;
    margin-bottom: 0.5em;
    font-family: 'Inter', sans-serif;
}
.comment-author { font-weight: 600; color: #1E1E1E; }
.comment-form { margin-top: 1.5em; }
.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #1E1E1E;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #E2DCD3;
    border-radius: 3px;
    background: #fff;
    font: inherit;
    color: #2C2A29;
    margin-bottom: 0.8em;
    outline: none;
    transition: border-color .2s ease;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus { border-color: #C46A5B; }
.comment-form textarea { min-height: 130px; resize: vertical; }

/* ===== Cookie-баннер (правило A11) ===== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #1E1E1E;
    color: #d8d2c8;
    padding: 16px 20px;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1; min-width: 220px; }
.cookie-banner a { color: #C46A5B; }
.cookie-banner button {
    background: #C46A5B;
    color: #fff;
    border: 0;
    padding: 9px 22px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background .2s ease;
}
.cookie-banner button:hover { background: #B05A4C; }

/* ===== Утилиты ===== */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.alignleft { float: left; margin: 0.4em 1.2em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.88rem; color: #8a857f; text-align: center; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .layout-grid.has-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }
    .foot-cols { grid-template-columns: repeat(2, 1fr); }
    .feat-row { grid-template-columns: repeat(2, 1fr); }
    h1, .entry-title { font-size: 1.85rem; }
    .layout-grid.no-sidebar .content,
    .layout-grid.full-width .content { max-width: 100%; }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    .layout-wrap { padding: 0 16px; }
    .site-top { padding: 1em 0 0.8em; }

    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .primary-nav[hidden] { display: none !important; }
    .primary-nav {
        order: 99;
        flex-basis: 100%;
        margin: 12px 0 0;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 6px;
        padding: 8px 0 4px;
    }
    .primary-nav a {
        padding: 10px 0;
        border-bottom: 1px solid #E2DCD3;
    }
    .primary-nav a:hover,
    .primary-nav .current-menu-item > a {
        border-bottom-color: #C46A5B;
    }
    .brand-line { display: none; }
    .brand-tag { font-size: 0.85rem; }

    .foot-cols { grid-template-columns: 1fr; gap: 24px; }
    .feat-row, .steps-row { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; gap: 22px; }
    .layout-grid { gap: 28px; }

    h1, .entry-title { font-size: 1.55rem; }
    h2 { font-size: 1.4rem; }

    /* Сброс абсолютного позиционирования миниатюр (правило A10) */
    .card-thumb-wrap { position: static; }
    .card-thumb-wrap a { position: static; }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 14px 16px;
    }
    .cookie-banner button { width: 100%; }
}
