/* ============================================================
   Влад Луданов — AI Adoption for Creative & Business Teams
   Editorial Explorer Corporate (по стилю Wolverine Worldwide)
   ============================================================ */

:root {
  --black: #010101;
  --white: #ffffff;
  --soft-white: #f7f7f5;
  --light-gray: #e8e8e6;
  --line-gray: #d7d7d3;
  --mid-gray: #8f8f8f;
  --dark-card: #151515;

  --radius-hero: 24px;
  --radius-section: 28px;
  --radius-card: 20px;
  --radius-media: 14px;
  --radius-button: 14px;
  --radius-nav: 14px;
  --radius-small: 8px;

  --page-margin: clamp(24px, 3.8vw, 64px);
  --grid-gap: 24px;

  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Geist Mono", monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--black); color: var(--white); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-weight: 800; }

/* ---------- типографика ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mid-gray);
}

.section-title {
  font-size: clamp(44px, 6.5vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.statement {
  font-size: clamp(32px, 3.8vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  padding: 0 var(--page-margin);
}

.micro-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.5;
  max-width: 520px;
}

/* ---------- кнопки ---------- */

.button {
  height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-button);
  background: var(--light-gray);
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
  border: none;
  transition: background 0.3s var(--ease-out);
  white-space: nowrap;
}
.button .icon {
  font-size: 18px;
  transition: transform 0.3s var(--ease-out);
}
.button:hover { background: #dcdcd8; }
.button:hover .icon { transform: translateX(4px); }

.button-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.button-ghost:hover { background: rgba(255, 255, 255, 0.22); }

.button-outline {
  height: 50px;
  padding: 0 18px;
  border: 1px solid #cfcfcb;
  background: var(--white);
}
.button-outline:hover { background: var(--soft-white); }

.button-blue {
  background: #0a84ff;
  color: var(--white);
}
.button-blue:hover { background: #0071e3; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.button-ghost:focus-visible, .hero-nav a:focus-visible, .floating-nav a:focus-visible {
  outline-color: var(--white);
}

/* ---------- header: hero state ---------- */

.header-hero {
  position: absolute;
  top: 40px;
  left: 56px;
  right: 56px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--white);
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.logo img {
  height: 20px;
  width: auto;
  display: block;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.hero-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero-nav a { opacity: 0.85; transition: opacity 0.25s; }
.hero-nav a:hover { opacity: 1; }
.hero-nav .nav-cta {
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-button);
  background: var(--white);
  color: var(--black);
  opacity: 1;
  transition: background 0.25s;
}
.hero-nav .nav-cta:hover { background: var(--light-gray); }

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 210;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
body.menu-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
body.menu-open .header-hero {
  position: fixed;
  z-index: 300;
}

/* ---------- floating pill nav ---------- */

.floating-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-16px);
  height: 48px;
  padding: 0 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: var(--radius-nav);
  background: #2b2b2b;
  color: var(--white);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.floating-nav.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.floating-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  padding: 8px 10px;
  opacity: 0.72;
  transition: opacity 0.25s;
  white-space: nowrap;
}
.floating-nav a:hover { opacity: 1; }
.floating-nav .pill-logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
  opacity: 1;
}
.floating-nav .pill-menu {
  display: none;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
}
.floating-nav .pill-cta {
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  opacity: 1;
}
.floating-nav .pill-cta:hover { background: var(--light-gray); }

/* ---------- mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: var(--page-margin);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.mobile-menu-cta { align-self: flex-start; }

/* ---------- «фото»-плейсхолдеры: киношные градиенты + зерно ---------- */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--dark-card);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.ph-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ph-sunset { background: linear-gradient(160deg, #1d0f08 0%, #4a2410 38%, #b05a24 72%, #e29b55 100%); }
.ph-dusk { background: linear-gradient(165deg, #06090f 0%, #0e1a2c 45%, #2a4a68 85%, #4d7391 100%); }
.ph-forest { background: linear-gradient(158deg, #060c08 0%, #14291a 50%, #2e5434 88%, #47703f 100%); }
.ph-night { background: radial-gradient(120% 90% at 70% 20%, #1b2430 0%, #0a0f16 55%, #04060a 100%); }
.ph-desert { background: linear-gradient(150deg, #170804 0%, #3d1710 45%, #7c3320 80%, #a44e2a 100%); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 16px);
  margin: 8px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  background:
    radial-gradient(90% 60% at 78% 88%, rgba(226, 155, 85, 0.35) 0%, rgba(226, 155, 85, 0) 60%),
    radial-gradient(120% 80% at 20% 10%, #182234 0%, rgba(10, 15, 22, 0) 70%),
    linear-gradient(178deg, #0a0f16 0%, #05070b 55%, #1a1210 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: clamp(120px, 16vh, 180px) clamp(32px, 4vw, 72px) clamp(36px, 5vw, 72px);
  max-width: 1080px;
}

.hero-eyebrow { color: rgba(255, 255, 255, 0.65); margin-bottom: 22px; }

.hero-title {
  font-size: clamp(52px, 7.6vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 900;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.3;
  max-width: 620px;
  margin-bottom: 16px;
}

.hero-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-card {
  position: absolute;
  right: clamp(32px, 4vw, 64px);
  bottom: clamp(32px, 5vw, 64px);
  width: min(340px, 24vw);
  border-radius: var(--radius-media);
  overflow: hidden;
  background: rgba(15, 18, 22, 0.88);
  backdrop-filter: blur(10px);
  color: var(--white);
  z-index: 3;
  transition: transform 0.35s var(--ease-out);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card-media { height: 165px; }
.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card-media .ph-label {
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.85);
}
.hero-card-body { position: relative; padding: 18px 20px 22px; }
.hero-card-body .eyebrow { color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; }
.hero-card-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  padding-right: 30px;
}
.hero-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: 18px;
  opacity: 0.7;
  transition: transform 0.3s var(--ease-out);
}
.hero-card:hover .hero-card-arrow { transform: translate(3px, -3px); }

/* ---------- statement ---------- */

.statement-section {
  padding: clamp(100px, 14vw, 220px) 0;
  background: var(--white);
}
.statement-eyebrow { grid-column: 1 / span 2; grid-row: 1; padding-top: 10px; }
.statement-content { grid-column: 5 / span 8; grid-row: 1; }
.statement-photo {
  grid-column: 3 / span 2;
  grid-row: 1;
  align-self: start;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}
/* Фото уже обрезано в квадрат под этот кружок, поэтому проценты сдвига
   больше не нужны: раньше ими вылавливали лицо из широкого кадра. */
.statement-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.statement-body {
  margin-top: 40px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.statement-body p { color: #3c3c3a; line-height: 1.45; }
.statement-body p:first-child {
  color: var(--black);
  font-weight: 700;
}

/* сквозная плашка CliftonStrengths на синем экране «Почему я» */
.why-chip {
  grid-column: 1 / span 4;
  align-self: start;
  display: block;
  /* Ширина плашки равна ширине «ВОВЛ» в заголовке над ней: заголовок
     набран clamp(44px, 6.5vw, 112px), а эти четыре буквы занимают
     примерно 2,2 его кегля. У svg есть viewBox, поэтому текст внутри
     масштабируется вместе с плашкой. Раньше стояли жёсткие 330px —
     плашка была вдвое шире слова и перевешивала весь блок. */
  width: clamp(97px, 14.3vw, 246px);
  height: auto;
}
.why-chip-text {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---------- section heads ---------- */

.section-head { margin-bottom: clamp(48px, 6vw, 88px); row-gap: 20px; }
.section-head .eyebrow { grid-column: 1 / span 3; padding-top: 12px; }
.section-head .section-title { grid-column: 1 / -1; max-width: 1000px; }
.section-head .section-intro {
  grid-column: 6 / span 6;
  color: #3c3c3a;
  line-height: 1.45;
  max-width: 560px;
}

/* ---------- чем полезен ---------- */

.useful-section { padding: clamp(44px, 5.5vw, 84px) 0; }

.useful-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-gray);
  border-top: 1px solid var(--line-gray);
  border-bottom: 1px solid var(--line-gray);
}
.useful-card {
  background: var(--white);
  padding: clamp(28px, 3vw, 48px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease-out);
}
.useful-card:hover { background: var(--soft-white); }
.useful-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.useful-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid-gray);
}
.useful-badges {
  display: grid;
  grid-template-columns: 136px 92px;
  gap: 6px;
  align-items: center;
}
.badge-slot {
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge-slot .badge { flex: 1; text-align: center; }
.badge-time { text-align: center; }
.badge-dot {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line-gray);
  border-radius: 100px;
  color: #3c3c3a;
  white-space: nowrap;
}
.badge-ai {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.useful-card h3 {
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 48px 0 14px;
}
.useful-card p { color: #3c3c3a; line-height: 1.4; font-size: 16.5px; }

/* ---------- gallery ---------- */

.gallery-section {
  position: relative;
  min-height: 150vh;
  background: var(--white);
  overflow: hidden;
  padding: 20vh 0;
}
.gallery-title {
  position: sticky;
  top: 30vh;
  text-align: center;
  z-index: 2;
  font-size: clamp(60px, 9.5vw, 170px);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 900;
  mix-blend-mode: darken;
}
.float-img {
  position: absolute;
  width: clamp(90px, 11vw, 190px);
  aspect-ratio: 3 / 4;
  will-change: transform;
  z-index: 1;
  border-radius: 12px;
  overflow: hidden;
}
.float-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.float-img .ph-label { left: 8px; bottom: 6px; font-size: 8px; }
.fi-1 { top: 8%; left: 6%; }
.fi-2 { top: 14%; right: 10%; width: clamp(70px, 8vw, 140px); }
.fi-3 { top: 34%; left: 18%; width: clamp(70px, 8.5vw, 150px); }
.fi-4 { top: 40%; right: 3%; }
.fi-5 { top: 58%; left: -2%; }
.fi-6 { top: 66%; right: 16%; width: clamp(80px, 9vw, 160px); }
.fi-7 { top: 84%; left: 30%; width: clamp(70px, 8vw, 140px); }
.fi-8 { top: 78%; right: -3%; width: clamp(90px, 10vw, 170px); }

/* ---------- feature card (почему именно я) ---------- */

.feature-wrap { padding: clamp(40px, 6vw, 100px) 0; }

/* режим пришпиливания: экран замирает, скролл страницы крутит диалог.
   Включается скриптом (класс is-pinned) только на десктопе — высоту секции
   тоже задаёт скрипт, исходя из длины переписки. Без JS всё работает как обычно. */
.feature-wrap.is-pinned { padding: 0; position: relative; }
.feature-wrap.is-pinned .feature-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(24px, 3vw, 56px) 0;
}
.feature-wrap.is-pinned .feature-card {
  width: 100%;
  height: 100%;
  max-height: 820px;
}
.feature-wrap.is-pinned .feature-media { min-height: 0; }
.feature-wrap.is-pinned .feature-content {
  min-height: 0;
  grid-template-rows: 1fr auto;
  gap: 24px;
}
.feature-wrap.is-pinned .feature-main {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.feature-wrap.is-pinned .chat {
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}

.feature-card {
  margin: 0 var(--page-margin);
  border-radius: var(--radius-section);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
  color: var(--white);
}
.feature-media { min-height: 640px; }
.pixel-scene {
  position: relative;
  background: linear-gradient(168deg, #04060c 0%, #0a1120 52%, #12203a 100%);
  overflow: hidden;
}
.pixel-scene canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.feature-content {
  padding: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
}
.feature-content > .eyebrow { color: rgba(255, 255, 255, 0.5); }
.feature-title {
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 26px;
}
.feature-main p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  font-size: 17px;
  max-width: 560px;
}
.feature-main p + p { margin-top: 14px; }

.feature-cats {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- чат в стиле iMessage ---------- */

.chat {
  margin-top: 28px;
  max-height: 520px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 14px 24px 2px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3c transparent;
  -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 90%, transparent 100%);
}
.chat::-webkit-scrollbar { width: 4px; }
.chat::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 100px; }
.chat::-webkit-scrollbar-track { background: transparent; }

.chat-msg {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.chat-in {
  align-self: flex-start;
  background: #2c2c2e;
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 5px;
}
.chat-out {
  align-self: flex-end;
  background: #0a84ff;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.feature-pdf {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--dark-card);
  transition: background 0.3s var(--ease-out);
}
.feature-pdf:hover { background: #1e1e1e; }
.feature-pdf .eyebrow { color: rgba(255, 255, 255, 0.45); }
.feature-pdf-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.feature-pdf .hero-card-arrow { bottom: 20px; }
.feature-pdf:hover .hero-card-arrow { transform: translate(3px, -3px); }

/* ---------- data snapshot ---------- */

.data-section {
  border-top: 1px solid var(--line-gray);
  border-bottom: 1px solid var(--line-gray);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 100px);
}
.data-col {
  padding: clamp(40px, 4.5vw, 72px) clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--line-gray);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.data-col:nth-child(3n) { border-right: none; }
.data-col:nth-child(n + 4) { border-top: 1px solid var(--line-gray); }
.data-number {
  font-size: clamp(64px, 7.5vw, 140px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.85;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.data-unit {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mid-gray);
}
.data-caption {
  font-size: 15px;
  color: #3c3c3a;
  line-height: 1.4;
  max-width: 300px;
}
.caption-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.25s;
}
.caption-link:hover { opacity: 0.6; }

/* ---------- почему сейчас: скроллителлинг ---------- */

.now-scrolly {
  position: relative;
  height: 480vh;
  margin: clamp(80px, 10vw, 160px) 0;
}
.now-scrolly .now-section {
  position: sticky;
  top: 8px;
  height: calc(100svh - 16px);
  min-height: 0;
  margin: 0 8px;
}
.now-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 45%;
  perspective: 1100px;
}
.now-cam {
  width: 100%;
  height: 100%;
  will-change: transform;
  transform-style: preserve-3d;
}
.now-render {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}
body.no-render .now-scrolly { height: auto; }
body.no-render .now-scrolly .now-section {
  position: relative;
  top: auto;
  height: auto;
  min-height: 92vh;
  margin: 0 8px;
}
body.no-render .now-cam { display: none; }

/* полёт выключен: секция живёт как обычная, картинка статична.
   Пропорция секции 20:11 делает правую часть (55% ширины) квадратом —
   квадратный рендер заполняет её целиком, без полей и без обрезки */
.now-scrolly[data-flight="off"] { height: auto; }
.now-scrolly[data-flight="off"] .now-section {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 20 / 11;
  margin: 0 8px;
}

/* ---------- 3D-полёт по графику (now3d.js) ----------
   Класс is-flying ставит скрипт, когда модель загрузилась и мы не в режиме
   правок. Тогда секция пришпиливается, а скролл двигает камеру по графику. */
.now3d {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  pointer-events: none;
}
.now3d canvas { width: 100%; height: 100%; display: block; }
body.now3d-on .now3d { opacity: 1; }
body.now3d-on .now-stage { display: none; }
.now-section .now-content { position: relative; z-index: 2; }

.now-scrolly.is-flying { height: 300vh; }
.now-scrolly.is-flying .now-section {
  position: sticky;
  top: 8px;
  height: calc(100svh - 16px);
  min-height: 0;
  aspect-ratio: auto;
  margin: 0 8px;
}

/* ссылки в подписях и текстах секций */
.caption-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(1, 1, 1, 0.35);
  transition: text-decoration-color 0.25s;
}
.caption-link:hover { text-decoration-color: currentColor; }
.now-text .caption-link { text-decoration-color: rgba(255, 255, 255, 0.45); }

@media (prefers-reduced-motion: reduce) {
  .now-scrolly { height: auto; margin: 0; }
  .now-scrolly .now-section {
    position: relative;
    top: auto;
    height: auto;
    min-height: 92vh;
    margin: clamp(80px, 10vw, 160px) 8px;
  }
}

/* ---------- почему сейчас ---------- */

.now-section {
  position: relative;
  margin: clamp(80px, 10vw, 160px) 8px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
}
.now-bg { position: absolute; inset: 0; }
.now-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.46);
}
.now-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: clamp(40px, 4.5vw, 72px) clamp(32px, 5vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, min(560px, calc(45% - 72px)));
  align-items: center;
}
.now-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

/* ---------- инфографика «почему сейчас» ---------- */

.now-infographic {
  margin: 0;
  width: 100%;
  max-width: 720px;
  justify-self: end;
}
.ng { width: 100%; height: auto; display: block; }
.ng-floor line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}
.ng-floor { opacity: 0; }
.ng-ribbon { opacity: 0; }
.ng-drop {
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 5;
  opacity: 0;
}
.ng-glow { opacity: 0; }
.ng-vox-back { fill: rgba(255, 255, 255, 0.26); }
.ng-vox-front { fill: url(#ngVoxGrad); }
.ng-vox-seams line {
  stroke: rgba(1, 1, 1, 0.16);
  stroke-width: 1;
}
.ng-glint { fill: #ffffff; opacity: 0.9; }
.ng-voxel {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50% 60%;
}
.ng-curve {
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
}
.ng-future {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  opacity: 0;
}
.ng-arrow {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0;
}
.ng-dot {
  fill: var(--white);
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.ng-pulse {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.ng-year {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  fill: var(--white);
  letter-spacing: -0.02em;
}
.ng-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, 0.55);
}
.ng-sub-strong { fill: var(--white); }
.ng-label { opacity: 0; }
.ng-caption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.now-infographic.is-visible .ng-voxel {
  animation:
    ngVoxPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s forwards,
    ngVoxFloat 3.6s ease-in-out 3.2s infinite;
}
@keyframes ngVoxPop {
  from { opacity: 0; transform: scale(0.7) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ngVoxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.now-infographic.is-visible .ng-floor { animation: ngFadeIn 0.9s ease 0s forwards; }
.now-infographic.is-visible .ng-ribbon { animation: ngFadeIn 0.9s ease 1.5s forwards; }
.now-infographic.is-visible .ng-glow { animation: ngFadeIn 0.8s ease 1.9s forwards; }
.now-infographic.is-visible .ng-dr1 { animation: ngFadeIn 0.5s ease 0.7s forwards; }
.now-infographic.is-visible .ng-dr2 { animation: ngFadeIn 0.5s ease 1.1s forwards; }
.now-infographic.is-visible .ng-dr3 { animation: ngFadeIn 0.5s ease 1.6s forwards; }
.now-infographic.is-visible .ng-curve { animation: ngDraw 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards; }
.now-infographic.is-visible .ng-future { animation: ngFadeIn 0.6s ease 1.7s forwards, ngMarch 1.4s linear 1.7s infinite; }
.now-infographic.is-visible .ng-arrow { animation: ngFadeIn 0.6s ease 1.9s forwards; }
.now-infographic.is-visible .ng-d1 { animation: ngPop 0.45s ease 0.55s forwards; }
.now-infographic.is-visible .ng-d2 { animation: ngPop 0.45s ease 0.95s forwards; }
.now-infographic.is-visible .ng-d3 { animation: ngPop 0.45s ease 1.45s forwards; }
.now-infographic.is-visible .ng-l1 { animation: ngFadeIn 0.5s ease 0.6s forwards; }
.now-infographic.is-visible .ng-l2 { animation: ngFadeIn 0.5s ease 1s forwards; }
.now-infographic.is-visible .ng-l3 { animation: ngFadeIn 0.5s ease 1.5s forwards; }
.now-infographic.is-visible .ng-l4 { animation: ngFadeIn 0.6s ease 2.1s forwards; }
.now-infographic.is-visible .ng-here { animation: ngFadeIn 0.5s ease 1.7s forwards; }
.now-infographic.is-visible .ng-pulse { animation: ngPulse 2.2s ease-out 2.1s infinite; }

@keyframes ngDraw { to { stroke-dashoffset: 0; } }
@keyframes ngFadeIn { to { opacity: 1; } }
@keyframes ngMarch { to { stroke-dashoffset: -28; } }
@keyframes ngPop {
  0% { opacity: 0; transform: scale(0.3); }
  70% { opacity: 1; transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes ngPulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(3); }
}
.now-content .eyebrow { color: rgba(255, 255, 255, 0.6); }
.now-title {
  font-size: clamp(32px, 3.8vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 850;
}
.now-text {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.now-section .button { background: var(--white); }
.now-section .button:hover { background: var(--light-gray); }
.now-content .button { gap: 14px; padding: 0 22px; }

/* ---------- timeline ---------- */

.timeline-section { padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px); }

.timeline {
  margin: 0 var(--page-margin);
  border-top: 1px solid var(--line-gray);
}
.tl-item {
  display: grid;
  grid-template-columns: minmax(220px, 4fr) 8fr;
  gap: var(--grid-gap);
  padding: clamp(36px, 4vw, 64px) 0;
  border-bottom: 1px solid var(--line-gray);
}
.tl-meta { display: flex; flex-direction: column; gap: 12px; }
.tl-period {
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.tl-company {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
}
.tl-body { max-width: 720px; }
.tl-body h3 {
  font-size: clamp(24px, 2.2vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 18px;
}
.tl-body p { color: #3c3c3a; line-height: 1.45; }
.tl-results {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--black) !important;
  margin-top: 18px;
  line-height: 1.7 !important;
}
.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tl-tags span, .dna-tags span {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--line-gray);
  border-radius: 100px;
  color: #3c3c3a;
  white-space: nowrap;
}
.tl-future { background: transparent; }
.tl-future .tl-period { color: var(--mid-gray); }

/* ---------- опыт в одной системе ---------- */

.system-section {
  padding: clamp(80px, 10vw, 160px) 0;
  background: var(--soft-white);
}
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  padding: 0 var(--page-margin);
}
.system-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(26px, 2.6vw, 40px);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.system-card h3 {
  font-size: clamp(20px, 1.7vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.system-card p { color: #3c3c3a; font-size: 16px; line-height: 1.42; }

/* ---------- strengths ---------- */

.strengths-section { padding: clamp(44px, 5.5vw, 84px) 0; }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line-gray);
  border-top: 1px solid var(--line-gray);
  border-bottom: 1px solid var(--line-gray);
}
.strength-card {
  background: var(--white);
  padding: clamp(22px, 2vw, 34px);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  transition: background 0.35s var(--ease-out);
}
.strength-card:hover { background: var(--soft-white); }
.strength-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mid-gray);
}
.strength-card h3 {
  font-size: clamp(20px, 1.7vw, 27px);
  letter-spacing: -0.04em;
  margin: 44px 0 4px;
}
.strength-ru {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  margin-bottom: 14px;
}
.strength-card > p:last-child { color: #3c3c3a; font-size: 15px; line-height: 1.42; }

.strengths-dna {
  margin: clamp(48px, 6vw, 88px) var(--page-margin) 0;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-section);
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.strengths-dna .eyebrow { color: rgba(255, 255, 255, 0.5); }
.dna-groups {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--grid-gap);
}
.dna-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  margin-bottom: 14px;
}
.dna-group .dna-tags span { border-color: #333; color: rgba(255, 255, 255, 0.85); }
.dna-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dna-note {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}
.strengths-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.strengths-dna .button-outline {
  background: transparent;
  color: var(--white);
  border-color: #3a3a3a;
}
.strengths-dna .button-outline:hover { background: #1c1c1c; }
.strengths-dna .micro-note { color: #6f6f6f; }

/* ---------- кейсы / carousel ---------- */

.cases-section { padding: clamp(44px, 5.5vw, 84px) 0; }

.case-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--page-margin);
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.carousel-wrap { position: relative; }
.news-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--page-margin) 20px;
  scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }
.news-card {
  width: clamp(320px, 30vw, 540px);
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.news-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-out);
}
.news-card:hover .news-media { transform: scale(1.015); }
.news-bh-link { display: block; }
.news-media-img { position: relative; }
.news-media-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card .eyebrow { margin-bottom: 12px; }
.news-title {
  font-size: clamp(24px, 2vw, 33px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 12px;
}
.news-text { color: #3c3c3a; font-size: 16px; line-height: 1.42; margin-bottom: 14px; }
.news-result {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.7;
}
.carousel-nav {
  display: flex;
  gap: 10px;
  padding: 20px var(--page-margin) 0;
}
.carousel-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-button);
  border: 1px solid var(--line-gray);
  background: var(--white);
  font-size: 18px;
  transition: all 0.25s var(--ease-out);
}
.carousel-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- статьи ---------- */

.articles-section { padding: clamp(44px, 5.5vw, 84px) 0; }
.articles-section #artTrack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 var(--page-margin);
  overflow: visible;
}
.articles-section .news-card { width: auto; }
.articles-section .eyebrow { margin-top: 4px; }
@media (max-width: 1100px) {
  .articles-section #artTrack { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .articles-section #artTrack { grid-template-columns: 1fr; }
}
.article-card { position: relative; }
.article-lead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-media);
  background: rgba(1, 1, 1, 0.86);
  color: var(--white);
  padding: clamp(16px, 1.6vw, 26px);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
.article-lead p {
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.article-card:hover .article-lead { opacity: 1; }

@media (max-width: 1100px) {
  .article-lead {
    position: static;
    aspect-ratio: auto;
    background: none;
    padding: 12px 0 0;
    opacity: 1;
    display: block;
    border-radius: 0;
  }
  .article-lead p {
    color: #3c3c3a;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---------- воркшопы ---------- */

.workshops-section { padding: clamp(44px, 5.5vw, 84px) 0; background: var(--soft-white); }
.workshops-section { padding: clamp(36px, 4.5vw, 64px) 0; }
.workshops-section .section-head { margin-bottom: clamp(32px, 4vw, 56px); }

.ws-track {
  display: flex;
  gap: var(--grid-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--page-margin) 6px;
  scrollbar-width: none;
}
.ws-track::-webkit-scrollbar { display: none; }

.ws-card {
  flex: 0 0 calc((100% - 2 * var(--page-margin) - 3 * var(--grid-gap)) / 4);
  scroll-snap-align: start;
  scroll-margin-left: var(--page-margin);
  perspective: 1600px;
  container-type: inline-size;
}
.ws-card-inner {
  position: relative;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform 0.65s var(--ease-out);
}
.ws-card.is-flipped .ws-card-inner { transform: rotateY(180deg); }

.ws-front,
.ws-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.ws-front {
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.ws-num {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  font-size: 170px;
  font-size: 74cqw;
}
.ws-bar {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ws-bar-title {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  padding: 11px 13px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
}
.ws-bar-btn {
  position: relative;
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.34);
  font-size: 17px;
  overflow: hidden;
  transition: background 0.3s var(--ease-out);
}
.ws-front:hover .ws-bar-btn { background: rgba(8, 8, 10, 0.5); }
.ws-bar-btn::after {
  content: "";
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  width: 42%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: translateX(-160%);
  animation: wsShine 3.4s ease-in-out infinite;
}
@keyframes wsShine {
  0%, 58% { transform: translateX(-160%); }
  86%, 100% { transform: translateX(400%); }
}

.ws-back {
  transform: rotateY(180deg);
  background: var(--dark-card);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.ws-back-body {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 20px 44px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: #3a3a3c transparent;
}
.ws-back-body p { font-size: 14.5px; line-height: 1.42; }
.ws-back-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s var(--ease-out);
}
.ws-back-close:hover { background: rgba(255, 255, 255, 0.26); }
.ws-back .ws-fit {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.55) !important;
}

.ws-fit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-gray);
  font-size: 14px !important;
  color: var(--mid-gray) !important;
}

.ws-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  padding: 0 var(--page-margin);
  margin-top: var(--grid-gap);
}
.ws-nav-btn {
  height: 58px;
  border: none;
  border-radius: var(--radius-button);
  background: #ececea;
  color: var(--black);
  font-size: 19px;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.ws-nav-btn:hover { background: #dcdcd8; }
.ws-nav-btn:disabled { opacity: 0.35; cursor: default; }
.ws-nav-btn:disabled:hover { background: #ececea; }

.ws-cta {
  padding: clamp(48px, 6vw, 80px) var(--page-margin) 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.workshops-section .ws-cta { padding-top: var(--grid-gap); }
.ws-order {
  width: 100%;
  justify-content: center;
  height: 58px;
}

/* ---------- консультации ---------- */

.consulting-section { padding: clamp(44px, 5.5vw, 84px) 0; }
.consult-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap);
  padding: 0 var(--page-margin);
}
.consult-card {
  border: 1px solid var(--line-gray);
  border-radius: var(--radius-card);
  padding: clamp(28px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s;
}
.consult-card:hover { border-color: var(--mid-gray); }
.consult-card h3 {
  font-size: clamp(24px, 2.2vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.consult-for {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mid-gray);
  line-height: 1.6;
}
.consult-card > p:not(.consult-for):not(.eyebrow) { color: #3c3c3a; line-height: 1.42; font-size: 16px; }
.consult-card ul {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-gray);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.consult-card li {
  font-size: 15px;
  color: #3c3c3a;
  padding-left: 22px;
  position: relative;
}
.consult-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  font-size: 13px;
  color: var(--mid-gray);
}

/* ---------- отзывы ---------- */

.reviews-section {
  padding: clamp(56px, 7vw, 104px) 0;
  background: var(--soft-white);
}
/* Отзывы едут вправо лентой. Раньше была сетка 3×3: всё видно сразу,
   но и добавить новый отзыв означало перекраивать ряды. Лента растёт
   вправо сколько угодно, а что её нужно крутить — видно по обрезанной
   карточке у правого края и по стрелкам под лентой. */
.reviews-grid {
  display: flex;
  gap: var(--grid-gap);
  padding: 0 var(--page-margin);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--page-margin);
  scrollbar-width: none;
  scroll-behavior: smooth;
  align-items: stretch;
}
.reviews-grid::-webkit-scrollbar { display: none; }
.reviews-grid > * {
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 420px);
  scroll-snap-align: start;
}
/* хвост, чтобы последняя карточка не липла к краю экрана */
.reviews-grid::after { content: ""; flex: 0 0 1px; }

/* стрелки под лентой */
/* панель стоит НАД лентой: отзывы бывают длинными, и снизу стрелки
   уезжали за экран — сигнал «крути» до человека не доходил */
.rev-nav { display: flex; gap: 10px; padding: 0 var(--page-margin) 20px; justify-content: flex-end; }
.rev-nav-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-gray);
  background: var(--white);
  color: var(--black);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.rev-nav-btn:hover { background: var(--soft-white); }
.rev-nav-btn[disabled] { opacity: 0.3; cursor: default; }
/* Все карточки ленты одной высоты — по отзыву Антона Саркисяна: он взят
   за эталон. Раньше каждая жила своей высотой, и лента прыгала ступеньками.
   Отзывы длиннее эталона (Дмитрий Корсаков) не растягивают карточку —
   их текст листается внутри, см. .review-quote ниже. */
.review-card {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius-card);
  padding: clamp(24px, 2.4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 574px;
}
.review-quote {
  font-size: 16.5px;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: #1a1a1a;
  margin: 0;
  flex: 1;
  /* без min-height:0 flex-элемент не даёт себя сжать и скролл не включается */
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c9c9c5 transparent;
}
.review-quote::-webkit-scrollbar { width: 4px; }
.review-quote::-webkit-scrollbar-thumb { background: #c9c9c5; border-radius: 100px; }
.review-quote::-webkit-scrollbar-track { background: transparent; }
/* класс ставит script.js только тем отзывам, что не влезли: подпись у нижнего
   края тает, и видно, что текст продолжается */
.review-quote.has-more {
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
}
.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-gray);
  min-height: 88px;
}
.review-avatar {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--soft-white);
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-meta { min-width: 0; }
.review-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin: 0 0 3px;
}
.review-role {
  font-size: 12px;
  line-height: 1.35;
  color: var(--mid-gray);
  margin: 0;
}
.review-avatar-heart {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2b2b2b;
}
.review-avatar-heart svg { display: block; }

.review-card-cta {
  background: #0a84ff;
  color: var(--white);
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  transition: background 0.3s var(--ease-out);
}
.review-card-cta:hover { background: #0071e3; }
.review-cta-title {
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
}
.review-cta-sub {
  font-size: 17px;
  font-weight: 600;
  opacity: 0.92;
  margin: 0;
}

/* в 3 колонки длинная должность Данилы занимает до 4 строк —
   выравниваем линию-разделитель по самой высокой подписи ряда */
@media (min-width: 1101px) {
  .review-author { min-height: 106px; }
}
/* На телефоне карточка шире — почти во всю ширину экрана. В прежних 280px
   строка вмещала 3-4 слова, текст шёл лесенкой и читался тяжело. Край
   следующей карточки всё равно виден — понятно, что ленту можно крутить.
   Высота своя: тот же отзыв на узкой карточке занимает больше строк. */
@media (max-width: 768px) {
  .reviews-grid > * { width: min(86vw, 400px); }
  /* svh — высота экрана с учётом адресной строки браузера: на маленьких
     телефонах карточка ужимается и всегда видна целиком */
  .review-card { height: min(600px, 78svh); }
}

/* ---------- образование ---------- */

.edu-section { padding: clamp(44px, 5.5vw, 84px) 0; }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px);
  padding: 0 var(--page-margin);
  border-top: 1px solid var(--line-gray);
}
.edu-col { padding-top: clamp(28px, 3vw, 48px); }
.edu-col .dna-label { margin-top: 28px; }
.edu-col .dna-label:first-child { margin-top: 0; }
.edu-list { display: flex; flex-direction: column; }
.edu-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-gray);
  font-size: 16px;
  color: #3c3c3a;
}
.edu-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mid-gray);
  margin-top: 4px;
}

/* ---------- фоновые сцены для хедеров секций ---------- */

.head-scene {
  position: relative;
  margin: 0 8px clamp(32px, 4vw, 56px);
  border-radius: var(--radius-hero);
  overflow: hidden;
  color: var(--white);
  padding: clamp(48px, 6vw, 96px) var(--page-margin);
  background-size: cover;
  background-position: center;
}
.head-scene .eyebrow { color: rgba(255, 255, 255, 0.65); }
.head-scene .section-intro { color: rgba(255, 255, 255, 0.85); }
.head-scene-orange { background-image: url("fons/robot-orange-1920x1080.png"); }
.head-scene-blue { background-image: url("fons/laptop-blue-1920x1080.png"); }

.reviews-scene {
  position: relative;
  margin: 0 8px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  color: var(--white);
  background-image: url("fons/folder-green-1920x1080.png");
  background-size: cover;
  background-position: center;
}
.reviews-scene .eyebrow { color: rgba(255, 255, 255, 0.65); }
.reviews-scene .section-intro { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 768px) {
  .head-scene-orange { background-image: url("fons/robot-orange-1080x1350.png"); }
  .head-scene-blue { background-image: url("fons/laptop-blue-1080x1350.png"); }
  .reviews-scene { background-image: url("fons/folder-green-1080x1350.png"); }
}

/* ---------- final CTA ---------- */

.final-hero {
  position: relative;
  min-height: 100svh;
  margin: 8px;
  border-radius: var(--radius-hero);
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--white);
}
.final-bg { position: absolute; inset: 0; }
.final-content {
  position: relative;
  z-index: 2;
  padding: clamp(64px, 9vw, 140px) var(--page-margin);
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.final-content .eyebrow { color: rgba(255, 255, 255, 0.6); }
.final-title {
  font-size: clamp(40px, 5.8vw, 100px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 900;
}
.final-text {
  max-width: 620px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}
.final-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.final-hero .button { background: var(--white); }
.final-hero .button:hover { background: var(--light-gray); }
.final-hero .button-ghost { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.final-hero .button-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- footer ---------- */

.footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(56px, 7vw, 96px) 0 8px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--grid-gap);
  padding: 0 var(--page-margin) clamp(48px, 6vw, 80px);
}
.footer-text { color: rgba(255, 255, 255, 0.65); font-size: 15.5px; line-height: 1.5; max-width: 380px; }
.footer-link {
  display: block;
  font-size: 15.5px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.25s;
}
.footer-link:hover { color: var(--white); }
.footer-legal {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6f6f6f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 var(--page-margin) 32px;
}
.footer-scene {
  position: relative;
  margin: 0 8px 0;
  height: clamp(240px, 38vw, 460px);
  border-radius: var(--radius-hero) var(--radius-hero) 20px 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.footer-scene-bg { position: absolute; inset: 0; }
.footer-giant {
  position: relative;
  z-index: 2;
  font-size: clamp(36px, 7.5vw, 132px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-align: center;
  white-space: nowrap;
}

/* ---------- анимации появления ---------- */

.anim-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.anim-up.is-visible { opacity: 1; transform: translateY(0); }

.reveal-media {
  clip-path: inset(6% 4% 6% 4% round var(--radius-section));
  transition: clip-path 1.1s var(--ease-out);
}
.reveal-media.is-visible { clip-path: inset(0 0 0 0 round var(--radius-hero)); }

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .hero-nav { display: none; }
  .burger { display: flex; }
  .useful-grid { grid-template-columns: repeat(2, 1fr); }
  .now-content { grid-template-columns: 1fr; }
  .now-infographic { justify-self: start; max-width: 560px; }
  .now-scrolly[data-flight="off"] .now-section {
    aspect-ratio: auto;
    min-height: 92vh;
  }
  .now-stage {
    position: static;
    margin-top: 32px;
    height: auto;
  }
  .now-cam { height: auto; }
  .now-render {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
  }
  .strengths-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-card { min-height: 260px; }
  .ws-card { flex-basis: calc((100% - 2 * var(--page-margin) - var(--grid-gap)) / 2); }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .dna-groups { grid-template-columns: 1fr; gap: 28px; }
  .edu-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .statement-content { grid-column: 1 / -1; grid-row: 2; }
  .statement-photo { grid-column: 3 / span 3; }
  .section-head .section-intro { grid-column: 1 / -1; }
  .floating-nav a:not(.pill-logo):not(.pill-cta) { display: none; }
  .floating-nav .pill-menu { display: inline-flex; align-items: center; }
}

@media (max-width: 768px) {
  .hero { margin: 6px; border-radius: 18px; min-height: calc(100svh - 12px); }
  .header-hero { top: 20px; left: 20px; right: 20px; }
  .hero-title { font-size: clamp(44px, 12.5vw, 72px); }
  .hero-content { padding-left: 24px; padding-right: 24px; }
  .grid-12 { display: block; }
  .statement-eyebrow, .section-head .eyebrow { margin-bottom: 20px; }
  .section-head .section-title { margin-bottom: 24px; }
  .statement-body { margin-top: 28px; }
  .statement-photo { width: min(210px, 56vw); margin-bottom: 28px; }
  .useful-grid { grid-template-columns: 1fr; }
  .useful-card { min-height: 0; }
  .useful-card h3 { margin-top: 28px; }
  .data-section { grid-template-columns: 1fr; }
  .data-col { border-right: none; border-top: 1px solid var(--line-gray); }
  .data-col:first-child { border-top: none; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-media { min-height: 320px; }
  .chat { max-height: 420px; }
  .chat-msg { max-width: 92%; }
  .tl-item { grid-template-columns: 1fr; gap: 20px; }
  .strengths-grid { grid-template-columns: 1fr; }
  .strength-card { min-height: 0; }
  .strength-card h3 { margin-top: 28px; }
  .system-grid { grid-template-columns: 1fr; }
  .system-card { min-height: 0; }
  .ws-card { flex-basis: 80%; }
  .ws-nav { display: none; }
  .consult-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-giant { font-size: clamp(22px, 8.5vw, 40px); }
  .now-section, .final-hero { margin: 6px; border-radius: 18px; }
  .float-img { opacity: 0.85; }
  .fi-3, .fi-6, .fi-7 { display: none; }
  .gallery-section { min-height: 110vh; }
  .reveal-media { clip-path: inset(0 0 0 0 round 18px); }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .anim-up { opacity: 1; transform: none; }
  .reveal-media { clip-path: inset(0 0 0 0 round var(--radius-hero)); }
  .ng-curve { stroke-dashoffset: 0; }
  .ng-future, .ng-arrow, .ng-dot, .ng-label, .ng-floor, .ng-ribbon, .ng-drop, .ng-glow, .ng-voxel { opacity: 1; }
  .ng-pulse { opacity: 0; }
}
