/* ============================================================
   Добрый Волк — дизайн-система (раздел 12 ТЗ)
   Цвета: хвойный #2D4A3E · медовый #E8A547 · песочный #C9B79C
          уголь #1F1E1B · крем #FAF6EE · серый #888
   Типографика: Lora (заголовки) + IBM Plex Sans (текст)
   ============================================================ */

:root {
  --pine:        #3C5424;
  --pine-700:    #324518;
  --pine-900:    #222F10;
  --honey:       #E8A547;
  --honey-600:   #d8902f;
  --sand:        #C9B79C;
  --sand-200:    #e7ddca;
  --sand-100:    #efe7d6;
  --charcoal:    #1F1E1B;
  --cream:       #FAF6EE;
  --cream-card:  #fffdf8;
  --gray:        #888888;
  --gray-line:   rgba(31,30,27,0.12);
  --white:       #FFFFFF;

  --serif: "Lora", Georgia, serif;
  --sans:  "IBM Plex Sans", system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  --r-card: 1.75rem;
  --r-md:   1.375rem;
  --r-sm:   1rem;
  --r-btn:  6.25rem;
  --r-panel: 2.5rem;

  --shadow-soft: 0 0.25rem 0.75rem rgba(34,47,16,0.05), 0 1.125rem 2.5rem rgba(34,47,16,0.07);
  --shadow-lift: 0 0.625rem 1.5rem rgba(34,47,16,0.08), 0 1.875rem 4.375rem rgba(34,47,16,0.16);
  --shadow-float: 0 0.5rem 1.875rem rgba(34,47,16,0.12), 0 2px 0.5rem rgba(34,47,16,0.06);

  --maxw: 77.5rem;
  --gutter: 2.5rem;
  --ease: cubic-bezier(.4,.1,.2,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; font-size: clamp(15px, 1.18vw, 18px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--pine);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 6.5rem 0; }
.section--tight { padding: 4.75rem 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7813rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey-600);
  margin: 0 0 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 1.625rem; height: 1px;
  background: var(--honey);
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 45rem; margin-bottom: 3.25rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 5vw, 3rem); margin-bottom: 1.125rem; letter-spacing: -0.02em; }
.section-head p { font-size: 1.1875rem; color: #5c594f; margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.625rem;
  font-family: var(--sans);
  font-size: 0.9688rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9375rem 1.75rem;
  border-radius: var(--r-btn);
  transition: transform .25s var(--ease-out), box-shadow .3s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.125rem; height: 1.125rem; }
.btn--primary { background: var(--honey); color: var(--pine-900); box-shadow: 0 0.25rem 0.875rem rgba(232,165,71,0.34); }
.btn--primary:hover { background: var(--honey-600); transform: translateY(-2px); box-shadow: 0 0.5rem 1.375rem rgba(232,165,71,0.42); }
.btn--pine { background: var(--pine); color: #f4efe4; }
.btn--pine:hover { background: var(--pine-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--pine); border: 1px solid rgba(45,74,62,0.35); }
.btn--ghost:hover { background: rgba(45,74,62,0.06); border-color: var(--pine); }
.btn--ghost-light { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.45); backdrop-filter: blur(0.25rem); }
.btn--ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn--lg { padding: 1.125rem 2.25rem; font-size: 1.0313rem; }
.btn--block { width: 100%; }

.txtlink {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; color: var(--pine);
  border-bottom: 0.0938rem solid transparent;
  transition: gap .2s var(--ease), border-color .2s var(--ease);
}
.txtlink svg { width: 1.0625rem; height: 1.0625rem; transition: transform .2s var(--ease); }
.txtlink:hover { border-color: var(--honey); }
.txtlink:hover svg { transform: translateX(0.25rem); }

/* ---------- placeholders ---------- */
.ph {
  position: relative;
  background-color: var(--sand-100);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(45,74,62,0.05) 0, rgba(45,74,62,0.05) 1px,
      transparent 1px, transparent 0.8125rem);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.625rem;
  color: #8c8068;
  text-align: center;
  overflow: hidden;
  border-radius: inherit;
}
.ph svg { width: 1.875rem; height: 1.875rem; opacity: .55; }
.ph__tag {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 1rem;
  line-height: 1.5;
}
.ph__corner {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #9a8d73;
  background: rgba(255,255,255,0.6);
  padding: 3px 0.5rem; border-radius: 0.25rem;
}
.ph--dark {
  background-color: var(--pine-900);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.035) 0, rgba(255,255,255,0.035) 1px,
      transparent 1px, transparent 0.875rem);
  color: rgba(255,255,255,0.6);
}
.ph--dark .ph__corner { background: rgba(0,0,0,0.3); color: rgba(255,255,255,0.6); }

.reveal { opacity: 0; transform: translateY(1.375rem); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
