/*
Theme Name: Мамам положено
Theme URI: https://mamam-polozheno.ru/
Author: Редакция «Мамам положено»
Description: Лёгкая редакционная тема для семейного справочного портала.
Version: 1.0.0
Text Domain: mamam-polozheno
*/

:root {
  --ink: #17352e;
  --muted: #5d6f69;
  --green: #236b55;
  --green-dark: #154b3b;
  --mint: #dff4e8;
  --cream: #fffaf0;
  --paper: #ffffff;
  --yellow: #ffd968;
  --coral: #ef7d65;
  --line: #dfe9e3;
  --shadow: 0 18px 50px rgba(23, 53, 46, .10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
.wrap { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 240, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-row { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 16px rgba(23, 53, 46, .14); }
.brand span { font-size: clamp(1.05rem, 2vw, 1.35rem); }
.site-nav ul { display: flex; align-items: center; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.site-nav a { display: block; padding: 9px 12px; color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 650; border-radius: 999px; }
.site-nav a:hover { background: var(--mint); }

.hero { min-height: 510px; display: grid; align-items: center; background: linear-gradient(90deg, rgba(12, 50, 80, .94) 0%, rgba(18, 90, 140, .76) 38%, rgba(18, 90, 140, .16) 72%), url('assets/hero.jpg') center/cover no-repeat; color: #fff; }
.hero-inner { padding-block: clamp(64px, 10vw, 120px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 750; font-size: .88rem; }
.hero h1 { max-width: 760px; margin: 18px 0; font-size: clamp(2.55rem, 7vw, 5.2rem); line-height: .98; letter-spacing: -.055em; color: #fff; }
.hero p { max-width: 680px; margin: 0; font-size: clamp(1.06rem, 2.2vw, 1.35rem); color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--yellow); color: #19382f; text-decoration: none; font-weight: 800; box-shadow: 0 10px 30px rgba(0,0,0,.13); }
.button.secondary { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.45); }

.trust-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 24px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); font-size: 1.15rem; }
.trust-item strong { display: block; margin-bottom: 2px; }
.trust-item span { display: block; color: var(--muted); font-size: .9rem; line-height: 1.4; }

.section { padding-block: clamp(54px, 8vw, 90px); }
.section.alt { background: #f3f8f4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.1; }
.section-heading p { max-width: 560px; margin: 8px 0 0; color: var(--muted); }
.all-link { white-space: nowrap; font-weight: 750; }

.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card { min-height: 190px; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 8px 28px rgba(23,53,46,.05); transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.category-card .number { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 26px; border-radius: 14px; background: var(--mint); color: var(--green-dark); font-weight: 850; }
.category-card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(23,53,46,.05); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.post-card .meta, .entry-meta { color: var(--muted); font-size: .85rem; }
.post-card h3 { margin: 10px 0 12px; font-size: 1.3rem; line-height: 1.25; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card p { margin: 0 0 18px; color: var(--muted); }
.post-card .read-more { margin-top: auto; font-weight: 780; }

.content-layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 42px; align-items: start; padding-block: 56px 90px; }
.entry, .archive-panel { padding: clamp(24px, 4vw, 48px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry h1, .archive-title { margin: 8px 0 16px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -.045em; }
.entry-content { font-size: 1.08rem; }
.entry-content h2 { margin-top: 2em; font-size: 1.65rem; line-height: 1.25; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content li { margin-block: .45em; }
.entry-content a { font-weight: 650; }
.entry-content .lead { font-size: 1.24rem; color: #38534b; }
.notice, .editorial-note { margin: 26px 0; padding: 18px 20px; border-left: 4px solid #d59623; border-radius: 4px 14px 14px 4px; background: #fff4ce; }
.content-review { color: var(--muted); font-size: .9rem; }
.related-reading { margin-top: 42px; padding: 24px; background: #f4f8f5; border-radius: 18px; }
.related-reading h2 { margin-top: 0; }
.sidebar-card { margin-bottom: 18px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; }
.sidebar-card h2 { margin: 0 0 12px; font-size: 1.15rem; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li + li { margin-top: 9px; }
.breadcrumbs { margin-bottom: 12px; color: var(--muted); font-size: .88rem; }

.pagination { margin-top: 28px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.page-numbers.current { background: var(--green); color: #fff; }
.empty-state { padding: 50px; text-align: center; background: #fff; border-radius: var(--radius); }

.site-footer { padding: 48px 0 26px; background: var(--green-dark); color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: .86rem; }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 620px) {
  .header-row { min-height: 68px; }
  .brand img { width: 44px; height: 44px; }
  .hero { min-height: 560px; background-position: 58% center; }
  .hero h1 { max-width: 10ch; }
  .trust-grid, .category-grid, .post-grid, .footer-grid, .sidebar { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .entry, .archive-panel { padding: 22px; }
}

