/* ==========================================================================
   little-order.ru — стили сайта
   Палитра «Клён и глина»: кремовый фон, терракота (основной акцент),
   глубокая бирюза (второй акцент), олива (метки рубрик),
   тёмный шоколад (текст и футер).
   Имена переменных оставлены прежними (rose/lavender/teal/plum) —
   значения взяты из новой палитры.
   ========================================================================== */

:root {
    --bg: #faf5ef;
    --bg-soft: #f2eae0;
    --surface: #ffffff;
    --ink: #3b322b;
    --ink-soft: #6b5f55;
    --muted: #8c8078;
    --rose: #b8693f;
    --rose-dark: #96522f;
    --rose-soft: #f4e0d3;
    --lavender: #4e7d74;
    --lavender-soft: #e3edea;
    --teal: #8d7a3c;
    --teal-soft: #f0eadb;
    --plum: #3a2f28;
    --plum-dark: #2a221c;
    --line: #ece2d6;
    --shadow: 0 12px 34px rgba(58, 47, 40, .08);
    --shadow-sm: 0 4px 14px rgba(58, 47, 40, .06);
    --radius: 18px;
    --radius-sm: 12px;
    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font: 16px/1.7 var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 4px; }

::selection { background: var(--rose-soft); color: var(--plum-dark); }

.container { width: min(1180px, calc(100% - 32px)); margin: auto; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--rose);
    color: #fff;
    padding: 10px 16px;
    z-index: 50;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; text-decoration: none; }

/* ---------------------------------------------------------------- header */

.site-header { position: relative; z-index: 30; }

.utility { background: var(--plum); font: 13.5px var(--font-sans); }
.utility-inner { min-height: 34px; display: flex; justify-content: flex-end; gap: 22px; align-items: center; }
.utility a { color: #f0e8db; }
.utility a:hover { color: #fff; }

.brand-row { background: var(--surface); border-bottom: 1px solid var(--line); }
.brand-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; gap: 14px; align-items: center; color: var(--plum-dark); }
.brand:hover { text-decoration: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--rose) 0%, var(--lavender) 100%);
    color: #fff;
    font: 600 15px/1 var(--font-serif);
    letter-spacing: .5px;
    flex: 0 0 auto;
}
.brand-text { display: block; min-width: 0; }
.brand-name { display: block; font: 600 25px/1.1 var(--font-serif); letter-spacing: -.2px; }
.brand-tld { color: var(--rose); }
.brand-tagline { display: block; margin-top: 4px; font: 13px var(--font-sans); color: var(--muted); }
.brand-note {
    font: 12.5px var(--font-sans);
    color: var(--teal);
    background: var(--teal-soft);
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

.main-nav { position: sticky; top: 0; z-index: 20; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.nav-inner { min-height: 48px; display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: thin; }
.nav-inner a {
    font: 14.5px var(--font-sans);
    color: var(--plum);
    padding: 7px 13px;
    border-radius: 999px;
    white-space: nowrap;
}
.nav-inner a:hover { background: #fff; color: var(--rose-dark); text-decoration: none; }
.nav-inner .nav-all { margin-left: auto; color: var(--rose-dark); font-weight: 600; }

/* ------------------------------------------------------------------ main */

.site-main { padding: 40px 0 60px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; align-items: start; }
.content { min-width: 0; }

.hero {
    position: relative;
    overflow: hidden;
    padding: 38px 36px 34px;
    margin-bottom: 34px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f7ede3 0%, #f3e9dc 52%, #ece4d5 100%);
    box-shadow: var(--shadow-sm);
}
.hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 105, 63, .18), rgba(184, 105, 63, 0) 70%);
}
.hero-kicker {
    margin: 0 0 10px;
    font: 600 12px var(--font-sans);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--rose);
}
.hero h1 {
    margin: 0 0 14px;
    font: 600 38px/1.18 var(--font-serif);
    color: var(--plum-dark);
    max-width: 22ch;
}
.hero-text { margin: 0 0 22px; color: var(--ink-soft); max-width: 62ch; font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    font: 600 14.5px var(--font-sans);
    box-shadow: 0 8px 20px rgba(184, 105, 63, .25);
}
.button:hover { background: var(--rose-dark); color: #fff; text-decoration: none; }
.button-ghost { background: #fff; color: var(--rose-dark); box-shadow: var(--shadow-sm); }
.button-ghost:hover { background: #fff; color: var(--rose); }

.page-heading { margin: 0 0 30px; }
.page-heading h1,
.article-header h1,
.author-card h1 {
    font: 600 36px/1.2 var(--font-serif);
    margin: 0 0 10px;
    color: var(--plum-dark);
}
.page-heading p { margin: 0; color: var(--ink-soft); max-width: 68ch; }

/* --------------------------------------------------------- blocks & cards */

.category-block { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.category-block:last-child { border-bottom: 0; margin-bottom: 0; }

.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.section-title h2,
.sidebar h2,
.list-title { font: 600 25px/1.25 var(--font-serif); margin: 0; color: var(--plum-dark); }
.section-title h2 a { color: inherit; }
.section-intro { margin: 0 0 20px; color: var(--ink-soft); font-size: 15.5px; max-width: 70ch; }
.section-link,
.read-more { font: 600 14px var(--font-sans); white-space: nowrap; }
.read-more::after { content: " →"; }
.read-more:hover { text-decoration: none; }
.read-more:hover::after { content: " →"; }

.category-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal);
    font: 600 11.5px var(--font-sans);
    letter-spacing: .9px;
    text-transform: uppercase;
}
.category-label:hover { background: var(--teal); color: #fff; text-decoration: none; }

.featured-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    padding: 16px;
    margin-bottom: 18px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.featured-card h3 { margin: 0 0 10px; font: 600 24px/1.3 var(--font-serif); }
.featured-card h3 a { color: var(--plum-dark); }
.featured-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15.5px; }
.featured-body { display: flex; flex-direction: column; justify-content: center; }

.card-image { display: block; height: 268px; border-radius: var(--radius-sm); overflow: hidden; }
.featured-card img,
.compact-card img,
.post-card img,
.sidebar-post img,
.article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.featured-card .card-image img { height: 268px; }

.compact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.compact-card { background: var(--surface); border-radius: var(--radius-sm); padding: 12px; box-shadow: var(--shadow-sm); }
.compact-card > a { display: block; height: 104px; border-radius: 9px; overflow: hidden; }
.compact-card h3 { margin: 11px 0 0; font: 600 15px/1.4 var(--font-sans); }
.compact-card h3 a { color: var(--plum); }
.compact-card:hover { box-shadow: var(--shadow); }

.post-list { display: grid; gap: 22px; }
.post-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.post-card-image { display: block; height: 208px; border-radius: var(--radius-sm); overflow: hidden; }
.post-card-content { padding: 4px 6px 4px 0; min-width: 0; }
.post-card h2 { margin: 0 0 8px; font: 600 23px/1.3 var(--font-serif); }
.post-card h2 a { color: var(--plum-dark); }
.post-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15.5px; }
.post-meta { margin-bottom: 10px; font: 13px var(--font-sans); color: var(--muted); }
.post-meta a { color: var(--muted); }

.empty-note { padding: 16px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); color: var(--ink-soft); }

/* --------------------------------------------------------------- sidebar */

.sidebar { display: grid; gap: 22px; position: sticky; top: 68px; }
.sidebar-block { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.sidebar h2 { font-size: 20px; margin-bottom: 14px; }
.sidebar-start { background: linear-gradient(150deg, #fff 0%, #f8f0e6 100%); }
.start-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.start-list a { display: block; padding-left: 14px; border-left: 3px solid var(--rose-soft); }
.start-list a:hover { border-left-color: var(--rose); text-decoration: none; }
.start-name { display: block; font: 600 15.5px var(--font-sans); color: var(--plum-dark); }
.start-note { display: block; font-size: 13px; color: var(--muted); }

.sidebar-post { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.sidebar-post:first-of-type { border-top: 0; padding-top: 0; }
.sidebar-post > a { display: block; height: 64px; border-radius: 10px; overflow: hidden; }
.sidebar-post h3 { margin: 0; font: 600 15px/1.4 var(--font-sans); }
.sidebar-post h3 a { color: var(--plum); }
.sidebar-meta { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.gentle-note {
    background: var(--lavender-soft);
    border-left: 4px solid var(--lavender);
    border-radius: var(--radius-sm);
    padding: 20px 22px;
}
.gentle-note h2 { font: 600 17px var(--font-sans); margin: 0 0 8px; color: #2f5b54; }
.gentle-note p { margin: 0; font-size: 14px; color: #3f5c56; }

/* --------------------------------------------------------------- article */

.article {
    background: var(--surface);
    border-radius: 20px;
    padding: 34px 36px 30px;
    box-shadow: var(--shadow-sm);
}
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 18px; font: 13px var(--font-sans); color: var(--muted); }
.breadcrumbs .crumb + .crumb::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--rose-dark); }
.breadcrumbs span { color: var(--muted); }

.article-header { margin-bottom: 22px; }
.article-header h1 { font-size: 37px; max-width: 26ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 13.5px var(--font-sans); color: var(--muted); }
.article-meta a { color: var(--ink-soft); }

.article-cover { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; height: 380px; box-shadow: var(--shadow-sm); }

.article-body { font: 17.5px/1.78 var(--font-serif); color: #3a322b; margin-top: 6px; }
.article-body > p:first-of-type { font-size: 19px; color: var(--plum); }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 {
    font: 600 27px/1.3 var(--font-serif);
    margin: 38px 0 14px;
    color: var(--plum-dark);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--rose-soft);
}
.article-body h3 { font: 600 21px/1.35 var(--font-serif); margin: 28px 0 10px; color: var(--plum-dark); }
.article-body ul,
.article-body ol { margin: 0 0 1.2em; padding-left: 24px; }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
    margin: 24px 0;
    padding: 16px 22px;
    background: var(--bg-soft);
    border-left: 4px solid var(--rose);
    border-radius: var(--radius-sm);
    font-style: italic;
}
.article-body img { border-radius: var(--radius-sm); height: auto; }
.article-body a { text-decoration: underline; text-decoration-color: var(--rose-soft); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--rose); }

.share-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.share-label { font: 600 13px var(--font-sans); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.share-links { display: flex; flex-wrap: wrap; gap: 10px; }
.share-links a {
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--bg-soft);
    color: var(--rose-dark);
    font: 600 13.5px var(--font-sans);
}
.share-links a:hover { background: var(--rose); color: #fff; text-decoration: none; }

.article .gentle-note { margin-top: 28px; }

.see-also { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.see-also h2 { font: 600 22px var(--font-serif); margin: 0 0 16px; color: var(--plum-dark); }
.see-also-links { display: grid; gap: 10px; }
.see-also-links a {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 14px;
    padding: 13px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    color: var(--plum);
}
.see-also-links a:hover { background: var(--bg-soft); text-decoration: none; }
.see-also-title { font: 600 15.5px var(--font-sans); }
.see-also-cat { font-size: 12.5px; color: var(--muted); }

.author-card { display: flex; gap: 22px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 26px; margin-bottom: 30px; box-shadow: var(--shadow-sm); }
.author-avatar {
    flex: 0 0 auto;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(140deg, var(--rose) 0%, var(--lavender) 100%);
    color: #fff;
    font: 600 26px var(--font-serif);
}
.author-card h1 { font-size: 30px; margin-bottom: 6px; }
.author-card p { margin: 0; color: var(--ink-soft); }
.author-credentials { font: 600 13.5px var(--font-sans); color: var(--teal); margin-bottom: 8px !important; }
.list-title { margin-bottom: 18px; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.pagination a,
.pagination .active {
    min-width: 40px;
    padding: 9px 13px;
    text-align: center;
    border-radius: 10px;
    background: var(--surface);
    color: var(--rose-dark);
    font: 600 14.5px var(--font-sans);
    box-shadow: var(--shadow-sm);
}
.pagination .active { background: var(--rose); color: #fff; }
.pagination a:hover { background: var(--bg-soft); text-decoration: none; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--plum); color: #efe6da; padding: 40px 0 26px; margin-top: 20px; font: 14px var(--font-sans); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 30px; }
.footer-brand { min-width: 0; }
.footer-name { margin: 0 0 8px; font: 600 22px var(--font-serif); color: #fff; }
.footer-name .brand-tld { color: #e0a97f; }
.footer-tagline { margin: 0; color: #d8cbbc; max-width: 42ch; }
.footer-links p { margin: 0 0 10px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #f0cdaf; }
.footer-note { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); }
.footer-note p { margin: 0 0 8px; color: #cfc4b5; font-size: 12.8px; max-width: 92ch; }
.footer-copy { color: #a89c8d !important; }

.cookie-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    max-width: 660px;
    margin: auto;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: 0 18px 40px rgba(58, 47, 40, .22);
    font: 14px var(--font-sans);
}
.cookie-notice p { margin: 0 0 14px; color: var(--ink-soft); }
.cookie-notice button {
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    font: 600 14px var(--font-sans);
    cursor: pointer;
}
.cookie-notice button:hover { background: var(--rose-dark); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
    .page-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .sidebar { position: static; }
    .hero h1 { font-size: 33px; }
}

@media (max-width: 850px) {
    .brand-inner { justify-content: flex-start; }
    .brand-note { display: none; }
    .utility-inner { justify-content: center; }
    .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .featured-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .card-image,
    .featured-card .card-image img { height: 232px; }
    .post-card { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .post-card-image { height: 220px; }
    .article { padding: 24px 22px; }
    .article-cover { height: 260px; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 560px) {
    .container { width: min(calc(100% - 24px), 1180px); }
    .brand-mark { width: 40px; height: 40px; }
    .brand-name { font-size: 21px; }
    .hero { padding: 26px 20px; border-radius: 18px; }
    .hero h1 { font-size: 27px; max-width: none; }
    .hero-actions .button { flex: 1 1 auto; text-align: center; }
    .page-heading h1,
    .article-header h1,
    .author-card h1 { font-size: 27px; }
    .section-title { flex-direction: column; align-items: flex-start; gap: 6px; }
    .compact-grid { gap: 12px; }
    .compact-card > a { height: 92px; }
    .article-body { font-size: 16.5px; }
    .article-body h2 { font-size: 23px; }
    .author-card { flex-direction: column; text-align: center; }
    .post-card h2 { font-size: 20px; }
}
