/* CULTMEDIA — стили главной. Перенесены как есть из inline-блока статики
   (clients/cultmedia/public_html/index.html), чтобы вёрстка совпала 1:1.
   Грузится только на главной: правила заданы по тегам (body, h1) и на
   внутренних страницах перебили бы .page-hero .lede и заголовки. */

  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --bg: #2a3826;
    --fg: #f1f4e8;
    --soft: #e8eee0;
    --muted: rgba(232, 238, 224, 0.62);
    --dim: rgba(232, 238, 224, 0.58);
    --line: rgba(232, 238, 224, 0.16);
    --accent: #d4c89a;
  }
  html, body { min-height: 100%; }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;

    background-color: var(--bg);
    background-image:
      radial-gradient(circle at 75% 22%, rgba(170, 200, 140, 0.32), transparent 55%),
      radial-gradient(circle at 18% 82%, rgba(35, 50, 30, 0.7), transparent 50%),
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 1  0 0 0 0 0.85  0 0 0 0.25 0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.15'/></svg>");
    background-attachment: fixed, fixed, fixed;
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: auto, auto, 240px 240px;
  }

  /* ───── HERO ───── */
  .hero {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 4vw, 40px);
  }
  .hero .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 60px 0;
  }
  h1 {
    font-size: clamp(56px, 12vw, 168px);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 32px;
    color: var(--soft);
    position: relative;
  }
  .glitch-layer {
    position: absolute;
    inset: 0;
    color: var(--accent);
    opacity: 0;
    pointer-events: none;
    user-select: none;
  }
  .glitch-layer.g2 { color: #aac88c; }
  #grain {
    position: fixed;
    inset: 0;
    z-index: 90;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.25;
  }
  .lede {
    font-size: clamp(18px, 2.2vw, 26px);
    line-height: 1.45;
    color: var(--soft);
    max-width: 620px;
    margin: 0 auto 56px;
    font-weight: 400;
  }
  .lede b { color: var(--fg); font-weight: 500; }
  .meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px 48px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .meta div { font-size: 14px; line-height: 1.5; }
  .meta .k {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 8px;
  }
  .meta .v { color: var(--soft); }
  .meta .v.muted { color: var(--muted); }

  .scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
    text-decoration: none;
    border-bottom: 0;
  }
  .scroll-hint:hover { color: var(--soft); border-bottom: 0; }
  .scroll-hint svg {
    animation: bob 2.4s ease-in-out infinite;
    color: var(--accent);
  }
  @keyframes bob {
    0%, 100% { transform: translateY(0); opacity: 0.55; }
    50% { transform: translateY(4px); opacity: 1; }
  }

  /* ───── SERVICES ───── */
  .services {
    padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 40px);
  }
  .services-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
  }
  .kicker {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 18px;
  }
  .services h2,
  .manifesto h2,
  .process h2,
  .cta h2 {
    font-size: clamp(35px, 6.8vw, 75px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.0;
    color: var(--soft);
    margin-bottom: 16px;
  }
  .services-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.5;
  }
  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .card {
    padding: 38px 34px 42px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: left;
    transition: background-color 0.4s ease;
    display: flex;
    flex-direction: column;
  }
  .card:hover { background-color: rgba(232, 238, 224, 0.04); }
  .card .num {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--dim);
    margin-bottom: 28px;
    font-variant-numeric: tabular-nums;
  }
  .card h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--soft);
    margin-bottom: 14px;
    line-height: 1.25;
  }
  .card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
  }

  /* ───── MANIFESTO ───── */
  .manifesto {
    padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 40px);
    border-top: 1px solid var(--line);
  }
  .manifesto-inner {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
  }
  .manifesto-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 540px;
    margin: 0 auto 72px;
    line-height: 1.5;
  }
  .principles { text-align: left; max-width: 760px; margin: 0 auto; }
  .principle {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 32px;
    padding: 32px 0 36px;
    border-top: 1px solid var(--line);
    align-items: start;
  }
  .principle:first-child { border-top: none; padding-top: 8px; }
  .principle .num {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -0.055em;
    color: var(--accent);
    line-height: 0.85;
    font-variant-numeric: tabular-nums;
    padding-top: 0;
  }
  .principle h3 {
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--soft);
    margin-bottom: 12px;
    line-height: 1.15;
  }
  .principle p {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
    max-width: 540px;
  }

  /* ───── PROCESS ───── */
  .process {
    padding: clamp(80px, 12vw, 140px) clamp(20px, 4vw, 40px);
    border-top: 1px solid var(--line);
  }
  .process-inner {
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
  }
  .process-sub {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 64px;
    line-height: 1.5;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 32px;
    text-align: left;
  }
  .step { position: relative; }
  .step-marker {
    display: flex;
    align-items: center;
    margin-bottom: 26px;
    position: relative;
  }
  .step-marker .dot-num {
    position: relative;
    z-index: 1;
    background: var(--bg);
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
  }
  .step-marker::after {
    content: '';
    position: absolute;
    left: 46px;
    right: -32px;
    top: 23px;
    height: 1px;
    background: var(--line);
  }
  .step:last-child .step-marker::after { display: none; }
  .step .tag {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 10px;
  }
  .step h3 {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--soft);
    margin-bottom: 12px;
    line-height: 1.25;
  }
  .step p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
  }

  /* ───── CTA ───── */
  .cta {
    padding: clamp(100px, 14vw, 160px) clamp(20px, 4vw, 40px);
    border-top: 1px solid var(--line);
    text-align: center;
  }
  .cta-inner { max-width: 720px; margin: 0 auto; }
  .cta h2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-sub {
    font-size: clamp(15px, 1.8vw, 19px);
    color: var(--muted);
    max-width: 480px;
    margin: 18px auto 40px;
    line-height: 1.5;
  }
  .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 32px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 500;
    font-size: 15px;
    border-radius: 999px;
    text-decoration: none;
    border-bottom: none;
    letter-spacing: -0.01em;
    transition: transform .25s ease, background .25s ease;
  }
  .cta-btn:hover {
    background: #e0d5a8;
    transform: translateY(-1px);
    border-bottom: none;
  }
  .cta-btn .arrow {
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
  }
  .cta-audit {
    max-width: 520px;
    margin: 64px auto 0;
    padding-top: 36px;
    border-top: 1px solid var(--line);
  }
  .cta-audit .k {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dim);
    margin-bottom: 14px;
  }
  .cta-audit p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 18px;
  }
  .cta-audit a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -11px 0;
    font-size: 14px;
    color: var(--accent);
    border-bottom: 1px solid rgba(212, 200, 154, 0.4);
  }
  .cta-audit a:hover { border-color: var(--accent); }

  a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--dim); transition: border-color .2s ease; }
  a:hover { border-color: var(--fg); }

  @media (max-width: 900px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: 1fr; gap: 0; }
    .step {
      display: grid;
      grid-template-columns: 46px 1fr;
      gap: 0 22px;
      padding-bottom: 40px;
    }
    .step:last-child { padding-bottom: 0; }
    .step::before {
      content: '';
      position: absolute;
      left: 23px;
      top: 46px;
      bottom: 0;
      width: 1px;
      background: var(--line);
    }
    .step:last-child::before { display: none; }
    .step-marker { margin-bottom: 0; }
    .step-marker::after { display: none; }
    .step-body { padding-top: 4px; }
  }
  @media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
    h1 { margin-bottom: 24px; }
    .lede { margin-bottom: 40px; }
    .card { padding: 32px 26px 36px; }
    .principle {
      grid-template-columns: 1fr;
      gap: 12px;
      padding: 36px 0;
    }
    .principle .num { font-size: 56px; }
  }
