/* ════════════════════════════════════════════════════════════════════════
   Сайт психолога Александра Шарпа — style.css v4
   Палитра: тёплый беж/кремовый фон, тёмно-коричневый текст, терракота.
   Шрифт: Manrope.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Палитра */
  --bg:          #f6efe3;
  --bg-deep:     #ece1cd;
  --bg-card:    #fffaf1;
  --bg-soft:    #fbf4e6;
  --ink:        #2a201a;
  --ink-soft:   #5a4a3c;
  --ink-muted:  #877864;
  --line:       #e5d5b6;
  --line-soft:  #f0e3c8;
  --accent:     #b45a3c;
  --accent-deep:#8a3f25;
  --accent-soft:#e8c7b8;
  --ok:         #4a7a5a;
  --warn:       #c08a3a;
  --err:        #c14a3a;

  /* Раскладка */
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius:   16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Тени */
  --shadow-sm: 0 2px 8px rgba(60, 40, 20, 0.06);
  --shadow:    0 8px 24px rgba(60, 40, 20, 0.08);
  --shadow-lg: 0 20px 48px rgba(60, 40, 20, 0.12);

  /* Анимации */
  --ease: cubic-bezier(.2,.7,.2,1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 600ms;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 2.2vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.4vw + .9rem, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--accent-deep); }
img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

hr { border: 0; height: 1px; background: var(--line); margin: 32px 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

.skip-link {
  position: absolute; top:-100px; left: 8px; padding: 8px 16px; background: var(--ink); color: var(--bg);
  border-radius: 8px; z-index: 1000;
}
.skip-link:focus { top: 8px; color: var(--bg); }

/* ─── HEADER ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top:0; z-index: 100;
  background: rgba(246, 239, 227, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 239, 227, 0.95);
}
.header-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none;
}
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: var(--bg);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.02rem; }
.brand-role { font-size: 0.78rem; color: var(--ink-muted); }

.nav-main {
  display: flex; align-items: center; gap: 6px;
  justify-self: center;
}
.nav-link {
  font-size: 0.95rem; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-deep); color: var(--ink); }
.nav-link.is-active { background: var(--ink); color: var(--bg); }
.nav-link.is-active:hover { background: var(--ink); color: var(--bg); }

.socials { display: flex; gap: 4px; align-items: center; }
.social {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.social svg { width: 18px; height: 18px; }
.social:hover { background: var(--ink); color: var(--bg); transform: translateY(-1px); }

.mobile-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  border: 0; background: transparent; cursor: pointer;
  border-radius: 10px;
  position: relative;
}
.mobile-toggle span {
  display: block; height: 2px; width: 22px; margin: 0 auto;
  background: var(--ink); transition: transform var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.mobile-toggle span + span { margin-top: 5px; }
.mobile-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.mobile-toggle.is-open span:nth-child(2){ opacity: 0; }
.mobile-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  padding: 16px var(--gutter);
}
.nav-mobile.is-open { display: block; }
.nav-mobile .nav-link {
  display: block;
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.nav-mobile-socials {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.nav-mobile-socials a {
  padding: 8px 14px; background: var(--bg-deep); border-radius: 999px;
  font-size: 0.9rem; color: var(--ink);
}

@media (max-width: 1080px){
  .nav-main { display: none; }
  .mobile-toggle { display: block; }
  .header-row { grid-template-columns: auto 1fr auto auto; gap: 12px; }
}
@media (max-width: 560px){
  .socials { display: none; }
  .header-row { grid-template-columns: auto 1fr auto; }
  .brand-role { display: none; }
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────── */

.page-main { min-height: 60vh; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ─── BUTTONS ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem; font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0; cursor: pointer;
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  line-height: 1.2;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px rgba(180, 90, 60, 0.32);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(180, 90, 60, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #1d1611; color: var(--bg); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-text { background: transparent; color: var(--ink-soft); padding: 14px 12px; }
.btn-text:hover { color: var(--accent); background: transparent; }
.btn-lg { padding: 18px 36px; font-size: 1.08rem; }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; flex: 0 0 18px; }

/* ─── HERO ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
@media (max-width: 880px){
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-deep);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42, 32, 26, 0.25));
}
.hero-decoration {
  position: absolute;
  top: 0; right: -10%;
  width: 60%; height: 100%;
  background: radial-gradient(circle, rgba(232, 199, 184, 0.4), transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}

/* ─── CARDS / SECTIONS ──────────────────────────────────────────────── */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }

.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px){
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head {
  text-align: center;
  margin: 0 auto clamp(32px, 4vw, 48px);
  max-width: 780px;
}

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 32px; background: var(--bg-soft); border-radius: var(--radius);
}
@media (max-width: 720px){ .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--accent); }
.stat-label { font-size: 0.85rem; color: var(--ink-muted); }

/* ─── TESTS ──────────────────────────────────────────────────────────── */

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.test-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.test-card::before {
  content: '';
  position: absolute; top: 0; left: 24px; right: 24px; height: 4px;
  background: var(--accent-color, var(--accent));
  border-radius: 0 0 4px 4px;
  opacity: 0.8;
  transition: width var(--t-base) var(--ease);
}
.test-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent-soft); }
.test-card-title { margin: 8px 0 8px; font-size: 1.25rem; }
.test-card-desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1 1 auto; }
.test-card-meta { display: flex; gap: 12px; margin: 18px 0; font-size: 0.85rem; color: var(--ink-muted); flex-wrap: wrap; }
.test-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.test-card-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-color, var(--accent)); }
.test-card .btn { margin-top: auto; }

/* ─── TEST RUNNER ────────────────────────────────────────────────────── */

.test-page { padding: 32px 0 80px; }
.test-topbar {
  position: sticky; top: 72px; z-index: 50;
  background: rgba(246, 239, 227, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center; gap: 20px;
}
.test-topbar-info { font-size: 0.9rem; color: var(--ink-soft); }
.test-topbar-info strong { color: var(--ink); display: block; }
.test-topbar-progress {
  height: 8px; background: var(--bg-deep); border-radius: 999px; overflow: hidden;
  min-width: 200px;
}
.test-topbar-progress > div {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  width: 0%; transition: width var(--t-base) var(--ease);
}

.question-wrap {
  max-width: 780px; margin: 32px auto;
  padding: 0 var(--gutter);
}
.question-section-title {
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.question-body {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.question-text { font-size: 1.25rem; font-weight: 500; line-height: 1.5; margin: 0 0 28px; }
.question-options { display: grid; gap: 10px; }
.question-option {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.question-option:hover { background: var(--bg-deep); border-color: var(--accent-soft); }
.question-option.is-selected {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.question-option.is-selected .question-option-key { background: var(--bg); color: var(--ink); }
.question-option-key {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 700;
  flex: 0 0 28px;
}
.question-option-label { font-size: 0.98rem; }

.question-nav {
  margin-top: 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.question-nav .btn { min-width: 140px; }

.kbd-hint {
  text-align: center; color: var(--ink-muted); font-size: 0.85rem;
  margin-top: 16px;
}
.kbd-hint kbd {
  display: inline-block; padding: 2px 8px; background: var(--bg-card);
  border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 4px; font-family: 'Manrope', monospace; font-size: 0.75rem;
  margin: 0 2px;
}

/* Результат теста */

.result-wrap {
  max-width: 820px; margin: 24px auto; padding: 0 var(--gutter);
}
.result-hero {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}
.result-total {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800; color: var(--accent);
  line-height: 1;
}
.result-total small {
  display: block; font-size: 1rem; color: var(--ink-muted);
  font-weight: 400; margin-top: 12px; letter-spacing: 0.06em;
}
.result-badge {
  display: inline-block; padding: 8px 16px;
  border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  margin-top: 16px;
}
.result-badge[data-level="low"]      { background: #dfeede; color: #2d6f3b; }
.result-badge[data-level="medium"]   { background: #f6e7c4; color: #6b4a14; }
.result-badge[data-level="high"]     { background: #f4d6c4; color: #a04220; }
.result-badge[data-level="critical"] { background: #efc4c4; color: #8a2020; }

.result-sections { margin-top: 32px; }
.result-section-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.result-section-row:last-child { border-bottom: 0; }
.result-section-title { font-weight: 500; }
.result-section-score {
  font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 4px 12px; border-radius: 6px;
  background: var(--bg-deep);
}

.result-bar {
  height: 6px; background: var(--bg-deep); border-radius: 999px; overflow: hidden;
  margin-top: 6px;
}
.result-bar > div { height: 100%; background: var(--accent); transition: width 800ms var(--ease); }

.result-actions {
  margin-top: 32px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px){ .result-actions { grid-template-columns: 1fr; } }
.result-action-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.result-action-card h3 { font-size: 1.1rem; }
.result-action-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* Формы */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 0.88rem; color: var(--ink-soft); font-weight: 500; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field textarea, .field select {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180, 90, 60, 0.15);
}
.field textarea { min-height: 100px; resize: vertical; }

.checkbox {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 12px 0; cursor: pointer;
  font-size: 0.93rem; color: var(--ink-soft);
  line-height: 1.5;
}
.checkbox input { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.checkbox a { color: var(--ink); text-decoration: underline; }

.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); margin: 12px 0; font-size: 0.93rem; }
.form-msg.ok { background: #dfeede; color: #2d6f3b; }
.form-msg.err { background: #f4d6c4; color: #a04220; }

/* ─── FAQ / CONTENT ─────────────────────────────────────────────────── */

.faq-item {
  border-bottom: 1px solid var(--line-soft);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.05rem;
  padding: 0 36px 0 0;
  position: relative;
}
.faq-item summary::after {
  content: '+';
  position: absolute; right: 6px; top: -2px;
  font-size: 1.5rem; line-height: 1; color: var(--ink-muted);
  transition: transform var(--t-fast) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding-top: 12px; color: var(--ink-soft); }

.bullets { padding-left: 0; list-style: none; }
.bullets li { position: relative; padding-left: 32px; margin-bottom: 14px; }
.bullets li::before {
  content: '✓';
  position: absolute; left: 0; top: -1px;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 0.8rem; font-weight: 700;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 24px 0;
}

/* ─── ABOUT ─────────────────────────────────────────────────────────── */

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}
.about-gallery .photo {
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-deep);
  transition: transform var(--t-base) var(--ease);
}
.about-gallery .photo:hover { transform: scale(1.02); }
.about-gallery img { width: 100%; height: 100%; object-fit: cover; }

/* ─── COOKIE BANNER ────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: var(--gutter);
  pointer-events: none;
}
.cookie-inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 30px));
  opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-base) var(--ease);
}
.cookie-banner.is-open .cookie-inner { transform: translateY(0); opacity: 1; }
.cookie-text { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.cookie-cat {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; background: var(--bg-soft); border-radius: var(--radius-sm);
  margin-bottom: 8px; cursor: pointer;
}
.cookie-cat input { margin-top: 4px; accent-color: var(--accent); }
.cookie-cat small { color: var(--ink-muted); display: block; font-size: 0.82rem; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.9rem; }

/* ─── FOOTER ────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  color: rgba(246, 239, 227, 0.7);
  padding: 56px 0 24px;
  margin-top: 80px;
}
.footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px){ .footer-wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px){ .footer-wrap { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand {
  display: flex; gap: 12px; align-items: center;
  color: var(--bg);
  margin-bottom: 12px;
}
.footer-brand .brand-name { color: var(--bg); font-weight: 700; }
.footer-brand .brand-role { color: rgba(246, 239, 227, 0.6); font-size: 0.85rem; }
.footer-tagline { font-size: 0.92rem; }
.footer-col h4 { color: var(--bg); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(246, 239, 227, 0.7);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-col ul a:hover { color: var(--bg); }

.footer-legal {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(246, 239, 227, 0.12);
  font-size: 0.85rem;
  color: rgba(246, 239, 227, 0.5);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}
.footer-disclaimer { font-style: italic; }

/* ─── ANIMATIONS ─────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="100"]{ transition-delay: 100ms; }
[data-reveal-delay="200"]{ transition-delay: 200ms; }
[data-reveal-delay="300"]{ transition-delay: 300ms; }
[data-reveal-delay="400"]{ transition-delay: 400ms; }

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 4px 14px rgba(180, 90, 60, 0.32); }
  50%      { box-shadow: 0 4px 22px rgba(180, 90, 60, 0.5); }
}
.btn-pulse { animation: pulse-soft 2.6s var(--ease) infinite; }

/* ─── LEGAL PAGES ───────────────────────────────────────────────────── */

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter);
}
.legal h2 { margin-top: 32px; }
.legal h3 { margin-top: 24px; }
.legal-meta { color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 28px; }
.legal .toc {
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal .toc h4 { margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.legal table th, .legal table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal table th { background: var(--bg-soft); font-weight: 600; }

/* ─── UTILITIES ──────────────────────────────────────────────────────── */

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-3 { margin-bottom: 24px; }
.muted { color: var(--ink-muted); }
.soft  { color: var(--ink-soft); }
