/* витрина расчёски в кабинете трихолога: тёмный экран, расчёска «вылетает», дымка сыворотки */
.cs { --cs-bg: #0a0908; --cs-bg2: #110f0d; --cs-fg: #f4efe8; --cs-soft: #c9c1b6; --cs-muted: #857d73; --cs-gold: #c9ad83; --cs-line: rgba(201, 173, 131, .22);
  background: var(--cs-bg); color: var(--cs-fg); overflow-x: clip; position: relative; }
.cs a { text-decoration: none; }
.cs-wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; position: relative; }
.cs em { font-style: normal; }
.cs-label { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--cs-gold); }

.cs-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 999px; font: 500 16px var(--sans); border: 1px solid var(--cs-fg); color: var(--cs-bg); background: var(--cs-fg); transition: background .4s, border-color .4s; }
.cs-btn:hover { background: var(--cs-gold); border-color: var(--cs-gold); }
.cs-btn.ghost { background: transparent; color: var(--cs-fg); }
.cs-btn.ghost:hover { background: var(--cs-fg); color: var(--cs-bg); }

/* hero */
.cs-hero { position: relative; height: clamp(600px, 92vh, 940px); }
.cs-mark { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); font-family: var(--sans); font-weight: 600; font-size: clamp(70px, 19vw, 290px); letter-spacing: .04em; margin-right: -.04em; line-height: 1; white-space: nowrap; color: transparent;
  background: linear-gradient(180deg, #f4efe8 0%, #c9ad83 70%, rgba(201, 173, 131, .25) 100%); -webkit-background-clip: text; background-clip: text; animation: cs-markIn 2.2s cubic-bezier(.16, 1, .3, 1) both; will-change: transform, opacity; }
@keyframes cs-markIn { from { letter-spacing: .5em; opacity: 0; filter: blur(14px); } }
.cs-brush { position: absolute; left: 50%; top: 4%; height: 86%; transform: translateX(-50%); z-index: 2; will-change: transform; }
.cs-brush img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 50px 60px rgba(0, 0, 0, .75)); animation: cs-brushIn 2s .3s cubic-bezier(.16, 1, .3, 1) both, cs-float 8s 2.4s ease-in-out infinite; }
@keyframes cs-brushIn { from { opacity: 0; transform: translateY(90px); } }
@keyframes cs-float { 50% { transform: translateY(-12px); } }
.cs-mist { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.cs-glow { position: absolute; left: 50%; top: 30%; width: min(900px, 120%); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(201, 173, 131, .14), rgba(224, 48, 60, .05) 40%, transparent 65%); }
.cs-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; padding-bottom: 28px; }
.cs-foot h1 { font-family: var(--sans); font-weight: 600; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; margin: 0; letter-spacing: -.03em; color: var(--cs-fg); animation: cs-rise 1.6s 1s both; }
.cs-foot p { margin: 0; max-width: 34ch; justify-self: end; text-align: right; color: var(--cs-soft); font-size: 15px; animation: cs-rise 1.6s 1.2s both; }
.cs-foot .cs-btn { animation: cs-rise 1.6s 1.4s both; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(24px); } }
.cs-tag { position: absolute; z-index: 4; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 500; color: var(--cs-soft); white-space: nowrap; animation: cs-rise 1.6s both; will-change: transform; }
.cs-tag::before { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--cs-gold)); }
.cs-tag b { font-family: var(--sans); font-weight: 600; font-size: 28px; color: var(--cs-fg); }
.cs-tag.r { flex-direction: row-reverse; }
.cs-tag.r::before { background: linear-gradient(270deg, transparent, var(--cs-gold)); }
.cs-t1 { left: max(20px, calc(50% - 470px)); top: 20%; animation-delay: 1.6s; }
.cs-t2 { right: max(20px, calc(50% - 500px)); top: 27%; animation-delay: 1.8s; }
.cs-t3 { left: max(20px, calc(50% - 440px)); top: 56%; animation-delay: 2s; }

/* манифест */
.cs-manifesto { padding-block: 90px 40px; text-align: center; }
.cs-rule { width: 1px; height: 80px; margin: 0 auto 28px; background: linear-gradient(var(--cs-gold), transparent); }
.cs-manifesto h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(36px, 5.6vw, 80px); line-height: 1.04; letter-spacing: -.04em; margin: 20px auto 26px; max-width: 14ch; text-wrap: balance; color: var(--cs-fg); }
.cs-manifesto h2 em { color: var(--cs-gold); }
.cs-manifesto p { max-width: 52ch; margin: 0 auto; color: var(--cs-soft); font-size: 18px; }

/* технологии: липкий экран */
.cs-tech { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; padding-block: 60px 90px; }
.cs-screen { position: sticky; top: 90px; height: calc(100vh - 130px); max-height: 720px; will-change: transform; }
.cs-screen-in { position: relative; height: 100%; border: 1px solid var(--cs-line); background: radial-gradient(circle at 50% 38%, rgba(201, 173, 131, .08), transparent 60%), var(--cs-bg2); overflow: hidden; display: grid; place-items: center; }
.cs-screen-in::before, .cs-screen-in::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--cs-gold); z-index: 3; }
.cs-screen-in::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.cs-screen-in::after { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.cs-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.cs-screen img { position: relative; z-index: 1; height: 80%; width: auto; max-width: 90%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.cs-cap { position: absolute; left: 24px; bottom: 22px; z-index: 3; display: flex; gap: 16px; align-items: baseline; }
.cs-cap .n { font-family: var(--sans); font-size: 34px; font-weight: 600; line-height: 1; color: var(--cs-gold); }
.cs-cap .t { font-size: 14px; font-weight: 500; color: var(--cs-soft); }
.cs-bar { position: absolute; right: 24px; bottom: 30px; z-index: 3; width: 120px; height: 1px; background: var(--cs-line); }
.cs-bar i { position: absolute; left: 0; top: 0; height: 1px; background: var(--cs-gold); width: 25%; transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.cs-chapters { min-width: 0; }
.cs-chapter { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; border-top: 1px solid var(--cs-line); opacity: .3; transition: opacity 1s; }
.cs-chapter:first-child { border-top: 0; }
.cs-chapter.on { opacity: 1; }
.cs-chapter h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 20px; text-wrap: balance; color: var(--cs-fg); }
.cs-chapter h3 em { color: var(--cs-gold); }
.cs-chapter p { color: var(--cs-soft); font-size: 18px; margin: 0 0 14px; max-width: 38ch; }
.cs-chapter .fine { font-size: 13px; color: var(--cs-muted); max-width: 44ch; margin-top: 10px; }

/* финал */
.cs-final { text-align: center; padding-block: 70px 90px; border-top: 1px solid var(--cs-line); }
.cs-final h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -.035em; margin: 0 auto 18px; max-width: 20ch; text-wrap: balance; color: var(--cs-fg); }
.cs-final p { color: var(--cs-soft); max-width: 46ch; margin: 0 auto 30px; }
.cs-final .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cs-legal { max-width: 760px; margin: 48px auto 0 !important; font-size: 12px !important; line-height: 1.7; color: var(--cs-muted) !important; }

@media (max-width: 900px) {
  .cs-hero { height: clamp(640px, 96vh, 820px); }
  .cs-brush { height: 56%; top: 5%; }
  .cs-mark { font-size: clamp(54px, 15vw, 200px); top: 36%; }
  .cs-foot { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; }
  .cs-foot p { justify-self: center; text-align: center; }
  .cs-tag { display: none; }
  .cs-manifesto { padding-block: 64px 24px; }
  .cs-tech { grid-template-columns: 1fr; gap: 0; padding-block: 24px 40px; }
  .cs-screen { top: 76px; height: 44vh; min-height: 300px; z-index: 5; }
  .cs-chapter { min-height: auto; padding-block: 56px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cs *, .cs *::before, .cs *::after { animation: none !important; transition: none !important; }
}
