/* ============================================================
   Экопродюсер.рф — Museum / Editorial edition (2026)
   Тёплая бумага, serif-дисплей (Spectral), archival-нумерация,
   тонкие линии, один терракотовый акцент.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* --- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }

/* --- Tokens ------------------------------------------------ */
:root {
  --bg:        #F2EEE6;
  --bg-2:      #EAE4D8;
  --panel:     #F7F4EC;
  --ink:       #1C1A16;
  --muted:     #5E574B;
  --faint:     #8B8475;
  --line:      #DCD5C6;
  --line-2:    #C7BFAD;
  --accent:    #3E5B41;
  --accent-deep:#2C3A2C;

  /* перекрывают хардкод-фолбэки в инжектируемом feed-блоке движка */
  --fg-0: #1C1A16;
  --fg-2: #5E574B;

  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PT Sans", sans-serif;

  --maxw: 1180px;
  --pad: clamp(20px, 4.2vw, 44px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

html, body {
  background: linear-gradient(180deg, #F4F1E9 0%, #ECF0E6 100%) no-repeat;
  background-attachment: fixed;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17.5px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

em { font-style: normal; }

/* --- Reveal ------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- Header ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,238,230,0.86);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 19px; letter-spacing: .01em; }
.brand .mark {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg);
  font-style: normal; font-size: 16px; border-radius: 2px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav-cta:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* --- Shared section layout --------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--pad); }
.section-head { margin-bottom: clamp(32px, 4vw, 48px); max-width: 760px; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.01em; }
.section-title em { font-style: normal; color: var(--ink); }
.section-lede { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.7vw, 18px); max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.eyebrow .dot { width: 18px; height: 1px; background: var(--accent); display: inline-block; }

/* --- Hero -------------------------------------------------- */
.hero { background: transparent; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--pad) clamp(48px, 7vw, 88px); position: relative; }
.hero .t-l, .hero .t-r, .hero .b-l, .hero .b-r { display: none; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { max-width: 620px; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0B0B0E; border: 1px solid var(--line-2); }
.hero-photo figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .02em; color: var(--faint); }
.hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(38px, 6.4vw, 68px); line-height: 1.04; letter-spacing: -.015em;
  margin: 22px 0 0;
}
.hero-title em { font-style: normal; color: var(--ink); }
.hero-sub { margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.62; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; letter-spacing: .02em;
  padding: 12px 4px; color: var(--ink);
  border-bottom: 1px solid var(--ink); border-radius: 0;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.btn:hover { color: var(--accent-deep); border-color: var(--accent-deep); }
.btn .arrow { font-size: 13px; }
.btn-primary {
  background: var(--ink); color: var(--bg);
  padding: 13px 24px; border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--bg); }

.inline-link { color: var(--accent); border-bottom: 1px solid var(--line-2); transition: border-color .2s var(--ease); }
.inline-link:hover { border-color: var(--accent); }

/* --- Services / cards grid --------------------------------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--bg); padding: clamp(24px, 2.6vw, 34px); }
.service--media { padding: 0; display: flex; flex-direction: column; }
.service--media .service-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-bottom: 1px solid var(--line); background: #0B0B0E; }
.service--media .service-body { padding: clamp(22px, 2.4vw, 30px); }
.service-credit { margin-top: 14px; font-size: 12px; letter-spacing: .04em; color: var(--faint); }
.service .num { font-size: 12px; letter-spacing: .16em; color: var(--accent); font-weight: 500; }
.service h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; line-height: 1.25; margin: 14px 0 12px; }
.service h3 em { font-style: normal; color: var(--ink); }
.service p { color: var(--muted); font-size: 16px; line-height: 1.62; }

/* --- Tags -------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { font-size: 12px; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 11px; border-radius: 0; }
.tags span a { color: var(--accent) !important; }

/* --- Manifesto (Метод) ------------------------------------- */
.manifesto { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--pad); }
.manifesto .section-title { margin-top: 16px; }
.manifesto-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.m-row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; background: var(--panel); padding: clamp(22px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px); }
.m-k { font-family: var(--font-display); font-style: normal; font-size: 22px; color: var(--accent); }
.m-v { color: var(--ink); font-size: 17px; line-height: 1.68; }

/* --- Cases ------------------------------------------------- */
.cases-grouped .section-body { display: block; }
.case-group { padding: 28px 0; border-top: 1px solid var(--line); }
.case-group:first-child { border-top: 0; }
.cg-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.cg-num { font-family: var(--font-display); font-size: 15px; color: var(--accent); letter-spacing: .04em; }
.cg-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.2; }
.cg-title em { font-style: normal; color: var(--ink); }
.cg-list { margin-top: 16px; display: grid; gap: 14px; }
.cg-list li { color: var(--muted); font-size: 16px; line-height: 1.62; padding-left: 20px; position: relative; }
.cg-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--accent); }
.cg-list li b { color: var(--ink); font-weight: 500; }

/* --- Contact ----------------------------------------------- */
.contact-direct { max-width: 720px; }
.contact-lines { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-lines li { display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; align-items: center; background: var(--bg); padding: 18px 22px; }
.contact-lines .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.contact-lines .v { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
a.v:hover { color: var(--accent); }
.contact-lines .aux { font-size: 13px; color: var(--muted); text-align: right; }

/* --- Regalia (краткое о Сергее) ---------------------------- */
.regalia .section-body p { font-size: clamp(17px, 1.9vw, 19px); }

/* --- Articles feed (инжектируется движком) ----------------- */
.articles-feed { border-top: 1px solid var(--line); }
.articles-feed h2 { font-family: var(--font-display); font-weight: 400 !important; color: var(--ink); }
.articles-feed .articles-list article { border-bottom-color: var(--line) !important; }

/* --- Article (страница статьи, музейный шаблон) ------------ */
.article-wrap { max-width: 760px; margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--pad) clamp(48px, 7vw, 88px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; transition: color .2s var(--ease); }
.back-link:hover { color: var(--accent); }
.article-head { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.015em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.8vw, 29px); line-height: 1.2; margin: 40px 0 14px; }
.prose h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; margin: 28px 0 10px; }
.prose p { font-size: 18px; line-height: 1.78; color: var(--ink); margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 18px 0; display: grid; gap: 10px; }
.prose li { font-size: 18px; line-height: 1.72; color: var(--ink); padding-left: 20px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 1px; background: var(--accent); }
.prose em { font-style: italic; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--line-2); }
.prose a:hover { border-color: var(--accent); }
.prose img { margin: 24px 0; border: 1px solid var(--line-2); }
.prose blockquote { border-left: 2px solid var(--accent); padding-left: 20px; margin: 24px 0; color: var(--muted); font-family: var(--font-display); font-style: normal; font-size: 19px; }

/* --- Footer ------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 36px var(--pad); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-brand { font-family: var(--font-display); font-size: 18px; }
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; font-size: 13px; color: var(--muted); }
.footer-meta a { color: var(--muted); border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-meta a:hover { color: var(--accent); border-color: var(--line-2); }

/* --- Responsive -------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: clamp(28px, 6vw, 40px); }
  .hero-copy { max-width: 100%; }
  .hero-photo { max-width: 460px; }
}
@media (max-width: 720px) {
  .nav { flex-wrap: wrap; gap: 12px 20px; }
  .nav-links { margin-left: 0; gap: 16px; order: 3; width: 100%; }
  .m-row { grid-template-columns: 1fr; gap: 8px; }
  .contact-lines li { grid-template-columns: 1fr; gap: 6px; }
  .contact-lines .aux { text-align: left; }
}
