/* =========================================================
   Тема: графит + лайм, тёмные/светлые секции, стекло,
   Sofia Sans Extra Condensed (заголовки) + Manrope (текст) + JetBrains Mono, DM Serif — только логотип
   ========================================================= */
:root {
  --dark: #121211;
  --dark-2: #1c1c1a;
  --paper: #ecebe4;
  --light: #f1f1ec;
  --ink: #181816;
  --muted: #74766a;
  --muted-d: rgba(236,235,228,.62);
  --line-d: rgba(255,255,255,.09);
  --line-l: rgba(23,24,21,.12);
  --orange: #c6f432;
  --lime-ink: #4a6b00;
  --teal: #2fbf71;
  --cyan: #8fdc2a;
  --violet: #e9f56b;
  --grad: linear-gradient(100deg, #3f6212, #5f8f00 55%, #1f7a4a);
  --grad-d: linear-gradient(100deg, #c6f432, #f2f7a6 55%, #5fe39a);
  --f-head: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --f-logo: "DM Serif Display", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--paper);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3 { margin: 0; font-weight: 300; }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .16em; font-size: 11px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.muted { color: var(--muted-d); }

/* ---------- gradient highlight ---------- */
.hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: hlshift 8s ease-in-out infinite alternate;
}
.sec--dark .hl, .hero .hl { background-image: var(--grad-d); }
@keyframes hlshift { to { background-position: 100% 0; } }

/* ---------- pills / eyebrow ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: rgba(248,248,247,.78);
}
.pill--light { border-color: rgba(23,24,21,.22); background: transparent; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 12px/1.6 var(--f-head); text-transform: uppercase; letter-spacing: .07em;
  padding: 11px 20px; border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn > span { transition: transform .35s var(--ease); }
.btn:hover > span { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn--big { padding: 16px 26px; }
.btn--dark { background: #1b1b19; color: var(--paper); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 30px -10px rgba(0,0,0,.6); }
.btn--dark:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 0 0 4px rgba(203,255,61,.15), 0 14px 40px -12px rgba(203,255,61,.55); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--line { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); color: var(--paper); }
.btn--line:hover { background: rgba(255,255,255,.06); }
.btn--line-dark { box-shadow: inset 0 0 0 1px rgba(23,24,21,.3); color: var(--ink); background: rgba(255,255,255,.5); }
.btn--grad { background: var(--grad); color: #fff; box-shadow: 0 12px 40px -12px rgba(249,255,77,.8); }

/* glowing ring button (как «Войти» у референса) */
/* живое кольцо: три зелёных блика крутятся с разной скоростью внутри обводки 1.5px,
   под ними размытая копия — свечение. Размер квадратов (--side) выставляет main.js */
.btn--glow { position: relative; background: #1b1b19; color: var(--paper); isolation: isolate; }
.lr { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; overflow: hidden; }
.lr--glow { z-index: 2; overflow: visible; filter: blur(6px); opacity: .8; }
.lr__fr {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; isolation: isolate;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#fff 0 0) content-box exclude, linear-gradient(#fff 0 0);
}
.lr--glow .lr__fr { padding: 3px; animation: lrBreath 6.5s ease-in-out infinite; }
.lr__fr > b {
  position: absolute; top: 50%; left: 50%; width: var(--side, 150%); aspect-ratio: 1; translate: -50% -50%;
  animation: lrSpin 10.6s linear infinite;
}
.lr__fr > .a { rotate: 0deg; background: conic-gradient(rgba(255,255,255,.07) 0 190deg, #0f3d1f 192deg, #1f9d55 199deg, #5fe39a 206deg, #fff 210deg, #f2f7a6 218deg, #fff 229deg, #c6f432 239deg, #2fbf71 249deg, #14532d 257deg, rgba(255,255,255,.07) 269deg 360deg); }
.lr__fr > .b { rotate: 140deg; mix-blend-mode: screen; animation-direction: reverse; background: conic-gradient(transparent 0 92deg, #14532d 104deg, #2fbf71 114deg, #eafbd2 122deg, #eafbd2 151deg, #8be04e 159deg, transparent 170deg 360deg); }
.lr__fr > .c { rotate: 250deg; mix-blend-mode: screen; animation-duration: 37.8s; background: conic-gradient(transparent 0 298deg, #1f7a4a 303deg, #fff 307deg, #fff 316deg, #c6f432 321deg, transparent 330deg 360deg); }
.btn--glow:hover .lr__fr > b { animation-duration: 5.3s; }
.btn--glow:hover .lr__fr > .c { animation-duration: 19s; }
@keyframes lrSpin { to { transform: rotate(360deg); } }
@keyframes lrBreath { 50% { opacity: .45; } }


/* =========================================================
   HEADER
   ========================================================= */
.hdr { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; transition: top .4s var(--ease); }
.hdr__in {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 9px 10px 9px 22px; border-radius: 22px;
  background: rgba(21,22,19,.5);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, box-shadow .4s;
}
.hdr.is-scrolled { top: 8px; }
.hdr.is-scrolled .hdr__in { background: rgba(18,18,16,.86); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.logo {
  font: italic 28px/1 var(--f-logo); letter-spacing: -.01em;
  background: linear-gradient(110deg, #dbffc9, #fcffa6 30%, #edffbd 55%, #a6ffcb 80%, #dbffc9);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo 9s linear infinite;
  padding: 2px 2px 4px;
}
.logo i { font-style: normal; color: var(--orange); -webkit-text-fill-color: var(--orange); }
@keyframes holo { to { background-position: 300% 0; } }
.nav { display: flex; gap: 26px; flex: 1; }
.nav a { font: 600 13px/1 var(--f-body); color: rgba(248,248,247,.82); position: relative; padding: 6px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--orange); transition: right .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.hdr__r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .35s var(--ease), top .35s; }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.nav-open .burger span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* =========================================================
   HERO — pinned, 3 слайда
   ========================================================= */
.hero { position: relative; height: 340vh; background: var(--dark); }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease); }
.hero__bg.is-on { opacity: 1; }
.hero__img {
  position: absolute; inset: -4% 18% -4% -26%;
  background: var(--img) var(--pos) / cover no-repeat;
  filter: grayscale(1) contrast(1.1) brightness(1.05);
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 98%);
  mask-image: linear-gradient(90deg, #000 70%, transparent 98%);
  transform: scale(calc(1.06 + var(--p, 0) * .08)) translateY(calc(var(--p, 0) * -2%));
  will-change: transform;
}
/* цветокор: синий кинематографичный, как у референса */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 80% at 88% 35%, rgba(137,214,98,.5), transparent 65%),
    linear-gradient(90deg, rgba(10,10,10,.35) 0%, transparent 25%, rgba(26,26,24,.25) 50%, rgba(15,15,14,.55) 100%),
    linear-gradient(0deg, rgba(10,10,10,.9), transparent 30%);
}
.hero__bg::before { content: ""; position: absolute; inset: 0; background: #a9ab9e; mix-blend-mode: multiply; opacity: .55; z-index: 1; }
.hero__bg { background: linear-gradient(90deg, #141413, #2f302b 68%, #7a9a1c); }
.hero__bg[data-i="1"] { background: linear-gradient(90deg, #141413, #3a3b34 68%, #a9c72a); }
.hero__bg[data-i="1"]::before { background: #c4c6b4; }
.hero__bg[data-i="2"] { background: linear-gradient(90deg, #11110f, #383934 75%, #2a8f54); }
.hero__bg[data-i="2"]::before { background: #8f9688; }
.hero__img--b { filter: grayscale(1) contrast(1.1) brightness(.95); }
.hero__img--c { filter: grayscale(1) contrast(1.15) brightness(.9); }
.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


.slide {
  position: absolute; z-index: 4;
  left: 54%; top: 50%; transform: translateY(-46%);
  width: min(560px, 42vw);
  pointer-events: none;
}
.slide.is-on { pointer-events: auto; }
.slide > *, .slide .glass > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.slide.is-on > *, .slide.is-on .glass > * { opacity: 1; transform: none; }
.slide.is-on > *:nth-child(2), .slide.is-on .glass > *:nth-child(2) { transition-delay: .08s; }
.slide.is-on > *:nth-child(3), .slide.is-on .glass > *:nth-child(3) { transition-delay: .16s; }
.slide.is-on > *:nth-child(4), .slide.is-on .glass > *:nth-child(4) { transition-delay: .24s; }
.slide--panel .glass { opacity: 1 !important; transform: none !important; }
.slide--panel { left: auto; right: 6vw; width: min(520px, 44vw); }
.glass {
  padding: 34px 32px 26px; border-radius: 24px;
  background: rgba(173,220,150,.14);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(22px) saturate(130%); -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
  transition: opacity .7s, transform .9s var(--ease) !important;
}
.slide--panel:not(.is-on) .glass { opacity: 0 !important; transform: translateY(30px) scale(.98) !important; }

.h-hero {
  font: 300 clamp(30px, 3.6vw, 52px)/1.04 var(--f-head);
  text-transform: uppercase; letter-spacing: -.005em;
  margin: 22px 0 22px; color: #fff;
}
.h-hero--sm { font-size: clamp(22px, 2.3vw, 32px); margin: 18px 0 20px; }
.h-hero .ln { display: block; }
.bullets { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; letter-spacing: .1em; text-transform: none; color: rgba(248,248,247,.85); }
.bullets li { display: flex; align-items: center; gap: 9px; }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.lead-hero { font-size: 17px; line-height: 1.6; color: rgba(248,248,247,.82); max-width: 470px; }
.skills { margin: 0 0 18px; }
.skills div { display: flex; align-items: baseline; gap: 14px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.1); }
.skills dt { font: 400 14px/1.3 var(--f-head); text-transform: uppercase; color: #fff; min-width: 46%; }
.skills dd { margin: 0; color: rgba(248,248,247,.7); font-size: 14px; }
.glass p { font-size: 14px; margin: 0; }

.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 34px; display: flex; align-items: center; gap: 12px; color: rgba(248,248,247,.55); font-size: 10px; }
.scroll-hint span { width: 1px; height: 46px; background: linear-gradient(transparent, rgba(255,255,255,.6)); position: relative; overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; left: 0; width: 1px; height: 14px; background: #fff; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { top: -14px; } to { top: 46px; } }
.counter { position: absolute; z-index: 3; right: 40px; bottom: 28px; display: flex; align-items: center; gap: 10px; color: rgba(248,248,247,.5); font-size: 11px; }
.counter b { color: #fff; font-weight: 400; }
.counter i { width: 70px; height: 1px; background: rgba(255,255,255,.2); position: relative; }
.counter s { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; }
.counter em { font-style: normal; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { background: var(--dark); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); overflow: hidden; padding: 18px 0; color: rgba(248,248,247,.78); font-size: 13px; letter-spacing: .18em; }
.marquee__track { display: flex; gap: 26px; width: max-content; animation: marq 110s linear infinite; }
.marquee__track b { color: var(--orange); font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.sec { position: relative; padding: 130px 0; overflow: hidden; }
.sec--dark { background: var(--dark); color: var(--paper); }
.sec--light { background: var(--light); color: var(--ink); }
.sec--dark + .sec--dark { padding-top: 40px; }
.sec__head { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 26px 40px; align-items: end; margin-bottom: 48px; }
.sec__head .pill { grid-column: 1 / -1; justify-self: start; }
.sec__head--col { grid-template-columns: 1fr; }
.h2 { font: 300 clamp(30px, 4.6vw, 64px)/1.04 var(--f-head); text-transform: uppercase; letter-spacing: .004em; }
.side { margin: 0; text-align: right; line-height: 1.8; color: var(--muted); border-left: 1px solid currentColor; padding-left: 14px; text-align: left; opacity: .9; }
.sec--dark .side { color: var(--muted-d); }
.side--inline { display: inline-block; margin-top: 28px; }
.lead { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; max-width: 760px; }
.lead--dark { color: rgba(248,248,247,.8); }

.glow { position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; border-radius: 50%; filter: blur(120px); opacity: .32; pointer-events: none; }
.glow--teal { background: #378f0b; top: -25%; right: -20%; }
.glow--violet { background: #9a9e2a; top: -20%; left: -25%; opacity: .4; }
.glow--orange { background: #c6ff2a; bottom: -45%; left: 20%; opacity: .22; }

/* reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.split .w { white-space: nowrap; display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
.split.in .w > span { transform: none; }

/* ---------- ABOUT ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: start; }
.about__text p:not(.lead) { color: #484a42; font-size: 17px; }
.about__text .lead { margin-bottom: 1.2em; }
.quote {
  margin: 34px 0 0; padding: 22px 26px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line-l);
  font: 400 18px/1.55 var(--f-body); color: var(--ink); position: relative;
  box-shadow: 0 20px 50px -30px rgba(57,58,52,.35);
}
.quote::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: var(--grad); }
.photo { position: relative; border-radius: 28px; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.photo img { border-radius: 28px; aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: saturate(.9); box-shadow: 0 40px 80px -40px rgba(47,47,43,.55); }
.chip {
  position: absolute; padding: 9px 14px; border-radius: 999px; font-size: 10.5px;
  background: rgba(255,255,255,.72); color: var(--ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.8); box-shadow: 0 10px 30px -10px rgba(47,47,43,.35);
  animation: floaty 6s ease-in-out infinite; transform: translateZ(40px);
}
.chip--1 { top: 9%; left: -22px; }
.chip--2 { top: 46%; right: -18px; animation-delay: -2s; }
.chip--3 { bottom: 8%; left: 18px; animation-delay: -4s; color: var(--teal); }
@keyframes floaty { 50% { translate: 0 -10px; } }

/* ---------- PATH slider ---------- */
.slider { margin-top: 50px; position: relative; }
.slider__nav { position: absolute; right: 0; top: -82px; display: flex; gap: 10px; }
.arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); font-size: 18px; transition: background .3s, transform .3s var(--ease); }
.arrow:hover { background: rgba(255,255,255,.08); transform: scale(1.06); }
.slider__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 20px; scrollbar-width: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.step {
  scroll-snap-align: start; position: relative;
  padding: 28px 26px 30px; border-radius: 22px; min-height: 290px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-d);
  transition: border-color .4s, transform .5s var(--ease), background .4s;
  user-select: none;
}
.step:hover { border-color: rgba(255,255,255,.22); transform: translateY(-4px); }
.step__n { display: inline-block; color: var(--orange); margin-bottom: 70px; font-size: 12px; }
.step h3 { font: 400 19px/1.25 var(--f-head); text-transform: uppercase; margin-bottom: 14px; }
.step p { color: rgba(248,248,247,.68); font-size: 15px; margin: 0; }
.step--accent { background: linear-gradient(160deg, rgba(73,196,11,.25), rgba(249,255,77,.22) 55%, rgba(10,165,75,.18)); border-color: rgba(251,255,139,.4); }
.slider__bar { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; margin-top: 12px; position: relative; overflow: hidden; }
.slider__bar s { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--grad-d); border-radius: 2px; transition: width .2s, left .2s; }

/* ---------- SERVICES cards ---------- */
.sec--tools { background: radial-gradient(60% 50% at 0% 0%, #eaffdf 0%, transparent 60%), radial-gradient(50% 50% at 100% 100%, #f5ffd8 0%, transparent 60%), var(--light); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: block; padding: 28px 28px 30px; border-radius: 26px; min-height: 240px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 20px 50px -30px rgba(67,120,40,.35), 0 0 0 6px rgba(255,255,255,.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden; isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(249,255,77,.16), transparent 60%);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 30px 60px -30px rgba(67,120,40,.5), 0 0 0 6px rgba(255,255,255,.55); }
.card:hover::before { opacity: 1; }
.card__ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 70px; }
.card__ico svg { width: 24px; height: 24px; fill: none; stroke: #6ac93b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card__arr { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--muted); background: #fff; box-shadow: 0 4px 14px -4px rgba(62,63,57,.25); transition: transform .4s var(--ease), background .3s, color .3s; }
.card:hover .card__arr { transform: rotate(45deg); background: var(--ink); color: #fff; }
.card h3 { font: 400 17px/1.2 var(--f-head); text-transform: uppercase; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- PROJECTS ---------- */
.sec--projects { background: linear-gradient(180deg, var(--dark), #1e1f1c 60%, var(--dark)); }
.proj { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.proj__main {
  border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line-d);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8);
}
.proj__cover { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.proj__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .45s; }
.proj__main:hover .proj__cover img { transform: scale(1.04); }
.proj__body { padding: 28px 30px 32px; }
.proj__body > * { transition: opacity .4s, transform .5s var(--ease); }
.proj__main.is-swap .proj__body > *, .proj__main.is-swap .proj__cover img { opacity: 0; transform: translateY(10px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 10px; }
.tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: rgba(248,248,247,.75); }
.proj__body h3 { font: 400 clamp(20px, 2vw, 28px)/1.15 var(--f-head); text-transform: uppercase; margin-bottom: 12px; }
.proj__body > p { color: rgba(248,248,247,.72); }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: rgba(248,248,247,.82); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #0c0d0b; background: #36e07d; }
.proj__list { display: grid; gap: 14px; }
.pitem {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; text-align: left;
  padding: 12px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line-d);
  transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.pitem:hover { background: rgba(255,255,255,.07); transform: translateX(-4px); }
.pitem.is-on { border-color: rgba(251,255,139,.55); background: rgba(249,255,77,.1); }
.pitem img { width: 120px; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.pitem b { display: block; font: 400 14px/1.3 var(--f-head); text-transform: uppercase; margin-bottom: 6px; }
.pitem span { font-size: 13px; color: rgba(248,248,247,.6); line-height: 1.4; display: block; }
.pcta {
  margin-top: 8px; padding: 26px 24px; border-radius: 22px; position: relative; overflow: hidden;
  background: linear-gradient(150deg, rgba(73,196,11,.22), rgba(249,255,77,.25) 55%, rgba(203,255,61,.18));
  border: 1px solid rgba(251,255,139,.35);
}
.pcta b { display: block; font: 400 20px/1.2 var(--f-head); text-transform: uppercase; margin-bottom: 10px; }
.pcta p { color: rgba(248,248,247,.75); font-size: 15px; margin-bottom: 20px; }

/* ---------- ASSISTANT / orb ---------- */
.sec--orb { background: radial-gradient(70% 60% at 75% 40%, #262723 0%, var(--dark) 70%); }
.orbwrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.orbtext .h2 { margin: 26px 0 28px; font-size: clamp(28px, 3.6vw, 52px); }
.dash { margin-top: 30px; border-radius: 20px; background: rgba(255,255,255,.04); border: 1px solid var(--line-d); overflow: hidden; max-width: 520px; }
.dash__top { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-d); font-size: 10px; color: var(--muted-d); }
.dash__top i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.2); margin-right: 3px; }
.dash__top i:first-child { background: var(--orange); }
.dash__top b { color: #36e07d; font-weight: 400; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-d); }
.dash__stats div { padding: 14px 16px; border-right: 1px solid var(--line-d); }
.dash__stats div:last-child { border: 0; }
.dash__stats span { font-size: 9.5px; color: var(--muted-d); display: block; margin-bottom: 4px; }
.dash__stats b { font: 400 22px/1 var(--f-head); }
.dash__log { list-style: none; margin: 0; padding: 12px 16px 14px; font-size: 11px; text-transform: none; letter-spacing: .04em; color: rgba(248,248,247,.78); }
.dash__log li { padding: 4px 0; animation: logIn .6s var(--ease) both; }
.dash__log time { color: #fbff8b; margin-right: 10px; }
@keyframes logIn { from { opacity: 0; transform: translateX(-8px); } }

.orb { position: relative; aspect-ratio: 1; width: min(520px, 100%); justify-self: center; }
.orb__ball {
  position: absolute; inset: 18%; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.55), transparent 22%),
    radial-gradient(circle at 50% 55%, #75e03f 0%, #3f861b 45%, #262723 75%);
  box-shadow: inset -30px -40px 80px rgba(10,10,10,.7), inset 20px 20px 60px rgba(178,255,140,.35), 0 0 120px rgba(132,255,70,.45);
  animation: breathe 7s ease-in-out infinite;
  overflow: hidden;
}
.orb__ball::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 6px, rgba(255,255,255,.035) 6px 7px); animation: spinS 40s linear infinite; }
.orb__core {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, #cbff3d 0 6deg, transparent 6deg 30deg, #cbff3d 30deg 36deg, transparent 36deg 60deg, #cbff3d 60deg 66deg, transparent 66deg 90deg, #cbff3d 90deg 96deg, transparent 96deg 120deg, #cbff3d 120deg 126deg, transparent 126deg 150deg, #cbff3d 150deg 156deg, transparent 156deg 180deg, #cbff3d 180deg 186deg, transparent 186deg 210deg, #cbff3d 210deg 216deg, transparent 216deg 240deg, #cbff3d 240deg 246deg, transparent 246deg 270deg, #cbff3d 270deg 276deg, transparent 276deg 300deg, #cbff3d 300deg 306deg, transparent 306deg 330deg, #cbff3d 330deg 336deg, transparent 336deg);
  -webkit-mask: radial-gradient(circle, transparent 18%, #000 20%); mask: radial-gradient(circle, transparent 18%, #000 20%);
  filter: drop-shadow(0 0 10px #cbff3d);
  animation: spinS 14s linear infinite;
}
.orb__ring { position: absolute; border-radius: 50%; border: 1px solid rgba(192,255,160,.22); animation: spinS 30s linear infinite; }
/* подпись крутится вместе с кольцом, но сама держится ровно (обратное вращение) */
.orb__ring span { position: absolute; top: -11px; left: 50%; margin-left: -40px; width: 80px; text-align: center; font: 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 0; border-radius: 999px; background: rgba(23,23,21,.9); border: 1px solid rgba(192,255,160,.3); color: rgba(248,248,247,.85); white-space: nowrap; animation: spinS linear infinite reverse; animation-duration: inherit; }
.orb__ring.r2 span { width: 110px; margin-left: -55px; animation-direction: normal; }
.r1 { inset: 2%; animation-duration: 28s; }
.r2 { inset: 9%; animation-duration: 38s; animation-direction: reverse; border-style: dashed; }
.r3 { inset: -5%; animation-duration: 50s; border-color: rgba(192,255,160,.12); }
@keyframes spinS { to { rotate: 360deg; } }
@keyframes breathe { 50% { transform: scale(1.03); } }

/* ---------- NUMBERS ---------- */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-l); }
.num { padding: 34px 28px 36px 0; border-bottom: 1px solid var(--line-l); }
.num:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line-l); }
.num b { display: block; font: 300 clamp(48px, 6vw, 84px)/1 var(--f-head); letter-spacing: -.02em; margin-bottom: 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num span { color: var(--muted); font-size: 15px; }

/* ---------- PROCESS deck ---------- */
.sec--deck { padding-top: 40px; }
.hint { color: var(--muted); margin: -20px 0 30px; }
.deck { position: relative; height: 340px; max-width: 760px; margin: 0 auto; cursor: pointer; perspective: 1200px; }
.dcard {
  position: absolute; inset: 0; padding: 36px 40px; border-radius: 26px;
  background: #fff; border: 1px solid var(--line-l);
  box-shadow: 0 30px 60px -30px rgba(62,63,57,.35);
  transition: transform .75s var(--ease), opacity .6s, filter .6s;
  transform-origin: 50% 100%;
}
.dcard__n { color: var(--orange); font-size: 12px; }
.dcard h3 { font: 300 clamp(28px, 3.4vw, 44px)/1.05 var(--f-head); text-transform: uppercase; margin: 46px 0 18px; }
.dcard p { font-size: 18px; color: #484a42; max-width: 560px; margin: 0; }
.dcard.is-out { transform: translateY(-40px) rotateX(18deg) scale(1.03) !important; opacity: 0 !important; }

/* ---------- PLANS ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; padding: 32px 28px 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line-d);
  display: flex; flex-direction: column;
}
.plan h3 { font: 400 22px/1.2 var(--f-head); text-transform: uppercase; margin-bottom: 8px; }
.plan__sub { color: var(--muted-d); font-size: 15px; }
.plan__price { margin: 20px 0 22px; padding-top: 20px; border-top: 1px solid var(--line-d); }
.plan__price b { display: block; font: 300 36px/1 var(--f-head); }
.plan__price span { font: 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 22px; position: relative; color: rgba(248,248,247,.82); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: rgba(248,248,247,.5); }
.plan--hot { border-color: rgba(211,255,90,.5); background: linear-gradient(180deg, rgba(203,255,61,.13), rgba(249,255,77,.06)); box-shadow: 0 0 0 1px rgba(203,255,61,.2), 0 40px 100px -40px rgba(203,255,61,.5); transform: translateY(-10px); }
.plan--hot.rv.in { transform: translateY(-10px); }
.plan__badge { position: absolute; top: 22px; right: 22px; padding: 6px 11px; border-radius: 999px; background: var(--orange); color: #10100e; font-size: 9.5px; }
.note { text-align: center; color: var(--muted-d); margin-top: 40px; }

/* ---------- FAQ ---------- */
.faqwrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 20px; background: #fff; border: 1px solid var(--line-l); box-shadow: 0 10px 30px -24px rgba(62,63,57,.4); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; position: relative; font: 500 17px/1.4 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--light); transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14.5px; height: 1.5px; background: var(--ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq details.is-open > div { grid-template-rows: 1fr; }
.faq details > div > p { overflow: hidden; margin: 0; padding: 0 26px; color: #484a42; }
.faq details.is-open > div > p { padding-bottom: 22px; }

/* ---------- FINAL ---------- */
.final { position: relative; overflow: hidden; background: #f4f4f2; color: var(--ink); padding: 150px 0 140px; text-align: center; }
.final__blobs i { position: absolute; border-radius: 50%; filter: blur(80px); animation: blob 16s ease-in-out infinite alternate; }
.final__blobs i:nth-child(1) { width: 55vw; height: 55vw; left: 20%; top: -20%; background: radial-gradient(circle, #c3ff1f, #d4ff5c 40%, transparent 70%); opacity: .85; }
.final__blobs i:nth-child(2) { width: 40vw; height: 40vw; left: -12%; top: 30%; background: radial-gradient(circle, #72ff2c, transparent 70%); opacity: .7; animation-delay: -5s; }
.final__blobs i:nth-child(3) { width: 35vw; height: 35vw; right: -10%; top: 0; background: radial-gradient(circle, #dfffcf, transparent 70%); opacity: .9; animation-delay: -9s; }
@keyframes blob { to { transform: translate(6vw, 4vw) scale(1.12); } }
.final__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.h-final { font: 300 clamp(40px, 8vw, 120px)/1 var(--f-head); text-transform: uppercase; color: var(--ink); filter: drop-shadow(0 6px 30px rgba(198,244,50,.35)); margin: 28px 0 26px; }
.final p { font-size: 18px; max-width: 560px; color: #242421; }
.final .pill--light { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.7); color: var(--ink); }
.final__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 14px 0 22px; }
.final__note { color: #33332f; opacity: .8; }

/* ---------- FOOTER ---------- */
.foot { background: #121211; padding: 28px 0; color: rgba(248,248,247,.7); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 28px; flex-wrap: wrap; font: 500 14px var(--f-body); }
.foot nav a:hover { color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav {
    position: fixed; left: 16px; right: 16px; top: 80px; flex-direction: column; gap: 0;
    padding: 10px 22px; border-radius: 20px; background: rgba(21,22,19,.92); border: 1px solid var(--line-d);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
  }
  .nav a { font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .nav a:last-child { border: 0; }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .burger { display: block; }
  .about, .orbwrap, .faqwrap, .proj { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }
  .orb { width: min(420px, 90%); order: -1; }
  .cards, .plans { grid-template-columns: 1fr 1fr; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .num:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-l); }
  .plan--hot, .plan--hot.rv.in { transform: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hdr { top: 10px; padding: 0 10px; }
  .hdr__in { padding: 7px 7px 7px 16px; gap: 10px; }
  .logo { font-size: 24px; }
  .btn--glow { padding: 10px 16px; font-size: 11px; }
  .sec { padding: 90px 0; }
  .sec__head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .side { display: none; }
  .side--inline { display: inline-block; }
  .hero { height: 300vh; }
  .slide, .slide--panel { left: 16px; right: 16px; width: auto; top: auto; bottom: 110px; transform: none; }
  .hero__img { inset: -4% -4% 20% -4%; background-position: 50% 20%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .hero__img--b { background-position: 50% 10%; }
  .hero__bg::after { background: linear-gradient(0deg, rgba(10,10,10,.96) 15%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.15)); }
  .glass { padding: 24px 20px 20px; }
    .counter { right: 16px; bottom: 26px; }
  .scroll-hint { left: 16px; bottom: 26px; }
  .cards, .plans, .nums { grid-template-columns: 1fr; }
  .num, .num:nth-child(even) { padding: 26px 0; border-left: 0; }
  .card { min-height: 0; }
  .card__ico { margin-bottom: 30px; }
  .slider__nav { position: static; margin-bottom: 18px; }
  .slider__track { grid-auto-columns: 82%; }
  .deck { height: 380px; }
  .dcard { padding: 28px 24px; }
  .pitem { grid-template-columns: 92px 1fr; }
  .pitem img { width: 92px; }
  .proj__body { padding: 22px 20px 26px; }
  .chip--1 { left: 10px; } .chip--2 { right: 10px; }
  .final { padding: 110px 0 100px; }
  .foot__in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv, .split .w > span { opacity: 1; transform: none; }
}

/* graphite + lime: accent text on light sections needs a deeper lime for contrast */
.sec--light { --orange: var(--lime-ink); }

/* =========================================================
   LAYOUT v2 — собственная композиция
   Эффекты и анимации те же, меняется только раскладка:
   зеркальный hero, редакционные шапки секций, бенто, строки тарифов
   ========================================================= */

/* ---------- typography: mixed case + serif italic accents ---------- */
.mono { letter-spacing: .08em; }
.h2, .h-hero, .h-final, .step h3, .card h3, .pitem b, .proj__body h3, .dcard h3, .plan h3, .pcta b, .skills dt {
  text-transform: none; font-weight: 500; letter-spacing: -.03em;
}
.h2 { font-size: clamp(34px, 5vw, 72px); line-height: 1; }
.h2 .hl, .h-hero .hl, .h-final .hl { font: italic 400 1.08em/1 var(--f-logo); letter-spacing: 0; padding-right: .06em; }
.btn { font: 600 14px/1.5 var(--f-head); text-transform: none; letter-spacing: 0; }

/* ---------- header: free logo + compact pill on the right ---------- */
.hdr__in, .hdr.is-scrolled .hdr__in {
  max-width: none; padding: 0 12px; background: none; border: 0; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: space-between;
}
.logo { font-size: 36px; }
.hdr__pill {
  display: flex; align-items: center; gap: 26px; padding: 7px 7px 7px 24px; border-radius: 999px;
  background: rgba(21,22,19,.55); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s, box-shadow .4s;
}
.hdr.is-scrolled .hdr__pill { background: rgba(18,18,16,.88); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.nav { flex: none; }

/* ---------- hero: mirrored — text left, photo right ---------- */
.hero__img {
  inset: -4% -26% -4% 18%;
  -webkit-mask-image: linear-gradient(270deg, #000 70%, transparent 98%);
  mask-image: linear-gradient(270deg, #000 70%, transparent 98%);
}
.hero__bg { background: linear-gradient(270deg, #141413, #2f302b 68%, #7a9a1c); }
.hero__bg[data-i="1"] { background: linear-gradient(270deg, #141413, #3a3b34 68%, #a9c72a); }
.hero__bg[data-i="2"] { background: linear-gradient(270deg, #11110f, #383934 75%, #2a8f54); }
.hero__bg::after {
  background:
    radial-gradient(60% 70% at 8% 70%, rgba(137,214,98,.32), transparent 65%),
    linear-gradient(90deg, rgba(15,15,14,.8) 0%, rgba(15,15,14,.4) 42%, transparent 70%),
    linear-gradient(0deg, rgba(10,10,10,.9), transparent 30%);
}
.slide, .slide--panel { left: 6vw; right: auto; top: 50%; transform: translateY(-54%); width: min(640px, 50vw); }
.h-hero { font-size: clamp(36px, 4.6vw, 70px); line-height: .98; }
.h-hero--sm { font-size: clamp(26px, 2.8vw, 40px); }

.hero__foot {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 30px;
  padding: 20px 6vw; border-top: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(0deg, rgba(10,10,10,.55), transparent);
  color: rgba(248,248,247,.7); font-size: 10.5px;
}
.hf:last-child { text-align: right; }
.hf--ct { position: relative; min-height: 1.6em; text-align: center; color: var(--orange); }
.ct { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); }
.ct.is-on { opacity: 1; transform: none; }
.counter { top: 110px; right: 6vw; bottom: auto; }
.counter b { font: italic 400 46px/1 var(--f-logo); letter-spacing: 0; color: var(--orange); }
.scroll-hint { left: 6vw; bottom: 84px; }

/* ---------- lime band instead of a flat marquee ---------- */
.marquee {
  position: relative; z-index: 2; transform: rotate(-1.6deg) scale(1.04); margin: -14px 0 -10px;
  background: var(--orange); color: var(--ink); border: 0; font-weight: 500;
}
.marquee__track b { color: var(--ink); }

/* ---------- section heads: index column + title column ---------- */
.sec__head {
  grid-template-columns: minmax(170px, 1fr) 3fr; grid-template-rows: auto 1fr;
  gap: 16px 48px; align-items: start; padding-top: 22px; border-top: 1px solid var(--line-l);
}
.sec--dark .sec__head { border-color: var(--line-d); }
.sec__head .pill { grid-column: 1; grid-row: 1; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sec__head .h2 { grid-column: 2; grid-row: 1 / span 2; }
.sec__head .side { grid-column: 1; grid-row: 2; border-left: 0; padding-left: 0; text-align: left; }
.sec__head--col { grid-template-columns: 1fr; }
.sec__head--col .h2 { grid-column: 1; grid-row: 2; }
.lead { margin-left: calc(25% + 12px); }

/* ---------- about: photo left, editorial pull-quote ---------- */
.about { grid-template-columns: .8fr 1.2fr; gap: 80px; }
.about__photo { order: -1; margin-top: 70px; }
.about__text .lead { margin-left: 0; }
.quote { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 4px 0 4px 28px; font: italic 400 25px/1.4 var(--f-logo); }
.quote::before { top: 6px; bottom: 6px; }

/* ---------- path: timeline instead of boxed cards ---------- */
.slider { display: flex; flex-direction: column; }
.slider__track {
  order: 1; padding-top: 38px;
  background: linear-gradient(var(--line-d), var(--line-d)) 0 14px / 100% 1px no-repeat local;
}
.slider__bar { order: 2; }
.slider__nav { order: 3; position: static; justify-content: flex-end; margin-top: 22px; }
.step { background: none; border: 0; border-left: 1px solid var(--line-d); border-radius: 0; min-height: 0; padding: 4px 28px 14px; }
.step::before { content: ""; position: absolute; top: -29px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(198,244,50,.14); }
.step:hover { border-color: rgba(198,244,50,.5); }
.step__n { font: italic 400 52px/1 var(--f-logo); letter-spacing: 0; margin-bottom: 22px; }
.step--accent { border-radius: 18px; border: 1px solid rgba(251,255,139,.4); padding: 18px 26px 22px; }

/* ---------- services: bento ---------- */
.cards { grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: minmax(220px, auto); }
.card:nth-child(1) {
  grid-row: span 2; display: flex; flex-direction: column;
  background: var(--ink); color: var(--paper); border-color: rgba(255,255,255,.08);
  box-shadow: 0 30px 60px -30px rgba(23,24,21,.6);
}
.card:nth-child(1) h3 { font-size: clamp(26px, 2.6vw, 38px); margin-top: auto; }
.card:nth-child(1) p { color: var(--muted-d); font-size: 17px; }
.card:nth-child(1) .card__ico svg { stroke: var(--orange); }
.card:nth-child(1)::before { background: radial-gradient(320px circle at var(--mx) var(--my), rgba(198,244,50,.18), transparent 60%); }
.card:nth-child(6) { grid-column: 1 / -1; min-height: 0; display: grid; grid-template-columns: auto 1fr 1.4fr; gap: 28px; align-items: center; }
.card:nth-child(6) .card__ico, .card:nth-child(6) h3 { margin: 0; }
.card__ico svg { stroke: var(--lime-ink); }

/* ---------- projects: index list left, preview right ---------- */
.proj { grid-template-columns: 1fr 1.6fr; }
.proj__list { order: -1; }
.pitem:hover { transform: translateX(4px); }

/* ---------- assistant: orb left ---------- */
.orb { order: -1; }

/* ---------- numbers: one hero figure + supporting ones ---------- */
.nums { grid-template-columns: repeat(4, 1fr); }
.num, .num:not(:nth-child(3n+1)) { padding: 30px 26px; border-left: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); }
.num:nth-child(1) { grid-column: span 2; grid-row: span 2; border-left: 0; padding-left: 0; display: flex; flex-direction: column; justify-content: flex-end; }
.num:nth-child(1) b { font-size: clamp(120px, 15vw, 230px); }
.num:nth-child(1) span { font-size: 18px; color: var(--ink); }
.num:nth-child(6) { grid-column: 1 / -1; border-left: 0; padding-left: 0; display: flex; align-items: baseline; gap: 28px; }
.num:nth-child(6) b { margin: 0; }

/* ---------- process: step list + deck ---------- */
.flow { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.flow .deck { margin: 0; max-width: none; }
.flow__list { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.flow__list li {
  counter-increment: st; display: flex; align-items: baseline; gap: 16px; padding: 10px 0;
  font: 500 clamp(22px, 2.4vw, 32px)/1.2 var(--f-head); text-transform: none; letter-spacing: -.02em;
  color: rgba(24,24,22,.22); border-bottom: 1px solid var(--line-l); transition: color .4s, padding .4s var(--ease);
}
.flow__list li::before { content: "0" counter(st); font: 11px var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.flow__list li.is-on { color: var(--ink); padding-left: 10px; }
.flow .hint { margin: 22px 0 0; }

/* ---------- plans: rows instead of three columns ---------- */
.plans { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line-d); }
.plan {
  display: grid; grid-template-columns: 1.1fr .9fr 1.5fr auto; grid-template-areas: "t p l b" "s p l b";
  gap: 6px 40px; align-items: center; padding: 34px 6px; background: none; border: 0;
  border-bottom: 1px solid var(--line-d); border-radius: 0;
}
.plan h3 { grid-area: t; margin: 0; align-self: end; }
.plan__sub { grid-area: s; margin: 0; align-self: start; }
.plan__price { grid-area: p; margin: 0; padding: 0; border: 0; }
.plan ul { grid-area: l; margin: 0; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.plan .btn { grid-area: b; }
.plan--hot, .plan--hot.rv.in {
  transform: none; margin: 14px 0; padding: 34px 28px; border-radius: 22px; border: 1px solid rgba(211,255,90,.45);
}
.plan__badge { top: -11px; left: 28px; right: auto; }
.btn--grad { background: var(--grad-d); color: var(--ink); }
.note { text-align: left; }

/* ---------- FAQ: hairline rows ---------- */
.faq { gap: 0; border-top: 1px solid var(--line-l); }
.faq details { background: none; border: 0; border-bottom: 1px solid var(--line-l); border-radius: 0; box-shadow: none; }
.faq summary { padding: 26px 64px 26px 0; font: 500 20px/1.35 var(--f-head); letter-spacing: -.015em; }
.faq summary i { right: 0; background: #fff; }
.faq details > div > p { padding: 0 64px 0 0; }

/* ---------- final: split, left-aligned ---------- */
.final { text-align: left; }
.final__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0 60px; align-items: end; }
.final__in .pill { grid-column: 1 / -1; justify-self: start; }
.h-final { grid-column: 1; grid-row: 2 / span 3; font-size: clamp(48px, 9vw, 140px); line-height: .95; margin: 28px 0 0; }
.final p, .final__btns, .final__note { grid-column: 2; }
.final__btns { justify-content: flex-start; }

@media (max-width: 980px) {
  .hdr__pill { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(21,22,19,.88); gap: 10px; padding: 6px; }
  .about { grid-template-columns: 1fr; }
  .about__photo { margin-top: 0; }
  .proj__list { order: 0; }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:nth-child(1) { grid-row: auto; grid-column: 1 / -1; min-height: 280px; }
  .card:nth-child(6) { grid-template-columns: auto 1fr; }
  .card:nth-child(6) p { grid-column: 1 / -1; }
  .nums { grid-template-columns: 1fr 1fr; }
  .num:nth-child(1) { grid-row: auto; }
  .num:nth-child(n) { border-left: 1px solid var(--line-l); padding-left: 24px; }
  .num:nth-child(1), .num:nth-child(2), .num:nth-child(4), .num:nth-child(6) { border-left: 0; padding-left: 0; }
  .flow { grid-template-columns: 1fr; gap: 30px; }
  .plan { grid-template-columns: 1fr auto; grid-template-areas: "t p" "s p" "l l" "b b"; gap: 10px 24px; }
  .plan ul { margin-top: 14px; }
  .plan .btn { justify-self: start; margin-top: 10px; }
  .final__in { grid-template-columns: 1fr; }
  .h-final { grid-row: auto; margin-bottom: 24px; }
  .final p, .final__btns, .final__note { grid-column: 1; }
}
@media (max-width: 720px) {
  .logo { font-size: 28px; }
  .slide, .slide--panel { left: 16px; right: 16px; width: auto; top: auto; bottom: 96px; transform: none; }
  .hero__img { inset: -4% -4% 20% -4%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .hero__bg::after { background: linear-gradient(0deg, rgba(10,10,10,.96) 15%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.15)); }
  .hero__foot { grid-template-columns: 1fr; padding: 14px 16px; }
  .hero__foot .hf:not(.hf--ct) { display: none; }
  .hf--ct { text-align: left; }
  .counter { top: 84px; right: 16px; }
  .counter b { font-size: 34px; }
  .scroll-hint { display: none; }
  .sec__head { grid-template-columns: 1fr; }
  .sec__head .h2 { grid-column: 1; grid-row: 2; }
  .sec__head .side { display: none; }
  .lead { margin-left: 0; }
  .cards, .nums { grid-template-columns: 1fr; }
  .card:nth-child(6) { grid-template-columns: 1fr; gap: 14px; }
  .num:nth-child(n) { border-left: 0; padding: 24px 0; }
  .num:nth-child(1) b { font-size: 120px; }
  .num:nth-child(6) { flex-direction: column; gap: 10px; }
  .plan ul { grid-template-columns: 1fr; }
  .quote { font-size: 21px; }
}

/* logo gets its own glass pill so it reads on light sections too */
.logo { position: relative; margin-left: 6px; }
.logo::before {
  content: ""; position: absolute; inset: -6px -16px -4px; z-index: -1; border-radius: 999px;
  background: rgba(21,22,19,.55); border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.hdr.is-scrolled .logo::before { background: rgba(18,18,16,.88); }

/* =========================================================
   TYPE v3 — узкий плакатный капс (Sofia Sans Extra Condensed)
   Акценты — переливающийся лаймовый градиент, без засечек
   ========================================================= */
.h2, .h-hero, .h-final, .step h3, .card h3, .pitem b, .proj__body h3, .dcard h3, .plan h3, .pcta b, .skills dt,
.flow__list li, .num b, .step__n, .counter b, .plan__price b, .dash__stats b {
  font-family: var(--f-head); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; font-style: normal;
}
.h2 .hl, .h-hero .hl, .h-final .hl { font: inherit; letter-spacing: inherit; padding-right: 0; }

.h-hero { font-size: clamp(52px, 6.6vw, 104px); line-height: .86; }
.h-hero--sm { font-size: clamp(34px, 3.6vw, 54px); line-height: .9; }
.h2, .orbtext .h2 { font-size: clamp(46px, 6.6vw, 100px); line-height: .86; }
.h-final { font-size: clamp(76px, 13vw, 210px); line-height: .84; font-weight: 900; }

.step__n { font-size: 64px; line-height: .9; }
.step h3 { font-size: 26px; line-height: 1; }
.card h3 { font-size: 28px; line-height: 1; }
.card:nth-child(1) h3 { font-size: clamp(40px, 4vw, 60px); }
.pitem b { font-size: 21px; line-height: 1; }
.proj__body h3 { font-size: clamp(32px, 3vw, 44px); line-height: .95; }
.pcta b { font-size: 30px; line-height: .95; }
.skills dt { font-size: 22px; }
.dash__stats b { font-size: 30px; }
.num b { font-weight: 900; }
.num:nth-child(1) b { font-size: clamp(160px, 20vw, 300px); line-height: .8; }
.counter b { font-size: 54px; line-height: 1; }
.flow__list li { font-size: clamp(30px, 3.4vw, 46px); line-height: 1; letter-spacing: 0; }
.flow__list li::before { align-self: center; }
.dcard h3 { font-size: clamp(48px, 5.4vw, 76px); line-height: .9; }
.plan h3 { font-size: 34px; line-height: 1; }
.plan__price b { font-size: 52px; line-height: 1; }

.btn { font: 700 14px/1.5 var(--f-body); }
.quote { font: 500 21px/1.55 var(--f-body); }
.faq summary { font: 600 18px/1.4 var(--f-body); letter-spacing: -.01em; }
.marquee { font-weight: 500; }

@media (max-width: 720px) {
  .h-final { font-size: clamp(64px, 20vw, 110px); }
  .num:nth-child(1) b { font-size: 150px; }
  .quote { font-size: 18px; }
  .counter { top: 96px; }
}

/* logo: full name instead of "igor." */
.logo { font-size: 26px; white-space: nowrap; }
@media (max-width: 720px) { .logo { font-size: 19px; } }

/* hero strip: motto left, geography right */
.hero__foot { grid-template-columns: 1fr 1fr; }
.hero__foot .hf--ct { text-align: left; }
@media (max-width: 720px) { .hero__foot { grid-template-columns: 1fr; } }

/* glass panel without a label: heading starts right at the top */
.glass > .h-hero:first-child { margin-top: 0; }

/* =========================================================
   Слайд 02 — «система»: линия прорисовывается сверху вниз,
   пункты появляются каскадом, точки загораются по ходу линии,
   затем по линии бежит световой импульс (поток клиентов)
   ========================================================= */
:root { --ease-out-strong: cubic-bezier(.23, 1, .32, 1); }
/* --node-y: центр строки названия (padding 9px + половина line-height); --last-row — высота последней строки списка */
.skills { position: relative; padding-left: 24px; --node-y: 23px; --last-row: 47px; }
.skills::before, .skills::after {
  content: ""; position: absolute; left: 4px; top: var(--node-y); bottom: calc(var(--last-row) - var(--node-y)); width: 1px; pointer-events: none;
}
/* линия-связка */
.skills::before {
  background: linear-gradient(180deg, var(--orange), rgba(198,244,50,.25));
  transform: scaleY(0); transform-origin: top;
  transition: transform .2s ease-out;
}
.slide.is-on .skills::before { transform: scaleY(1); transition: transform .9s var(--ease-out-strong) .2s; }
/* световой импульс */
.skills::after {
  width: 3px; left: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(180deg, transparent, #f2f7a6 45%, #c6f432 55%, transparent) 0 -40% / 100% 35% no-repeat;
  filter: drop-shadow(0 0 4px rgba(198,244,50,.9));
}
.slide.is-on .skills::after { animation: flowPulse 3.2s linear 1.3s infinite; }
@keyframes flowPulse {
  0% { opacity: 1; background-position: 0 -40%; }
  70% { opacity: 1; background-position: 0 140%; }
  70.01%, 100% { opacity: 0; background-position: 0 140%; }
}
/* пункты каскадом */
.skills div {
  position: relative; opacity: 0; transform: translateY(8px);
  transition: opacity .2s ease-out, transform .2s ease-out, background-color .2s ease;
}
.slide.is-on .skills div {
  opacity: 1; transform: none;
  transition: opacity .4s ease-out, transform .5s var(--ease-out-strong), background-color .2s ease;
}
.slide.is-on .skills div:nth-child(1) { transition-delay: .25s; }
.slide.is-on .skills div:nth-child(2) { transition-delay: .31s; }
.slide.is-on .skills div:nth-child(3) { transition-delay: .37s; }
.slide.is-on .skills div:nth-child(4) { transition-delay: .43s; }
/* точки-узлы: загораются, когда линия до них доходит */
.skills div::before {
  content: ""; position: absolute; left: -24px; top: var(--node-y); width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; border: 1px solid rgba(198,244,50,.5); background: #1b1b19;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.slide.is-on .skills div::before { background: var(--orange); box-shadow: 0 0 10px rgba(198,244,50,.7); transition: background-color .3s ease .35s, box-shadow .3s ease .35s; }
.slide.is-on .skills div:nth-child(2)::before { transition-delay: .5s; }
.slide.is-on .skills div:nth-child(3)::before { transition-delay: .68s; }
.slide.is-on .skills div:nth-child(4)::before { transition-delay: .85s; }
@media (hover: hover) and (pointer: fine) {
  .slide.is-on .skills div:hover { background-color: rgba(255,255,255,.04); }
}
@media (prefers-reduced-motion: reduce) {
  .slide.is-on .skills::after { animation: none; }
}

/* =========================================================
   Слайд 03 — «Чужой шаблон даёт чужой результат»:
   строки проявляются из-под маски каскадом, «Чужой шаблон»
   зачёркивается лаймовой линией и тускнеет. Уход — быстрый.
   ========================================================= */
:root { --ease-in-out-strong: cubic-bezier(.77, 0, .175, 1); }
.h-strike .ln { clip-path: inset(0 0 100% 0); transform: translateY(.35em); transition: clip-path .2s ease-out, transform .2s ease-out; }
.slide.is-on .h-strike .ln { clip-path: inset(-.1em -.1em -.15em -.1em); transform: none; transition: clip-path .7s var(--ease-out-strong), transform .7s var(--ease-out-strong); }
.slide.is-on .h-strike .ln:nth-child(2) { transition-delay: .08s; }
.slide.is-on .h-strike .ln:nth-child(3) { transition-delay: .16s; }
.strike { position: relative; transition: color .2s ease; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 50%; height: .085em; margin-top: -.04em;
  border-radius: 99px; background: var(--orange); box-shadow: 0 0 14px rgba(198,244,50,.6);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out;
}
.slide.is-on .strike { color: rgba(236,235,228,.42); transition: color .4s ease 1.05s; }
.slide.is-on .strike::after { transform: scaleX(1); transition: transform .6s var(--ease-in-out-strong) .7s; }
@media (prefers-reduced-motion: reduce) {
  .h-strike .ln { clip-path: none; transform: none; }
}

/* ---------- ABOUT v2: принципы работы + доказательство ---------- */
.principles { list-style: none; margin: 30px 0 26px; padding: 0; counter-reset: pr; border-top: 1px solid var(--line-l); }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line-l); }
.principles li::before { content: "0" counter(pr); grid-row: span 2; font: 800 30px/1 var(--f-head); color: var(--lime-ink); }
.principles b { font: 800 22px/1.05 var(--f-head); text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.principles span { color: #484a42; font-size: 16px; line-height: 1.55; }
.proof { padding: 16px 20px; border-radius: 14px; background: rgba(198,244,50,.18); border: 1px solid rgba(95,143,0,.25); color: var(--ink); font-size: 16px; }
.proof b { color: var(--lime-ink); }
.chip { white-space: nowrap; }

/* =========================================================
   HERO — маскот: кадры видео рисуются в canvas по прокрутке.
   Фото-слайды остаются запасным вариантом, пока кадры не загрузились.
   ========================================================= */
.hero__canvas, .hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero.has-frames .hero__canvas, .hero.has-frames .hero__shade { opacity: 1; }
.hero.has-frames .hero__bg { opacity: 0 !important; }
/* затемнение под текст слева и снизу, справа — чистый робот */
.hero__shade {
  background:
    linear-gradient(90deg, rgba(18,18,17,.9) 0%, rgba(18,18,17,.55) 32%, rgba(18,18,17,0) 55%),
    linear-gradient(0deg, rgba(18,18,17,.85) 0%, rgba(18,18,17,0) 28%),
    radial-gradient(50% 60% at 70% 55%, rgba(198,244,50,.06), transparent 70%);
}
@media (max-width: 720px) {
  .hero__shade { background: linear-gradient(0deg, rgba(18,18,17,.95) 18%, rgba(18,18,17,.5) 48%, rgba(18,18,17,.1) 75%); }
}

/* =========================================================
   HERO на телефоне: робот всегда виден целиком сверху (≈80–385px),
   текст слайдов компактный и живёт под ним
   ========================================================= */
@media (max-width: 720px) {
  .hero:is(.has-frames, .has-robot) .slide, .hero:is(.has-frames, .has-robot) .slide--panel { bottom: 70px; }
  .hero:is(.has-frames, .has-robot) .h-hero { font-size: 40px; margin: 0 0 14px; }
  .hero:is(.has-frames, .has-robot) .h-hero--sm { font-size: 26px; margin-bottom: 10px; }
  .hero:is(.has-frames, .has-robot) .bullets { gap: 6px 14px; margin-bottom: 18px; font-size: 10px; }
  .hero:is(.has-frames, .has-robot) .btn--big { padding: 13px 22px; }
  .hero:is(.has-frames, .has-robot) .lead-hero { font-size: 15px; line-height: 1.5; margin: 0; }
  /* слайд 2: компактная панель — название и описание в одну строку, без нижнего абзаца */
  .hero:is(.has-frames, .has-robot) .glass { padding: 16px 16px 10px; background: rgba(18,18,17,.6); }
  .hero:is(.has-frames, .has-robot) .glass > p.muted { display: none; }
  .hero:is(.has-frames, .has-robot) .skills { margin: 0; }
  .hero:is(.has-frames, .has-robot) .skills div { padding: 7px 0; gap: 10px; align-items: center; }
  .hero:is(.has-frames, .has-robot) .skills dt { font-size: 17px; min-width: 40%; }
  .hero:is(.has-frames, .has-robot) .skills dd { font-size: 12.5px; line-height: 1.35; }
  .hero:is(.has-frames, .has-robot) .skills { --node-y: 18px; }
  /* счётчик лежал на голове робота */
  .hero:is(.has-frames, .has-robot) .counter { display: none; }
  /* затемнение только под текстом, робот остаётся ярким */
  .hero:is(.has-frames, .has-robot) .hero__shade { background: linear-gradient(0deg, rgba(18,18,17,.94) 0%, rgba(18,18,17,.8) 38%, rgba(18,18,17,0) 52%); }
}

/* 3D-робот (robot3d.js): прозрачный слой поверх слайдов; фон — чистый графит с лаймовым свечением */
.hero__robot { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; pointer-events: none; }
.hero.has-robot .hero__bg { opacity: 0 !important; }
.hero.has-robot .hero__stick { background: radial-gradient(70% 38% at 72% 30%, rgba(198,244,50,.10), transparent 70%), var(--dark); }
.hero.has-robot .hero__shade { opacity: 1; }

/* =========================================================
   Робот-помощник (pet3d.js): маленький, бродит по экрану; тап — чат
   ========================================================= */
.pet { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; will-change: transform; }
.pet__canvas { display: block; }
.pet__hit {
  position: absolute; left: 30%; width: 40%; top: 20%; height: 76%; padding: 0; border: 0; border-radius: 22px;
  background: none; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pet__hit:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.pet__hint {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%); max-width: 170px; padding: 7px 12px;
  border: 0; border-radius: 14px; background: var(--orange); color: #121211; text-align: center; white-space: nowrap;
  font: 700 12px/1.2 var(--f-body); cursor: pointer; pointer-events: auto; box-shadow: 0 8px 24px -10px rgba(198,244,50,.7);
  animation: petHint .35s var(--ease-out-strong, cubic-bezier(.23, 1, .32, 1)) both;
}
.pet__hint[hidden] { display: none; }
.pet__hint::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
@keyframes petHint { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .pet__hint { animation: none; } }

/* =========================================================
   Чат-помощник (chat.js): шторка снизу, как в мессенджере
   ========================================================= */
html.chat-lock { overflow: hidden; }
.chat { position: fixed; inset: 0; z-index: 60; }
.chat[hidden] { display: none; }
.chat__scrim { position: absolute; inset: 0; background: rgba(10,10,9,.55); opacity: 0; transition: opacity .25s ease; }
.chat.is-open .chat__scrim { opacity: 1; }
.chat__panel {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  height: min(82dvh, 640px); padding-bottom: env(safe-area-inset-bottom);
  background: #1c1c1a; color: var(--paper); border: 1px solid rgba(255,255,255,.08); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -30px 80px -30px rgba(0,0,0,.8);
  transform: translateY(100%); transition: transform .22s ease-in;
}
.chat.is-open .chat__panel { transform: none; transition: transform .38s cubic-bezier(.23, 1, .32, 1); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line-d); }
.chat__ava { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #121211; border: 1px solid rgba(198,244,50,.5); }
.chat__ava::before, .chat__ava::after { content: ""; position: absolute; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.chat__ava::before { left: 9px; } .chat__ava::after { right: 9px; }
.chat__title { flex: 1; min-width: 0; line-height: 1.25; }
.chat__title b { display: block; font: 700 15px/1.2 var(--f-body); }
.chat__title small { color: var(--muted-d); font-size: 12px; }
.chat__x { flex: none; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--paper); transition: background .2s; }
.chat__x:hover { background: rgba(255,255,255,.08); }
.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 8px; }
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; animation: chatIn .3s cubic-bezier(.23, 1, .32, 1) both; }
.chat__msg--bot { align-self: flex-start; background: rgba(255,255,255,.07); border-bottom-left-radius: 6px; }
.chat__msg--user { align-self: flex-end; background: var(--orange); color: #121211; font-weight: 500; border-bottom-right-radius: 6px; }
.chat__msg a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } }
.chat__dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.chat__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-d); animation: chatDot 1s ease-in-out infinite; }
.chat__dots i:nth-child(2) { animation-delay: .15s; } .chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 50% { opacity: .25; transform: translateY(-3px); } }
.chat__chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px 16px 10px; scrollbar-width: none; flex: none; }
.chat__chips::-webkit-scrollbar { display: none; }
.chat__chips:empty { display: none; }
.chat__chip {
  flex: none; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(198,244,50,.4);
  color: var(--orange); font: 600 13px/1.2 var(--f-body); white-space: nowrap; transition: transform .16s ease-out, background .2s;
}
.chat__chip:active { transform: scale(.97); background: rgba(198,244,50,.1); }
.chat__form { display: flex; gap: 8px; padding: 6px 14px 8px; flex: none; }
.chat__in {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-d);
  background: rgba(255,255,255,.06); color: var(--paper); font: 400 16px/1 var(--f-body); /* 16px: iOS не приближает страницу при фокусе */
}
.chat__in::placeholder { color: var(--muted-d); }
.chat__in:focus { outline: 0; border-color: rgba(198,244,50,.6); }
.chat__send { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--orange); color: #121211; font-size: 20px; font-weight: 700; transition: transform .16s ease-out; }
.chat__send:active { transform: scale(.95); }
.chat__off { align-self: center; padding: 6px 12px 10px; color: var(--muted-d); font: 12px/1.2 var(--f-body); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 721px) {
  .chat__panel { left: auto; right: 24px; bottom: 24px; width: 400px; border-radius: 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .chat { pointer-events: none; }                 /* страница под окном остаётся доступной */
  .chat__panel { pointer-events: auto; }
  .chat__scrim { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chat__msg, .chat__dots i { animation: none; } }

/* перетаскивание робота: курсор-рука, на телефоне страница не прокручивается, пока держишь робота */
.pet__hit { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.pet__hit.is-grab { cursor: grabbing; }

/* круглая кнопка чата — остаётся, когда робота спрятали */
.pet-restore {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 0;
  height: 46px; padding: 0 13px; border-radius: 999px; background: #1b1b19; color: var(--paper);
  border: 1px solid rgba(198,244,50,.45); box-shadow: 0 10px 30px -10px rgba(0,0,0,.7), 0 0 0 4px rgba(198,244,50,.06);
  font: 600 13px/1 var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity .3s ease, transform .35s cubic-bezier(.23, 1, .32, 1), visibility 0s .35s;
}
.pet-restore.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.pet-restore:active { transform: scale(.97); }
.pet-restore:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.pet-restore__ico { flex: none; width: 22px; height: 22px; }
.pet-restore__ico path { fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linejoin: round; }
.pet-restore__ico circle { fill: var(--orange); }
.pet-restore__label { max-width: 0; overflow: hidden; white-space: nowrap; margin-left: 0; transition: max-width .4s cubic-bezier(.23, 1, .32, 1), margin .4s; }
.pet-restore.is-open .pet-restore__label, .pet-restore:hover .pet-restore__label, .pet-restore:focus-visible .pet-restore__label { max-width: 190px; margin-left: 9px; }
@media (prefers-reduced-motion: reduce) { .pet-restore, .pet-restore__label { transition-duration: .01ms; } }

/* фото-заглушки не показываем, пока грузится видео-кадр: иначе при открытии мелькает фото, а потом робот */
.hero:not(.has-frames):not(.photo-fallback) .hero__img { opacity: 0; }
.hero__img { transition: opacity .4s ease; }
