/*
Theme Name: dds_alicialehmann.com
Author: Алисия Леманн
Description: Информационная тема для персонального блога эксперта по интерьеру. Тёплая нейтральная палитра, акцент на статьях и идеях для дома.
Version: 1.1
Text Domain: alh
*/

:root {
    --bg: #faf6f0;
    --surface: #ffffff;
    --surface-soft: #f2e9dd;
    --ink: #2b2420;
    --muted: #6f655b;
    --accent: #b06a43;
    --accent-deep: #8d4f2c;
    --line: #e3d8c9;
    --footer-bg: #2b2420;
    --footer-text: #d9cdbe;
    --footer-muted: #a8998a;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", -apple-system, Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.25;
    color: var(--ink);
    font-weight: 600;
}

h1 { font-size: 2.2rem; margin: 0 0 0.6em; }
h2 { font-size: 1.7rem; margin: 0 0 0.6em; }
h3 { font-size: 1.25rem; margin: 0 0 0.4em; }

p { margin: 0 0 1em; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
}

/* ---------- Шапка ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.brand-logo { display: block; height: 56px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    display: block;
    line-height: 1.3;
}
.brand-name a { color: inherit; }
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    margin: 2px 0 0;
    max-width: 520px;
}

.nav-toggle {
    display: none;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--ink);
    font-size: 0.95rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: var(--ink);
    font-size: 0.98rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover {
    text-decoration: none;
    border-bottom-color: var(--accent);
}
.main-nav .current-menu-item > a {
    border-bottom-color: var(--accent);
}

/* ---------- Крошки ---------- */
.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 18px 0 0;
}
.crumbs a { color: var(--accent-deep); }
.crumbs .sep { color: var(--line); margin: 0 2px; }

/* ---------- Макеты ---------- */
.site-main { padding: 28px 0 56px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 40px;
    align-items: start;
    margin-top: 22px;
}
.layout-single {
    display: block;
    margin-top: 22px;
}
.content-area { min-width: 0; }

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 24px;
}
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 14px;
    color: var(--ink);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--surface-soft);
}
.sidebar .widget,
.sidebar .widget a,
.sidebar .widget li { color: var(--ink); }
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--accent-deep); }
.sidebar .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ---------- Карточки записей ---------- */
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-body {
    flex: 1;
    padding: 22px 24px 26px;
}
.card-title { margin: 0 0 8px; font-size: 1.35rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent-deep); text-decoration: none; }
.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 12px;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.read-more {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--accent-deep);
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 0.95rem;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border: none;
    background: none;
}

/* ---------- Запись / страница ---------- */
.entry {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 34px 38px;
    box-shadow: var(--shadow);
}
.entry-header { margin-bottom: 18px; }
.entry-title { margin: 0 0 8px; }
.entry-meta { font-size: 0.85rem; color: var(--muted); }
.entry-thumb {
    margin: 0 0 22px;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 10px; }
.entry-content h2 { margin-top: 1.4em; }
.entry-content blockquote {
    margin: 1.4em 0;
    padding: 4px 22px;
    border-left: 4px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.2em 0;
}
table, th, td {
    border: 1px solid var(--line);
}
th, td {
    padding: 10px 14px;
    text-align: left;
}
th { background: var(--surface-soft); }

.tags-line {
    margin-top: 26px;
    font-size: 0.85rem;
    color: var(--muted);
}
.tags-line a {
    display: inline-block;
    background: var(--surface-soft);
    color: var(--accent-deep);
    padding: 3px 11px;
    border-radius: 999px;
    margin: 0 6px 6px 0;
}

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 34px;
}
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin: 0 0 0 26px;
    padding: 0;
}
.comment-inner {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.comment-author { font-weight: 600; }
.comment-date { font-size: 0.78rem; color: var(--muted); }
.comment-respond {
    margin-top: 24px;
}
.comment-respond label {
    display: block;
    font-size: 0.88rem;
    margin: 10px 0 4px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--bg);
}
.comment-respond .submit,
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
}
.btn:hover, .comment-respond .submit:hover {
    background: var(--accent-deep);
    text-decoration: none;
    color: #fff;
}

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 8px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--surface);
}
.search-form .search-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    font: inherit;
}

/* ---------- Главная: секции ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head {
    max-width: 680px;
    margin-bottom: 34px;
}
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 10px;
}

/* hero / текст + иллюстрация */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}
.feature.reverse .feature-media { order: -1; }
.feature-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.feature-text h1, .feature-text h2 { margin-top: 0; }

.section-hero {
    background: linear-gradient(180deg, #f4ece1 0%, var(--bg) 100%);
}

/* сетка рубрик */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    min-width: 0;
}
.tile-ico {
    width: 46px;
    height: 46px;
    color: var(--accent);
    margin-bottom: 12px;
}
.tile h3 { margin: 0 0 6px; }
.tile p { margin: 0; font-size: 0.94rem; color: var(--muted); }

/* шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    counter-reset: step;
}
.step {
    min-width: 0;
    padding-top: 14px;
    border-top: 3px solid var(--surface-soft);
}
.step::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    font-family: Georgia, serif;
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: 8px;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 200px;
    gap: 16px;
}
.gallery-grid figure {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-soft);
}
.gallery-grid figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-grid .wide { grid-column: span 2; }
.gallery-grid .tall { grid-row: span 2; }

/* последние записи на главной */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
.latest-grid .card { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 760px; }
.faq details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 4px 20px;
    margin-bottom: 12px;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    padding: 14px 0;
    font-family: Georgia, serif;
    font-size: 1.05rem;
}
.faq details[open] summary { color: var(--accent-deep); }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* CTA / цитата */
.callout {
    background: var(--ink);
    color: #f6efe6;
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}
.callout h2 { color: #fff; }
.callout p { color: var(--footer-text); max-width: 640px; margin-inline: auto; }
.callout .btn { margin-top: 18px; }

.quote-block {
    text-align: center;
    max-width: 820px;
    margin-inline: auto;
}
.quote-block blockquote {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    line-height: 1.4;
    font-style: italic;
    margin: 0 0 14px;
    color: var(--ink);
}
.quote-block cite {
    color: var(--accent);
    font-style: normal;
    font-weight: 600;
}

/* ---------- Подвал ---------- */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 52px 0 26px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}
.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 14px;
}
.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li { color: var(--footer-text); }
.site-footer .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .widget li { padding: 6px 0; }
.site-footer .widget a { color: var(--footer-text); }
.site-footer .widget a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 40px;
    padding-top: 22px;
    font-size: 0.85rem;
    color: var(--footer-muted);
}

/* ---------- Cookie-баннер (A11, D6) ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    background: var(--ink);
    color: #f4ece1;
    padding: 16px 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 240px; }
.cookie-inner a { color: #f0c9a8; }
.cookie-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-accept:hover { background: var(--accent-deep); }

/* ---------- 404 ---------- */
.notfound {
    text-align: center;
    padding: 40px 0;
}
.notfound .code {
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--accent);
    line-height: 1;
}
.notfound .search-form {
    max-width: 460px;
    margin: 24px auto 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .feature { grid-template-columns: 1fr; gap: 28px; }
    .feature.reverse .feature-media { order: 0; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: 1fr; }
    .latest-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.45rem; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        width: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: 12px 0; }
    .tiles { grid-template-columns: 1fr; }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .gallery-grid .wide,
    .gallery-grid .tall {
        grid-column: auto;
        grid-row: auto;
    }
    .entry { padding: 24px 20px; }
    .callout { padding: 32px 22px; }
    .quote-block blockquote { font-size: 1.35rem; }
}
