/* Лендинг v2 (#81, /v2): в hero новый заголовок и цикл работы вместо стены креативов.
   Подключается после site.css только на /v2, основная главная от него не зависит. */

/* Цвет активного этапа плавно перетекает в следующий: для перехода нужен зарегистрированный тип */
@property --acc{syntax:"<color>";inherits:true;initial-value:#ff5ecb}

/* ---------- hero на весь экран (#117) ----------
   Высота — экран, содержимое по центру; внизу иконка скролла. Заголовок — что такое CreometriX,
   под ним «весь объём рекламных задач» и три множителя карточками. */
.hero--v2{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.hero--v2 .hero-in{flex:1;min-height:0;align-content:center;padding-top:clamp(100px,14vh,132px);padding-bottom:clamp(96px,13vh,136px)}
@media (min-width:961px){
  .hero--v2 .hero-in{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
  /* Круг не выше экрана: иначе hero перестаёт помещаться на ноутбуке */
  .hero--v2 .cyc{width:min(100%,600px,max(360px,100svh - 260px))}
}
.hero--v2 h1{font-size:clamp(34px,3.5vw,60px);line-height:1.02;text-wrap:balance}
.hero--v2 .hero-vis{display:grid;place-items:center}
.hero--v2 .lead{font-family:var(--display);font-weight:600;text-transform:uppercase;font-size:clamp(19px,1.6vw,24px);line-height:1.2;color:#fff;max-width:40ch;text-wrap:pretty;margin-bottom:16px}

/* Множители: три стеклянные плитки, цвета — как у этапов цикла */
.hx{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:560px;margin-bottom:clamp(28px,3.2vw,44px)}
.hx-card{--c:var(--pink);position:relative;display:flex;flex-direction:column;gap:8px;padding:clamp(16px,1.5vw,22px) clamp(16px,1.5vw,22px) clamp(14px,1.3vw,20px);overflow:hidden;
  background:linear-gradient(160deg,color-mix(in srgb,var(--c) 14%,transparent),rgba(255,255,255,.03) 60%);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
.hx-card::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--c)}
.hx-card--violet{--c:var(--violet)}
.hx-card--cyan{--c:var(--cyan)}
.hx-card b{font-family:var(--display);font-weight:700;font-size:clamp(38px,3.4vw,56px);line-height:.9;color:var(--c)}
.hx-card span{font-family:var(--display);font-weight:600;text-transform:uppercase;font-size:clamp(15px,1.25vw,19px);line-height:1;letter-spacing:.02em;color:#fff}

/* Иконка скролла: мышь с бегущим колёсиком и покачивающейся стрелкой */
.hero-scroll{position:absolute;left:50%;bottom:clamp(20px,4vh,40px);z-index:3;display:flex;flex-direction:column;align-items:center;gap:6px;padding:6px;margin-left:-19px;color:rgba(255,255,255,.55);
  transition:color .25s;animation:hs-in 1s 1s var(--ease) both}
.hero-scroll:hover{color:#fff}
.hero-mouse{position:relative;width:26px;height:42px;border-radius:14px;box-shadow:inset 0 0 0 1.5px currentColor}
.hero-mouse::before{content:"";position:absolute;left:50%;top:8px;width:4px;height:8px;margin-left:-2px;border-radius:2px;background:var(--pink);animation:hs-wheel 2s var(--ease) infinite}
.hero-scroll .ico{width:16px;height:16px;rotate:90deg;animation:hs-bob 2s ease-in-out infinite}
@keyframes hs-in{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}
@keyframes hs-wheel{0%{opacity:0;transform:translateY(-2px)}25%{opacity:1}70%{opacity:1;transform:translateY(12px)}100%{opacity:0;transform:translateY(14px)}}
@keyframes hs-bob{0%,100%{transform:translateX(0);opacity:.5}50%{transform:translateX(4px);opacity:1}}

/* ---------- что можно сделать: 4 шага отдельным блоком после hero (#92, #117) ----------
   Тёмные плитки с тонкой рамкой и квадратной иконкой, как остальные блоки сайта.
   Цвет карточки совпадает с цветом этапа в цикле: ТЗ — фиолетовый, Креативы — голубой, Согласования — розовый, Загрузка — фиолетовый.
   Между карточками — стрелка в кружке на стыке; на узком экране карточки идут столбиком, стрелка смотрит вниз. */
.cando{background:var(--ink-2);color:#fff;overflow:hidden;isolation:isolate}
.cando::before{content:"";position:absolute;inset:auto -10% -40% auto;width:60vw;height:60vw;max-width:900px;max-height:900px;background:radial-gradient(closest-side,rgba(197,166,255,.12),transparent 70%);z-index:-1}
.cando .eyebrow{color:var(--violet)}
.cando .sec-head h2{margin-top:28px;max-width:18ch}
.hcards{--gap:20px;--ar:52px;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--gap)}
.hcard{--c:var(--pink);position:relative;display:flex;flex-direction:column;gap:16px;padding:clamp(28px,2.4vw,36px);background:var(--ink-card);box-shadow:inset 0 0 0 1px var(--line-dark);transition:background-color .25s,box-shadow .25s}
.hcard--violet{--c:var(--violet)}
.hcard--cyan{--c:var(--cyan)}
.hcard-top{display:flex;align-items:flex-start;justify-content:space-between;padding-bottom:clamp(12px,1.6vw,24px)}
.hcard-ico{display:grid;place-items:center;width:56px;height:56px;background:color-mix(in srgb,var(--c) 14%,transparent);color:var(--c);transition:background-color .25s,color .25s}
.hcard-ico .ico{width:26px;height:26px}
.hcard-top b{font-family:var(--display);font-weight:700;font-size:clamp(28px,2.4vw,36px);line-height:.9;color:var(--c)}
.hcard h3{font-family:var(--display);font-weight:600;text-transform:uppercase;font-size:clamp(24px,2vw,30px);line-height:1.05;letter-spacing:.005em;color:#fff;text-wrap:balance}
.hcard p{font-size:15px;line-height:1.55;color:var(--on-dark-muted)}
/* .rv задаёт свой transition — сохраняем и появление, и наведение */
.hcard.rv{transition:opacity .9s var(--ease),transform .9s var(--ease),background-color .25s,box-shadow .25s;transition-delay:var(--d,0s),var(--d,0s),0s,0s}
/* Стрелка на стыке с соседней карточкой, посередине по высоте; кольцо цвета фона «вырезает» её из рамок */
.hcard-ar{position:absolute;z-index:2;top:50%;right:calc(var(--gap)/-2);display:grid;place-items:center;width:var(--ar);height:var(--ar);margin:calc(var(--ar)/-2) calc(var(--ar)/-2) 0 0;border-radius:50%;
  background:var(--ink);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 0 0 6px var(--ink-2)}
.hcard-ar .ico{width:22px;height:22px;stroke-width:2;animation:hc-nudge 2.4s var(--ease) infinite;animation-delay:var(--d,0s)}
@keyframes hc-nudge{0%,55%,100%{transform:translateX(0)}25%{transform:translateX(4px)}}
@media (hover:hover){
  .hcard:hover{background:#22221d;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 45%,transparent)}
  .hcard:hover .hcard-ico{background:var(--c);color:var(--ink)}
  .hcard:hover .hcard-ar{background:var(--c);color:var(--ink);box-shadow:0 0 0 6px var(--ink-2)}
}
@media (max-width:1100px){
  .hcards{grid-template-columns:minmax(0,1fr);max-width:720px;--gap:24px}
  .hcard-ar{top:auto;bottom:calc(var(--gap)/-2);right:50%;margin:0 calc(var(--ar)/-2) calc(var(--ar)/-2) 0}
  .hcard-ar .ico{rotate:90deg}
}
@media (max-width:640px){
  .hcards{--ar:44px}
  .hcard-top{padding-bottom:4px}
  .hcard-ico{width:48px;height:48px}
  .hcard-ico .ico{width:22px;height:22px}
}

/* ---------- цикл: Бриф → ТЗ → Креативы → Согласования → Загрузка → Аналитика → снова Бриф ----------
   Размеры в cqi (доля ширины .cyc), поэтому круг одинаково собран на любой ширине. */
.cyc{--acc:var(--pink);--step:1.56s;position:relative;width:min(100%,600px);aspect-ratio:1;container-type:inline-size;transition:--acc .5s var(--ease)}
.cyc[data-acc="violet"]{--acc:var(--violet)}
.cyc[data-acc="cyan"]{--acc:var(--cyan)}

.cyc-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.cyc-orbit{fill:none;stroke:rgba(255,255,255,.16);stroke-width:.25;stroke-dasharray:.35 1.4;transform-box:view-box;transform-origin:50% 50%;animation:cyc-spin 50s linear infinite}
@keyframes cyc-spin{to{transform:rotate(1turn)}}

/* Прогресс-бар между этапами: дуга заполняется, пока длится этап, и приводит к следующему */
.cyc-track{fill:none;stroke:rgba(255,255,255,.16);stroke-width:.7;stroke-linecap:round}
.cyc-fill{--c:var(--pink);fill:none;stroke:var(--c);stroke-width:1.1;stroke-linecap:round;stroke-dasharray:1 2;stroke-dashoffset:1;opacity:0}
.cyc-fill--violet{--c:var(--violet)}
.cyc-fill--cyan{--c:var(--cyan)}
.cyc-fill.is-run{opacity:1;stroke-dashoffset:0;transition:stroke-dashoffset var(--step) linear}
.cyc-fill.is-done{opacity:1;stroke-dashoffset:0}
/* Круг пройден: заполненные дуги гаснут, и цикл начинается заново */
.cyc.is-reset .cyc-fill{opacity:0;transition:opacity .28s}

/* Этапы: стеклянные кружки с ореолом */
.cyc-node{--c:var(--pink);position:absolute;left:50%;top:50%;width:15cqi;height:15cqi;margin:-7.5cqi 0 0 -7.5cqi;border-radius:50%;display:grid;place-items:center;color:#fff;
  transform:rotate(var(--a)) translate(38.5cqi) rotate(calc(-1*var(--a)));transition:scale .28s var(--ease),color .28s}
.cyc-node--violet{--c:var(--violet)}
.cyc-node--cyan{--c:var(--cyan)}
.cyc-node::before{content:"";position:absolute;inset:-24%;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.07),rgba(255,255,255,.025) 72%,transparent);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);transition:background .28s}
.cyc-node::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgba(255,255,255,.07);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),inset 0 1px 0 rgba(255,255,255,.22),0 12px 30px rgba(0,0,0,.28);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:background-color .28s,box-shadow .28s}
.cyc-node .ico{position:relative;z-index:1;width:38%;height:38%}
.cyc-node:hover::after{background-color:rgba(255,255,255,.14)}
.cyc-node:focus-visible{outline-offset:8px;border-radius:50%}
.cyc-node.is-done{color:var(--c)}
.cyc-node.is-done::after{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--c) 65%,transparent),0 12px 30px rgba(0,0,0,.28)}
.cyc-node.is-on{scale:1.14;color:var(--ink)}
.cyc-node.is-on::after{background-color:var(--c);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 12px 30px rgba(0,0,0,.28)}
.cyc-node.is-on::before{background:radial-gradient(closest-side,color-mix(in srgb,var(--c) 34%,transparent),color-mix(in srgb,var(--c) 10%,transparent) 70%,transparent);animation:cyc-pulse 1s ease-out infinite}
@keyframes cyc-pulse{0%{transform:scale(.9);opacity:1}100%{transform:scale(1.25);opacity:0}}

/* Центр: подпись активного этапа */
.cyc-core{position:absolute;inset:29%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.6cqi;padding:3cqi;text-align:center;
  background:radial-gradient(circle at 50% 28%,rgba(255,255,255,.13),rgba(255,255,255,.03) 70%);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.2),0 30px 80px rgba(0,0,0,.35);
  -webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.cyc-loop{width:5.6cqi;height:5.6cqi;color:var(--acc);transition:rotate .56s var(--ease)}
.cyc.is-wrap .cyc-loop{rotate:1turn}
.cyc-label{display:flex;align-items:center;justify-content:center;min-height:3.12em;max-width:33cqi;font-family:var(--display);font-weight:600;text-transform:uppercase;font-size:5cqi;line-height:1.04;letter-spacing:.01em;text-wrap:balance;transition:opacity .17s,translate .17s var(--ease)}
.cyc-label.is-out{opacity:0;translate:0 1.4cqi}
.cyc-step{font-size:2.5cqi;font-weight:700;letter-spacing:.22em;line-height:1;color:var(--on-dark-dim)}
.cyc-step span{color:var(--acc)}

@media (max-width:960px){
  /* Круг уходит под текст и hero выше экрана: центровать нечего, иконка скролла не нужна */
  .hero--v2 .hero-in{padding-top:120px;padding-bottom:0}
  .hero-scroll{display:none}
  .hero--v2 .hero-vis{padding-bottom:72px}
  .cyc{width:min(100%,480px)}
}
@media (max-width:640px){
  .hero--v2 .hero-in{padding-top:88px}
  .hero--v2 .hero-vis{padding-bottom:56px}
  /* Вторая кнопка без стрелки: текст по центру, отступы одинаковые */
  .hero--v2 .hero-cta .btn--plain{justify-content:center;padding-inline:18px}
}
@media (prefers-reduced-motion:reduce){
  .cyc,.cyc-node,.cyc-node::after,.cyc-label,.cyc-loop{transition:none}
  .cyc-orbit,.cyc-node.is-on::before{animation:none}
  .cyc-fill.is-run{transition:none}
  .hero-scroll,.hero-mouse::before,.hero-scroll .ico,.hcard-ar .ico{animation:none}
}

/* ---------- полный цикл работы: 9 этапов карточками 3×3 (#93) ----------
   Карточка: крупный розовый номер и этап, «на что уходит время» на белом, «роль CreometriX» на чёрной плашке.
   Строки сетки общие (subgrid), поэтому чёрные плашки в одном ряду начинаются на одной высоте. Без наведения и анимаций. */
.flow-eyebrow{color:var(--pink-deep)}
/* Подзаголовок оформлен как подзаголовок hero, на светлом фоне — тёмным */
.flow .flow-lead{font-family:var(--display);font-weight:600;text-transform:uppercase;font-size:clamp(19px,1.6vw,24px);line-height:1.2;color:var(--ink);max-width:36ch;text-wrap:pretty}
.flow-cols{display:none}
.flow-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.flow-row{display:grid;grid-template-rows:subgrid;grid-row:span 3;gap:0;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.flow-stage{display:flex;flex-direction:column;gap:16px;padding:clamp(24px,2.2vw,32px) clamp(24px,2.2vw,32px) 0;font-family:var(--display);font-weight:600;text-transform:uppercase;font-size:clamp(22px,1.8vw,26px);line-height:1.05}
.flow-stage b{font-family:var(--display);font-weight:700;font-size:clamp(56px,5vw,72px);line-height:.8;color:var(--pink)}
.flow-time{padding:18px clamp(24px,2.2vw,32px) 26px;color:var(--muted);font-size:15px;line-height:1.55}
.flow-time::before,.flow-cx span::before{display:block;margin-bottom:6px;font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase}
.flow-time::before{content:"На что уходит время";color:var(--muted-2)}
.flow-cx{display:flex;align-items:flex-start;gap:12px;padding:22px clamp(24px,2.2vw,32px) 26px;background:var(--ink);color:#fff;font-size:15px;line-height:1.55}
.flow-cx>.ico{flex:none;width:20px;height:20px;margin-top:20px;stroke-width:2.4;color:var(--pink)}
.flow-cx span::before{content:"Роль CreometriX";color:var(--pink)}
/* Английская версия (#98) */
:lang(en) .flow-time::before{content:"Where the time goes"}
:lang(en) .flow-cx span::before{content:"CreometriX’s role"}
.flow-cx small{display:block;margin-top:6px;font-size:13px;color:var(--cyan)}
.flow-foot{display:flex;align-items:center;gap:14px;margin-top:20px;padding:22px clamp(24px,2.2vw,32px);background:var(--pink);color:var(--ink);font-family:var(--display);font-weight:600;font-size:clamp(18px,1.5vw,22px);text-transform:uppercase;line-height:1.2}
.flow-foot .ico{flex:none;width:26px;height:26px}

@media (max-width:1100px){.flow-list{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- экономия: один проект целиком (на розовом фоне, как прежний блок) ---------- */
.sv-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.sv-stage{display:flex;flex-direction:column;gap:14px;padding:clamp(28px,2.6vw,40px);background:var(--ink);color:#fff;min-height:300px}
.sv-stage .ico-tile{background:rgba(255,94,203,.14);color:var(--pink);width:56px;height:56px;margin-bottom:auto}
.sv-stage .ico-tile .ico{width:26px;height:26px}
.sv-num{margin-top:28px;font-family:var(--display);font-weight:700;font-size:44px;line-height:1;color:var(--pink)}
.sv-stage h3{font-size:22px;font-weight:700;line-height:1.3}
.sv-stage p{color:var(--on-dark-muted);font-size:16px}
.sv-econ{margin-top:20px;padding:clamp(28px,3vw,44px);background:var(--ink-2);color:#fff}
.sv-econ-title{display:flex;align-items:center;gap:12px;margin-bottom:clamp(24px,2.6vw,36px);font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--pink)}
.sv-econ-title .ico{width:20px;height:20px}
.sv-costs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:clamp(20px,3vw,48px);align-items:center}
.sv-cost{display:flex;flex-direction:column;gap:12px}
.sv-cost small{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--on-dark-dim)}
.sv-cost strong{font-family:var(--display);font-weight:700;font-size:clamp(44px,5.4vw,84px);line-height:.95;white-space:nowrap}
.sv-cost p{color:var(--on-dark-muted);font-size:15px;max-width:42ch}
.sv-cost--cx strong{color:var(--pink)}
.sv-cost--cx small{color:var(--pink)}
.sv-vs{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--pink);color:var(--ink);font-family:var(--display);font-weight:600;font-size:22px;text-transform:uppercase}
.sv-note{margin-top:24px;max-width:110ch;font-size:13px;line-height:1.6;opacity:.72}

@media (max-width:960px){
  .sv-stages{grid-template-columns:1fr}
  .sv-stage{min-height:0}
  .sv-stage .ico-tile{margin-bottom:0}
  .sv-num{margin-top:8px}
  .sv-costs{grid-template-columns:1fr;justify-items:start}
}
@media (max-width:640px){
  .flow-list{grid-template-columns:1fr;gap:16px}
  .flow-foot{padding:18px}
  .sv-vs{width:52px;height:52px;font-size:18px}
  .sv-cost strong{font-size:clamp(40px,13vw,60px)}
}

/* После «3 причин» идёт голубое «Рабочее пространство», а не «Качество» на том же фоне: нужен свой нижний отступ */
.reasons{padding-bottom:clamp(64px,7vw,104px)}

/* «Что изменится в работе»: горизонтальные карточки по две в ряд, иконка слева; пятая — на всю ширину (#95).
   Правило только для /v2, основная главная остаётся с сеткой из site.css. */
.changes .ch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.changes .ch,.changes .ch:nth-child(4),.changes .ch:nth-child(5){grid-column:auto;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;align-content:start;align-items:start;gap:12px clamp(20px,2vw,28px)}
.changes .ch:last-child:nth-child(odd){grid-column:1/-1}
.changes .ch .ico-tile{grid-row:1/3}
.changes .ch h3{font-size:clamp(22px,1.8vw,28px);text-wrap:balance}
.changes .ch p{margin-top:0;max-width:62ch}
/* Широкая последняя карточка: справа кнопка «Создать проект» */
.changes .ch:has(.ch-cta){grid-template-columns:auto minmax(0,1fr) auto}
.changes .ch-cta{grid-column:3;grid-row:1/3;align-self:center;white-space:nowrap}
@media (max-width:760px){.changes .ch-grid{grid-template-columns:1fr}}
@media (max-width:640px){
  .changes .ch,.changes .ch:nth-child(4),.changes .ch:nth-child(5){gap:10px 16px;padding:22px 20px}
  .changes .ch .ico-tile{width:44px;height:44px}
  .changes .ch .ico-tile .ico{width:22px;height:22px}
  .changes .ch h3{font-size:20px}
  .changes .ch p{font-size:15px}
}
@media (max-width:760px){
  .changes .ch:has(.ch-cta){grid-template-columns:auto minmax(0,1fr)}
  .changes .ch-cta{grid-column:1/-1;grid-row:auto;justify-self:start;margin-top:10px}
}
