/* ag-smart.ru — стили сайта. Собрано по брендбуку (проекты/ag-smart/бренд/) на основе
   раскладки и анимаций эталона catalinvintila.design: цвета заменены на красный AG,
   шрифт Onest, тексты и блоки — под AG. */
@font-face {
  font-family: "Onest";
  src: url("/static/smart/fonts/Onest-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #0c0c0c;
  --black-2: #151515;
  --grey: #d8d8d4;
  --grey-2: #c8c8c3;
  --mut: #82827d;
  --mut-l: #50504b;
  --red: #ea3323;
  --o: #ea3323;
  --line: rgba(216, 216, 212, 0.15);
  --line-d: rgba(12, 12, 12, 0.22);
  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 4vw, 72px);
  --ease: cubic-bezier(0.83, 0, 0.17, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--black); color: var(--grey); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
::selection { background: var(--red); color: var(--black); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--o); outline-offset: 4px; }
.pop :focus-visible { outline-color: var(--black); }
/* родной курсор прячем только когда курсор-шарик реально запущен */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button,
  html.has-cursor [role="button"], html.has-cursor [data-cursor] { cursor: none; }
  html.has-cursor input, html.has-cursor textarea { cursor: text; }
}

.lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.lbl::before { content: "■"; color: var(--red); margin-right: 10px; font-size: 9px; vertical-align: 1px; }
.lbl.-plain::before { content: none; }
.num { font-variant-numeric: tabular-nums; }
.o { color: var(--o); }
.section { padding-left: var(--pad); padding-right: var(--pad); }
.about, .services { --o: #b3200f; }

/* ---------- зерно ---------- */
.noise {
  position: fixed; inset: -60%; z-index: 70; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: noise 6s steps(8) infinite;
}
@keyframes noise {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-4%, 3%); }
  50% { transform: translate(3%, -4%); }
  75% { transform: translate(-3%, -3%); }
}

/* ---------- дым (WebGL, только десктоп) ---------- */
#fluid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 55; pointer-events: none; opacity: 0.8; }
@media (hover: none), (pointer: coarse) { #fluid { display: none; } }
@media (prefers-reduced-motion: reduce) { #fluid { display: none; } }

/* ---------- курсор-шарик ---------- */
.cursor {
  --c: #fff; --c-ink: #0c0c0c;
  position: fixed; left: 0; top: 0; z-index: 300; width: 0; height: 0;
  pointer-events: none; opacity: 0; transition: opacity 0.3s;
  mix-blend-mode: difference;                          /* инверсия: белый на чёрном, тёмный на светлом, по границе — пополам */
}
.cursor.-red { mix-blend-mode: normal; --c: #0c0c0c; --c-ink: #d8d8d4; }   /* на красном инверсия дала бы бирюзовый — там чёрный шарик */
/* Второй слой обесцвечивает результат инверсии: над красным текстом и фото вместо бирюзового выходит серый */
.cursor.-sat { mix-blend-mode: saturation; --c: #808080; --c-ink: #808080; }
.cursor.-sat .cursor__label { opacity: 0 !important; }
.cursor.-sat.-red { display: none; }
.cursor.is-visible { opacity: 1; }
.cursor.-hidden { opacity: 0; }
.cursor__swing { position: absolute; left: -9px; top: -12px; width: 18px; height: 26px; transform-origin: 50% 45%; }
.cursor__balloon {
  display: block; width: 18px; height: 26px; fill: var(--c); transform-origin: 50% 45%;
  transition: transform 0.4s var(--ease), opacity 0.25s linear 0.08s, fill 0.25s;
}
.cursor__disc {
  position: absolute; left: 0; top: 0; width: 0; height: 0; transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1.5px solid transparent; background: var(--c);
  transition: width 0.38s var(--ease), height 0.38s var(--ease), background-color 0.25s, border-color 0.25s;
}
.cursor__label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1; white-space: nowrap; color: var(--c-ink); opacity: 0; transition: opacity 0.2s, color 0.25s;
}
.cursor.-ring .cursor__balloon { transform: scale(0.35); opacity: 0; }
.cursor.-ring .cursor__disc { width: 52px; height: 52px; background: transparent; border-color: var(--c); }
.cursor.-more .cursor__balloon { transform: scale(4.5); opacity: 0; }
.cursor.-more .cursor__disc { width: 118px; height: 118px; }
.cursor.-more .cursor__label { opacity: 1; transition-delay: 0.14s; }
.cursor.-down .cursor__disc, .cursor.-down .cursor__swing { scale: 0.86; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- загрузчик ---------- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--black); display: flex; align-items: center; justify-content: center; }
.loader__logo { position: relative; width: min(62vmin, 560px); z-index: 2; }
.loader__logo svg { width: 100%; height: auto; display: block; }
.loader__logo .base { fill: #1e1e1e; }
.loader__logo .fillwrap { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); }
.loader__logo .fillwrap svg { fill: var(--red); }
.loader__pct {
  position: absolute; right: var(--pad); bottom: calc(var(--pad) * 0.5); z-index: 2; font-weight: 600;
  letter-spacing: -0.03em; font-size: clamp(70px, 13vw, 170px); line-height: 1; color: var(--grey);
}
.loader__pct sup { font-size: 0.26em; color: var(--red); }
.loader__tag { position: absolute; left: var(--pad); bottom: calc(var(--pad) * 0.5 + 12px); z-index: 2; color: var(--mut); }
.loader__grid { position: absolute; inset: 0; z-index: 3; display: grid; pointer-events: none; }
.loader__grid i { background: var(--red); opacity: 0; }

/* ---------- шапка ---------- */
.head { position: fixed; top: 0; left: 0; right: 0; z-index: 120; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--pad); }
.head__logo { width: 64px; position: relative; display: block; }
.head__logo svg { width: 100%; height: auto; display: block; }
.head__logo .lg-base { fill: var(--grey); transition: fill 0.3s; }
.head__logo .lg-fill { position: absolute; inset: 0; clip-path: inset(100% 0 0 0); transition: clip-path 0.55s var(--ease); }
.head__logo .lg-fill svg { fill: var(--red); }
.head__logo:hover .lg-fill { clip-path: inset(0 0 0 0); }
.burger { width: 52px; height: 40px; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--grey); transition: transform 0.45s var(--ease), background 0.3s; }
.burger i:nth-child(1) { top: 14px; }
.burger i:nth-child(2) { top: 24px; }
.burger:hover i { background: var(--red); }
body.-menu .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.-menu .burger i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
/* шапка над светлой секцией — тёмная, чтобы не пропадала */
body.-lt .head__logo .lg-base { fill: var(--black); }
body.-lt .burger i { background: var(--black); }

/* ---------- меню на весь экран ---------- */
.menu { position: fixed; inset: 0; z-index: 110; visibility: hidden; pointer-events: none; }
body.-menu .menu { visibility: visible; pointer-events: auto; }
.menu__px { position: absolute; inset: 0; display: grid; }
.menu__px i { background: var(--red); opacity: 0; }
body.-menu .head__logo .lg-base { fill: var(--black); }
body.-menu .burger i { background: var(--black); }
body.-menu .burger:hover i { background: #fff; }
.menu__inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; padding: 110px var(--pad) 26px; opacity: 0; color: var(--black); }
.menu__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 80px); flex: 1; align-content: center; }
.menu__nav a { display: flex; align-items: baseline; gap: clamp(12px, 2vw, 26px); padding: clamp(8px, 1.4vh, 16px) 0; }
.menu__nav a small { font-size: 12px; font-weight: 700; color: var(--black); opacity: 0.7; }
.menu__nav a b {
  font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1.08; color: var(--black);
  font-size: clamp(36px, 6.4vw, 96px); transition: transform 0.5s var(--ease), color 0.3s; display: inline-block; padding-bottom: 0.04em;
}
.menu__nav a:hover b { transform: translateX(clamp(10px, 1.8vw, 26px)); color: #fff; }
.menu__nav a:hover small { opacity: 1; color: #fff; }
.menu__aside { display: flex; flex-direction: column; gap: clamp(20px, 3.5vh, 36px); justify-content: center; }
.menu__aside .grp small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--black); margin-bottom: 10px; }
.menu__aside .grp a { display: block; font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; color: var(--black); padding: 3px 0; transition: color 0.3s; }
.menu__aside .grp a:hover { color: #fff; }
.menu__foot { display: flex; justify-content: space-between; gap: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); }
@media (max-width: 760px) { .menu__grid { grid-template-columns: 1fr; align-content: start; gap: 34px; overflow: auto; } }

/* ---------- первый экран ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 4vh; position: relative; overflow: hidden; }
.hero__meta { display: flex; justify-content: space-between; gap: 20px; color: var(--mut); padding-top: 110px; margin-bottom: auto; }
.hero__h1 {
  margin-top: 5vh; font-weight: 600; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.95;
  font-size: clamp(30px, 7.6vw, 132px); overflow-wrap: normal;
}
.hero__h1 .line { display: block; overflow: hidden; }
.hero__h1 .line > span { display: inline-flex; align-items: center; gap: 0.18em; will-change: transform; max-width: 100%; }
.hero__h1 .ln2 { padding-left: min(1.15em, 9vw); }
.chip { display: inline-block; height: 0.68em; width: 1.6em; border-radius: 999px; overflow: hidden; vertical-align: middle; position: relative; transform-origin: left center; flex: none; }
.chip img { position: absolute; inset: 0; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 4vh; }
.hero__blurb { max-width: 44ch; color: var(--mut); font-size: clamp(14px, 1.1vw, 17px); }
.hero__scroll { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.hero__scroll .sq { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
@media (max-width: 760px) { .hero__row { flex-direction: column; align-items: flex-start; } }

/* ---------- миссия ---------- */
.mani { padding-top: clamp(70px, 12vh, 150px); padding-bottom: clamp(70px, 12vh, 150px); border-top: 1px solid var(--line); }
.mani p {
  margin-top: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(24px, 3.7vw, 60px); max-width: 30ch; text-transform: uppercase;
}
.mani p .w { opacity: 0.14; display: inline-block; }

/* ---------- направления: две колонки едут навстречу ---------- */
.work { position: relative; }
.work__head { display: flex; justify-content: space-between; align-items: baseline; color: var(--mut); padding: clamp(70px, 11vh, 140px) var(--pad) clamp(24px, 4vh, 44px); }
.wshow { position: relative; height: 100svh; overflow: hidden; background: var(--black); }
.wcol { position: absolute; top: 0; height: 100%; width: calc(50% + 1px); overflow: hidden; }
.wcol.-l { left: 0; }
.wcol.-r { left: calc(50% - 1px); }
.wtrack { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }
.wcell { position: relative; overflow: hidden; }
.wfull { position: absolute; top: 0; left: 0; height: 100%; width: 100vw; display: block; text-align: left; }
.wcol.-r .wfull { transform: translateX(calc(-50% + 1px)); }
.wfull img { position: absolute; inset: 0; }
.wfull::after { content: ""; position: absolute; inset: 0; background: rgba(12, 12, 12, 0.42); }
.wfull__ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.4vh, 24px); text-align: center; padding: 0 var(--pad); }
.wfull__tags { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.wfull__tags i { font-style: normal; color: var(--red); padding: 0 8px; }
.wfull__name { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; font-size: clamp(34px, 5.6vw, 100px); transition: color 0.3s; }
.wfull.-hov .wfull__name { color: var(--red); }
.wshow__count { position: absolute; left: var(--pad); bottom: clamp(24px, 5vh, 48px); z-index: 50; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--grey); pointer-events: none; background: var(--black); padding: 8px 12px; }
.wshow__count b { color: var(--red); }
.wshow__hint { position: absolute; right: var(--pad); top: 96px; z-index: 50; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(216, 216, 212, 0.6); pointer-events: none; }
/* мобильные карточки */
.mslide { position: relative; height: 70svh; margin: 0 var(--pad) 14px; overflow: hidden; display: none; text-align: left; width: calc(100% - var(--pad) * 2); }
.mslide img { position: absolute; inset: 0; }
.mslide[data-pid="novye"] img { object-position: 12% 50%; }
.mslide[data-pid="sushch"] img { object-position: 82% 50%; }
.mslide[data-pid="perezapusk"] img { object-position: 14% 50%; }
.mslide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 12, 12, 0.3), rgba(12, 12, 12, 0.65)); }
.mslide__ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; }
.mslide__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mslide__tags { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.mslide__foot { display: flex; flex-direction: column; gap: 8px; }
.mslide__name { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(28px, 8.4vw, 56px); overflow-wrap: anywhere; }
.mslide__cta { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.mslide__cta b { color: var(--red); }
.mslide .lbl { color: var(--grey); }
.work__all { display: flex; justify-content: center; padding: clamp(40px, 7vh, 80px) var(--pad) clamp(20px, 4vh, 44px); }
.btnAll {
  display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 16px 28px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.btnAll b { color: var(--red); font-weight: 700; transition: color 0.3s; }
.btnAll:hover { background: var(--red); border-color: var(--red); color: var(--black); }
.btnAll:hover b { color: var(--black); }
@media (max-width: 820px) { .wshow, .wshow__count, .wshow__hint { display: none; } .mslide { display: block; } }
@media (min-width: 821px) { .mslide { display: none; } }

/* ---------- пиксельные переходы ---------- */
.pxt { display: grid; height: clamp(150px, 26vh, 280px); width: 100%; }
.pxt i { opacity: 0; }
.pxt.-toGrey { background: var(--black); }
.pxt.-toGrey i { background: var(--grey); }
.pxt.-toBlack { background: var(--grey); }
.pxt.-toBlack i { background: var(--black); }

/* ---------- услуги ---------- */
.services { background: var(--grey); color: var(--black); padding-top: clamp(70px, 11vh, 140px); padding-bottom: clamp(70px, 11vh, 140px); }
.services .lbl, .about .lbl { color: var(--mut-l); }
.services__intro { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(34px, 5vw, 80px); margin: 22px 0 clamp(36px, 6vh, 64px); max-width: 16ch; }
.srv { border-top: 2px solid var(--black); }
.srv:last-of-type { border-bottom: 2px solid var(--black); }
.srv__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(14px, 3vw, 40px); width: 100%; padding: clamp(18px, 2.8vh, 30px) 0; cursor: pointer; }
.srv__idx { font-size: 12px; font-weight: 700; color: var(--o); }
.srv__name { font-weight: 600; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1; font-size: clamp(22px, 3.7vw, 56px); text-align: left; transition: transform 0.45s var(--ease); }
.srv:hover .srv__name { transform: translateX(clamp(8px, 1.6vw, 22px)); }
.srv__count { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut-l); }
.srv__plus { width: 34px; height: 34px; position: relative; flex: none; }
.srv__plus::before, .srv__plus::after { content: ""; position: absolute; background: var(--black); left: 50%; top: 50%; transition: transform 0.45s var(--ease); }
.srv__plus::before { width: 18px; height: 2px; transform: translate(-50%, -50%); }
.srv__plus::after { width: 2px; height: 18px; transform: translate(-50%, -50%); }
.srv.-open .srv__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.srv__body { height: 0; overflow: hidden; }
.srv__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 70px); padding: 6px 0 clamp(24px, 4vh, 40px); }
.srv__inner p { color: #3a3a36; max-width: 52ch; font-size: clamp(14px, 1.15vw, 17px); }
.srv__chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.srv__chips .grp { flex-basis: 100%; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut-l); margin-top: 6px; }
.srv__chips .grp:first-child { margin-top: 0; }
.chipbtn {
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-d); border-radius: 999px;
  padding: 8px 14px; color: var(--mut-l); transition: background 0.3s, color 0.3s, border-color 0.3s; text-align: left;
}
.chipbtn:hover, .chipbtn:focus-visible { background: var(--black); border-color: var(--black); color: var(--grey); }
.pop__drums { display: grid; gap: clamp(18px, 3vh, 30px); min-width: 0; }
.drum { min-width: 0; }
.drum__label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut-l); margin-bottom: 6px; }
.drum__view {
  position: relative; height: clamp(250px, 38vh, 340px); overflow: hidden; outline-offset: 2px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.drum__list { list-style: none; will-change: transform; }
.drum__it { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px clamp(12px, 2vw, 24px); padding: 10px 0; transform-origin: left center; transition: opacity 0.45s var(--ease), transform 0.55s var(--ease); cursor: pointer; }
.drum__n { font-size: 12px; font-weight: 700; color: var(--o); padding-top: 0.6em; }
.drum__name { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(22px, 2.9vw, 44px); }
.drum__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.drum__it.-on .drum__more { grid-template-rows: 1fr; }
.drum__more > div { overflow: hidden; }
.drum__more p { color: #3a3a36; max-width: 46ch; font-size: clamp(14px, 1.15vw, 17px); padding-top: 10px; }
.drum__link { display: inline-flex; gap: 8px; margin: 12px 0 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1.5px solid var(--black); padding-bottom: 3px; transition: color 0.3s, border-color 0.3s; }
.drum__link:hover { color: var(--o); border-color: var(--o); }
.drum__nav { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--mut-l); }
.drum__b { width: 34px; height: 34px; border: 1px solid var(--line-d); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--black); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.drum__b:hover { background: var(--black); color: var(--grey); border-color: var(--black); }
/* барабан внутри красного окна: всё чёрное */
.pop .drum__label { color: var(--black); }
.pop .drum__n { color: var(--black); }
.pop .drum__more p { color: var(--black); font-weight: 500; }
.pop .drum__link { border-color: var(--black); }
.pop .drum__link:hover { color: #fff; border-color: #fff; }
.pop .drum__nav { color: var(--black); }
.pop .drum__b { border-color: var(--black); color: var(--black); }
.pop .drum__b:hover { background: var(--black); color: var(--red); }
.pop .drum__name { font-size: clamp(22px, 2.6vw, 40px); }
@media (max-width: 760px) { .srv__inner { grid-template-columns: 1fr; } .srv__count { display: none; } .srv__head { grid-template-columns: auto minmax(0, 1fr) auto; } }

/* ---------- о компании ---------- */
.about { background: var(--grey); color: var(--black); padding-bottom: clamp(80px, 13vh, 160px); overflow-x: clip; }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 100px); margin-top: 26px; }
.about__left { position: sticky; top: 14vh; align-self: start; }
.about__left h2 { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.96; font-size: clamp(38px, 5.4vw, 88px); }
.about__left h2 .line { display: block; overflow: hidden; }
.about__left h2 .line > span { display: inline-block; }
.about__portraitWrap { position: relative; margin-top: clamp(22px, 4vh, 40px); max-width: 460px; }
.about__portrait { aspect-ratio: 4/5; overflow: hidden; position: relative; background: var(--grey-2); }
.about__portrait img { transform: scale(1.12); will-change: transform; }
.badge { position: absolute; right: -34px; top: -34px; width: 112px; height: 112px; z-index: 3; pointer-events: none; }
.badge svg { width: 100%; height: 100%; animation: spin 14s linear infinite; }
.badge text { font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; fill: var(--black); }
.badge circle.bg { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__right p { color: #3a3a36; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.5; margin-bottom: 1.1em; max-width: 46ch; }
.about__right p b { color: var(--black); font-weight: 600; }
.about__right p .w { display: inline-block; opacity: 0.18; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: clamp(36px, 6vh, 64px); }
.stats div { border-top: 2px solid var(--black); padding-top: 14px; }
.stats b { display: block; font-weight: 600; letter-spacing: -0.03em; font-size: clamp(36px, 4.6vw, 70px); line-height: 1; }
.stats small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut-l); }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } .about__left { position: static; } .stats { grid-template-columns: 1fr 1fr; } .badge { right: -10px; } }

/* ---------- этапы (строки, красная заливка по наведению) ---------- */
.recog { padding-top: clamp(70px, 11vh, 140px); padding-bottom: clamp(70px, 11vh, 140px); }
.recog__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 22px; }
.rrow { position: relative; display: grid; grid-template-columns: auto minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 16px clamp(14px, 2.4vw, 32px); align-items: center; padding: clamp(18px, 2.6vh, 28px) clamp(4px, 1vw, 16px); border-top: 1px solid var(--line); overflow: hidden; }
.rrow:last-of-type { border-bottom: 1px solid var(--line); }
.rrow::before { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: 0; }
.rrow:hover::before { transform: scaleY(1); }
.rrow > * { position: relative; z-index: 1; transition: color 0.3s; }
.rrow__idx { font-size: 12px; font-weight: 700; color: var(--red); }
.rrow__name { font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; font-size: clamp(19px, 2.4vw, 34px); }
.rrow__for { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
.rrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); justify-self: end; }
.rrow:hover .rrow__name, .rrow:hover .rrow__for, .rrow:hover .rrow__idx { color: var(--black); }
.rrow:hover .rrow__dot { background: var(--black); }
@media (max-width: 640px) { .rrow { grid-template-columns: auto 1fr auto; } .rrow__for { display: none; } }

/* ---------- подвал ---------- */
.foot { position: relative; overflow: hidden; padding-top: clamp(70px, 12vh, 150px); padding-bottom: 24px; border-top: 1px solid var(--line); }
.foot__cta { display: block; text-align: center; width: 100%; }
.foot__cta .lbl { color: var(--mut); }
.roll { display: block; overflow: hidden; margin-top: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: -0.035em; line-height: 1; font-size: clamp(28px, 9.3vw, 190px); height: 1em; white-space: nowrap; }
.roll__in { display: block; transition: transform 0.55s var(--ease); }
.foot__cta:hover .roll__in, .foot__cta:focus-visible .roll__in { transform: translateY(-1em); }
.roll__a, .roll__b { display: block; height: 1em; line-height: 1; }
.roll__b { color: var(--red); }
.foot__mail { display: block; text-align: center; margin-top: 26px; font-size: clamp(15px, 1.7vw, 20px); font-weight: 500; letter-spacing: 0.03em; color: var(--mut); transition: color 0.3s; position: relative; z-index: 2; }
.foot__mail b { color: var(--grey); font-weight: 600; position: relative; }
.foot__mail b::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 1px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.foot__mail:hover b::after { transform: scaleX(1); transform-origin: left; }
.foot__mail:hover b { color: var(--red); }
.foot__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; margin-top: clamp(60px, 10vh, 120px); position: relative; z-index: 2; }
.foot__meta .grp small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); margin-bottom: 10px; }
.foot__meta .grp a, .foot__meta .grp span { display: block; font-size: 15px; font-weight: 500; padding: 3px 0; transition: color 0.3s; }
.foot__meta .grp a:hover { color: var(--red); }
.toTop { justify-self: end; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: border-color 0.3s, color 0.3s, background 0.3s; }
.toTop:hover { border-color: var(--red); color: var(--black); background: var(--red); }
.foot__logo { position: absolute; left: 50%; bottom: -12vw; transform: translateX(-50%); width: min(58vw, 700px); opacity: 0.07; pointer-events: none; }
.foot__logo svg { width: 100%; height: auto; fill: var(--red); }
.foot__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: clamp(46px, 8vh, 90px); padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); position: relative; z-index: 2; }
.foot__bar a:hover { color: var(--red); }
@media (max-width: 720px) { .foot__meta { grid-template-columns: 1fr 1fr; } .toTop { justify-self: start; } }

/* ---------- всплывающее окно: шарик надувается и раскрывает текст ---------- */
.pop { position: fixed; inset: 0; z-index: 160; visibility: hidden; pointer-events: none; color: var(--black); }
.pop.-on { visibility: visible; pointer-events: auto; }
.pop__bg { position: absolute; inset: 0; background: var(--red); clip-path: circle(0px at 50% 50%); }
.pop__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.pop__in { position: relative; min-height: 100%; display: flex; flex-direction: column; padding: 104px var(--pad) 36px; opacity: 0; }
.pop__bar { position: fixed; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad) 26px; opacity: 0; pointer-events: none; background: linear-gradient(180deg, var(--red) 70%, rgba(234, 51, 35, 0)); }
.pop__bar > * { pointer-events: auto; }
.pop__bar .lbl::before { color: var(--black); }
.pop__close { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; }
.pop__close i { position: relative; width: 26px; height: 26px; border: 1.5px solid var(--black); border-radius: 50%; }
.pop__close i::before, .pop__close i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--black); transform: translate(-50%, -50%) rotate(45deg); }
.pop__close i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pop__close:hover { color: #fff; }
.pop__close:hover i { border-color: #fff; }
.pop__close:hover i::before, .pop__close:hover i::after { background: #fff; }
.pop__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 5vw, 96px); align-items: start; margin: auto 0; }
.pop__title { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.96; font-size: clamp(32px, 5.6vw, 92px); overflow-wrap: anywhere; }
.pop__k { display: block; margin-bottom: 18px; color: var(--black); }
.pop__lead { font-size: clamp(17px, 1.7vw, 24px); line-height: 1.42; font-weight: 500; max-width: 40ch; }
.pop__list { list-style: none; margin-top: clamp(22px, 4vh, 40px); }
.pop__list li { border-top: 2px solid var(--black); padding: 14px 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: clamp(15px, 1.25vw, 18px); font-weight: 600; }
.pop__list li:last-child { border-bottom: 2px solid var(--black); }
.pop__list li span { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; padding-top: 4px; }
.pop__list li em { font-style: normal; grid-column: 2; font-weight: 500; font-size: clamp(14px, 1.1vw, 16px); }
.pop__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 4vh, 44px); }
.pop__btn { display: inline-flex; align-items: center; gap: 12px; background: var(--black); color: var(--grey); border: 1.5px solid var(--black); border-radius: 999px; padding: 16px 28px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; transition: background 0.3s, color 0.3s; }
.pop__btn:hover { background: transparent; color: var(--black); }
.pop__btn.-ghost { background: transparent; color: var(--black); }
.pop__btn.-ghost:hover { background: var(--black); color: var(--grey); }
.pop form { display: grid; gap: 18px; margin-top: 8px; }
.pop label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.pop input, .pop textarea { width: 100%; font: inherit; font-size: 18px; font-weight: 500; color: var(--black); background: transparent; border: 0; border-bottom: 2px solid var(--black); border-radius: 0; padding: 8px 0 10px; outline: none; }
.pop input:focus, .pop textarea:focus { border-bottom-color: #fff; }
.pop textarea { min-height: 88px; resize: vertical; }
.pop__note { font-size: 13px; font-weight: 600; max-width: 44ch; }
.pop__note a { text-decoration: underline; }
.pop__ok { font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05; }
.pop__contacts { display: grid; gap: 14px; margin-top: 26px; font-weight: 600; }
.pop__contacts small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.pop__contacts a { text-decoration: underline; text-underline-offset: 3px; }
.pop__grid.-wide { grid-template-columns: 1fr; margin: 0; gap: clamp(22px, 4vh, 44px); }
.pop__grid.-wide .pop__title { font-size: clamp(30px, 4.6vw, 76px); max-width: 20ch; }
.ptiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; padding-bottom: 20px; }
.ptile { display: flex; flex-direction: column; background: var(--black); color: var(--grey); text-align: left; }
.ptile:nth-child(1) { grid-column: 1 / span 5; }
.ptile:nth-child(2) { grid-column: 6 / span 7; margin-top: clamp(24px, 8vh, 90px); }
.ptile:nth-child(3) { grid-column: 2 / span 6; }
.ptile:nth-child(4) { grid-column: 8 / span 5; margin-top: clamp(24px, 8vh, 90px); }
.ptile__img { display: block; overflow: hidden; }
.ptile:nth-child(1) .ptile__img, .ptile:nth-child(4) .ptile__img { aspect-ratio: 1 / 1; }
.ptile:nth-child(2) .ptile__img { aspect-ratio: 16 / 10; }
.ptile:nth-child(3) .ptile__img { aspect-ratio: 4 / 3; }
.ptile__img img { filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: filter 0.6s var(--ease), transform 0.9s var(--ease); }
.ptile:hover .ptile__img img, .ptile:focus-visible .ptile__img img { filter: grayscale(0); transform: scale(1.07); }
.ptile__body { display: grid; gap: 8px; padding: clamp(16px, 1.8vw, 26px); }
.ptile__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mut); }
.ptile__name { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(26px, 3.2vw, 52px); transition: color 0.3s; }
.ptile:hover .ptile__name { color: var(--red); }
.ptile__text { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.5; color: var(--grey); max-width: 46ch; }
.ptile__go { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.ptile__go i { font-style: normal; color: var(--red); }
@media (max-width: 820px) {
  .pop__grid { grid-template-columns: 1fr; margin: 0; } .pop__in { padding-top: 92px; }
  .ptile:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .ptile:nth-child(even) { margin-left: 10%; } .ptile:nth-child(odd) { margin-right: 10%; }
}

/* ---------- страницы с текстом (политика, соглашение) ---------- */
.doc { padding: 150px var(--pad) 80px; max-width: 980px; margin: 0 auto; }
.doc h1 { font-weight: 600; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; font-size: clamp(30px, 5vw, 72px); margin: 18px 0 clamp(28px, 5vh, 56px); }
.doc p { color: var(--mut); font-size: clamp(15px, 1.2vw, 18px); line-height: 1.6; margin-bottom: 1em; max-width: 72ch; }
.doc p:first-of-type { color: var(--grey); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pxt { display: none; }
  .mani p .w, .about__right p .w { opacity: 1; }
  html.has-cursor, body, a, button { cursor: auto !important; }
  .cursor { display: none; }
}
