/*
Theme Name: dds_miniotelbor.ru
Author: Елена Руднева
Description: Информационная тема образовательной платформы об индустрии гостеприимства. Адаптивная вёрстка, блог, виджеты, хлебные крошки.
Version: 1.1
Text Domain: miniotelbor
*/

/* ============ Переменные ============ */
:root {
    --bg: #f6f1e9;
    --surface: #ffffff;
    --ink: #272019;
    --muted: #6f655a;
    --primary: #2f4a42;
    --primary-dark: #213731;
    --accent: #bf8f47;
    --accent-soft: #f0e4cf;
    --line: #e4dccd;
    --footer-bg: #21342f;
    --footer-text: #d6cdbd;
    --footer-title: #f3ecde;
    --radius: 12px;
    --maxw: 1180px;
    --shadow: 0 8px 28px rgba(33, 55, 49, 0.08);
}

/* ============ База ============ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    line-height: 1.22;
    color: var(--primary-dark);
    margin: 0 0 0.5em;
}

h1 { font-size: 2.05rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

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

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

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

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0.7em 1.5em;
    border-radius: 8px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: background 0.2s ease;
}
.btn:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* ============ Шапка ============ */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--primary-dark);
    display: block;
    line-height: 1.3;
    max-width: 46ch;
}
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    display: block;
    max-width: 52ch;
    line-height: 1.4;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.96rem;
    color: var(--primary-dark);
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav .current-menu-item > a { color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

/* ============ Хлебные крошки ============ */
.crumbs {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1rem 0 0;
}
.crumbs a { color: var(--primary); }
.crumbs .sep { margin: 0 0.4em; color: var(--accent); }

/* ============ Макет ============ */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 2.6rem;
    padding: 2rem 0 3rem;
    align-items: start;
}
.layout-single {
    padding: 2rem 0 3rem;
}
.layout-single .content-area {
    max-width: 85%;
}
.content-area { min-width: 0; }

/* ============ Карточки записей ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.card-thumb-wrap {
    overflow: hidden;
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}
.card-title { font-size: 1.16rem; margin-bottom: 0.4rem; }
.card-title a { color: var(--primary-dark); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}
.card-excerpt { color: var(--ink); font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.7rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}
.card-more:hover { color: var(--primary); text-decoration: none; }

/* ============ Одиночная запись / страница ============ */
.entry {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow);
}
.entry-thumb { margin: 0 0 1.5rem; border-radius: 10px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-title { font-size: 2rem; }
.entry-meta {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.entry-content { font-size: 1.04rem; }
.entry-content img { border-radius: 8px; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5em 0;
    padding: 0.5em 1.2em;
    background: var(--accent-soft);
    border-radius: 0 8px 8px 0;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
}
.entry-content th,
.entry-content td { padding: 0.6em 0.8em; text-align: left; }
.entry-content th { background: var(--accent-soft); }

.tagcloud { margin-top: 1.5rem; }
.tagcloud a {
    display: inline-block;
    font-size: 0.82rem !important;
    background: var(--accent-soft);
    padding: 0.25em 0.7em;
    border-radius: 6px;
    margin: 0 0.3em 0.4em 0;
}

/* ============ Сайдбар ============ */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--primary-dark);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
}
.sidebar .widget a { color: var(--primary); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: none; }
.sidebar .post-date {
    display: block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ============ Главная ============ */
.home-section { padding: 3rem 0; }
.home-section:nth-child(even) { background: var(--surface); }
.section-head { margin-bottom: 1.8rem; }
.section-head .eyebrow {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.4rem;
}

/* Текст + иллюстрация */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}
.split.reverse .split-media { order: -1; }
.split-media img,
.split-media svg {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* Сетка иконок-преимуществ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.5rem;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-width: 0;
}
.home-section:nth-child(even) .feature { background: var(--bg); }
.feature .ic {
    width: 48px; height: 48px;
    display: block;
    margin-bottom: 0.9rem;
}
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 1.4rem 1.4rem 1.4rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    min-width: 0;
}
.home-section:nth-child(even) .step { background: var(--bg); }
.step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.step h3 { font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Цитата */
.pullquote {
    background: var(--primary);
    color: #f4eee2;
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
    text-align: center;
}
.pullquote p {
    font-size: 1.5rem;
    font-style: italic;
    margin: 0 auto;
    max-width: 60ch;
    color: #f4eee2;
}
.pullquote .author {
    display: block;
    margin-top: 1rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--accent-soft);
    letter-spacing: 0.05em;
}

/* Факты */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 1.5rem;
    text-align: center;
}
.fact { min-width: 0; }
.fact .big {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}
.fact span.lbl { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta {
    background: var(--accent-soft);
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
    text-align: center;
}
.cta h2 { color: var(--primary-dark); }
.cta p { max-width: 60ch; margin: 0 auto 1.5rem; color: var(--ink); }

/* Hero */
.hero {
    position: relative;
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem 0;
}
.hero img.hero-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(33,52,47,0.35), rgba(33,52,47,0.8));
    padding: 4rem 2.4rem;
}
.hero-overlay h1 { color: #fff; font-size: 2.3rem; max-width: 22ch; }
.hero-overlay p { max-width: 52ch; font-size: 1.1rem; color: #f1ece1; }

/* Последние записи блок */
.latest-head { text-align: center; margin-bottom: 2rem; }

/* ============ Пагинация ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.5rem 0 1rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--primary-dark);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
}
.pager a.page-numbers:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    text-decoration: none;
}
.pager .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pager .page-numbers.dots {
    border: none;
    background: none;
}

/* ============ Комментарии ============ */
.comments-area {
    margin-top: 2.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.5rem; padding: 0; }
.comment-item { margin: 0 0 1.2rem; }
.comment-inner {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    background: var(--bg);
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.comment-author { font-weight: 700; color: var(--primary-dark); }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-await { font-size: 0.85rem; color: var(--accent); }
.comment-reply a { font-size: 0.85rem; color: var(--accent); }

.comment-respond {
    margin-top: 1.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    min-width: 0;
}
.comment-form p { margin-bottom: 0.9rem; }
.comment-form .submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7em 1.6em;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ============ Форма поиска ============ */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.6em 0.9em;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form .search-submit {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 1.2em;
    cursor: pointer;
    font-size: 0.95rem;
}

/* ============ 404 ============ */
.notfound {
    text-align: center;
    padding: 3rem 0;
}
.notfound .code {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}
.notfound .search-form { margin: 1.8rem auto; }

/* ============ Подвал ============ */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
    padding: 3rem 0 2rem;
}
.footer-col { min-width: 0; }
.footer-col .widget { color: var(--footer-text); margin-bottom: 1rem; }
.footer-col .widget-title {
    color: var(--footer-title);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}
.footer-col .widget p { color: var(--footer-text); }
.footer-col .widget a { color: var(--footer-title); }
.footer-col .widget a:hover { color: var(--accent); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: 0.35rem 0; }
.footer-col .post-date { color: var(--footer-text); opacity: 0.7; font-size: 0.78rem; display: block; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 1.3rem 0;
    font-size: 0.85rem;
    color: var(--footer-text);
    text-align: center;
}

/* ============ Cookie-баннер ============ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--primary-dark);
    color: #f1ece1;
    padding: 1rem 0;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.9rem; flex: 1; min-width: 220px; }
.cookie-inner a { color: var(--accent); }
.cookie-accept {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.6em 1.5em;
    cursor: pointer;
    font-size: 0.92rem;
    white-space: nowrap;
}

/* ============ Адаптив ============ */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; }
    .layout-single .content-area { max-width: 100%; }
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
    .hero-overlay { padding: 3rem 1.6rem; }
    h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }
    .main-nav.open ul { display: flex; }
    .main-nav li { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
    .brand-desc { display: none; }
    .pullquote p { font-size: 1.2rem; }
    .entry { padding: 1.4rem 1.3rem; }
}
