/* === Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --clr-green: #9ef605;
  --clr-green-dark: #63d148;
  --clr-green-light: #baf605;
  --clr-bg: #111111;
  --clr-white: #ffffff;
  --clr-grey-1: #979ea5;   /* Figma txt-grey-1 */
  --clr-surface: #f2f3f4;  /* Figma background (светлые секции) */
  --clr-line-dark: rgba(158, 246, 5, 0.5);  /* Figma #9EF60580 */
  --clr-line-light: rgba(0, 0, 0, 0.2);     /* Figma #00000033 */
  --ticker-h: 24px;                          /* высота нижней бегущей строки */
}

/* === Переходы между страницами ===
   Родной механизм браузера: страницы плавно сменяют друг друга вместо
   белого мигания. JavaScript не участвует, скрипты не затрагиваются.
   Если браузер не поддерживает — загрузка остаётся обычной. */
@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 0.3s;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Onest', sans-serif;
  background: #111111;
  color: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--ticker-h);  /* резерв снизу под бегущую строку */
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--clr-green);
  outline-offset: 2px;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* === Fonts ===
   woff2 (в ~3 раза легче ttf) + font-display: optional: с preload шрифт
   успевает до первой отрисовки, а на медленной сети страница не «перепрыгивает»
   шрифтом посреди скролла (нет рефлоу). */
@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: optional;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: optional;
}
@font-face {
  font-family: 'Onest';
  src: url('../fonts/Onest-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: optional;
}
@font-face {
  font-family: 'TikTok Sans';
  src: url('../fonts/TikTokSans_18pt_ExtraExpanded-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: optional;
}

/* === INTRO Section === */
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.intro-animate .intro-subtitle {
  opacity: 0;
  animation: slide-down 0.6s ease 0.1s forwards;
}

.intro-animate .intro-title-word {
  opacity: 0;
}

.intro-animate .intro-title-word:nth-child(1) {
  animation: type-in 0.6s ease 0.4s forwards;
}
.intro-animate .intro-title-word:nth-child(2) {
  animation: type-in 0.6s ease 0.6s forwards;
}
.intro-animate .intro-title-word:nth-child(3) {
  animation: type-in 0.6s ease 0.8s forwards;
}

.intro-animate .intro-video-label {
  opacity: 0;
  animation: fade-up 0.6s ease 1.2s forwards;
}

.intro-animate .intro-player {
  opacity: 0;
  animation: fade-up 0.6s ease 1.5s forwards;
}

.intro-animate .intro-under-video {
  opacity: 0;
  animation: fade-up 0.6s ease 1.8s forwards;
}

.intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 68px 80px 300px;
  gap: 360px;
  background: #111111;
  overflow: visible;
  min-height: 100vh;
}

.intro-spacer {
  height: 60px;
  flex-shrink: 0;
}

/* === ROUND — rotating circle === */
.intro-round {
  position: absolute;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  width: 1700px;
  height: 1700px;
  pointer-events: none;
  opacity: 0;
}

.intro-round-img {
  width: 100%;
  height: 100%;
  animation: rotate-circle 60s linear infinite;
  transform-origin: center;
  display: block;
}

@keyframes rotate-circle {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* === Circle Entrance === */
.intro-animate .intro-round {
  animation: circle-enter 1.2s cubic-bezier(0.25, 0.1, 0.25, 1) 0.8s both;
}

@keyframes circle-enter {
  from { transform: translateX(-50%) scale(2.5); opacity: 0; }
  to   { transform: translateX(-50%) scale(1);   opacity: 1; }
}

@keyframes header-down {
  from { transform: translateY(-120%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* === Blurs === */
.intro-blurs {
  position: absolute;
  top: 662px;
  left: 166px;
  pointer-events: none;
}

@keyframes glow-grow {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.intro-blur {
  width: 1100px;
  height: 586px;
  background: radial-gradient(ellipse, rgba(99, 209, 72, 0.60) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
}

.intro-animate .intro-blur {
  animation: glow-grow 0.8s ease 1.7s forwards;
}

/* === Header === */
.header {
  position: fixed;
  top: var(--notice-h, 0px);
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Появление шапки — только на главной, в связке с анимацией круга */
.header--home {
  animation: header-down 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s backwards;
}

/* === Полоска уведомления сверху === */
.notice {
  height: var(--notice-h, 0px);
  overflow: hidden;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: var(--clr-green);
}

.notice-text {
  flex: 1;
  text-align: center;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  color: #000000;
}

.notice-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .notice-text {
    font-size: 11px;
  }
}

.header.is-hidden {
  transform: translateY(-130%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2.2vw, 32px);
  width: 100%;
  max-width: 1280px;
  height: 60px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 8px 8px 8px 0;
  background: linear-gradient(180deg, #323232 0%, #1c1c1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  min-width: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3.2vw, 48px);
  flex: 1;
  min-width: 0;
}

.header-logo {
  width: 122px;
  height: 44px;
  flex-shrink: 0;
}

.header-logo-img {
  width: 100%;
  height: 100%;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-menu-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.70);
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (hover: hover) {.header-menu-item:hover {
  color: #ffffff;
}}

.header-menu-item--active {
  color: var(--clr-green);
}

.header-contact {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.2vw, 32px);
  flex-shrink: 0;
}

.header-phone {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social-link {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-social-icon {
  width: 28px;
  height: 28px;
}

.header-contact .button-small-green {
  width: 164px;
  padding-right: 20px;
  padding-left: 20px;
}

.header-burger {
  display: none;
}

.header-mobile-panel {
  display: none;
}

/* === Body === */
.intro-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 68px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.intro-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.intro-subtitle {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
  margin-top: -8px;
}

.intro-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.intro-title-word {
  height: auto;
  max-width: 100%;
}

/* Video block */
.intro-video-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 816px;
}

.intro-video-label {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: -12px;
}

.intro-player {
  position: relative;
  width: 808px;
  height: 464px;
  overflow: visible;
}

.intro-player-fr {
  position: absolute;
  border: 1px solid rgba(158, 246, 5, 0.40);
  border-radius: 20px;
  pointer-events: none;
}

.intro-player-fr-2 {
  top: 27px;
  left: 12px;
  width: 784px;
  height: 437px;
}

.intro-player-fr-3 {
  top: 56px;
  left: 0;
  width: 808px;
  height: 396px;
}

.intro-player-window {
  position: absolute;
  top: 0;
  left: 24px;
  width: 760px;
  height: 440px;
  border-radius: 12px;
  overflow: hidden;
}

.intro-player-window::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.intro-player-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.intro-player-play {
  position: absolute;
  top: 150px;
  left: 310px;
  width: 140px;
  height: 140px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 2;
}

.intro-player-play-circle {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
  transition: border-color 0.35s ease, transform 0.35s ease;
  transform-origin: center;
}

.intro-player-play-circle--1 {
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(186, 246, 5, 0.30);
}

.intro-player-play-circle--2 {
  top: 13px;
  left: 13px;
  width: 114px;
  height: 114px;
  border: 1px solid rgba(186, 246, 5, 0.30);
}

.intro-player-play-circle--3 {
  top: 22px;
  left: 22px;
  width: 96px;
  height: 96px;
  background-color: var(--clr-green);
  border: none;
}

.intro-player-play-circle--3::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image: linear-gradient(180deg, #97e031 0%, #47b22d 100%);
  transition: opacity 0.35s ease;
}

@media (hover: hover) {.intro-player-play:hover .intro-player-play-circle--1 {
  border-color: rgba(186, 246, 5, 0.50);
  transform: scale(1.06);
}}

@media (hover: hover) {.intro-player-play:hover .intro-player-play-circle--2 {
  border-color: rgba(186, 246, 5, 0.50);
  transform: scale(1.06);
}}

@media (hover: hover) {.intro-player-play:hover .intro-player-play-circle--3::before {
  opacity: 0;
}}

.intro-player-play-arrow {
  position: absolute;
  top: 52px;
  left: 60px;
  width: 28px;
  height: 36px;
  background: #030303;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Under video */
.intro-under-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.intro-logos {
  display: flex;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.intro-logo-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-width: 0;
}

.intro-logo-card-img {
  width: 100%;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-logo-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.intro-logo-card-text {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
  word-wrap: break-word;
}

.intro-divider {
  width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.intro-under-video .button-green {
  padding: 20px 40px;
}

/* === Buttons === */
.button-green {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 64px;
  border: 1px solid rgba(232, 255, 163, 0.40);
  border-radius: 12px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
  color: #030303;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.4s ease;
}

.button-green:focus-visible {
  outline: 2px solid var(--clr-green);
  outline-offset: 2px;
}

.button-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
  z-index: -1;
  transition: opacity 0.2s ease;
}

.button-green::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-green);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {.button-green:hover::after {
  opacity: 1;
}}

.button-small-green {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 175px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.67;
  color: #030303;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.4s ease;
}

.button-small-green::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
  z-index: -1;
  transition: opacity 0.2s ease;
}

.button-small-green::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-green);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {.button-small-green:hover::after {
  opacity: 1;
}}

/* === SERVICES Section === */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: #111111;
  position: relative;
  z-index: 1;
}

/* === Shared Glow === */
.glow {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.tabs {
  display: flex;
  gap: 4px;
}
.tab {
  padding: 16px 24px;
  border: 0;
  border-radius: 1000px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #979ea5;
  background: #242629;
  box-shadow: inset 0 0 0 1px transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
@media (hover: hover) {
  .tab:hover { color: #f2f3f4; background: #3a3e43; }
}
.tab--active { color: #ffffff; background: transparent; box-shadow: inset 0 0 0 1px var(--clr-green); }

@media (hover: hover) {.tab--active:hover { color: #ffffff; background: transparent; box-shadow: inset 0 0 0 1px var(--clr-green); }}

/* === Shared: Round Arrows === */
/* Единый компонент стрелок слайдера (Figma ARROW-Side).
   normal: тёмный круг #242629, зелёная стрелка; :hover — зелёная заливка,
   тёмная стрелка. Используется в баннере, «Кейсах», отзывах и карточках корпоратива. */
.ui-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 38, 41, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.ui-arrow svg path {
  stroke: var(--clr-green);
}

@media (hover: hover) {.ui-arrow:hover {
  background: var(--clr-green);
  border-color: transparent;
}}

@media (hover: hover) {.ui-arrow:hover svg path {
  stroke: #111111;
}}

.ui-arrow--dim {
  background: rgba(36, 38, 41, 0.40);
  opacity: 0.3;
}


@media (hover: hover) {.ui-arrow--dim:hover {
  background: rgba(36, 38, 41, 0.40);
  opacity: 0.3;
}}

.ui-arrow svg {
  display: block;
}

/* === Section Header (shared) === */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  padding: 96px 80px 20px;
  opacity: 0;
}

.section-header-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
  padding-bottom: 8px;
}

.section-header-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.section-header-num {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--clr-green);
  flex-shrink: 0;
}

.section-header-line-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.section-header-line {
  width: 100%;
  height: 1px;
  background: rgba(158, 246, 5, 0.50);
}

.section-header-desc {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.50);
  flex-shrink: 0;
  white-space: nowrap;
  text-align: right;
}

/* Stripes */
.services-stripes {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 72px 80px 0;
  gap: 0;
  overflow: visible;
}

.services-stripe {
  cursor: pointer;
  padding: 28px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.30);
  position: relative;
  background-color: transparent;
  border-radius: 0;
  transition: color 0.4s ease, border-radius 0.5s ease;
}

.services-stripe::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fx-fill);
  border-radius: var(--fx-radius);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--fx-timing);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) {.services-stripe:hover::after {
  transform: scaleY(1);
}}

.services-stripe:last-of-type {
  border-bottom: none;
}

.services-stripe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 113px;
  position: relative;
  min-height: 44px;
}

.services-stripe-text {
  display: flex;
  align-items: baseline;
  flex: 1;
}

.services-stripe-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
  transition: color 0.4s ease;
  flex-shrink: 0;
  width: 360px;
}

.services-stripe-desc {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #979ea5;
  transition: color 0.4s ease;
}

/* Arrow */
.services-stripe-arrow {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.arrow-small {
  position: relative;
  width: 21px;
  height: 12px;
}

.arrow-small-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--clr-green);
  transform: translateY(-50%);
  transition: background-color 0.4s ease;
}

.arrow-small-tip {
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--clr-green);
  border-top: 1px solid var(--clr-green);
  transform: translateY(-50%) rotate(45deg);
  transition: border-color 0.4s ease;
}

/* Hover image */
.services-stripe-hover-image {
  position: absolute;
  right: 203px;
  top: 50%;
  transform: translateY(-50%) translateY(15px);
  width: 260px;
  height: 360px;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@media (hover: hover) {.services-stripe:hover .services-stripe-hover-image {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
  transition-delay: 0.15s;
}}

.services-stripe-hover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Hovered stripe shows button, hides arrow */
.services-stripe .button-small-black {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@media (hover: hover) {.services-stripe:hover .services-stripe-arrow {
  opacity: 0;
}}

@media (hover: hover) {.services-stripe:hover .button-small-black {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.25s;
}}

@media (hover: hover) {/* Stripe hover */
.services-stripe:hover {
  z-index: 200;
  border-radius: 16px;
}}

@media (hover: hover) {.services-stripe:has(+ .services-stripe:hover) {
  border-bottom-color: transparent;
}}

@media (hover: hover) {.services-stripe:hover .services-stripe-title {
  color: #030303;
}}

@media (hover: hover) {.services-stripe:hover .services-stripe-desc {
  color: #030303;
}}

@media (hover: hover) {.services-stripe:hover .arrow-small-line {
  background: #030303;
}}

@media (hover: hover) {.services-stripe:hover .arrow-small-tip {
  border-color: #030303;
}}

/* Unique CTA */
.services-unique {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 96px 80px 96px;
  isolation: isolate;
}

.services-unique-glow {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: 964px;
  height: 217px;
  border-radius: 50%;
  background: rgba(39, 255, 24, 0.22);
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}

.services-unique-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 580px;
}

.services-unique-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
}

.services-unique-desc {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.60);
  text-align: center;
}

/* Unique CTA button — desktop Figma: Button-black 226×62 */
.services-unique .button-black {
  padding: 24px 40px;
  line-height: 1;
}

/* Button black */
.button-black {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 64px;
  background: #030303;
  border-radius: 12px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.2s ease;
}

@media (hover: hover) {.button-black:hover {
  color: var(--clr-green);
}}

/* Button small black */
.button-small-black {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: #030303;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.67;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.2s ease;
}

@media (hover: hover) {.button-small-black:hover {
  color: var(--clr-green);
}}

/* === KEY-VALUES Section === */
.keyvalues {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 0;
  background: #111111;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.keyvalues-glow {
  top: 444px;
  left: 50%;
  transform: translateX(-50%);
  width: 1078px;
  height: 316px;
  background: radial-gradient(ellipse, rgba(16, 226, 37, 0.55) 0%, rgba(16, 226, 37, 0.18) 50%, transparent 72%);
  filter: blur(70px);
  opacity: 0;
}

.keyvalues-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 72px 80px;
}

.keyvalues-number {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 120px;
  line-height: 1;
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.keyvalues-big-desc {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: #ffffff;
  text-align: center;
  max-width: 800px;
  opacity: 0;
}

/* KEY-VALUES Animations */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes type-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.keyvalues-animate .keyvalues-number-char {
  display: inline-block;
  opacity: 0;
  animation: type-in 0.1s ease forwards;
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.keyvalues-animate .keyvalues-big-desc {
  opacity: 0;
  animation: fade-up 0.6s ease 0.6s forwards;
}

.keyvalues-animate .keyvalues-left {
  opacity: 0;
  animation: fade-up 0.6s ease 0.9s forwards;
}

.keyvalues-animate .keyvalues-card--1 {
  opacity: 0;
  animation: fade-up 0.6s ease 1.05s forwards;
}

.keyvalues-animate .keyvalues-card--2 {
  opacity: 0;
  animation: fade-up 0.6s ease 1.2s forwards;
}

.keyvalues-animate .keyvalues-card--3 {
  opacity: 0;
  animation: fade-up 0.6s ease 1.35s forwards;
}

.keyvalues-animate .keyvalues-card--4 {
  opacity: 0;
  animation: fade-up 0.6s ease 1.2s forwards;
}

.keyvalues-animate .keyvalues-glow {
  animation: glow-in 0.8s ease 1.5s forwards;
}

.keyvalues-animate .keyvalues-cta-area {
  animation: fade-up 0.6s ease 1.6s forwards;
}

@keyframes glow-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.keyvalues-cards {
  display: flex;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  padding: 0 80px;
}

.keyvalues-left {
  width: 421px;
  flex-shrink: 0;
  min-height: 100%;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: #ffffff;
    border-radius: 12px;
  }

.keyvalues-left-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.keyvalues-left-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.keyvalues-left-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.keyvalues-left-quote {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #111111;
}

.keyvalues-left-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.keyvalues-left-person {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
}

.keyvalues-left-role {
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #111111;
}

.keyvalues-right {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
}

.keyvalues-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 12px;
  opacity: 0;
}

.keyvalues-card--1 {
  background: linear-gradient(180deg, var(--clr-green-dark) 0%, var(--clr-green-light) 100%);
}

.keyvalues-card--2 {
  background: linear-gradient(180deg, var(--clr-green-dark) 0%, var(--clr-green-light) 100%);
}

.keyvalues-card--3 {
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
}

.keyvalues-card--4 {
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
}

.keyvalues-card-num {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: #030303;
}

.keyvalues-card-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.keyvalues-card-title {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #030303;
}

.keyvalues-card-desc {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #030303;
}

.keyvalues .section-header-desc {
  color: #979ea5;
  line-height: 1.3;
}

.keyvalues-cta-area {
  display: flex;
  justify-content: center;
  padding: 48px 80px 96px;
  opacity: 0;
}

.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 32px 24px 48px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 16px 120px rgba(158, 246, 5, 0);
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {.button-arrow:hover {
  color: var(--clr-green);
  background-color: #030303;
  box-shadow: 0 16px 120px rgba(158, 246, 5, 0.50);
}}

.button-arrow-label--mobile {
  display: none;
}

.button-arrow-icon {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 17px;
  transition: width 0.2s ease;
}

.button-arrow-icon-line {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  background: var(--clr-green);
  transition: background-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.button-arrow-icon-tip {
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 3px solid var(--clr-green);
  border-top: 3px solid var(--clr-green);
  transition: border-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.button-arrow:hover .button-arrow-icon,
.s-dir-arrow:hover .button-arrow-icon {
  width: 32px;
}}

/* === CASES Section === */
.cases {
  background: #030303;
  padding-bottom: 0;
  backface-visibility: hidden; /* fix: chromium scroll seam — можно удалить, если не нужен */
}

.cases-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.cases .section-header-desc {
  color: #979ea5;
  line-height: 1.3;
}

.cases-cta-area {
  display: flex;
  justify-content: center;
  padding: 48px 80px 96px;
  opacity: 0;
}

.cases-wrapper {
  width: 100%;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cases-tabs {
  display: flex;
  gap: 4px;
  padding: 72px 0 0;
  justify-content: center;
  opacity: 0;
}

.cases-slider {
  opacity: 0;
}

.cases-card {
  position: relative;
  width: 100%;
  height: 600px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  transition: transform 0s 0.5s;
}

.cases-card.is-sliding-out {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cases-card.is-sliding-in {
  transform: translateY(-30px);
  opacity: 0;
}

.cases-card.is-reset {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.cases-card .cases-card-about {
  transform-origin: bottom;
}

.cases-card.is-reset .cases-card-about {
  animation: fade-up 0.6s ease 0.25s both;
}

.cases-card.is-reset .cases-card-controls {
  animation: fade-up 0.5s ease 0.45s both;
}

/* CASES entrance */
.cases-animate .cases-tabs {
  opacity: 0;
  animation: fade-up 0.6s ease 0.4s forwards;
}

.cases-animate .cases-slider {
  opacity: 0;
  animation: fade-up 0.6s ease 0.7s forwards;
}

.cases-animate .cases-cta-area {
  animation: fade-up 0.6s ease 0.9s forwards;
}

.cases-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 20px;
}

.cases-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cases-card-bg.is-switching-out {
  opacity: 0;
  transform: translateX(10px);
}

.cases-card-bg.is-switching-out.is-switching-prev {
  transform: translateX(-10px);
}

.cases-card-bg.is-switching-in {
  transform: translateX(-10px);
}

.cases-card-bg.is-switching-in.is-switching-prev {
  transform: translateX(10px);
}

.cases-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.80) 100%);
  z-index: 1;
  pointer-events: none;
}

.cases-card-about {
  position: relative;
  z-index: 2;
  width: 460px;
  max-width: 460px;
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--clr-green-light) 0%, var(--clr-green-dark) 100%);
}

.cases-card-txt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cases-card-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #111111;
}

.cases-card-desc {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #111111;
  max-width: 100%;
}

.cases-card-btn {
  width: fit-content;
  padding: 16px 20px;
  line-height: 1;
  border-radius: 8px;
}

.cases-card-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cases-bullits {
  display: flex;
  gap: 12px;
  padding: 0 24px;
}

.cases-bullit {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.40);
  transition: background 0.2s ease;
}

.cases-bullit--active {
  background: var(--clr-green-dark);
}

.cases-arrows {
  display: flex;
  gap: 8px;
}

/* визуал стрелки — единый .ui-arrow (см. компонент выше) */

/* === REVIEWS Section === */
.reviews {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 96px;
  background: #111111;
  backface-visibility: hidden; /* fix: chromium scroll seam — можно удалить, если не нужен */
}

/* Отзывы: галерея как в дипломах. Контейнер без лишнего вертикального отступа,
   подписи — светлые (секция тёмная). */
.reviews .c-dip-inner {
  /* Боковой отступ на мобиле (16px) оставляем — от него считается full-bleed галереи. */
  padding-top: 0;
  padding-bottom: 0;
}

@keyframes bounce-left {
  0% { margin-left: 0; }
  40% { margin-left: 15px; }
  100% { margin-left: 0; }
}

@keyframes bounce-right {
  0% { margin-left: 0; }
  40% { margin-left: -15px; }
  100% { margin-left: 0; }
}

.reviews .section-header-desc {
  color: #979ea5;
  line-height: 1.3;
}

/* Unified section-header fade-up */
.keyvalues-animate .section-header,
.cases-animate .section-header,
.reviews-animate .section-header,
.faq-animate .section-header,
.services-animate .section-header,
.banner-animate .section-header {
  animation: fade-up 0.6s ease forwards;
}

/* SERVICES entrance */
.services-stripes {
  opacity: 0;
  transform: translateY(30px);
}
.services-unique {
  opacity: 0;
  transform: translateY(30px);
}
.services-animate .services-stripes {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.services-animate .services-unique {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

/* BANNER entrance */
.banner-card {
  opacity: 0;
  transform: translateY(30px);
}
.banner-bullits {
  opacity: 0;
  transform: translateY(30px);
}
.banner-animate .banner-card {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.banner-animate .banner-bullits {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

/* === FORM Section === */
.form-section {
  position: relative;
  background: url('../images/shared/form-background.jpg') center/cover no-repeat;
}

.form-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.70) 50%, rgba(0, 0, 0, 0.30) 100%);
  pointer-events: none;
}

.form-section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 80px;
}

.form-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.80);
  border-radius: 12px;
  min-height: 474px;
}

.form-left-text {
  display: flex;
  flex-direction: column;
}

.form-left-top {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: #ffffff;
}

.form-left-highlight {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: var(--clr-green);
}

.form-left-sub {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
}

.form-right {
  width: 416px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 12px;
  backdrop-filter: blur(40px);
}

.form-right-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: #ffffff;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.60);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.form-field:focus-within {
  background: #ffffff;
}

.form-field-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-field-label {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #030303;
  padding: 0;
}

.form-field-error {
  display: none;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #f73b3b;
}

.form-field.is-error .form-field-error {
  display: block;
}

.form-field.is-error {
  background: #ffffff;
}

.form-field-input {
  padding: 0;
  background: none;
  border: none;
  outline: none;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #030303;
  resize: none;
}

.form-field-input::placeholder {
  color: rgba(0, 0, 0, 0.30);
}

.form-field-textarea {
  height: 68px;
}

.form-submit {
  width: 100%;
}

.form-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-legal {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.form-checkbox input {
  display: none;
}

.form-checkbox-mark {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.50);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.form-checkbox input:checked + .form-checkbox-mark {
  background: var(--clr-green);
  border-color: var(--clr-green);
}

.form-checkbox input:checked + .form-checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border-right: 2px solid #030303;
  border-bottom: 2px solid #030303;
  transform: rotate(45deg) translate(-1px, -1px);
}

.form-legal-text {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
}

.form-legal-text a {
  color: var(--clr-green-dark);
}

/* Кнопка отправки неактивна, пока не отмечено согласие */
.form-bottom:has(input[name="consent"]:not(:checked)) .form-submit,
.form-modal-bottom:has(input[name="consent"]:not(:checked)) .form-modal-submit {
  border-color: transparent;
  box-shadow: none;
}

.form-bottom:has(input[name="consent"]:not(:checked)) .form-submit::before,
.form-modal-bottom:has(input[name="consent"]:not(:checked)) .form-modal-submit::before {
  background: #bac1c8;
}

.form-bottom:has(input[name="consent"]:not(:checked)) .form-submit::after,
.form-modal-bottom:has(input[name="consent"]:not(:checked)) .form-modal-submit::after {
  opacity: 0;
}

/* Дрожание строки согласия, если жмут отправку без галочки */
@keyframes legal-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.form-legal.is-shake {
  animation: legal-shake 0.4s ease;
}

/* === FOOTER === */
.footer {
  background: #030303;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-cols {
  display: flex;
  gap: 0;
}

.footer-col {
  flex: 1;
  border: 1px solid #3a3e43;
  border-radius: 24px;
}

.footer-col + .footer-col {
  margin-left: -1px;
}

.footer-col--logo {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 40px;
}

.footer-logo {
  width: 260px;
  height: 91px;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-menu a {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {.footer-menu a:hover {
  color: var(--clr-green);
}}

.footer-col--services {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 64px 40px;
}

.footer-service {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {.footer-service:hover {
  color: var(--clr-green);
}}

.footer-col--contacts {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
}

.footer-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-phone {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: var(--clr-green);
  text-decoration: none;
  white-space: nowrap;
}

.footer-email {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: var(--clr-green);
  text-decoration: none;
}

.footer-address {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-link img {
  width: 48px;
  height: 48px;
}

.footer-btn {
  width: 100%;
}

.footer .button-ghost {
  padding: 24px 64px;
  line-height: 1;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
  width: 100%;
}

.footer-copy {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #979ea5;
}

.footer-legal {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #979ea5;
  text-decoration: none;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  visibility: hidden;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.modal-overlay.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
  align-items: flex-start;
  padding: 80px 0;
}

.modal-content {
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.modal-overlay.is-open .modal-content {
  opacity: 1;
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s ease;
}

@media (hover: hover) {.modal-close:hover {
  background: #252525;
}}

.modal-close svg {
  display: block;
}

/* FORM popup */
.modal-form {
  width: 540px;
  margin: auto 0;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 20px;
  box-shadow: 0 4px 48px rgba(0, 0, 0, 0.50);
}

.modal-form-inner {
  padding: 80px 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.modal-form-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  color: var(--clr-green);
  overflow-wrap: break-word;
}

.form-modal-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-modal-submit {
  width: 100%;
}

.modal-form .button-green {
  padding: 24px 40px;
  line-height: 1;
}

/* === BANNER Section === */
.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  background: #111111;
}

.banner-card {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  overflow: hidden;
  transition: transform 0s 0.4s;
}

.banner-card.is-sliding-out {
  transform: translateX(-30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.banner-card.is-sliding-out.is-sliding-prev {
  transform: translateX(30px);
}

.banner-card.is-sliding-in {
  transform: translateX(30px);
  opacity: 0;
}

.banner-card.is-sliding-in.is-sliding-prev {
  transform: translateX(-30px);
}

.banner-card.is-reset {
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, rgba(0, 0, 0, 0.25) 100%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 32px;
  gap: 40px;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.banner-label {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  color: #ffffff;
  width: fit-content;
}

/* Пустая метка не показывается (иначе остаётся пустая плашка) */
.banner-label:empty {
  display: none;
}

.banner-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  color: var(--clr-green);
  width: 756px;
  max-width: 100%;
}

.banner-subtitle {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #ffffff;
  margin: 0;
}

.banner-subtitle:empty {
  display: none;
}

.banner-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 64px;
  background-color: transparent;
  border: 1px solid var(--clr-green);
  border-radius: 12px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.43;
  color: #ffffff;
  white-space: nowrap;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

@media (hover: hover) {.button-ghost:hover {
  background-color: var(--clr-green);
  color: #030303;
}}

@media (hover: hover) {/* Button hover glow */
.button-green:hover,
.button-ghost:hover,
.button-small-green:hover {
  box-shadow: 0 16px 105px rgba(99, 209, 72, var(--glow-intensity, 0.40));
}}

.banner-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* визуал стрелки — единый .ui-arrow (см. компонент выше) */

.banner-bullits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.banner-bullit {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
}

.banner-bullit--active {
  background: var(--clr-green-dark);
}

/* ============================================== */
/* === MOBILE (max-width: 768px) === */
/* ============================================== */
@media (max-width: 1024px) {

  /* INTRO layout */
  .intro {
    padding: 232px 16px 32px;
    gap: 180px;
    min-height: auto;
    overflow: hidden;
  }

   .intro-round {
    width: 560px;
    height: 560px;
    top: 100px;
  }

  .intro-spacer {
    display: none;
  }

  /* HEADER mobile */
  .header {
    width: 100%;
    left: 0;
    top: var(--notice-h, 0px);
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 0;
  }

  .header--home {
    animation: header-down-mob 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.3s backwards;
  }

  .header.is-hidden {
    transform: translateY(-130%);
  }

  @keyframes header-down-mob {
    from { transform: translateY(-120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .header-inner {
    height: 56px;
    padding: 0 8px 0 0;
    justify-content: space-between;
  }

  .header-left {
    gap: 60px;
    flex: 0 1 auto;
  }

  .header-logo {
    width: 110px;
    height: 40px;
  }

  .header-menu,
  .header-social,
  .header-contact .button-small-green {
    display: none;
  }

  .header-contact {
    gap: 0;
  }

  .header-phone {
    font-size: 14px;
    line-height: 1.2;
  }

  /* Burger */
  .header-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    flex-shrink: 0;
  }

  .header-burger-line {
    width: 24px;
    height: 2px;
    background: var(--clr-green);
  }

  /* Burger → Cross */
  .header-burger.is-open .header-burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .header-burger.is-open .header-burger-line:nth-child(2) {
    opacity: 0;
  }
  .header-burger.is-open .header-burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile panel — outside header-inner, below it */
  .header-mobile-panel {
    display: none;
    flex-direction: column;
    gap: 48px;
    padding: 48px 24px 24px;
    border-radius: 12px;
    background: linear-gradient(180deg, #323232 0%, #1c1c1c 100%);
  }

  .header-mobile-panel.is-open {
    display: flex;
    animation: panelDown 0.7s cubic-bezier(0.33, 0, 0.1, 1);
  }

  .burger-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }

  .burger-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  @keyframes panelDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes panelUp {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
  }

  .header-mobile-panel.is-closing {
    animation: panelUp 0.25s ease forwards;
  }

  @keyframes itemIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .header-mobile-panel.is-open .header-mobile-link {
    animation: itemIn 0.4s cubic-bezier(0.33, 0, 0.1, 1) both;
  }
  .header-mobile-panel.is-open .header-mobile-link:nth-child(1) { animation-delay: 0.05s; }
  .header-mobile-panel.is-open .header-mobile-link:nth-child(2) { animation-delay: 0.1s; }
  .header-mobile-panel.is-open .header-mobile-link:nth-child(3) { animation-delay: 0.15s; }
  .header-mobile-panel.is-open .header-mobile-link:nth-child(4) { animation-delay: 0.2s; }
  .header-mobile-panel.is-open .header-mobile-link:nth-child(5) { animation-delay: 0.25s; }

  .header-mobile-panel.is-open .header-mobile-actions {
    animation: itemIn 0.4s cubic-bezier(0.33, 0, 0.1, 1) 0.35s both;
  }

  .header-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .header-mobile-link {
    display: block;
    font-family: 'Onest', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    color: #ffffff;
  }

  .header-mobile-link:active,
  .header-mobile-link:focus-visible {
    color: var(--clr-green);
  }

  .header-mobile-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-mobile-actions .button-small-green {
    display: flex;
    width: 164px;
    padding-right: 20px;
    padding-left: 20px;
    text-transform: uppercase;
  }

  .header-mobile-socials {
    display: flex;
    gap: 16px;
  }

  .header-mobile-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-mobile-social-icon {
    width: 36px;
    height: 36px;
  }

  /* === Text === */
  .intro-body {
    gap: 180px;
  }

  .intro-subtitle {
    font-size: 20px;
    line-height: 1.2;
  }

  .intro-title {
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }

  .intro-title-word {
    max-width: none;
  }
  .intro-title-word:nth-child(1) { width: 132px; }
  .intro-title-word:nth-child(2) { width: 320px; }
  .intro-title-word:nth-child(3) { width: 350px; }

  /* === Video player === */
  .intro-video-block {
    width: calc(100% + 32px);
    max-width: none;
    gap: 24px;
    padding: 0 16px;
    margin-top: 16px;
  }

  .intro-video-label {
    margin-bottom: -4px;
    font-size: 16px;
    line-height: 1.3;
  }

  /* Player — гибкий, aspect-ratio сохраняет пропорции */
  .intro-player {
    width: 100%;
    aspect-ratio: 358 / 224;
    height: auto;
  }

  .intro-player-fr {
    border-radius: 12px;
  }

  .intro-player-fr-2 {
    top: 6.56%;
    left: 5.38%;
    width: 89.23%;
    height: 90.16%;
  }

  .intro-player-fr-3 {
    top: 13.11%;
    left: 3.33%;
    width: 93.33%;
    height: 80.33%;
  }

  .intro-player-window {
    top: 0;
    left: 7.44%;
    width: 85.13%;
    height: 90.16%;
    border-radius: 12px;
  }

  .intro-player-play {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
  }

  .intro-player-play-circle--1 {
    width: 88px;
    height: 88px;
    top: 0;
    left: 0;
  }

  .intro-player-play-circle--2 {
    width: 72px;
    height: 72px;
    top: 8px;
    left: 8px;
  }

  .intro-player-play-circle--3 {
    width: 60px;
    height: 60px;
    top: 14px;
    left: 14px;
  }

  .intro-player-play-arrow {
    top: 33px;
    left: 38px;
    width: 18px;
    height: 23px;
  }

  /* === Blurs === */
  .intro-blurs {
    top: 558px;
    left: 0;
  }

  .intro-blur {
    width: 390px;
    height: 630px;
  }

  /* === Under-video === */
  .intro-under-video {
    width: calc(100% + 32px);
    padding: 0 16px;
  }

  .intro-logos {
    flex-direction: column;
    gap: 16px;
  }

  .intro-logo-card {
    flex: none;
    height: 168px;
    gap: 8px;
    padding: 0 16px;
  }

  .intro-logo-card-text {
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.3;
  }

  .intro-under-video .button-green {
    width: auto;
    padding: 16px 32px;
    font-size: 14px;
  }

  /* === Section Header (shared) === */
  .section-header {
    padding: 64px 16px 20px;
  }

  .section-header-title {
    font-size: 36px;
    padding-bottom: 0;
  }

  .section-header-bottom {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .section-header-line-wrap {
    flex: none;
    width: 100%;
  }

    .section-header-desc {
      font-size: 12px;
      white-space: normal;
      max-width: 200px;
      align-self: flex-end;
      text-align: right;
    }

  /* === SERVICES: header title (mobile Figma 30px) === */
  .services .section-header-title {
    font-size: 30px;
    line-height: 1.2;
  }

  /* === SERVICES Stripes === */
  .services-stripes {
    padding: 40px 16px 0;
  }

  .services-stripe {
    padding: 24px 0 20px;
  }

  .services-stripe::after {
    display: none;
  }

  .services-stripe-hover-image {
    display: none;
  }

  /* Mobile Figma: без CTA-кнопки внутри страйпов */
  .services-stripe .button-small-black {
    display: none;
  }

  .services-stripe-text {
    display: contents;
  }

  .services-stripe-inner {
    flex-wrap: wrap;
    gap: 4px 16px;
  }

  .services-stripe-title {
    width: 100%;
    font-size: 20px;
    line-height: 1.2;
    white-space: normal;
  }

  .services-stripe-desc {
    flex: 1;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.50);
  }

  /* === SERVICES Unique === */
  .services-unique {
    padding: 80px 16px 80px;
  }

  .services-unique-glow {
    width: 296px;
    height: 208px;
    top: 68px;
    margin-top: 0;
    filter: blur(80px);
    background: rgba(39, 255, 24, 0.22);
  }

  .services-unique-title {
    font-size: 20px;
    line-height: 1.2;
  }

  .services-unique-desc {
    font-size: 16px;
    line-height: 1.4;
  }

  /* Unique CTA button — mobile Figma: Button-black-mob 210×54 */
  .services-unique .button-black {
    padding: 20px 32px;
    font-size: 14px;
    line-height: 1;
  }

  .button-black {
    padding: 16px 40px;
    font-size: 12px;
    line-height: 1.667;
  }

  /* === BANNER === */
  .banner {
    padding: 0 16px;
  }

  .banner-card {
    height: 320px;
  }

  .banner-content {
    padding: 16px;
  }

  .banner-title {
    width: auto;
    font-size: 20px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .banner-subtitle {
    font-size: 14px;
  }

  .banner .button-ghost {
    border-radius: 8px;
  }

  .banner-arrows {
    display: none;
  }

  .button-ghost {
    padding: 16px 32px;
    font-size: 12px;
    line-height: 1.667;
  }

  /* === KEY-VALUES === */
  .keyvalues {
    padding-bottom: 0;
  }

  .keyvalues .section-header-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .keyvalues .section-header-desc {
    font-size: 12px;
    line-height: 1.3;
  }

  .keyvalues-glow {
    width: 358px;
    height: 269px;
    top: 323px;
    filter: blur(35px);
    background: radial-gradient(ellipse, rgba(99, 209, 72, 0.45) 0%, transparent 70%);
  }

  .keyvalues-big {
    padding: 40px 16px;
  }

  .keyvalues-number {
    font-size: 40px;
  }

  .keyvalues-big-desc {
    font-size: 14px;
    line-height: 1.3;
    max-width: none;
  }

  .keyvalues-cards {
    flex-direction: column;
    gap: 4px;
    padding: 0 16px;
  }

  .keyvalues-left {
    width: 100%;
    height: auto;
    min-height: auto;
    gap: 24px;
  }

  .keyvalues-card {
    padding: 16px;
    gap: 12px;
  }

  .keyvalues-card-num {
    font-size: 40px;
  }

  .keyvalues-card-title {
    font-size: 14px;
    line-height: 1.3;
  }

  .keyvalues-card-desc {
    font-size: 12px;
    line-height: 1.3;
  }

  .keyvalues-left-person {
    font-size: 14px;
  }

  .keyvalues-cta-area {
    padding: 32px 16px 64px;
  }

  .button-arrow {
    padding: 20px 24px 20px 40px;
    font-size: 12px;
    border-radius: 12px;
    border: 1px solid rgba(158, 246, 5, 0.50);
  }

  .button-arrow-label--desktop {
    display: none;
  }

  .button-arrow-label--mobile {
    display: inline;
  }

  /* === CASES === */
  .cases {
    padding-bottom: 0;
  }

  .cases-wrapper {
    padding: 0 16px;
    gap: 20px;
  }

  .cases .section-header-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .cases .section-header-desc {
    font-size: 12px;
    line-height: 1.3;
  }

  .cases-cta-area {
    padding: 32px 16px 64px;
  }

  /* CASES entrance → transition */
  .cases-tabs {
    opacity: 0;
    transform: translateY(30px);
  }
  .cases-slider {
    opacity: 0;
    transform: translateY(30px);
  }
  .cases-animate .cases-tabs {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
  }
  .cases-animate .cases-slider {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
  }

  /* Tabs — bubble pills, horizontal scroll */
  .cases-tabs {
    padding: 40px 16px 0;
    margin: 0 -16px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cases-tabs::-webkit-scrollbar {
    display: none;
  }

  /* Bubble tab */

  /* === REVIEWS — Rebuild: CSS native scroll === */
  .reviews {
    padding-bottom: 64px;
  }

  .reviews .section-header-title {
    font-size: 30px;
    line-height: 1.2;
    max-width: 210px;
  }

  .reviews .section-header-desc {
    font-size: 12px;
    line-height: 1.3;
  }

  /* === FORM === */
  .form-section-inner {
    flex-direction: column;
    gap: 16px;
    padding: 80px 16px;
  }

  .form-left {
    flex: none;
    min-height: auto;
    gap: 80px;
    padding: 32px 16px;
  }

  .form-left-top {
    font-size: 24px;
    line-height: 1.2;
  }

  .form-left-highlight {
    font-size: 24px;
    line-height: 1.2;
  }

  .form-left-sub {
    font-size: 16px;
    line-height: 1.4;
  }

  .form-right {
    width: auto;
    padding: 40px 16px;
  }

  .form-field {
    height: 56px;
  }

  .form-field-textarea {
    height: 100px;
  }

  .form-submit {
    padding: 16px 32px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.667;
  }

  /* === FOOTER === */
  .footer-inner {
    padding: 80px 16px 64px;
    gap: 24px;
  }

  .footer-cols {
    flex-direction: column;
    gap: -2px;
  }

  .footer-col {
    flex: none;
    border-color: #242629;
  }

  .footer-col + .footer-col {
    margin-left: 0;
  }

  .footer-col--logo {
    padding: 32px 32px 64px;
    gap: 64px;
  }

  .footer-logo {
    width: auto;
    height: 105px;
  }

  .footer-menu {
    gap: 24px;
  }

  .footer-menu a {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  .footer-col--services {
    padding: 64px 32px;
    gap: 24px;
  }

  .footer-service {
    font-size: 20px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.70);
  }

  .footer-col--contacts {
    padding: 64px 32px 32px;
    gap: 32px;
  }

  .footer-phone {
    font-size: 20px;
    line-height: 1.2;
  }

  .footer-email {
    font-size: 14px;
    line-height: 1.3;
  }

  .footer-address {
    font-size: 14px;
    line-height: 1.3;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    text-align: center;
  }

  .footer .button-ghost {
    border-radius: 8px;
    padding: 20px 32px;
    line-height: 1;
  }

  .modal-overlay.is-open {
    padding: 16px;
  }

  .modal-overlay.is-open .modal-content {
    transform: none;
  }

  .modal-overlay {
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }

  .modal-content {
    transform: none;
    transition: opacity 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  }

  .modal-close {
    width: 60px;
    height: 60px;
    background: #252525;
    border-radius: 50%;
    z-index: 1100;
  }

  /* === FORM-popup === */
  .modal-form {
    width: 358px;
    align-self: center;
  }

  .modal-form-inner {
    padding: 80px 16px 40px;
  }

  .modal-form-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .form-field-textarea {
    height: 100px;
    overflow: hidden;
    resize: none;
  }

  .form-field:has(.form-field-textarea) {
    height: auto;
  }

}

/* ===== FAQ — актуальная Figma ===== */
.faq {
  background: #111111;
  padding-bottom: 40px;
}

/* === Страница «Вопросы»: табы-фильтры над списком === */
.faq--page {
  padding-top: 72px;
  padding-bottom: 96px;
}

.faq--page .faq-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.faq--page .faq-grid {
  padding-top: 32px;
}

/* Заголовок FAQ вписан в сетку 1440, как у остальных секций */
.faq .section-header {
  max-width: 1440px;
  margin: 0 auto;
}

.faq .section-header-desc {
  color: #979ea5;
  line-height: 1.3;
}

.faq-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 80px 0;
}

.faq-list {
  flex: 0 1 848px;
  min-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  background: #242629;
  border-radius: 12px;
  border: 2px solid transparent;
  overflow: hidden;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.faq-item.is-open {
  background: #111111;
  border-color: #3a3e43;
}

.faq-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 19px 16px 19px 32px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.faq-item-question {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  color: #979ea5;
  transition: color 0.3s ease;
}

@media (hover: hover) {.faq-item:hover .faq-item-question {
  color: #ffffff;
}}

@media (hover: hover) {.faq-item:not(.is-open):hover {
  background: #191a1d;
}}

.faq-item.is-open .faq-item-question {
  color: #ffffff;
}

.faq-item-arrow {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-item-arrow {
  transform: rotate(180deg);
}

.faq-item-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-item-answer {
  max-height: 420px;
}

.faq-item-answer p {
  margin: 0 32px 32px;
  padding: 0;
  background: transparent;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: #bac1c8;
}

.faq-contact {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  flex: 1 1 0;
  min-width: 340px;
  background: #030303;
  border-radius: 16px;
  padding: 40px;
}

.faq-contact-title {
  margin: 0;
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
}

.faq-contact-panel {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.faq-contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.faq-contact-phone-email {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.faq-contact-phone {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  color: var(--clr-green);
  text-decoration: none;
  white-space: nowrap;
}

.faq-contact-email {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
  text-decoration: none;
}

.faq-contact-social {
  display: flex;
  gap: 8px;
}

.faq-contact-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-contact-social-link img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.faq-contact-btn {
  width: 100%;
  padding: 24px 64px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.faq-list,
.faq-contact {
  opacity: 0;
  transform: translateY(30px);
}

.faq-animate .faq-list,
.faq-animate .faq-contact {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (max-width: 1024px) {
  .faq {
    padding-bottom: 60px;
  }

  .faq .section-header-title {
    font-size: 30px;
    line-height: 1.2;
  }

  .faq .section-header-desc {
    font-size: 12px;
    line-height: 1.3;
  }

  .faq-grid {
    flex-direction: column;
    gap: 40px;
    padding: 40px 16px 0;
  }

  .faq-list {
    flex: none;
    width: 100%;
  }

  .faq-contact {
    width: 100%;
    min-width: 0;
    padding: 24px;
  }

  .faq-item-header {
    padding: 16px 20px;
    gap: 12px;
  }

  .faq-item-question {
    font-size: 16px;
    line-height: 1.4;
  }

  .faq-item-answer p {
    margin: 0 20px 24px;
    padding: 0;
    background: transparent;
    font-size: 16px;
    line-height: 1.4;
  }

  .faq-contact-btn {
    padding: 20px 32px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1;
  }

  .faq--page {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .faq--page .faq-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
  }

  .faq--page .faq-tabs::-webkit-scrollbar {
    display: none;
  }

  .faq--page .faq-tabs .tab {
    flex-shrink: 0;
  }

  .faq--page .faq-grid {
    padding-top: 20px;
  }
}

/* === INTRO full video popup — self-contained === */
#introVideoLayer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.80);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#introVideoLayer.open {
  display: flex;
}

.intro-video-wrap {
  position: relative;
  width: min(1100px, 94vw);
  aspect-ratio: 16 / 9;
  background: #030303;
  border-radius: 12px;
  overflow: hidden;
}

.intro-video-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Вертикальное видео (блок «фото + видео») — попап 9:16 */
.intro-video-wrap--vertical {
  width: min(94vw, calc(88vh * 9 / 16));
  aspect-ratio: 9 / 16;
}

.intro-video-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #242629;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.intro-video-close::before,
.intro-video-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: #9EF605;
  transition: background-color 0.3s ease;
}

.intro-video-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.intro-video-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) {.intro-video-close:hover {
  background: #9EF605;
}}

@media (hover: hover) {.intro-video-close:hover::before,
.intro-video-close:hover::after {
  background: #111111;
}}

/* === Inner page: P-header (Что мы создаем) === */
.p-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 594px;
  overflow: hidden;
  background-color: #030303;
}

.p-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--p-header-image, url("../images/services/header.jpg"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.p-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.p-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.p-header-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
}

.p-header-descripter {
  display: flex;
  align-items: center;
  gap: 16px;
}

.p-header-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-green-dark);
}

.p-header-desc {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #979ea5;
}

@media (max-width: 1024px) {
  .p-header {
    height: 414px;
  }

  .p-header::before {
    background-image: var(--p-header-image-mob, var(--p-header-image, url("../images/services/header-mob.png")));
  }

  .p-header-inner {
    padding: 0 16px 32px;
  }

  .p-header-title {
    font-size: 36px;
  }

  .p-header-descripter {
    gap: 12px;
    align-items: flex-start;
  }

  .p-header-dot {
    margin-top: 7px;
  }

  .p-header-desc {
    font-size: 16px;
    line-height: 1.4;
  }
}

/* === Inner page: INTRO-block (Что мы создаем) === */
.s-intro {
  position: relative;
  width: 100%;
  padding-top: 120px;
}

.s-intro-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.s-intro-text {
  flex: 0 0 640px;
  order: 2;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  color: #ffffff;
}

.s-intro-divider {
  display: none;
}

.s-intro-left {
  flex: 0 0 340px;
  order: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.s-intro-photo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.s-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-intro-quote {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.s-intro-quote-title {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  color: #bac1c8;
}

.s-intro-quote-name {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: #979ea5;
}

.s-intro-letter {
  width: 100%;
  margin-top: 8px;
  line-height: 0;
}

@media (min-width: 1025px) {
  .s-intro-letter {
    margin-top: 40px;
  }
}

.s-intro-letter-img {
  width: 100%;
  height: auto;
}

.s-intro-letter-img--mob {
  display: none;
}

@media (max-width: 1024px) {
  .s-intro {
    padding-top: 64px;
  }

  .s-intro-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding: 0 16px;
  }

  .s-intro-text {
    flex: none;
    order: 0;
    font-size: 20px;
    line-height: 1.4;
  }

  .s-intro-divider {
    display: block;
    width: 100%;
    height: 1px;
    background: #bac1c8;
  }

  .s-intro-left {
    flex: none;
    order: 2;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .s-intro-quote {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
  }

  .s-intro-quote-title {
    font-size: 16px;
    line-height: 1.4;
  }

  .s-intro-quote-name {
    font-size: 11px;
    line-height: 1.3;
  }

  .s-intro-letter-img--desktop {
    display: none;
  }

  .s-intro-letter-img--mob {
    display: block;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .s-intro-inner {
    padding: 0 32px;
  }
}

/* === Inner page: Sec-header (Что мы создаем) === */
.s-sec {
  width: 100%;
}

.s-sec-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 20px;
}

.s-sec-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 24px;
}

.s-sec-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.s-sec-line {
  flex: 1;
  height: 1px;
  background: rgba(158, 246, 5, 0.50);
}

.s-sec-desc {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  color: #979ea5;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .s-sec-inner {
    padding: 64px 16px 20px;
  }

  .s-sec-title {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .s-sec-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .s-sec-line {
    flex: none;
    width: 100%;
  }

  .s-sec-desc {
    margin-left: auto;
    margin-top: 12px;
    max-width: 234px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    text-align: right;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .s-sec-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* === Inner page: List (Что мы создаем) === */
.s-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 0 40px;
}

.s-dir {
  display: flex;
  align-items: stretch;
  min-height: 200px;
  border: 1px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #242629;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.5s cubic-bezier(0.65, 0, 0.35, 1),
              border-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.s-dir:hover {
  background: #191a1d;
  border-color: rgba(69, 73, 78, 0.70);
}}

.s-dir-main {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  padding: 24px;
}

.s-dir-name {
  flex: 0 0 280px;
  display: flex;
  align-items: center;
  padding: 16px;
  border-right: 1px solid #45494e;
  transition: border-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.s-dir:hover .s-dir-name {
  border-right-color: var(--clr-green);
}}

.s-dir-title {
  display: block;
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.5s ease;
}

@media (hover: hover) {.s-dir:hover .s-dir-title {
  color: var(--clr-green);
}}

.s-dir-desc {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

.s-dir-desc p {
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #979ea5;
  transition: color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.s-dir:hover .s-dir-desc p {
  color: #ffffff;
}}

.s-dir-action {
  flex: 0 0 72px;
  display: flex;
  align-items: flex-end;
}

.s-dir-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 49px;
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(158, 246, 5, 0.50);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.5s ease, background-color 0.25s cubic-bezier(0.65, 0, 0.35, 1),
              border-color 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.s-dir:hover .s-dir-arrow {
  opacity: 1;
}}

@media (hover: hover) {.s-dir-arrow:hover {
  background: var(--clr-green);
  border-color: var(--clr-green);
}}

.s-dir-arrow .button-arrow-icon-line {
  transition: background-color 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

.s-dir-arrow .button-arrow-icon-tip {
  transition: border-color 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.s-dir-arrow:hover .button-arrow-icon-line {
  background: #030303;
}}

@media (hover: hover) {.s-dir-arrow:hover .button-arrow-icon-tip {
  border-color: #030303;
}}
.s-dir-arrow-mob {
  display: none;
}

.s-dir-media {
  flex: 0 0 320px;
  position: relative;
  overflow: hidden;
}

.s-dir-media img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s-dir-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.30);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (hover: hover) {.s-dir:hover .s-dir-media::after {
  opacity: 0;
}}

@media (max-width: 1024px) {
  .s-list {
    max-width: none;
    padding: 40px 16px 32px;
  }

  .s-dir {
    height: 112px;
    min-height: 0;
    border-radius: 8px;
  }

  .s-dir-main {
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
  }

  .s-dir-name {
    flex: none;
    width: 100%;
    padding: 0;
    border-right: none;
  }

  .s-dir-title {
    max-width: none;
    font-size: 16px;
    line-height: 1.2;
  }

  .s-dir-desc,
  .s-dir-action {
    display: none;
  }

  .s-dir-arrow-mob {
    display: flex;
    justify-content: flex-end;
  }

  .s-dir-media {
    flex: 0 0 140px;
  }

  .s-dir-media::after {
    display: none;
  }
}

@media (min-width: 1025px) and (max-width: 1279px) {
  .s-list {
    padding-left: 32px;
    padding-right: 32px;
  }
}

/* === Inner page: Unique / FORM / FOOTER wrapper (Что мы создаем) === */
.s-unique-sec {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 1025px) {
  .s-unique-sec .services-unique-desc {
    color: #979ea5;
  }
}

/* === Reveal on scroll (inner pages) — unified with homepage === */
/* Единая директива: FORM и FOOTER не анимируются ни на одной странице. */
.js-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js-reveal--1 { transition-delay: 0.10s; }
.js-reveal--2 { transition-delay: 0.20s; }
.js-reveal--3 { transition-delay: 0.30s; }
.js-reveal--4 { transition-delay: 0.42s; }

.s-intro-divider.js-reveal {
  transform: none;
}

.s-dir.js-reveal {
  transition: opacity 0.6s ease, transform 0.6s ease,
              background-color 0.5s cubic-bezier(0.65, 0, 0.35, 1),
              border-color 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   ЕДИНАЯ СТРАТЕГИЯ АНИМАЦИЙ ПОЯВЛЕНИЯ НА САЙТЕ
   --------------------------------------------------------------------------
   Механика (общая для всех страниц):
     .js-reveal      — элемент скрыт: opacity 0 + сдвиг вниз (translateY 30px);
     .js-reveal.is-visible — показан: opacity 1 + transform:none.
     Добавление происходит по IntersectionObserver (js/services.js,
     js/script.js) при попадании элемента в зону видимости.
     Модификаторы задержки: .js-reveal--1 … --4 (0.10–0.42s).

   Правила использования:
     - заголовок секции = .js-reveal; контент = .js-reveal .js-reveal--1;
     - элементы «по одному» = .js-reveal на каждый элемент + stagger ниже;
     - hover/состояния не должны ломаться: у таких элементов transition
       сохраняют все нужные свойства (фон/обводка и т.п.);
     - у показанного элемента обязательно transform:none на той же
       специфичности (иначе «подъём» не происходит);
     - галереи, пересобираемые по табам, проходят reveal каскадом по карточкам;
     - FORM/FOOTER не анимируются; prefers-reduced-motion — всё off.
   ========================================================================== */

/* === Появление «по одному» со stagger (этапы PROCESS, слева направо) === */
.c-proc-steps > .c-proc-step.js-reveal {
  transition-delay: 0s;
}
.c-proc-steps > .c-proc-step.js-reveal:nth-child(2) { transition-delay: 0.08s; }
.c-proc-steps > .c-proc-step.js-reveal:nth-child(3) { transition-delay: 0.16s; }
.c-proc-steps > .c-proc-step.js-reveal:nth-child(4) { transition-delay: 0.24s; }
.c-proc-steps > .c-proc-step.js-reveal:nth-child(5) { transition-delay: 0.32s; }

/* Карточки LAST CASES (Портфолио): «подъём снизу» (56px, 0.75s) + stagger */
.c-last-cards > .c-case.js-reveal { transition-delay: 0s; }
.c-last-cards > .c-case.js-reveal:nth-child(2) { transition-delay: 0.08s; }
.c-last-cards > .c-case.js-reveal:nth-child(3) { transition-delay: 0.16s; }
.c-last-cards > .c-case.js-reveal:nth-child(4) { transition-delay: 0.24s; }
.c-last-cards > .c-case.js-reveal:nth-child(5) { transition-delay: 0.32s; }
.c-last-cards > .c-case.js-reveal {
  transform: translateY(56px);
  transition: opacity 0.75s ease,
              transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1),
              background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.c-last-cards > .c-case.js-reveal.is-visible {
  transition-delay: 0s;
  transform: none;
}

/* Единая анимация смены панели/галереи по табу — один класс на всех блоках.
   Та же нежность, что у появления блоков: долгий мягкий fade + лёгкий подъём. */
.panel-switch-in {
  animation: panel-switch-in 0.9s ease;
}

@keyframes panel-switch-in {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .panel-switch-in {
    animation: none;
  }
}

/* FORM: left frame reveals (frame, then texts top-down); right card/backdrop static */
.form-left.js-reveal .form-left-text > p,
.form-left.js-reveal > .form-left-sub {
  opacity: 0;
  transform: translateY(24px);
}

.form-left.js-reveal.is-visible .form-left-text > p,
.form-left.js-reveal.is-visible > .form-left-sub {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-left.js-reveal.is-visible .form-left-text p:nth-child(1) { transition-delay: 0.20s; }
.form-left.js-reveal.is-visible .form-left-text p:nth-child(2) { transition-delay: 0.32s; }
.form-left.js-reveal.is-visible .form-left-text p:nth-child(3) { transition-delay: 0.44s; }
.form-left.js-reveal.is-visible > .form-left-sub { transition-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  .form-left.js-reveal .form-left-text > p,
  .form-left.js-reveal > .form-left-sub {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === CASES mobile — переработанный блок (актуальная Figma) === */
@media (max-width: 1024px) {
  .cases-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
    gap: 4px;
    border: none;
  }

  .cases-card-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
  }

  .cases-card-about {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, #baf605 0%, #63d148 100%);
  }

  .cases-card-title {
    color: #000000;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.2;
  }

  .cases-card-desc {
    color: #000000;
    font-size: 16px;
    line-height: 1.4;
  }

  .cases-card-btn {
    align-self: flex-start;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 12px;
    line-height: 1;
  }

  .cases-arrows {
    display: none;
  }

  .cases-card-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    align-items: flex-end;
    justify-content: center;
    padding: 0 16px 16px;
  }
}

/* FAQ mobile — гарантированный итоговый порядок */
@media (max-width: 1024px) {
  .faq-grid {
    flex-direction: column;
    gap: 40px;
    padding: 40px 16px 0;
  }

  .faq-list {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .faq-contact {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .faq {
    padding-bottom: 32px;
  }
}

/* Reviews mobile — полнокровная карусель, карточки заглядывают за край */
@media (max-width: 1024px) {
}

/* === Direction page INTRO — light variant (Корпоратив) === */
.s-intro--light {
  background: #f2f3f4;
}

.s-intro--light .s-intro-text,
.s-intro--light .s-intro-quote-title,
.s-intro--light .s-intro-quote-name {
  color: #111111;
}

@media (max-width: 1024px) {
  .s-intro--light .s-intro-quote-name {
    display: none;
  }

  .s-intro--light .s-intro-quote-title {
    font-size: 18px;
    line-height: 1.4;
  }
}

/* === Direction page: SERVS (УСЛУГИ) — Корпоратив === */
/* Единый аккордеон-каркас: семантика в классах, визуал — через --fx-* токены.
   Эффект заливки живёт в css/effects.css (eff-fill-up). */

.c-servs {
  background: #f2f3f4;
}

.c-servs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 96px;
}

.c-sec-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  color: #111111;
  margin: 0 0 24px;
}

.c-sec-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-sec-num {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  color: var(--clr-green-dark);
  flex-shrink: 0;
}

.c-sec-line {
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.20);
}

.c-sec-desc {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #111111;
  white-space: nowrap;
}

/* Белая карточка списка */
.c-acc {
  --acc-line: var(--fx-line);
  --acc-timing: var(--fx-timing);

  background: #fefefe;
  border-radius: 20px;
  margin: 40px 0 0;
  padding: 16px 16px 16px;
}

.c-acc-item {
  position: relative;
  padding: 0 40px;
  background: transparent;
  border-radius: 0;
  transition: background-color 0.4s ease,
              padding-bottom var(--acc-timing),
              border-radius var(--acc-timing);
}

.c-acc-item.is-open {
  background: transparent;
  padding: 0 40px 40px;
}

/* Шапка строки + внутренний прямоугольный разделитель */
.c-acc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 40px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--acc-line);
  text-align: left;
  cursor: pointer;
  color: #111111;
  transition: border-color 0.3s ease;
}

.c-acc-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 0 0 576px;
  min-width: 0;
}

.c-acc-num {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  color: #030303;
}

.c-acc-name {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #030303;
}

.c-acc-desc {
  flex: 1;
  min-width: 0;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #030303;
}

.c-acc-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #111111;
  margin-left: auto;
}

.c-acc-arrow svg {
  display: block;
  transition: transform var(--acc-timing);
}

.c-acc-item.is-open .c-acc-arrow svg {
  transform: rotate(180deg);
}

/* Панель (тело) — анимируется по высоте */
.c-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--acc-timing),
              margin-top var(--acc-timing);
}

.c-acc-body-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-acc-body-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #111111;
}

.c-acc-body-para {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #111111;
}

/* Разделители: скрываются вокруг открытой карточки (без hover — работает на всех устройствах) */
.c-acc-item:last-child .c-acc-head,
.c-acc-item:has(+ .c-acc-item.is-open) .c-acc-head {
  border-bottom-color: transparent;
}

/* Desktop-only: скрытие линий вокруг hover-строки */
@media (min-width: 1025px) {
  .c-acc-item:has(+ .c-acc-item:hover) .c-acc-head,
  .c-acc-item:not(.is-open):hover .c-acc-head {
    border-bottom-color: transparent;
  }
}

/* При закрытии линия гаснет «на середине» сворачивания */
.c-acc-item.is-closing .c-acc-head {
  border-bottom-color: transparent;
  transition: border-color 0.2s ease 0.3s;
}

/* Desktop: открытая карточка — текст 50% | фото 50% */
@media (min-width: 1025px) {
  .c-acc-item.is-open .c-acc-body {
    display: grid;
    grid-template-columns: 573px 575px;
    gap: 20px;
    align-items: start;
    margin-top: 32px;
  }

  .c-acc-item.is-open .c-acc-body-text {
    width: auto;
    max-width: none;
  }

  .c-acc-item.is-open .c-acc-body-media {
    display: block;
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: none;
  }
}

/* Mobile */
@media (max-width: 1024px) {
  .c-servs-inner {
    padding: 64px 16px 24px;
  }

  .c-sec-title {
    font-size: 30px;
    margin-bottom: 16px;
  }

  .c-sec-row {
    flex-wrap: wrap;
    gap: 0;
  }

  .c-sec-num {
    margin-right: 12px;
  }

  .c-sec-line {
    flex: 1;
    min-width: 60px;
  }

  .c-sec-desc {
    flex-basis: 100%;
    max-width: 234px;
    margin-left: auto;
    margin-top: 12px;
    text-align: right;
    white-space: normal;
    font-size: 12px;
    line-height: 1.3;
  }

  .c-acc {
    background: #ffffff;
    border-radius: 20px;
    margin: 24px 0 0;
    padding: 8px;
  }

  .c-acc-item {
    padding: 0;
  }

  .c-acc-item.is-open {
    padding: 0 0 16px;
  }

  .c-acc-head {
    width: calc(100% - 32px);
    margin: 0 16px;
    padding: 24px 0 24px;
    gap: 16px;
    border-bottom: 1px solid var(--acc-line);
  }

  /* Открытая карточка — отдельная сущность (макет stroke-mob-open):
     линия под шапкой всегда тёмная #111 и присутствует даже у последней строки */
  .c-acc-item.is-open .c-acc-head {
    border-bottom-color: #111111;
  }

  .c-acc-left {
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: auto;
    min-width: 0;
  }

  .c-acc-name {
    font-size: 20px;
  }

  .c-acc-desc {
    display: none;
  }

  .c-acc-arrow {
    width: 28px;
    height: 28px;
    background: none;
  }

  .c-acc-item.is-open .c-acc-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
    padding: 0 16px;
  }

  .c-acc-item.is-open .c-acc-body-media {
    width: 100%;
    height: auto;
    aspect-ratio: 310 / 194;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
  }
}

/* Mobile: открытая карточка зелёная; фон гаснет на середине закрытия */
@media (max-width: 1024px) {
  .c-acc-item.is-open {
    background: #9ef605;
    border-radius: 16px;
  }

  .c-acc-item.is-closing {
    background: transparent;
    transition: background-color 0.3s ease 0.3s;
  }
}

/* Direction page: тёмная секция (заголовок/линия/описание) */
.c-sec--dark .c-sec-title {
  color: #ffffff;
}

.c-sec--dark .c-sec-line {
  background: rgba(255, 255, 255, 0.18);
}

.c-sec--dark .c-sec-desc {
  color: #979ea5;
}

/* Карточка кейса (desktop) */
.c-case {
  position: relative;
  display: grid;
  grid-template-columns: 480px minmax(0, 1fr);
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: #242629;
  box-shadow: 0 0 0 0 rgba(69, 73, 78, 0);
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {.c-case:hover {
  background: #191a1d;
  box-shadow: 0 0 0 1px rgba(69, 73, 78, 0.70);
}}

/* Левая колонка — контент */
.c-case-body {
  position: relative;
  min-width: 0;
  padding: 40px 40px 96px;
}

.c-case-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Блок name: фиксированная высота, чтобы список ниже не «прыгал»
   в зависимости от количества строк заголовка/описания */
.c-case-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 140px;
  padding-bottom: 20px;
}

.c-case-name {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  transition: color 0.3s ease;
}

@media (hover: hover) {.c-case:hover .c-case-name {
  color: var(--clr-green);
}}

.c-case-text {
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #979ea5;
  transition: color 0.3s ease;
}

.c-case-rows {
  margin: 32px 0 0;
}

.c-case-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  border-bottom: 1px solid #45494e;
  padding: 0 0 7px;
  margin-bottom: 12px;
}

.c-case-row:last-child {
  margin-bottom: 0;
}

.c-case-row-label {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #979ea5;
  flex-shrink: 0;
}

.c-case-row-value {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #bac1c8;
  text-align: right;
  transition: color 0.3s ease;
}

@media (hover: hover) {.c-case:hover .c-case-row-value {
  color: #ffffff;
}}

/* Нижняя строка левой колонки (desktop) */
.c-case-foot {
  position: absolute;
  left: 40px;
  right: auto;
  bottom: 40px;
  width: 400px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.c-case-tags {
  display: flex;
  gap: 4px;
}

.c-case-tag {
  padding: 12px 20px;
  border-radius: 1000px;
  background: #111111;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

.c-case-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 56px;
  background: transparent;
  border: 1px solid rgba(158, 246, 5, 0.50);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.5s ease, background-color 0.25s ease,
              border-color 0.25s ease;
}

@media (hover: hover) {.c-case:hover .c-case-go {
  opacity: 1;
}}

@media (hover: hover) {.c-case-go:hover {
  background: var(--clr-green);
  border-color: var(--clr-green);
}}

.c-case-go .button-arrow-icon-line {
  transition: background-color 0.25s ease;
}

.c-case-go .button-arrow-icon-tip {
  transition: border-color 0.25s ease;
}

@media (hover: hover) {.c-case-go:hover .button-arrow-icon-line {
  background: #030303;
}}

@media (hover: hover) {.c-case-go:hover .button-arrow-icon-tip {
  border-color: #030303;
}}

/* Слайдер (desktop) */
.c-case-slider {
  position: relative;
  min-width: 0;
}

.c-case-slider-viewport {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.c-case-slider-track {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-case-slider-item {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity 0.55s ease,
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.55s;
}

.c-case-slider-item.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.c-case-slider-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Градиент снизу под контролы — на каждом кадре, чтобы оставался
   на месте и при нативном горизонтальном скролле на мобиле */
.c-case-slider-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.80) 100%);
  pointer-events: none;
}

/* Контролы слайдера переиспользуют готовый компонент:
   .cases-bullits / .cases-bullit(--active) и .cases-arrows / кнопки .ui-arrow */
/* Контролы в углах: буллеты слева, стрелки справа, 24 от боков и низа */
.c-case-slider-nav {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.c-case-slider-nav .cases-bullits {
  padding: 0;
}

/* Mobile */
@media (max-width: 1024px) {
  .c-case {
    display: block;
    height: auto;
    border-radius: 12px;
    background: #242629;
  }

  .c-case-body {
    padding: 32px 20px 20px;
  }

  .c-case-name {
    font-size: 20px;
  }

  .c-case-head {
    height: auto;
    padding-bottom: 0;
  }

  .c-case-rows {
    display: none;
  }

  .c-case-slider {
    padding: 0 8px;
  }

  /* Mobile: нативный scroll-snap — листает сам браузер (iOS/Android) */
  .c-case-slider-viewport {
    border-radius: 12px;
    height: 280px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  .c-case-slider-viewport::-webkit-scrollbar {
    display: none;
  }

  .c-case-slider-track {
    display: flex;
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .c-case-slider-item {
    position: relative;
    flex: 0 0 100%;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .c-case-slider-nav {
    right: 0;
    left: 0;
    bottom: 16px;
    justify-content: center;
  }

  .c-case-slider-nav .cases-arrows {
    display: none;
  }

  .c-case-slider-nav .cases-bullits {
    padding: 0;
  }

  .c-case-slider-nav .cases-bullit {
    background: rgba(255, 255, 255, 0.50);
  }

  .c-case-slider-nav .cases-bullit.cases-bullit--active {
    background: var(--clr-green-dark);
  }

  .c-case-foot {
    position: static;
    width: auto;
    padding: 20px;
    align-items: center;
  }

  .c-case-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .c-case-tag {
    padding: 0;
    background: none;
    color: #bac1c8;
    font-size: 16px;
  }

  .c-case-go {
    opacity: 1;
  }

}

/* (контролы слайдера переиспользуют .cases-arrows / .ui-arrow и
   .cases-bullits / .cases-bullit — см. выше) */

@media (prefers-reduced-motion: reduce) {
  .c-case-slider-item {
    transition: none;
    transform: none;
  }

  .c-case-slider-track {
    transition: none;
  }
}

/* === Direction page: PROCESS (Корпоратив) ===
   Этапы: круг-номер 80 (#9EF605), зазор 20 до текста; заголовок Onest Bold 14
   uppercase, описание Onest 16/1.3, оба #111. Desktop — 5 колонок gap 48;
   mobile — нативный scroll-snap (карусель) + буллеты-индикатор. */
.c-proc {
  background: #f2f3f4;
}

.c-proc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 96px;
}

.c-proc-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 48px;
}

.c-proc-step {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.c-proc-num {
  flex: none;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9ef605;
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: #000000;
}

.c-proc-txt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-proc-name {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  color: #111111;
  margin: 0;
}

.c-proc-desc {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #111111;
  margin: 0;
}

.c-proc-bullits {
  display: none;
}

@media (max-width: 1024px) {
  .c-proc-inner {
    padding: 64px 16px 24px;
  }

  .c-proc-steps {
    margin-top: 40px;
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }

  /* Шаги — в горизонтальном скроллере: reveal (fade-up + stagger) здесь
     выглядит криво и мешает свайпу, поэтому на мобиле показываем сразу. */
  .c-proc-steps > .c-proc-step.js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .c-proc-steps::-webkit-scrollbar {
    display: none;
  }

  .c-proc-step {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .c-proc-bullits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 48px 0 32px;
  }

  .c-proc-bullits .cases-bullit {
    background: #b4b4b4;
  }

  .c-proc-bullits .cases-bullit.cases-bullit--active {
    background: var(--clr-green-dark);
  }
}

/* === Direction page: LOCATIONS (Корпоратив) ===
   Карусель как у отзывов на главной: табы-пузырьки, лента карточек,
   листание стрелками по одной (desktop), нативный скролл (mobile).
   Карточка Card-carousel: фото 416x260 radius12 + подпись (тип 12, название 16). */
.c-loc {
  background: #030303;
  backface-visibility: hidden; /* fix: chromium scroll seam — можно удалить, если не нужен */
}

.c-loc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 96px;
}

.c-loc .c-sec-num {
  color: var(--clr-green);
}

@media (max-width: 1024px) {
  .c-loc-inner {
    padding: 64px 16px 24px;
  }

  /* Единый компонент табов на мобиле — компактнее */
  .tab {
    padding: 12px 20px;
    flex-shrink: 0;
  }
}

/* === Портфолио: P-header «simple» (тёмный, без фото) === */
.p-hero {
  position: relative;
  background: #111111;
  height: 374px;
  display: flex;
  align-items: flex-end;
}

.p-hero::after {
  content: "";
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 0;
  height: 1px;
  background: #45494e;
}

.p-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 48px;
}

.p-hero-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.p-hero-descripter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.p-hero-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-green-dark);
}

.p-hero-desc {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #979ea5;
  margin: 0;
}

/* === Портфолио: CASES (тёмная секция; карточки — готовый .c-case) === */
.pf {
  background: #111111;
  backface-visibility: hidden; /* fix: chromium scroll seam — можно удалить, если не нужен */
}

.pf-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0 96px;
}

.pf-tabs {
  margin-top: 72px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.c-last-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf .c-last-cards {
  margin-top: 32px;
}

.pf-load {
  display: flex;
  justify-content: center;
  padding: 64px 0 0;
}

.pf-load-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.pf-load-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  color: #ffffff;
}

.pf-load-arrow {
  color: var(--clr-green);
}

.pf-load-arrow svg {
  display: block;
}

@media (max-width: 1024px) {
  .p-hero {
    height: 272px;
  }

  .p-hero::after {
    left: 16px;
    right: 16px;
  }

  .p-hero-inner {
    padding: 0 16px 32px;
  }

  .p-hero-title {
    font-size: 36px;
  }

  .p-hero-desc {
    font-size: 16px;
  }

  .pf-inner {
    padding: 0 16px 64px;
  }

  .pf-tabs {
    margin: 48px -16px 0;
    padding: 0 16px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .pf-tabs::-webkit-scrollbar {
    display: none;
  }

  .pf .c-last-cards {
    margin-top: 20px;
  }

  .pf-load {
    padding: 40px 0 0;
  }

  .pf-load-btn {
    gap: 8px;
  }

  .pf-load-label {
    font-size: 12px;
  }
}

/* === «Об агентстве»: TEAM (карусель команды + открытая карточка) === */
.c-team {
  background: #111111;
  backface-visibility: hidden; /* fix: chromium scroll seam — можно удалить, если не нужен */
  overflow-x: clip; /* слой свечения выходит за колонку — не даём скролл странице */
}

.c-team-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 96px;
}

.c-team .c-sec-num {
  color: var(--clr-green);
}

.c-team-txt {
  position: relative;
  z-index: 1;
  margin-top: 72px;
  max-width: 1000px;
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  line-height: 1.4;
  color: #ffffff;
}

.c-team-stage {
  position: relative;
  display: flow-root; /* свой BFC: margin вьюпорта не схлопывается со стейджем (стрелки на месте) */
  isolation: isolate; /* свой контекст наложения: слой свечения (z-index:-1) не проваливается под фон */
  margin-top: 64px;
}

.c-team-viewport {
  width: 1120px; /* ровно 6 целых карточек (153*6 + 40*5 = 1118) — без обрезанных по краям */
  /* Место под свечение только сверху/снизу (горизонталь не трогаем — иначе влезут
     обрезанные карточки). Отрицательные margin компенсируют паддинг — карточки на месте.
     Само свечение рисуется отдельным слоем (.team-glow) вне скролл-контейнера. */
  margin: -120px auto;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

.c-team-viewport::-webkit-scrollbar {
  display: none;
}

.c-team-track {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-card {
  flex: 0 0 153px;
  min-width: 0;
  scroll-snap-align: start;
}

.team-card-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.team-photo {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card.is-active .team-photo::after {
  border-color: var(--clr-green);
}

/* Figma Card-person / hover: зелёное свечение вокруг фото (#9EF605·40%, radius 120).
   Отдельный слой ПОВЕРХ карусели (вне скролл-контейнера) — не режется её краем.
   Позицию задаёт team.js по наведённой карточке. */
.team-glow {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 0 120px 0 rgba(158, 246, 5, 0.40);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-glow.is-on {
  opacity: 1;
}

.team-name {
  margin: 12px 0 0;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  color: #ffffff;
}

.team-role {
  margin: 4px 0 0;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  color: #979ea5;
}

.c-team-bullits {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.c-team-arrows {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.c-team-arrows .ui-arrow {
  pointer-events: auto;
}

/* Открытая карточка — выезжает снизу (раздвигает секцию) */
.c-team-open {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.c-team-open.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.c-team-open-inner {
  min-height: 0;
  overflow: hidden;
}

/* Макет Card-open (desktop): зелёная панель 1020×420, radius 20, padding 4 */
.c-team-open-card {
  display: flex;
  align-items: stretch;
  width: min(100%, 1020px);
  height: 420px;
  margin: 32px auto 0;
  padding: 4px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--clr-green);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.c-team-open.is-open .c-team-open-card {
  opacity: 1;
  transform: translateY(0);
}

/* Первое раскрытие: панель открывается, затем выезжает окно персоны */
.c-team-open.is-opening .c-team-open-card {
  transition: opacity 0.45s ease 0.26s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.26s;
}

/* Смена персоны: плавная замена контента */
.c-team-open.is-switching .c-team-open-card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.c-team-open-photo {
  flex: 0 0 340px;
  border-radius: 16px;
  overflow: hidden;
}

.c-team-open-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-team-open-data {
  flex: 1;
  min-width: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.c-team-open-head {
  border-bottom: 1px solid var(--clr-bg);
  padding-bottom: 12px;
}

.c-team-open-name {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 30px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--clr-bg);
  margin: 0;
}

.c-team-open-role {
  margin: 12px 0 0;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--clr-bg);
}

.c-team-open-bio {
  margin: 20px 0 0;
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: var(--clr-bg);
}

.c-team-open-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.team-tag {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--clr-bg);
  border: 2px solid var(--clr-bg);
  border-radius: 1000px;
  padding: 10px 16px;
}

@media (max-width: 1024px) {
  .c-team-inner {
    padding: 64px 16px 64px;
  }

  .c-team-txt {
    margin-top: 40px;
    font-size: 18px;
    max-width: none;
  }

  .c-team-stage {
    margin-top: 40px;
  }

  .c-team-viewport {
    width: auto;
    margin: 0 -16px;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 16px;
    padding-right: 0;
  }

  .c-team-track {
    gap: 0;
  }

  .c-team-arrows,
  .c-team-bullits {
    display: none;
  }

  .c-team-open-card {
    flex-direction: column;
    align-items: stretch;
    width: auto;
    height: auto;
    margin: 32px auto 0;
    padding: 4px;
  }

  .c-team-open-photo {
    flex: none;
    width: auto;
    height: 420px;
  }

  .c-team-open-data {
    padding: 32px 20px;
  }

  .c-team-open-name {
    font-size: 24px;
  }

  .c-team-open-bio {
    margin-top: 12px;
    font-size: 16px;
  }

  .c-team-open-tags {
    margin-top: 40px;
  }
}

/* === About: CLIENTS (Клиенты и партнёры) === */
.c-clients {
  background: #f2f3f4;
}

.c-clients-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 40px;
}

.c-clients-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 72px;
}

.c-clients-card {
  min-width: 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 32px;
  aspect-ratio: 246.4 / 158.75;
}

.c-clients-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .c-clients-inner {
    padding: 64px 16px 64px;
  }

  .c-clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .c-clients-card {
    aspect-ratio: 173 / 158.75;
  }
}

/* === About: DIPLOMS (Дипломы и сертификаты) === */
.c-dip {
  background: #f2f3f4;
  backface-visibility: hidden; /* fix: chromium scroll seam — можно удалить, если не нужен */
}

.c-dip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 0 96px;
}

@media (max-width: 1024px) {
  .c-dip-inner {
    padding: 64px 16px 64px;
  }
}

/* === Diploma popup (увеличенная картинка) — самодостаточный слой === */
#diplomaLayer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#diplomaLayer.open {
  display: flex;
}

.dip-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dip-stage img {
  display: block;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
}

.dip-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 60px;
  height: 60px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #242629;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.dip-close::before,
.dip-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 2.5px;
  border-radius: 2px;
  background: #9ef605;
  transition: background-color 0.3s ease;
}

.dip-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.dip-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (hover: hover) {.dip-close:hover {
  background: #9ef605;
}}

@media (hover: hover) {.dip-close:hover::before,
.dip-close:hover::after {
  background: #111111;
}}

/* TEAM: перетаскивание ленты персон мышью (desktop) */
@media (min-width: 1025px) {
  .c-team-viewport {
    cursor: grab;
  }

  .c-team-viewport.is-drag {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
  }

  .c-team-viewport img {
    -webkit-user-drag: none;
    user-select: none;
  }
}

/* ===== Страница кейса (case.html) ===== */

/* P-header case */
.p-header-case {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  overflow: hidden;
  background: #111111;
}

.p-header-case--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--p-case-image, none);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.p-header-case--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.5) 0%, #111111 100%);
}

.p-header-case-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.p-header-case-head {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-bottom: 20px;
  border-bottom: 1px solid #45494E;
}

.p-header-case--photo .p-header-case-head {
  border-color: rgba(255, 255, 255, 0.6);
}

.p-header-case-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #BAC1C8;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (hover: hover) {.p-header-case-back:hover {
  color: #ffffff;
}}

.p-header-case-back-icon {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 22px;
  height: 17px;
  transform: rotate(180deg);
}

.p-header-case-name {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.p-header-case-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 72px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
}

.p-header-case-tags {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.p-header-case-tag {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 1000px;
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
}

.p-header-case--photo .p-header-case-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.p-header-case-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.p-header-case-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 640px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-header-case-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #45494E;
  font-family: 'Onest', sans-serif;
  line-height: 1;
}

.p-header-case-stat-label {
  font-size: 14px;
  color: #979EA5;
}

.p-header-case-stat-value {
  font-size: 16px;
  color: #ffffff;
  text-align: right;
}

.p-header-case-cta {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 640px;
  min-width: 0;
}

/* Тело кейса: поток блоков */
.case-body {
  background: #111111;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 80px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-body-video {
  position: relative;
  width: 100%;
  height: 640px;
  border-radius: 20px;
  overflow: hidden;
}

.case-body-video-frame {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.case-body-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

.case-body-video .intro-player-play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.case-body-photo {
  width: 100%;
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
}

.case-body-photo img,
.case-body-split img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.case-body-split--left {
  grid-template-columns: 416px minmax(0, 1fr);
}

.case-body-split--right {
  grid-template-columns: minmax(0, 1fr) 416px;
}

.case-body-split > * {
  height: 620px;
  border-radius: 12px;
  overflow: hidden;
}

.case-body-photovid {
  display: flex;
  gap: 16px;
}

.case-body-photovid--reverse {
  flex-direction: row-reverse;
}

.case-body-photovid-photo {
  flex: 1 1 0;
  min-width: 0;
  height: 640px;
  border-radius: 12px;
  overflow: hidden;
}

.case-body-photovid-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body-photovid-video {
  position: relative;
  flex: 0 0 416px;
  width: 416px;
  height: 640px;
  border-radius: 12px;
  overflow: hidden;
}

.case-body-photovid-video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

.case-body-photovid-video .intro-player-play {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.957);
  z-index: 2;
}

.case-body-text {
  max-width: 1000px;
  padding: 72px 0 32px;
}

.case-body-text p {
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
}

/* Первый текстовый блок в теле кейса — без верхнего отступа
   (верхний отступ уже даёт .case-body). */
.case-body > .case-body-text:first-child {
  padding-top: 0;
}

@media (max-width: 1024px) {
  .p-header-case--photo::before {
    background-image: var(--p-case-image-mob, var(--p-case-image, none));
  }

  .p-header-case-inner {
    padding: 96px 16px 48px;
  }

  .p-header-case-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .p-header-case-title {
    flex: none;
    font-size: 36px;
  }

  .p-header-case-content {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .p-header-case-stats,
  .p-header-case-cta {
    flex: none;
    width: 100%;
  }

  .p-header-case-cta {
    justify-content: flex-start;
  }

  .case-body {
    padding: 64px 16px 0;
    gap: 8px;
  }

  .case-body-video {
    height: 240px;
    border-radius: 4px;
  }

  .case-body-photo {
    height: 240px;
    border-radius: 4px;
  }

  .case-body-split {
    gap: 8px;
  }

  .case-body-split--left {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .case-body-split--right {
    grid-template-columns: minmax(0, 1fr) 130px;
  }

  .case-body-split > * {
    height: 240px;
    border-radius: 4px;
  }

  .case-body-photovid {
    gap: 8px;
  }

  .case-body-photovid-photo {
    height: 240px;
    border-radius: 4px;
  }

  .case-body-photovid-video {
    flex: 1 1 0;
    width: auto;
    height: 240px;
    border-radius: 4px;
  }

  .case-body-photovid-video .intro-player-play {
    transform: translate(-50%, -50%) scale(0.6286);
  }

  .case-body-text {
    padding: 40px 0 24px;
  }

  .case-body-text p {
    font-size: 20px;
  }
}

/* ===== Страница «Контакты» (contacts.html) ===== */
.contacts {
  background: #111111;
}

.contacts-inner {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 80px 96px;
}

.contacts-card {
  flex: 0 0 416px;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 32px 32px;
  background: #242629;
  border-radius: 12px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contacts-data {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts-phone {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--clr-green);
  text-decoration: none;
}

.contacts-email {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  line-height: 1.4;
  color: var(--clr-green);
  text-decoration: none;
}

.contacts-address {
  font-family: 'Onest', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  color: #ffffff;
}

.contacts-social {
  display: flex;
  gap: 12px;
}

.contacts-social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contacts-social-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.contacts-btn {
  width: 100%;
  padding: 24px 64px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.contacts-map {
  flex: 1;
  min-width: 0;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #242629;
}

.contacts-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .contacts-inner {
    flex-direction: column;
    padding: 40px 16px 64px;
  }

  .contacts-card {
    flex: none;
    width: 100%;
    padding: 40px 24px 24px;
  }

  .contacts-phone,
  .contacts-email {
    font-size: 22px;
  }

  .contacts-map {
    flex: none;
    width: 100%;
  }
}

/* === Страницы документов (/privacy, /consent) === */
.docs {
  background: var(--clr-bg);
  padding: 32px 80px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.docs-nav {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1280px;
}

.docs-nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: #979ea5;
  text-decoration: none;
  white-space: nowrap;
}

.docs-nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #979ea5;
}

.docs-nav-item--active {
  color: #ffffff;
}

.docs-nav-item--active::after {
  height: 3px;
  background: var(--clr-green);
}

.docs-content {
  width: 100%;
  max-width: 1280px;
}

.docs-content-text {
  background: #ffffff;
  color: #000000;
  border-radius: 24px;
  padding: 40px;
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.4;
  white-space: pre-line;
}

@media (max-width: 1024px) {
  .docs {
    padding: 32px 16px 32px;
    align-items: flex-start;
    gap: 32px;
  }

  .docs-nav {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .docs-nav::-webkit-scrollbar {
    display: none;
  }

  .docs-nav-item {
    padding: 16px 20px;
    font-size: 14px;
  }

    .docs-content-text {
      border-radius: 12px;
      padding: 20px 12px;
      font-size: 12px;
    }
  }

/* Страницы «Документы»: перехода-анимации нет вовсе, шапка статична.
   Иначе браузер отдельно «морфит» шапку и она мерцает при переключении. */
html:has(.docs-nav) {
  view-transition-name: none;
}

body:has(.docs-nav) .p-hero-inner {
  opacity: 1;
  transform: none;
  transition: none;
}

/* === Страница 404: зелёная карточка-CTA === */
.notfound {
  padding: 32px 80px 96px;
  background: #111111;
}

.notfound-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 120px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 24px;
  background: var(--clr-green);
}

.notfound-text {
  flex: 1;
  margin: 0;
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  color: #030303;
}

.notfound-btn {
  flex: none;
  padding: 24px 64px;
  line-height: 1;
  text-decoration: none;
}

/* === Прелоадер: тёмный экран + пульсирующая lemon-green точка === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 6000;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

.preloader.is-done {
  opacity: 0;
  pointer-events: none;
}

.preloader-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--clr-green);
  animation: preloader-pulse 1s ease-in-out infinite;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.9); opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-dot { animation: none; }
}

@media (max-width: 1024px) {
  .notfound {
    padding: 16px 16px 64px;
  }

  .notfound-card {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }

  .notfound-text {
    font-size: 20px;
  }

  .notfound-btn {
    width: 100%;
  }
}

/* === Галерея (единый компонент Gallery.astro): варианты cards и tabs === */
.gallery {
  width: 100%;
}

.gallery-body {
  position: relative;
}

.gallery-viewport {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-card {
  min-width: 0;
}

/* --- Вариант cards (дипломы/отзывы): квадратный слот + подпись --- */
.gallery--cards .gallery-body { margin-top: 72px; }

.gallery--cards .gallery-card { flex: 0 0 308px; }

.gallery-card-btn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: transform 0.3s ease;
}

.gallery--cards .gallery-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.gallery--cards .gallery-card-media img {
  display: block;
  max-width: calc(100% - 48px);
  max-height: calc(100% - 48px);
  object-fit: contain;
  border-radius: 8px;
}

.gallery-card-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  min-height: 74px;
}

.gallery-kicker {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: #45494e;
}

.gallery-title {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #111111;
  margin: 0;
}

/* Тёмная тема (отзывы на главной) */
.gallery--dark .gallery-kicker { color: #979ea5; }
.gallery--dark .gallery-title { color: #ffffff; }

@media (hover: hover) {
  .gallery-card-btn:hover { transform: translateY(4px); }
  .gallery-card-btn:hover .gallery-title { color: var(--clr-green-dark); }
}

/* --- Вариант tabs (локации): табы фильтруют, карточка фото + тип + название --- */
.gallery-tabs {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

.gallery--tabs .gallery-body { margin-top: 32px; }

.gallery--tabs .gallery-card {
  flex: 0 0 416px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease;
}

.gallery--tabs .gallery-card-media {
  width: 100%;
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.gallery--tabs .gallery-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery--tabs .gallery-card-meta { height: 74px; }
.gallery--tabs .gallery-kicker { color: #979ea5; }

@media (hover: hover) {
  .gallery--tabs .gallery-card:hover { transform: translateY(4px); }
  .gallery--tabs .gallery-card:hover .gallery-title { color: var(--clr-green); }
}

/* --- Стрелки и буллиты --- */
.gallery-arrows {
  position: absolute;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.gallery--cards .gallery-arrows { top: 130px; left: -26px; right: -26px; }
.gallery--tabs .gallery-arrows { top: 106px; left: -24px; right: -24px; }

.gallery-arrows .ui-arrow { pointer-events: auto; }

.gallery-bullits {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

/* Desktop: плавное листание + перетаскивание мышью */
@media (min-width: 1025px) {
  .gallery-track {
    cursor: grab;
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  }

  .gallery-track.is-drag {
    cursor: grabbing;
    transition: none;
  }
}

/* Mobile: галерея на всю ширину (full-bleed), карточки с отступом 16px */
@media (max-width: 1024px) {
  /* full-bleed: width:auto обязателен, иначе width:100% не даёт отрицательным
     margin расширить блок — справа остаётся зазор ~16px. */
  .gallery { width: auto; margin-inline: -16px; }

  .gallery-tabs {
    margin-top: 24px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-inline: 16px;
  }

  .gallery-tabs::-webkit-scrollbar { display: none; }

  .gallery--cards .gallery-body { margin-top: 40px; }
  .gallery--tabs .gallery-body { margin-top: 20px; }

  .gallery-viewport {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 16px;
  }

  .gallery-viewport::-webkit-scrollbar { display: none; }

  .gallery-track {
    gap: 8px;
    padding-inline: 16px;
    transition: none;
  }

  .gallery--cards .gallery-card {
    flex: 0 0 310px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .gallery--tabs .gallery-card {
    flex: 0 0 296px;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }

  .gallery-arrows,
  .gallery-bullits { display: none; }
}

/* === Заголовок секции (единый компонент SectionHeader) ===
   Состояния — из Figma «Sec-header»: тема dark/light + переключатель Show Number.
   Канон: заголовок TikTok ExtraBold 48/1.2 (моб 30), номер 24/1, описание Onest 14/1.3
   (моб 12) справа; контент 1280 по центру. */

.sec-head {
  width: 100%;
}

.sec-head-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.sec-head-title {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1.2;
  margin: 0;
  padding-bottom: 8px;
}

.sec-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sec-head-num {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.sec-head-line {
  flex: 1;
  height: 1px;
}

.sec-head-desc {
  font-family: 'Onest', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Тема тёмная (главная, тёмные блоки) */
.sec-head--dark .sec-head-title { color: var(--clr-white); }
.sec-head--dark .sec-head-num { color: var(--clr-green); }
.sec-head--dark .sec-head-line { background: var(--clr-line-dark); }
.sec-head--dark .sec-head-desc { color: var(--clr-grey-1); }

/* Тема светлая (внутренние светлые) */
.sec-head--light .sec-head-title { color: var(--clr-bg); }
.sec-head--light .sec-head-num { color: var(--clr-green-dark); }
.sec-head--light .sec-head-line { background: var(--clr-line-light); }
.sec-head--light .sec-head-desc { color: var(--clr-bg); }

/* Контейнер: self-padding (главная) — секция 1440, гуттер 80 → контент 1280 */
.sec-head--bleed { padding: 96px 80px 20px; }

/* Контейнер: contained (услуги) */
.sec-head--contained { padding: 96px 0 20px; }

@media (min-width: 1025px) and (max-width: 1279px) {
  .sec-head--contained { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 1024px) {
  .sec-head--bleed,
  .sec-head--contained { padding: 64px 16px 20px; }

  .sec-head-title {
    font-size: 30px;
    line-height: 1.2;
    padding-bottom: 0;
  }

  .sec-head-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sec-head-desc {
    flex-basis: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-top: 4px;
    font-size: 12px;
    white-space: normal;
  }
}

/* === Нижняя бегущая строка (декоративная, на всех страницах) ===
   Прибита к нижнему краю, зациклена (две группы + translateX 0 → -50%),
   пауза при наведении. Текст/вкл — из настроек (ticker). */
.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100; /* выше контента, ниже модалок (2000) и прелоадера (6000) */
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1c1c1c;              /* почти чёрный, но светлее фона #111 */
  color: var(--clr-green-dark);     /* текст — бывший цвет полосы */
}

.ticker-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
  animation: ticker-marquee 70s linear infinite;
}

.ticker-group {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.ticker-item {
  display: flex;
  align-items: center;
}

.ticker-text {
  font-family: 'TikTok Sans', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-sep {
  color: inherit;
  margin: 0 24px;   /* одинаково до и после слэша */
}

@keyframes ticker-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

@media (max-width: 1024px) {
  :root { --ticker-h: 20px; }

  .ticker-text { font-size: 14px; }
  .ticker-sep { margin: 0 16px; }
}

/* === Плашка о файлах cookie (внизу справа, на всех страницах) === */
.cookie {
  position: fixed;
  right: 16px;
  bottom: calc(var(--ticker-h) + 16px);
  z-index: 150; /* выше контента и бегущей строки, ниже модалок (2000) */
  width: min(340px, calc(100vw - 32px));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie.is-on { opacity: 1; transform: none; }

.cookie-text {
  margin: 0;
  padding-right: 24px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--clr-grey-1);
}

.cookie-text a { color: var(--clr-green-dark); text-decoration: underline; }

.cookie-accept {
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: var(--clr-green);
  color: #030303;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

@media (hover: hover) { .cookie-accept:hover { background: var(--clr-green-light); } }

.cookie-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--clr-grey-1);
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (hover: hover) { .cookie-close:hover { color: var(--clr-white); } }

@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; transform: none; }
}

@media (max-width: 1024px) {
  .cookie {
    right: 12px;
    left: 12px;
    bottom: calc(var(--ticker-h) + 12px);
    width: auto;
  }
}
