/* ==========================================================================
   Plume CMS – front-end theme
   Colors come from CSS variables set in the admin (Settings → Theme colors)
   ========================================================================== */

:root {
  --c-primary: #2348d4;
  --c-accent: #ff5a36;
  --c-accent2: #0f9f8f;
  --c-on-primary: #fff;
  --c-on-accent: #fff;
  --c-on-accent2: #fff;

  --c-text: #16181d;
  --c-muted: #626977;
  --c-line: #e6e8ec;
  --c-soft: #f5f6f8;
  --c-bg: #ffffff;
  --c-dark: #111318;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --container: 1200px;
  --gap: clamp(18px, 2.4vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 750; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.site-main { flex: 1; padding-bottom: 72px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.4em; border-radius: 999px;
  font-weight: 650; font-size: .95rem; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--accent { background: var(--c-accent); color: var(--c-on-accent); }

/* ==========================================================================
   Header (5 styles)
   ========================================================================== */
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--c-line); }
.site-header__row, .site-header__top { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-logo { display: inline-flex; align-items: center; color: var(--c-text); flex-shrink: 0; }
.site-logo:hover { text-decoration: none; }
.site-logo__text { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; }
.site-logo img { width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--c-text); font-weight: 560; font-size: .97rem; }
.site-nav a:hover, .site-nav a.is-active { background: var(--c-soft); color: var(--c-primary); text-decoration: none; }

.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.search-toggle, .nav-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  border: 0; background: transparent; cursor: pointer; color: inherit;
}
.search-toggle:hover, .nav-toggle:hover { background: var(--c-soft); }
.nav-toggle { display: none; gap: 4px; align-content: center; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 1: classic – menu pushed right */
.site-header--1 .site-nav { margin-left: auto; }
.site-header--1 .site-header__actions { margin-left: 0; }

/* 2: centered */
.site-header--2 .site-header__top { justify-content: space-between; min-height: 90px; }
.site-header--2 .site-header__side { flex: 1; display: flex; }
.site-header--2 .site-header__side--end { justify-content: flex-end; gap: 6px; }
.site-header--2 .site-logo__text { font-size: 1.8rem; }
.site-header--2 .site-header__nav { border-top: 1px solid var(--c-line); }
.site-header--2 .site-nav ul { justify-content: center; padding: 8px 0; }

/* 3: two rows, menu in primary bar */
.site-header--3 { border-bottom: 0; }
.site-header--3 .site-header__bar { background: var(--c-primary); }
.site-header--3 .site-header__bar .site-nav a { color: var(--c-on-primary); border-radius: 0; padding: 13px 14px; }
.site-header--3 .site-header__bar .site-nav a:hover, .site-header--3 .site-header__bar .site-nav a.is-active { background: rgba(255,255,255,.14); color: var(--c-on-primary); }

/* 4: solid primary background */
.site-header--4 { background: var(--c-primary); color: var(--c-on-primary); border-bottom: 0; }
.site-header--4 .site-logo, .site-header--4 .site-nav a { color: var(--c-on-primary); }
.site-header--4 .site-nav { margin-left: auto; }
.site-header--4 .site-header__actions { margin-left: 0; }
.site-header--4 .site-nav a:hover, .site-header--4 .site-nav a.is-active { background: rgba(255,255,255,.15); color: var(--c-on-primary); }
.site-header--4 .search-toggle:hover, .site-header--4 .nav-toggle:hover { background: rgba(255,255,255,.15); }

/* 5: minimal, hamburger always */
.site-header--5 .nav-toggle { display: inline-grid; }
.site-header--5 .offcanvas { display: none; border-top: 1px solid var(--c-line); }
.nav-open .site-header--5 .offcanvas { display: block; }
.site-header--5 .offcanvas .site-nav ul { flex-direction: column; padding: 12px 0 18px; }
.site-header--5 .offcanvas .site-nav a { font-size: 1.15rem; padding: 10px 0; background: none; }

/* search panel */
.search-panel { border-top: 1px solid var(--c-line); background: #fff; padding: 18px 0; color: var(--c-text); }
.search-panel[hidden] { display: none; }

/* mobile header */
@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; }
  .site-header .site-nav { display: none; width: 100%; }
  .nav-open .site-header .site-nav { display: block; }
  .site-header__row { flex-wrap: wrap; }
  .site-header__row .site-nav { order: 3; margin: 0; padding-bottom: 12px; }
  .site-nav ul { flex-direction: column; }
  .site-header--1 .site-header__actions, .site-header--4 .site-header__actions { margin-left: auto; }
  .site-header--2 .site-header__nav, .site-header--3 .site-header__bar { display: none; }
  .nav-open .site-header--2 .site-header__nav, .nav-open .site-header--3 .site-header__bar { display: block; }
  .site-header--2 .site-header__side:first-child { display: none; }
  .site-header--2 .site-header__top { min-height: 72px; }
  .site-header--2 .site-logo__text { font-size: 1.4rem; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 8px; }
.search-form input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: 10px; background: #fff;
}
.search-form input:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent); }
.search-form button {
  border: 0; border-radius: 10px; padding: 0 16px; background: var(--c-primary); color: var(--c-on-primary); cursor: pointer; font-weight: 600;
  display: inline-grid; place-items: center; min-width: 46px;
}
.search-form--lg input { padding: 14px 18px; font-size: 1.05rem; }
.search-form--lg button { padding: 0 24px; }

/* ==========================================================================
   Breadcrumbs, headers, prose
   ========================================================================== */
.breadcrumbs { margin: 26px 0 18px; font-size: .88rem; color: var(--c-muted); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: #b5bac3; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs span { color: var(--c-text); }

.archive-header { margin-bottom: 34px; }
.archive-header__title, .entry__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: .4em; }
.archive-header__desc { max-width: 760px; color: var(--c-muted); padding: 18px 22px; background: var(--c-soft); border-radius: var(--radius); }
.archive-header__desc > :last-child { margin-bottom: 0; }
.section-title { font-size: 1.35rem; margin: 40px 0 20px; }

.prose { font-size: 1.06rem; line-height: 1.75; overflow-wrap: break-word; }
.prose > * { margin: 0 0 1.15em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.1rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--c-primary); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em auto; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c-accent); font-size: 1.12rem; color: #333a46; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--c-soft); }
.prose pre { background: var(--c-dark); color: #e9ecf1; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .9rem; }
.prose code { background: var(--c-soft); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.prose iframe { max-width: 100%; }

.notice { background: #fff7e0; border: 1px solid #f3dc94; padding: 10px 14px; border-radius: 8px; font-size: .92rem; }

/* ==========================================================================
   Single post
   ========================================================================== */
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .layout-sidebar { grid-template-columns: 1fr; } }

.entry__image { margin: 0 0 26px; border-radius: var(--radius); overflow: hidden; background: var(--c-soft); }
.entry__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entry__header { margin-bottom: 28px; }
.entry__cat {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--c-on-accent2); background: var(--c-accent2); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.entry__cat:hover { text-decoration: none; filter: brightness(1.08); }
.entry__date { color: var(--c-muted); font-size: .92rem; }

.author-box {
  display: flex; gap: 20px; align-items: flex-start; margin: 48px 0 0; padding: 24px;
  border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-soft);
}
.author-box__avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box__name { font-weight: 750; font-size: 1.12rem; color: var(--c-text); }
.author-box__name:hover { color: var(--c-primary); }
.author-box__bio { color: var(--c-muted); margin-top: 4px; font-size: .97rem; }
@media (max-width: 520px) { .author-box { flex-direction: column; } }

.related { margin-top: 44px; }
.related__title { font-size: 1.35rem; }
.related__list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-line); }
.related__list li { border-bottom: 1px solid var(--c-line); }
.related__list a { display: flex; gap: 10px; padding: 13px 0; color: var(--c-text); font-weight: 600; }
.related__list a::before { content: "→"; color: var(--c-accent); }
.related__list a:hover { color: var(--c-primary); text-decoration: none; }

/* ==========================================================================
   Sidebar (10 styles)
   ========================================================================== */
.sidebar { display: grid; gap: 30px; position: sticky; top: 24px; margin-top: 26px; }
@media (max-width: 960px) { .sidebar { position: static; } }
.widget__title { font-size: 1rem; text-transform: none; margin-bottom: 14px; }
.widget--html img { border-radius: var(--radius-sm); }
.widget--html > :last-child { margin-bottom: 0; }

.mini-list { list-style: none; margin: 0; padding: 0; counter-reset: mini; }
.mini { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--c-line); counter-increment: mini; }
.mini:first-child { padding-top: 0; }
.mini:last-child { border-bottom: 0; }
.mini__title { color: var(--c-text); font-weight: 620; line-height: 1.35; font-size: .97rem; display: block; }
.mini__title:hover { color: var(--c-primary); text-decoration: none; }
.mini__date { display: block; color: var(--c-muted); font-size: .8rem; margin-top: 3px; }
.mini__thumb { flex-shrink: 0; }
.mini-list--small .mini__thumb img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; }
.mini-list--large .mini { flex-direction: column; gap: 10px; }
.mini-list--large .mini__thumb, .mini-list--large .mini__thumb img { width: 100%; }
.mini-list--large .mini__thumb img { aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.mini-list--overlay .mini { position: relative; padding: 0; border: 0; margin-bottom: 12px; border-radius: 12px; overflow: hidden; min-height: 110px; background: var(--c-dark); }
.mini-list--overlay .mini__thumb { position: absolute; inset: 0; }
.mini-list--overlay .mini__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.mini-list--overlay .mini__body { position: relative; padding: 16px; align-self: flex-end; }
.mini-list--overlay .mini__title { color: #fff; }
.mini-list--numbered .mini::before {
  content: counter(mini, decimal-leading-zero); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--c-accent); min-width: 34px;
}

/* style 1: clean list – base */
/* style 2: thumbnails – base small */
/* style 3: big images */
.sidebar--3 .mini { border-bottom: 0; padding-bottom: 4px; }
/* style 4: numbered titles */
.sidebar--4 .mini::before { font-size: 1.6rem; color: var(--c-primary); opacity: .35; }
/* style 5: boxed */
.sidebar--5 .widget { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px; }
/* style 6: shaded */
.sidebar--6 .widget { background: var(--c-soft); border-radius: var(--radius); padding: 22px; }
.sidebar--6 .mini { border-color: #e2e4e9; }
/* style 7: accent line */
.sidebar--7 .widget__title { border-left: 4px solid var(--c-accent); padding-left: 12px; }
.sidebar--7 .mini { border-bottom: 0; border-left: 2px solid var(--c-line); padding: 6px 0 6px 14px; margin-bottom: 8px; }
.sidebar--7 .mini:hover { border-left-color: var(--c-primary); }
/* style 8: overlay tiles – see mini-list--overlay */
.sidebar--8 .widget__title { text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: var(--c-muted); }
/* style 9: compact dots */
.sidebar--9 .mini { padding: 6px 0; border: 0; gap: 10px; }
.sidebar--9 .mini::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent2); margin-top: 9px; flex-shrink: 0; }
.sidebar--9 .mini__title { font-weight: 520; }
/* style 10: underlined uppercase headings */
.sidebar--10 .widget__title { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; padding-bottom: 10px; border-bottom: 2px solid var(--c-line); position: relative; }
.sidebar--10 .widget__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--c-primary); }

/* ==========================================================================
   Listing cards (category / author / search)
   ========================================================================== */
.post-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.post-grid.cols-2, .hb-grid.cols-2 { --cols: 2; }
.post-grid.cols-3, .hb-grid.cols-3 { --cols: 3; }
.post-grid.cols-4, .hb-grid.cols-4 { --cols: 4; }
.hb-grid.cols-1 { --cols: 1; }
@media (max-width: 1024px) { .post-grid.cols-4, .hb-grid.cols-4 { --cols: 3; } }
@media (max-width: 820px) { .post-grid, .hb-grid { --cols: 2 !important; } }
@media (max-width: 560px) { .post-grid, .hb-grid { --cols: 1 !important; } }

.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); }
.card__media { border-radius: var(--radius); overflow: hidden; background: var(--c-soft); aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 14%, #fff), color-mix(in srgb, var(--c-accent2) 14%, #fff)); }
.card__body { padding: 14px 2px 0; }
.card__title { font-size: 1.15rem; margin: 0 0 6px; line-height: 1.3; }
.card__title a { color: var(--c-text); }
.card__title a:hover { color: var(--c-primary); text-decoration: none; }
.card__date { color: var(--c-muted); font-size: .85rem; }
.cols-4 .card__title { font-size: 1.04rem; }

.empty-state { padding: 40px; text-align: center; color: var(--c-muted); background: var(--c-soft); border-radius: var(--radius); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 52px; flex-wrap: wrap; }
.pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.pagination a, .pagination span {
  display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--c-line); color: var(--c-text); font-weight: 600; font-size: .95rem;
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }
.pagination .is-current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.pagination .gap { align-self: center; color: var(--c-muted); }

/* Author page */
.author-hero {
  display: flex; gap: 28px; align-items: center; width: 100%; padding: 28px; margin-bottom: 12px;
  background: var(--c-soft); border-radius: var(--radius);
}
.author-hero__avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid #fff; box-shadow: var(--shadow); }
.author-hero__bio { font-size: 1.05rem; color: #3b414c; }
@media (max-width: 600px) { .author-hero { flex-direction: column; text-align: center; } }

/* 404 */
.error-page { text-align: center; padding-top: 60px; }
.error-page__code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 850; line-height: 1; margin: 0; letter-spacing: -.05em;
  background: linear-gradient(120deg, var(--c-primary), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page__text { color: var(--c-muted); font-size: 1.1rem; }
.error-page .search-form { max-width: 520px; margin: 28px auto; }

/* ==========================================================================
   Homepage – hero (5 styles)
   ========================================================================== */
.hero { padding: clamp(48px, 8vw, 96px) 0; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -.035em; margin-bottom: .3em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--c-muted); max-width: 640px; margin: 0; }
.hero__media { margin: 0; }
.hero__media img { width: 100%; border-radius: calc(var(--radius) + 6px); object-fit: cover; }

.hero--1 { text-align: center; background: radial-gradient(1200px 400px at 50% -20%, color-mix(in srgb, var(--c-primary) 10%, transparent), transparent); }
.hero--1 .hero__lead { margin: 0 auto; }

.hero--2 .hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero--2.hero--no-image .hero__inner { grid-template-columns: 1fr; }
.hero--2 .hero__media img { aspect-ratio: 4 / 3; }
.hero--2 .hero__title::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 4px; background: var(--c-accent); margin-top: 22px; }

.hero--3 { position: relative; color: #fff; background: var(--c-dark) var(--hero-bg) center / cover no-repeat; padding: clamp(80px, 14vw, 170px) 0; }
.hero--3::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,12,18,.35), rgba(10,12,18,.72)); }
.hero--3 .hero__inner { position: relative; text-align: center; }
.hero--3 .hero__lead { color: rgba(255,255,255,.85); margin: 0 auto; }

.hero--4 .hero__media { margin-bottom: 34px; }
.hero--4 .hero__media img { aspect-ratio: 21 / 8; }
.hero--4 .hero__text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.hero--4 .hero__title { margin: 0; }
@media (max-width: 760px) { .hero--4 .hero__text { grid-template-columns: 1fr; gap: 10px; } }

.hero--5 .hero__inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
  background: var(--c-primary); color: var(--c-on-primary); border-radius: 28px; padding: clamp(28px, 5vw, 64px);
}
.hero--5.hero--no-image .hero__inner { grid-template-columns: 1fr; }
.hero--5 .hero__lead { color: inherit; opacity: .85; }
.hero--5 .hero__media img { aspect-ratio: 1; border-radius: 22px; box-shadow: 0 20px 40px rgba(0,0,0,.25); transform: rotate(2deg); }
.hero--5 .hero__inner { padding-left: clamp(28px, 5vw, 64px); }
.hero--5 { padding-top: 32px; }
@media (max-width: 820px) {
  .hero--2 .hero__inner, .hero--5 .hero__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Homepage – category blocks (10 layouts)
   ========================================================================== */
.home-block { padding: 34px 0; }
.home-block + .home-block { border-top: 1px solid var(--c-line); }
.home-block__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.home-block__title { font-size: 1.6rem; margin: 0; }
.home-block__title a { color: var(--c-text); }
.home-block__title::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c-accent); margin-right: 12px; vertical-align: middle; }
.home-block__more { margin-top: 28px; text-align: center; }
.home-block h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 6px; }
.home-block h3 a { color: var(--c-text); }
.home-block h3 a:hover { color: var(--c-primary); text-decoration: none; }
.home-block time { color: var(--c-muted); font-size: .84rem; display: block; }
.home-block p { color: var(--c-muted); font-size: .95rem; margin: 8px 0 0; }
.img-placeholder { display: block; width: 100%; height: 100%; min-height: 60px; background: linear-gradient(135deg, color-mix(in srgb, var(--c-primary) 16%, #fff), color-mix(in srgb, var(--c-accent2) 16%, #fff)); }

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

/* 1 card grid */
.hcard__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 14px; background: var(--c-soft); }
.hcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hcard:hover .hcard__media img, .hfeature:hover img, .hrow:hover img, .hcompact:hover img { transform: scale(1.04); }
/* 2 text cards */
.hcard--text { padding: 22px; border: 1px solid var(--c-line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.hcard--text:hover { box-shadow: var(--shadow); border-color: transparent; }
/* 3 list with thumbnails */
.hrow { display: flex; gap: 16px; align-items: flex-start; }
.hrow__thumb { flex: 0 0 38%; max-width: 220px; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-soft); }
.hrow__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hrow__body { flex: 1; min-width: 0; }
/* 4 featured + list */
.hb-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); }
.hcard--feature .hcard__media { aspect-ratio: 16 / 9; }
.hcard--feature h3 { font-size: 1.55rem; }
.hb-side { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; align-content: start; }
.hrow--sm .hrow__thumb { flex-basis: 110px; }
.hrow--sm h3 { font-size: 1rem; }
@media (max-width: 820px) { .hb-split { grid-template-columns: 1fr; } }
/* 5 featured + grid */
.hfeature { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); align-items: center; margin-bottom: var(--gap); }
.hfeature__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--c-soft); }
.hfeature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-block .hfeature h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
@media (max-width: 760px) { .hfeature { grid-template-columns: 1fr; } }
/* 6 overlay tiles */
.htile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-dark); }
.htile > img, .htile > .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.htile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.78)); }
.htile:hover > img { transform: scale(1.05); }
.htile__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 18px; }
.home-block .htile h3 a, .home-block .htile time { color: #fff; }
.home-block .htile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* 7 title list */
.hb-titles { list-style: none; padding: 0; margin: 0; display: grid; column-gap: 40px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.hb-titles.cols-1 { --cols: 1; } .hb-titles.cols-2 { --cols: 2; } .hb-titles.cols-3 { --cols: 3; } .hb-titles.cols-4 { --cols: 4; }
.hb-titles li { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.hb-titles h3 { font-size: 1.05rem; }
/* 8 numbered */
.hb-numbered { list-style: none; padding: 0; margin: 0; counter-reset: hb; display: grid; gap: 22px 40px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.hb-numbered.cols-1 { --cols: 1; } .hb-numbered.cols-2 { --cols: 2; } .hb-numbered.cols-3 { --cols: 3; } .hb-numbered.cols-4 { --cols: 4; }
.hb-numbered li { counter-increment: hb; display: flex; gap: 16px; align-items: flex-start; }
.hb-numbered li::before { content: counter(hb, decimal-leading-zero); font-size: 2.2rem; font-weight: 850; line-height: 1; color: var(--c-accent); letter-spacing: -.04em; min-width: 52px; }
@media (max-width: 820px) { .hb-titles, .hb-numbered { --cols: 1 !important; } }
/* 9 compact cards */
.hcompact { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color .2s; }
.hcompact:hover { border-color: var(--c-primary); }
.hcompact__thumb { flex: 0 0 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--c-soft); }
.hcompact__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.home-block .hcompact h3 { font-size: .98rem; margin: 0; }
/* 10 minimal accent */
.haccent { border-top: 3px solid var(--c-accent2); padding-top: 16px; }
.haccent time { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700; margin-bottom: 8px; color: var(--c-accent2); }

/* ==========================================================================
   Homepage – bottom section (5 styles)
   ========================================================================== */
.home-bottom { padding: 48px 0 0; }
.home-bottom__inner { max-width: 880px; margin: 0 auto; }
.home-bottom__inner > :last-child { margin-bottom: 0; }
.home-bottom--2 .home-bottom__inner { border: 1px solid var(--c-line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.home-bottom--3 h2, .home-bottom--3 h3 { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--c-line); position: relative; }
.home-bottom--3 h2::after, .home-bottom--3 h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--c-accent); }
.home-bottom--4 { background: color-mix(in srgb, var(--c-primary) 7%, #fff); padding: 56px 0; margin-top: 40px; }
.home-bottom--5 .home-bottom__inner { border-left: 5px solid var(--c-accent); padding: 6px 0 6px clamp(18px, 3vw, 32px); }

/* ==========================================================================
   Contact form (5 styles)
   ========================================================================== */
.contact { margin-top: 24px; }
.contact__form { display: grid; gap: 14px; }
.contact__row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.contact .field { display: block; }
.contact input, .contact textarea {
  width: 100%; padding: 13px 16px; border: 1px solid #d5d9e0; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.contact textarea { resize: vertical; min-height: 160px; }
.contact input:focus, .contact textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 18%, transparent); }
.contact__submit {
  justify-self: start; padding: 13px 30px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 700;
  background: var(--c-primary); color: var(--c-on-primary); transition: filter .15s, transform .15s;
}
.contact__submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; font-weight: 550; }
.form-msg p { margin: 0; }
.form-msg p + p { margin-top: 4px; }
.form-msg--ok { background: #e7f8ef; color: #12633d; border: 1px solid #b6e8cc; }
.form-msg--error { background: #fdecec; color: #9b1c1c; border: 1px solid #f6c3c3; }

/* 2: two columns, filled fields */
.contact--2 .contact__row { grid-template-columns: 1fr 1fr; }
.contact--2 input, .contact--2 textarea { background: var(--c-soft); border-color: transparent; }
.contact--2 .contact__submit { background: var(--c-accent); color: var(--c-on-accent); }
@media (max-width: 600px) { .contact--2 .contact__row { grid-template-columns: 1fr; } }
/* 3: underline only */
.contact--3 input, .contact--3 textarea { border: 0; border-bottom: 2px solid var(--c-line); border-radius: 0; padding: 12px 2px; background: transparent; }
.contact--3 input:focus, .contact--3 textarea:focus { box-shadow: none; border-bottom-color: var(--c-primary); }
.contact--3 .contact__row { grid-template-columns: 1fr 1fr; gap: 24px; }
.contact--3 .contact__submit { background: transparent; color: var(--c-primary); border: 2px solid var(--c-primary); border-radius: 999px; }
.contact--3 .contact__submit:hover { background: var(--c-primary); color: var(--c-on-primary); }
@media (max-width: 600px) { .contact--3 .contact__row { grid-template-columns: 1fr; } }
/* 4: card */
.contact--4 .contact__form { background: #fff; padding: clamp(22px, 4vw, 40px); border-radius: 20px; box-shadow: 0 2px 6px rgba(16,24,40,.06), 0 24px 48px rgba(16,24,40,.1); }
.contact--4 input, .contact--4 textarea { border-radius: 12px; background: #fbfbfc; }
.contact--4 .contact__submit { border-radius: 999px; padding: 14px 36px; background: var(--c-accent2); color: var(--c-on-accent2); }
/* 5: bold */
.contact--5 input, .contact--5 textarea { border: 2px solid var(--c-text); border-radius: 0; padding: 15px 16px; font-weight: 500; }
.contact--5 input:focus, .contact--5 textarea:focus { box-shadow: 5px 5px 0 var(--c-accent); border-color: var(--c-text); }
.contact--5 .contact__submit { justify-self: stretch; border-radius: 0; padding: 17px; text-transform: uppercase; letter-spacing: .1em; background: var(--c-accent); color: var(--c-on-accent); }

/* ==========================================================================
   Footer (5 styles)
   ========================================================================== */
.site-footer { font-size: .93rem; }
.site-footer__inner { padding-top: 36px; padding-bottom: 36px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: inherit; opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.copyright { opacity: .75; }

.site-footer--1 { background: var(--c-soft); border-top: 1px solid var(--c-line); text-align: center; }
.site-footer--1 .footer-nav ul { justify-content: center; margin-bottom: 14px; }

.site-footer--2 { border-top: 1px solid var(--c-line); }
.site-footer--2 .site-footer__inner { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.site-footer--3 { background: var(--c-dark); color: #d9dce3; text-align: center; }
.site-footer--3 .site-footer__inner { padding-top: 48px; padding-bottom: 48px; }
.site-footer--3 .footer-nav ul { justify-content: center; margin-bottom: 20px; }
.site-footer--3 .footer-nav a { color: #fff; font-weight: 600; }

.site-footer--4 { background: var(--c-primary); color: var(--c-on-primary); }
.site-footer--4 .footer-nav { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.2); }
.site-footer--4 .footer-nav a { font-weight: 600; }

.site-footer--5 .site-footer__inner { border-top: 1px solid var(--c-line); padding-top: 22px; padding-bottom: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.site-footer--5 .footer-nav { order: 2; }
.site-footer--5 .footer-nav a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--c-line); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-main { padding-bottom: 48px; }
  .site-footer--2 .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer--2 .footer-nav ul { justify-content: center; }
}
.site-main:has(> .home-bottom--4:last-child) { padding-bottom: 0; }
