/* sovusadba.ru — Milky-inspired warm palette
 * Тёплые кремовые тона + горчичный акцент, food/lifestyle стилистика.
 * DOM-классы существующего base.html сохранены — переверсаем только look.
 */
:root {
  --paper: #f7f2e8;        /* мягкий кремовый фон */
  --cream: #faf6ec;        /* контентный светлый */
  --milk: #ffffff;
  --border: #e5dcc7;
  --border-soft: #eee6d0;
  --ink: #3a3128;          /* тёмный шоколадный текст */
  --ink-soft: #726556;
  --mustard: #c68f2b;      /* акцент — тёплый горчичный */
  --mustard-dark: #a37622;
  --olive: #7a8449;        /* зелёный акцент — саду тематически */
  --terracotta: #b5623b;
  --sun: #f2c56b;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 Georgia, "PT Serif", "Times New Roman", serif;
}

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

/* ─── HEADER + NAV ─── */
#header {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 22px 30px 14px;
  max-width: 1180px;
  margin: 0 auto;
}
#header .logo { display: inline-block; text-decoration: none; }
#header .logo .brand-text {
  font: bold 32px/1.05 Georgia, "Playfair Display", serif;
  color: var(--olive);
  letter-spacing: 1px;
}
#header .slogan {
  display: block;
  font: italic 13px/1.4 Georgia, serif;
  color: var(--ink-soft);
  margin-top: 4px;
}

#myslidemenu {
  margin-top: 14px;
  border-top: 1px dotted var(--border);
  padding-top: 10px;
}
#myslidemenu ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 2px;
}
#myslidemenu ul li a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  font: 500 13px/1 Arial, "Helvetica Neue", sans-serif;
  text-transform: uppercase; letter-spacing: 1px;
  text-decoration: none;
  border-radius: 3px;
  transition: background .2s, color .2s;
}
#myslidemenu ul li a:hover,
#myslidemenu ul li.current a {
  background: var(--mustard); color: #fff;
}

/* ─── WRAPPER ─── */
#wrapper {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 30px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
}
#content { min-width: 0; }
#inner_content {
  background: var(--milk);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 30px;
  box-shadow: 0 2px 8px rgba(60,40,20,0.04);
}
body.no-sidebar #wrapper { grid-template-columns: 1fr; }
body.no-sidebar #sidebar { display: none; }

/* ─── HEADINGS ─── */
h1, h2, h3, h4 { font-family: Georgia, "Playfair Display", serif; color: var(--ink); line-height: 1.25; }
#content h1 {
  font-size: 30px; font-weight: 700;
  margin: 0 0 16px; padding-bottom: 12px;
  border-bottom: 3px double var(--border);
}
#content h2 {
  font-size: 22px; font-weight: 700; color: var(--olive);
  margin: 26px 0 12px; padding-left: 12px;
  border-left: 4px solid var(--mustard);
}
#content h3 { font-size: 18px; color: var(--terracotta); margin: 20px 0 10px; }
#content p { margin: 0 0 14px; }
#content ul, #content ol { padding-left: 22px; margin: 0 0 14px; }
#content li { margin-bottom: 4px; }
#content img { max-width: 100%; height: auto; border-radius: 4px; }

/* ─── HOME HERO + INTRO TILES ─── */
.home-hero {
  background: linear-gradient(135deg, #fdf7e5 0%, #f2e6c3 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 30px;
  margin: 0 0 22px;
}
.home-hero .title_holder h1 {
  border: none; padding: 0; margin: 0 0 6px;
  color: var(--olive); font-size: 28px;
}
.home-hero .title_holder h3 {
  color: var(--ink-soft); font-style: italic;
  font-size: 15px; margin: 0 0 14px; font-weight: normal;
}
.home-intro p { font-size: 15px; color: var(--ink); margin: 0; }

.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.home-tile {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--mustard);
  padding: 16px 18px;
  border-radius: 4px;
}
.home-tile h3 {
  font: bold 15px/1.3 Arial, sans-serif;
  color: var(--olive); margin: 0 0 8px;
  text-transform: uppercase; letter-spacing: 1px;
}
.home-tile p { font-size: 13px; line-height: 1.55; margin: 0; color: var(--ink-soft); }

/* ─── SECTION HEADINGS ─── */
.section-heading h2 {
  text-align: center;
  color: var(--olive); font-size: 24px;
  margin: 26px 0 18px; padding: 0;
  border: none;
}
.section-heading h2::before,
.section-heading h2::after {
  content: ""; display: inline-block;
  width: 60px; height: 1px; background: var(--border);
  vertical-align: middle; margin: 0 12px;
}

/* ─── CATEGORY CARDS ─── */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; margin: 18px 0 24px;
}
.cat-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(60,40,20,.08); }
.cat-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.cat-card h3 {
  margin: 12px 16px 4px;
  font: bold 17px/1.3 Georgia, serif;
  color: var(--olive);
}
.cat-card h3 a { color: var(--olive); }
.cat-card p { margin: 0 16px 8px; font-size: 13px; color: var(--ink-soft); }
.cat-card .more-link {
  display: inline-block; margin: 0 16px 14px;
  color: var(--mustard-dark); font-weight: bold; font-size: 13px;
}

/* ─── POST GRID ─── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin: 20px 0 24px;
}
.post-card {
  background: var(--milk);
  border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(60,40,20,.08); }
.post-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.post-card-hero { display: block; }
/* Placeholder tile for cards with no featured image */
.post-card-placeholder {
  height: 170px;
  background: linear-gradient(135deg, #f2e6c3 0%, #f7f2e8 55%, #e5dcc7 100%);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-decoration: none; position: relative; overflow: hidden;
}
.post-card-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(122,132,73,.10) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(198,143,43,.10) 0, transparent 45%);
}
.post-card-placeholder .ph-leaf {
  font-size: 44px; color: var(--olive); opacity: .55;
  line-height: 1; z-index: 1;
}
.post-card-placeholder .ph-cat {
  z-index: 1; margin-top: 8px;
  color: var(--mustard-dark); font: italic 12px/1 Georgia, serif;
  text-transform: uppercase; letter-spacing: 2px; opacity: .75;
}
.post-card-placeholder:hover .ph-leaf { opacity: .8; }
.post-card h3 { margin: 12px 16px 6px; font: 600 16px/1.35 Georgia, serif; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--terracotta); text-decoration: none; }
.post-card .post-cat {
  margin: 0 16px 4px; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--mustard-dark);
}
.post-card .post-cat a { color: var(--mustard-dark); }
.post-card p { margin: 0 16px 10px; font-size: 13px; color: var(--ink-soft); line-height: 1.55; flex: 1; }
.post-card .more-link {
  display: inline-block; margin: 0 16px 14px;
  color: var(--mustard-dark); font-weight: bold; font-size: 13px;
}

/* ─── PROMO (money-link block) ─── */
.promo-flowers {
  background: linear-gradient(135deg, #fef3d8 0%, #fbe4a8 100%) !important;
  border-left: 5px solid var(--mustard) !important;
  border-radius: 8px !important;
  padding: 22px 28px !important;
  margin: 30px 0 !important;
  box-shadow: 0 3px 10px rgba(180,130,40,.10);
}
.promo-flowers h3 {
  color: var(--terracotta) !important;
  font: normal 22px/1.25 Georgia, serif !important;
  margin: 0 0 10px !important;
  border: none !important; padding: 0 !important;
}
.promo-flowers p { color: var(--ink); }
.promo-flowers a.more-link {
  display: inline-block;
  background: var(--mustard); color: #fff !important;
  padding: 8px 18px; border-radius: 4px;
  font-weight: bold; font-size: 14px;
  text-decoration: none;
}
.promo-flowers a.more-link:hover { background: var(--mustard-dark); }

/* ─── SIDEBAR ─── */
#sidebar { min-width: 0; }
.sidebar-box {
  background: var(--milk);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.sidebar-box h3 {
  margin: 0 0 12px; padding-bottom: 8px;
  font: bold 13px/1 Arial, sans-serif;
  color: var(--olive);
  text-transform: uppercase; letter-spacing: 2px;
  border-bottom: 2px solid var(--mustard);
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { padding: 6px 0; border-bottom: 1px dotted var(--border); font-size: 14px; }
.sidebar-box li:last-child { border: none; }
.sidebar-box a { color: var(--ink); }
.sidebar-box a:hover { color: var(--terracotta); text-decoration: none; }
.sidebar-cats a { display: block; padding: 4px 0; }

/* Breadcrumbs / meta */
.breadcrumbs, .article-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--ink-soft); }

/* ─── BOTTOM/FOOTER ─── */
#bottom {
  background: var(--olive);
  color: #f0e8d4;
  padding: 26px 30px;
  margin-top: 40px;
  border-top: 4px solid var(--mustard);
}
#bottom .bottom-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
#bottom p { margin: 0; font-size: 13px; }
#bottom a { color: var(--sun); }
#bottom a:hover { color: #fff; }
#bottom .footer-nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 4px 16px;
}
#bottom .footer-nav li { font-size: 12px; }
#bottom .footer-nav a { color: #f0e8d4; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  #wrapper { grid-template-columns: 1fr; }
  #sidebar { order: 2; }
}
@media (max-width: 640px) {
  #header { padding: 16px 18px 10px; }
  #header .logo .brand-text { font-size: 26px; }
  #wrapper { padding: 0 16px 30px; margin-top: 16px; }
  #inner_content { padding: 20px 18px; }
  #content h1 { font-size: 24px; }
  #content h2 { font-size: 19px; }
  #myslidemenu ul li a { padding: 6px 10px; font-size: 12px; }
  #bottom { padding: 20px 18px; }
  #bottom .bottom-inner { flex-direction: column; align-items: flex-start; }
}
