:root {
  --yellow: #E7BF20;
  --ink: #131313;
  --paper: #E5E3E0;
  --muted: #999999;
  --pad: clamp(20px, 5vw, 80px);

  --ink-rgb: 19, 19, 19;
  --paper-rgb: 229, 227, 224;

  /* Hero + header are always dark (they sit over the photo) and never themed.
     Only content sections below (pain, ...) swap with the logo toggle:
     toggle OFF (false, default) = dark theme -> section B is dark.
     toggle ON  (true)           = light theme -> section B is light. */
  --b-bg: var(--ink);
  --b-bg-rgb: var(--ink-rgb);
  --b-fg: var(--paper);
  --b-fg-rgb: var(--paper-rgb);
  --pain-card-bg: rgba(255, 255, 255, .05);

  /* Переопределяются инлайн-стилем в <head>, если в админке «Сайт» заданы свои картинки. */
  --hero-bg-image: url('../img/hero-bg.jpg');
  --hero-bg-mobile-image: url('../img/hero-bg-mobile.jpg');
  --texture-beton-image: url('../img/texture-beton.jpg');

  /* Фон блока /blog — пока в админке не загрузили картинку, просто тёмная панель. */
  --blog-hero-bg-image: none;
  --blog-hero-bg-mobile-image: none;
}

[data-theme="light"] {
  --b-bg: var(--paper);
  --b-bg-rgb: var(--paper-rgb);
  --b-fg: var(--ink);
  --b-fg-rgb: var(--ink-rgb);
  --pain-card-bg: rgba(255, 255, 255, .4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.hidden {
  display: none !important;
}

body,
.site-header,
.mobile-nav,
.hero,
.hero-bg,
.pain,
.hero h1,
.hero-copy p,
.hero-note,
.side-menu,
.hero-cross,
.pain h2,
.pain-intro p,
.pain-card h3,
.pain-card p,
.pain-result h2,
.result-arrow,
.desktop-nav,
.location,
.mobile-menu span,
.logo-mark {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}

@font-face {
  font-family: 'Swanky and Moo Moo';
  src: url('../fonts/swanky-and-moo-moo.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Buran USSR';
  src: url('../fonts/buran-ussr.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Unbounded', sans-serif;
}

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

::selection {
  background: var(--yellow);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--yellow);
  border-radius: 999px;
}

.font-tektur {
  font-family: 'Tektur', sans-serif;
}

.font-teko {
  font-family: 'Buran USSR', sans-serif;
}

.font-swanky {
  font-family: 'Swanky and Moo Moo', cursive;
}

/* ---------- shared primitives ---------- */
.screen {
  position: relative;
  overflow: hidden;
}

.btn-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 22px;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  background: var(--yellow);
  color: var(--ink);
  font: 700 13px/1 'Unbounded', sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-yellow:hover {
  background: #f3d23f;
  transform: translateY(-2px) rotate(-1deg) !important;
  box-shadow: 0 8px 20px -6px rgba(231, 191, 32, .55);
}

.btn-text-short {
  display: none;
}

.btn-yellow svg {
  flex-shrink: 0;
  animation: arrow-point 1.4s ease-in-out infinite;
}

.btn-yellow:hover svg {
  animation-play-state: paused;
}

@keyframes arrow-point {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid rgba(19, 19, 19, .25);
  font: 700 12px/1 'Unbounded', sans-serif;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: rgba(19, 19, 19, .04);
  transform: rotate(-1deg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  font: 700 12px/1 'Unbounded', sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .4s ease;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.eyebrow.dark {
  color: var(--b-fg);
}

.eyebrow.dark::before {
  background: var(--yellow);
}

/* ---------- typewriter ---------- */
.is-typing::after {
  content: '';
  display: inline-block;
  width: .08em;
  height: .82em;
  margin-left: .04em;
  background: currentColor;
  vertical-align: -0.08em;
  animation: caret-blink .85s steps(1) infinite;
}

@keyframes caret-blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1.3s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .16s;
}

.reveal-delay-3 {
  transition-delay: .24s;
}

.reveal-delay-4 {
  transition-delay: .32s;
}

/* ---------- grain overlay ---------- */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================
   HEADER
===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  min-height: 84px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(var(--paper-rgb), .1);
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(var(--ink-rgb), .92);
  backdrop-filter: blur(10px);
  border-color: rgba(var(--paper-rgb), .12);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  height: 24px;
  color: var(--paper);
}

.logo-letter {
  height: 100%;
  width: auto;
  display: block;
}

.logo-letter path {
  fill: currentColor;
}

.logo-mark .logo-letter:nth-child(1) {
  margin-right: 3px;
}

.logo-toggle {
  display: inline-flex;
  align-items: center;
  height: 100%;
  margin: 0 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
}

.logo-toggle svg {
  height: 100%;
  width: auto;
  display: block;
  transition: transform .25s ease;
}

.logo-toggle:hover svg {
  transform: scale(1.08);
}

.logo-toggle:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

.toggle-track {
  fill: var(--muted);
  transition: fill .35s ease;
}

.toggle-knob {
  fill: var(--muted);
  transition: fill .35s ease, x .35s cubic-bezier(.4, 0, .2, 1);
}

.logo-toggle[aria-pressed="true"] .toggle-track,
.logo-toggle[aria-pressed="true"] .toggle-knob {
  fill: var(--yellow);
}

.logo-toggle[aria-pressed="true"] .toggle-knob {
  x: 259.5px;
}

.desktop-nav {
  display: flex;
  flex-shrink: 1;
  min-width: 0;
  gap: clamp(10px, 1.5vw, 26px);
  margin-left: 20%;
  font-size: 12.5px;
  color: rgba(var(--paper-rgb), .75);
}

.desktop-nav a {
  white-space: nowrap;
  transition: color .2s ease;
}

.desktop-nav a:hover {
  color: var(--yellow);
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  margin-left: auto;
  padding-left: 12px;
}

.location {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--paper-rgb), .2);
  color: rgba(var(--paper-rgb), .7);
  font-size: 10.5px;
  letter-spacing: .03em;
}

.mobile-menu {
  display: none;
  margin-left: auto;
  padding: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease, background-color .4s ease;
}

.mobile-menu.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink);
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
}

.mobile-nav a {
  color: var(--paper);
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Tektur', sans-serif;
}


.mobile-nav .btn-yellow {
  gap: 12px;
  color: var(--ink);
  margin-top: 10px;
  font: 700 13px/1 'Unbounded', sans-serif;
  text-transform: none;
}

.mobile-nav-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--paper);
  justify-content: center;
}

.mobile-nav-social a {
  display: inline-flex;
  color: rgba(var(--paper-rgb), .7);
  transition: color .2s ease;
}

.mobile-nav-social a:hover {
  color: var(--yellow);
}

/* =====================================================
   HERO
===================================================== */
.hero {
  min-height: 820px;
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(var(--ink-rgb), .92) 0%, rgba(var(--ink-rgb), .62) 38%, rgba(var(--ink-rgb), .12) 64%, rgba(var(--ink-rgb), .4) 100%),
    var(--hero-bg-image) center/cover no-repeat;
  transition: background-color .4s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px var(--pad) 60px;
  min-height: calc(600px - 84px);
  display: flex;
  align-items: center;
}

.hero-copy {
  margin-top: 5vw;
  position: relative;
  z-index: 3;
  max-width: 740px;
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: .98;
  text-transform: uppercase;
  margin: 1vw 0 10vw 0;
}

.hero h1 strong {
  color: var(--yellow);
  font-weight: inherit;
}

.hero-copy p {
  max-width: 370px;
  font-weight: 300;
  margin: 10px 0 30px;
  color: rgba(var(--paper-rgb), .65);
  font-size: 12px;
  line-height: 1.7;
}

.hero-note {
  margin-top: 16px;
  color: rgba(var(--paper-rgb), .4);
  font-size: 12px;
  letter-spacing: .02em;
}

.side-note {
  position: absolute;
  z-index: 4;
  right: 15%;
  top: 45%;
  color: var(--yellow);
  font-family: 'Swanky and Moo Moo', cursive;
  font-size: 22px;
  line-height: 1.15;
  transform: rotate(-6deg);
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
  transition: color .4s ease;
}

.side-menu {
  position: absolute;
  z-index: 4;
  right: 4%;
  top: 12%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(var(--paper-rgb), .75);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
}

.side-menu .plus {
  font-size: 22px;
  color: var(--yellow);
  margin-bottom: 6px;
  line-height: 1;
  transition: color .4s ease;
}

.side-menu a:hover {
  color: var(--yellow);
}

.hero-cross {
  position: absolute;
  right: 6%;
  bottom: 6%;
  z-index: 4;
  font-size: 26px;
  color: rgba(var(--paper-rgb), .65);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .4);
  line-height: 1;
}

/* =====================================================
   PAIN
===================================================== */
.pain {
  background: var(--b-bg);
  transition: background-color .4s ease;
}

.pain::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .1;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 5px, #888 6px 7px, transparent 8px 13px),
    repeating-linear-gradient(90deg, transparent 0 7px, #777 8px 9px, transparent 10px 17px);
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity .4s ease;
}

/* light-theme slides get the real concrete texture instead of the CSS grid.
   .process, .stats and .industries are excluded: they're always dark. */
[data-theme="light"] .pain,
[data-theme="light"] .portfolio,
[data-theme="light"] .testimonials,
[data-theme="light"] .pricing,
[data-theme="light"] .lead {
  background-image: var(--texture-beton-image);
  background-size: cover;
  background-position: center;
}

[data-theme="light"] .pain::before {
  opacity: 0;
}

.pain-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr .85fr .9fr;
  gap: 16px;
  align-items: stretch;
  padding: 110px var(--pad) 70px;
}

.pain-intro {
  padding-right: 14px;
  display: flex;
  flex-direction: column;
}

.pain h2 {
  margin: 16px 0 20px;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: .96;
}

.pain h2 em {
  color: var(--yellow);
  font-style: normal;
}

.pain-intro p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(var(--b-fg-rgb), .6);
}

.micro-caption {
  margin-top: auto;
  padding-top: 40px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pain-card {
  position: relative;
  border: 1px solid rgba(var(--b-fg-rgb), .35);
  background: var(--pain-card-bg);
  transition: background-color .4s ease, border-color .4s ease,
    opacity 1.3s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1);
}

.card-cover {
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--b-fg-rgb), .35);
}

#cookie-decline {
  color: rgba(var(--ink), .85);
}

#cookie-decline:hover {
  color: rgba(var(--paper), .85);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.15) contrast(1.05);
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.pain-card:hover .card-cover img {
  transform: scale(1.06);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 32px;
  margin-top: -1px;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  font-size: 16px;

}

.pain-card h3 {
  margin: 14px 18px 8px;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.05;
}

.pain-card p {
  margin: 0 18px 20px;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(var(--b-fg-rgb), .55);
}

.pain-card::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.pain-result {
  display: flex;
  flex-direction: column;
  padding-left: 8px;
}

.pain-result h2 {
  margin: 0 0 14px;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.pain-highlight {
  display: inline;
  padding: 12px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1.1;
}

.result-arrow {
  margin-top: auto;
  padding-top: 26px;
  font-size: 34px;
  color: var(--b-fg);
  transform-origin: left center;
  animation: arrow-stretch 1.8s ease-in-out infinite;
}

@keyframes arrow-stretch {

  0%,
  100% {
    transform: scaleX(1);
  }

  50% {
    transform: scaleX(1.4);
  }
}

/* =====================================================
   PLACEHOLDER COVER (shared: portfolio + process, until real photos land)
===================================================== */
.ph-cover {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(19, 19, 19, .07) 0 2px, transparent 2px 14px),
    #cfcdc8;
}

.ph-cover span {
  margin: 10px;
  padding: 3px 8px;
  background: rgba(19, 19, 19, .55);
  color: var(--paper);
  font: 600 9px/1.3 'Unbounded', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* =====================================================
   PORTFOLIO
===================================================== */
.portfolio {
  background: var(--b-bg);
  color: var(--b-fg);
  transition: background-color .4s ease, color .4s ease;
}

.portfolio-inner {
  padding: 100px var(--pad) 90px;
}

.portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.portfolio h2 {
  margin: 16px 0 0;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.portfolio h2 em {
  color: var(--yellow);
  font-style: normal;
}

.portfolio-lead {
  max-width: 300px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(var(--b-fg-rgb), .6);
  text-align: right;
  transition: color .4s ease;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.portfolio-card {
  position: relative;
  display: flex;
  border: 1px solid rgba(var(--b-fg-rgb), .18);
  background: var(--pain-card-bg);
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease,
    background-color .4s ease, border-color .4s ease;
}

.portfolio-card:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35);
}

.portfolio-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--yellow);
  color: var(--ink);
  font: 700 10px/1 'Unbounded', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 10px;
}

.portfolio-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 58px 22px 22px;
}

.portfolio-body h3 {
  margin: 0;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.55rem;
  line-height: 1.05;
}

.portfolio-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(var(--b-fg-rgb), .6);
  transition: color .4s ease;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font: 700 11px/1 'Unbounded', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--yellow);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease, color .4s ease;
}

.portfolio-card:hover .portfolio-link {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card .ph-cover {
  width: 42%;
  flex-shrink: 0;
  border-left: 1px solid rgba(var(--b-fg-rgb), .18);
  transition: border-color .4s ease;
}

.portfolio-cover {
  width: 360px;
  height: 195px;
  flex-shrink: 0;
  overflow: hidden;
  border-left: 1px solid rgba(var(--b-fg-rgb), .18);
  transition: border-color .4s ease;
}

.portfolio-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.portfolio-card:hover .portfolio-cover img {
  transform: scale(1.06);
}

.portfolio-card.is-extra-hidden {
  display: none;
}

.portfolio-more {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 36px auto 0;
  padding: 13px 22px;
  border: 1px solid rgba(var(--b-fg-rgb), .25);
  background: transparent;
  color: var(--b-fg);
  font: 700 12px/1 'Unbounded', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .4s ease, transform .2s ease;
}

.portfolio-more:hover {
  border-color: var(--yellow);
  background: rgba(231, 191, 32, .08);
  transform: rotate(-1deg);
}

.portfolio-more[hidden] {
  display: none;
}

/* =====================================================
   PROCESS
===================================================== */
.process {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.process::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), .55) 0%, rgba(var(--ink-rgb), .75) 100%),
    url('../img/bg-process.jpg') center/cover no-repeat;
}

.process-inner {
  position: relative;
  z-index: 1;
  padding: 100px var(--pad) 90px;
}

.process-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.process .eyebrow.dark,
.stats .eyebrow.dark,
.industries .eyebrow.dark {
  color: var(--paper);
}

.process h2 {
  margin: 16px 0 0;
  color: var(--paper);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.process h2 em {
  color: var(--yellow);
  font-style: normal;
}

h2 em,
lkz h1 strong {
  text-shadow: 3px 3px #000000db;
}

.process-lead {
  max-width: 260px;
  margin: 0;
  font-size: 24px;
  rotate: 3deg;
  line-height: 1;
  color: var(--yellow);
  font-family: 'Swanky and Moo Moo', cursive;
  text-align: right;
  transition: color .4s ease;
}

.process-list {
  position: relative;
  border-top: 1px solid rgba(var(--paper-rgb), .18);
  padding-right: 26px;
  transition: border-color .4s ease;
}

.process-list::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
}

.process-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(var(--paper-rgb), .18);
  transition: background-color .3s ease, border-color .4s ease,
    opacity 1.3s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1);
}

.process-row:hover {
  background: rgba(var(--paper-rgb), .03);
}

.process-row-main {
  max-width: 640px;
}

.process-row-label {
  display: block;
  margin-bottom: 10px;
  font: 700 12px/1 'Unbounded', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
}

.process-row h3 {
  margin: 0 0 10px;
  color: var(--paper);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
  transition: color .4s ease;
}

.process-row p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(var(--paper-rgb), .6);
  transition: color .4s ease;
}

.process-row-tag {
  flex-shrink: 0;
  padding-top: 4px;
  font: 700 11px/1 'Unbounded', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), .4);
  white-space: nowrap;
  transition: color .4s ease;
}

.process-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 42px;
}

.process-cta-note {
  margin: 0;
  max-width: 280px;
  font-size: 24px;
  line-height: 1;
  rotate: -2deg;
  color: var(--yellow);
  font-family: 'Swanky and Moo Moo', cursive;
  transition: color .4s ease;
}

/* rows reveal one after another with a half-second beat, not the quick 80ms grid stagger */
.process-list .reveal-delay-1 {
  transition-delay: 0s;
}

.process-list .reveal-delay-2 {
  transition-delay: .5s;
}

.process-list .reveal-delay-3 {
  transition-delay: 1s;
}

.process-list .reveal-delay-4 {
  transition-delay: 1.5s;
}

/* =====================================================
   STATS
===================================================== */
.stats {
  position: relative;
  background: var(--ink);
  color: var(--paper);
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(var(--ink-rgb), .6) 0%, rgba(var(--ink-rgb), .8) 100%),
    url('../img/bg-process.jpg') center/cover no-repeat;
}

.stats-inner {
  position: relative;
  z-index: 1;
  padding: 100px var(--pad) 110px;
}

.stats h2 {
  margin: 20px 0 0;
  color: var(--paper);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  line-height: .94;
  transition: color .4s ease;
}

.stats h2 em {
  color: var(--yellow);
  font-style: normal;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  row-gap: 90px;
  column-gap: 6vw;
  margin-top: 84px;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
}

.stat-number {
  text-align: center;
  display: block;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  line-height: .82;
  font-size: clamp(6rem, 11vw, 10.5rem);
  color: var(--paper);
  transition: color .4s ease;
}

.stat-number sup {
  font-size: .32em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-left: 4px;
  display: block;
}

.stat-label {
  text-align: center;
  display: block;
  margin-top: 14px;
  font-weight: 300;
  max-width: 320px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(var(--paper-rgb), .55);
  transition: color .4s ease;
}

.stat-label strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: .8em;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--paper);
  transition: color .4s ease;
}

/* second stat: outlined instead of filled, for typographic contrast */
.stat--outline .stat-number {
  color: transparent;
  -webkit-text-stroke: 3px var(--paper);
}

.stat--outline .stat-number sup {
  color: transparent;
  -webkit-text-stroke: 1px var(--paper);
}

/* third stat: the headline number, pushed up and tilted */
.stat--hero {
  align-self: center !important;
  transform: rotate(-2deg);
}

.stat--hero .stat-number {
  font-size: clamp(6rem, 11vw, 9.5rem);
  color: var(--yellow);
  text-align: center;
}

/* fourth stat: duplicated offset shadow, poster-print style */
.stat--shadow .stat-number {
  color: var(--paper);
  text-shadow: 3px 3px 0 var(--yellow);
}

/* =====================================================
   TESTIMONIALS
===================================================== */
.testimonials {
  background: var(--b-bg);
  color: var(--b-fg);
  transition: background-color .4s ease, color .4s ease;
}

.testimonials-inner {
  padding: 100px var(--pad) 110px;
}

.testimonials h2 {
  margin: 16px 0 0;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.testimonials h2 em {
  color: var(--yellow);
  font-style: normal;
}

.avatars-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 20px;
  max-width: 90vw;
  margin: 66px auto 0;
}

.avatar-item {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.avatar-item:hover,
.avatar-item:focus-visible {
  transform: translateY(-6px);
}

.avatar-item:focus-visible .avatar-circle {
  outline: 2px solid var(--yellow);
  outline-offset: 4px;
}

.avatar-circle {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(231, 191, 32, .22), rgba(var(--b-fg-rgb), .06));
  border: 1px solid rgba(var(--b-fg-rgb), .2);
  animation: avatar-breathe 5s ease-in-out infinite;
  transition: border-color .4s ease, box-shadow .3s ease;
}

.avatar-item:hover .avatar-circle,
.avatar-item:focus-visible .avatar-circle {
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .45);
}



.avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-item:nth-child(3n+2) .avatar-circle {
  animation-delay: -1.7s;
}

.avatar-item:nth-child(3n+3) .avatar-circle {
  animation-delay: -3.4s;
  width: 96px;
  height: 96px;
}

.avatar-item:nth-child(3n+1) .avatar-circle {
  width: 122px;
  height: 122px;
}

@keyframes avatar-breathe {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.045);
  }
}

.avatar-initials {
  font-family: 'Buran USSR', sans-serif;
  font-size: 2rem;
  color: var(--b-fg);
  transition: color .4s ease;
}

.avatar-circle img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-play {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--b-bg);
  transition: border-color .4s ease, transform .25s ease;
}

.avatar-play svg {
  transform: translateX(1px);
}

.avatar-item:hover .avatar-play,
.avatar-item:focus-visible .avatar-play {
  transform: scale(1.12);
}

.avatar-name {
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.05;
  color: var(--b-fg);
  text-align: center;
  transition: color .4s ease;
}

.avatar-role {
  display: none;
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(var(--b-fg-rgb), .5);
  transition: color .4s ease;
}

/* ---------- video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, .88);
}

.video-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .12);
}

.video-modal-box video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.video-modal-close:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
  transform: rotate(90deg);
}

.video-modal-caption {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.video-modal-caption .avatar-name {
  color: var(--paper);
  text-align: left;
}

.video-modal-caption .avatar-role {
  color: rgba(var(--paper-rgb), .55);
  text-align: left;
}

.video-modal-tag {
  align-self: flex-start;
  margin-bottom: 4px;
  padding: 4px 9px;
  background: var(--yellow);
  color: var(--ink);
  font: 700 9px/1 'Unbounded', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =====================================================
   INDUSTRIES
===================================================== */
.industries {
  background: var(--ink);
  color: var(--paper);
  transition: background-color .4s ease, color .4s ease;
}

.industries-inner {
  padding: 100px var(--pad) 100px;
}

.industries-head {
  /* display: flex; */
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.industries h2 {
  margin: 16px 0 0;
  color: var(--paper);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.industries h2 em {
  color: var(--yellow);
  font-style: normal;
}

.industries-lead {
  max-width: 380px;
  margin: 3vw 0 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(var(--paper-rgb), .9);
  text-align: left;
  transition: color .4s ease;
}

.industries-list {
  position: relative;
  border-top: 1px solid rgba(var(--paper-rgb), .18);
  padding-right: 26px;
  transition: border-color .4s ease;
}

.industries-list::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 3px;
  background: var(--yellow);
}

.industry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(var(--paper-rgb), .18);
  transition: background-color .3s ease, border-color .4s ease,
    opacity 1.3s cubic-bezier(.16, 1, .3, 1), transform 1.3s cubic-bezier(.16, 1, .3, 1);
}

.industry-row:hover {
  background: rgba(var(--paper-rgb), .03);
}

.industry-row-name {
  flex: 0 0 auto;
  width: 230px;
  margin: 0;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--paper);
  transition: color .4s ease;
}

.industry-row-text {
  flex: 1 1 420px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(var(--paper-rgb), .6);
  transition: color .4s ease;
}

.industry-row-arrow {
  color: var(--yellow);
  margin: 0 4px;
}

.industry-row-before {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.industry-row-before::after {
  content: 'mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0%;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'Swanky and Moo Moo', cursive;
  font-size: 1.5em;
  letter-spacing: -2.9px;
  line-height: 1;
  color: var(--yellow);
  opacity: .9;
  pointer-events: none;
  transform: translateY(-50%) rotate(-.2deg);
  transform-origin: left center;
  transition: width .5s cubic-bezier(.65, 0, .35, 1);
  transition-delay: 0s;
}

.industry-row.is-visible .industry-row-before::after {
  width: 100%;
  transition-delay: .75s;
}

@media (max-width: 767.98px) {
  .industry-row-before::after {
    top: 70%;
    transform: translateY(-50%) rotate(-3deg);
  }
}

.industry-row-arrow,
.industry-row-after {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: 0s;
}

.industry-row.is-visible .industry-row-arrow,
.industry-row.is-visible .industry-row-after {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1.15s;
}

.industries-foot {
  margin-top: 40px;
  padding-top: 28px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(var(--paper-rgb), .6);
  transition: color .4s ease;
}

.industries-foot strong {
  color: var(--paper);
  transition: color .4s ease;
}

/* =====================================================
   PRICING
===================================================== */
.pricing {
  background: var(--b-bg);
  color: var(--b-fg);
  transition: background-color .4s ease, color .4s ease;
}

.pricing-inner {
  padding: 100px var(--pad) 100px;
}

.pricing-head {
  margin-bottom: 54px;
}

.pricing h2 {
  margin: 16px 0 0;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.pricing h2 em {
  color: var(--yellow);
  font-style: normal;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  height: 100%;
}

/* the entrance (.reveal) animates transform on .pricing-card itself;
   the idle float lives on this inner wrapper so the two never fight
   over the same transform property. */
.pricing-card-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 34px 28px;
  border: 1px solid rgba(var(--b-fg-rgb), .2);
  background: rgb(255 255 255 / 0%);
  transition: background-color .4s ease, border-color .4s ease;
  animation: card-float 6s ease-in-out infinite;
}

[data-theme="light"] .pricing-card-inner {
  background: rgb(255 255 255 / 62%);
}

.pricing-card:nth-child(2) .pricing-card-inner {
  animation-delay: -2s;
}

.pricing-card:nth-child(3) .pricing-card-inner {
  animation-delay: -4s;
}

.pricing-card--featured .pricing-card-inner {
  border-color: var(--yellow);
  box-shadow: 0 0 0 1px var(--yellow), 0 30px 60px -24px rgba(231, 191, 32, .45);
}

@keyframes card-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.pricing-badge {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: 'Swanky and Moo Moo', cursive;
  color: var(--yellow);
  font-size: 1.5rem;
  line-height: 1;
  transform: rotate(-5deg);
}

.pricing-card h3 {
  margin: 0;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--b-fg);
  transition: color .4s ease;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.pricing-price-from {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(var(--b-fg-rgb), .5);
  transition: color .4s ease;
}

.pricing-price-old {
  text-decoration: line-through;
  font-size: 14px;
  color: rgba(var(--b-fg-rgb), .4);
  transition: color .4s ease;
}

.pricing-price-new {
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--b-fg);
  transition: color .4s ease;
}

.pricing-discount {
  background: var(--yellow);
  color: var(--ink);
  font: 700 10px/1 'Unbounded', sans-serif;
  letter-spacing: .04em;
  padding: 4px 8px;
  position: absolute;
  top: 2%;
  left: 0%;
}

.pricing-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(var(--b-fg-rgb), .65);
  transition: color .4s ease;
}

.pricing-meta {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--yellow);
}

.pricing-cta {
  margin-top: auto;
  padding-top: 6px;
  justify-content: center;
}

/* =====================================================
   LEAD FORM
===================================================== */
.lead {
  background: var(--b-bg);
  color: var(--b-fg);
  transition: background-color .4s ease, color .4s ease;
}

.lead-inner {
  padding: 100px var(--pad) 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.lead h2 {
  margin: 16px 0 0;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.lead h2 em {
  color: var(--yellow);
  font-style: normal;
}

.lead-lead {
  max-width: 520px;
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(var(--b-fg-rgb), .6);
  transition: color .4s ease;
}

.lead-response-note {
  max-width: 380px;
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(var(--b-fg-rgb), .5);
  transition: color .4s ease;
}

.lead-response-note a {
  color: var(--yellow);
  text-decoration: underline;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-note {
  position: absolute;
  bottom: 3em;
  right: 1em;
  max-width: 280px;
  font-size: 20px;
  rotate: -2deg;
  line-height: 1;
  font-family: 'Swanky and Moo Moo', cursive;
  color: var(--yellow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  width: 100%;
  padding: 15px 16px;
  background: var(--paper);
  border: 1px solid rgba(var(--b-fg-rgb), .3);
  color: var(--ink);
  font: 500 14px/1.2 'Unbounded', sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, color .4s ease;
}

.field::placeholder {
  color: rgba(var(--ink-rgb), .4);
}

.field:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(231, 191, 32, .2);
}

.niche-label {
  font: 700 11px/1 'Unbounded', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(var(--b-fg-rgb), .5);
  transition: color .4s ease;
  margin-bottom: 10px;
  display: block;
}

.niche-select {
  width: 100%;
  padding: 15px 16px;
  background: var(--paper);
  border: 1px solid rgba(var(--b-fg-rgb), .3);
  color: var(--ink);
  font: 600 14px/1.2 'Unbounded', sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, color .4s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23E7BF20' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.niche-select:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(231, 191, 32, .2);
}

.niche-select option {
  background: var(--ink);
  color: var(--paper);
}

.slide-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.16, 1, .3, 1);
}

.slide-wrap.open {
  grid-template-rows: 1fr;
}

.slide-inner {
  overflow: hidden;
}

.slide-inner .field {
  margin-top: 10px;
}

.lead-consent {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(var(--b-fg-rgb), .45);
  transition: color .4s ease;
}

.lead-consent a {
  text-decoration: underline;
  color: rgba(var(--b-fg-rgb), .7);
  transition: color .4s ease;
}

.lead-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 460px;
  margin: 1em 0 1em 0;
}

.lead-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--yellow);
  cursor: pointer;
}

.lead-checkbox span {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(var(--b-fg-rgb), .55);
  transition: color .4s ease;
}

.lead-checkbox span a {
  text-decoration: underline;
  color: rgba(var(--b-fg-rgb), .8);
  transition: color .4s ease;
}

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  opacity: 0;
  pointer-events: none;
}

.lead-error {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #e0554a;
}

.lead-error a {
  color: inherit;
  text-decoration: underline;
}

.lead-success {
  padding: 40px 30px;
  border: 1px solid var(--yellow);
  text-align: center;
}

.lead-success h3 {
  margin: 0 0 10px;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--b-fg);
}

.lead-success p {
  margin: 0;
  font-size: 13px;
  color: rgba(var(--b-fg-rgb), .6);
}

/* =====================================================
   FOOTER
===================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
}

.footer-inner {
  padding: 60px var(--pad) 30px;
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.3fr) minmax(120px, auto) minmax(120px, auto);
  gap: 40px;
  align-items: start;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-contact {
  max-width: 320px;
}

.footer-contact h3 {
  margin: 0 0 10px;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--paper);
}

.footer-contact>p {
  margin: 0 0 22px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(var(--paper-rgb), .65);
}

.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-form textarea.field {
  resize: vertical;
  min-height: 80px;
  font-family: 'Unbounded', sans-serif;
}

.footer-contact .lead-checkbox span {
  color: rgba(var(--paper-rgb), .6);
}

.footer-contact .lead-checkbox span a {
  color: rgba(var(--paper-rgb), .9);
}

.footer-contacts-label {
  margin: 0 0 12px;
  font: 700 11px/1 'Unbounded', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(var(--paper-rgb), .45);
}

.footer-seo-note {
  margin: 0 0 3em;
  padding: 0 var(--pad);
  max-width: 100%;
  font-size: 8px;
  line-height: 1.7;
  color: rgba(var(--paper-rgb), .32);
}

.footer-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 13px;
  color: rgba(var(--paper-rgb), .7);
}

.footer-nav a:hover {
  color: var(--yellow);
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--paper-rgb), .25);
  color: var(--paper);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.footer-social a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--paper-rgb), .12);
  padding: 22px var(--pad) 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  color: rgba(var(--paper-rgb), .45);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal a:hover {
  color: var(--yellow);
}

/* =====================================================
   COOKIE BANNER
===================================================== */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  max-width: 380px;
  padding: 18px 20px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6);
  transition: opacity .3s ease, transform .3s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(var(--paper-rgb), .75);
}

.cookie-banner a {
  text-decoration: underline;
  color: var(--paper);
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

#site-header .btn-yellow {
  min-height: 38px;
}

.cookie-banner .btn-yellow {
  align-self: flex-start;
  min-height: 40px;
  padding: 0 18px;
  font-size: 11px;
}

.cookie-banner .btn-outline {
  align-self: flex-start;
  min-height: 40px;
  padding: 0 18px;
  font-size: 11px;
  border-color: rgba(255, 255, 255, .25);
  color: rgba(var(--paper-rgb), .85);
}

.cookie-banner .btn-outline:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .06);
}

/* =====================================================
   RESPONSIVE
===================================================== */
/* header nav grew to 6 links + badge + CTA — this needs to shed the location
   badge earlier than the general tablet breakpoint or it collides with "Тарифы/Контакты" */
@media (max-width: 1300px) {
  .location {
    display: none;
  }
}

/* 6 nav links no longer fit next to the CTA below ~1200px at any comfortable
   size — switch to the hamburger menu here instead of squeezing further. */
@media (max-width: 1200px) {

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    margin-left: 16px;
    gap: 10px;
    font-size: 11.5px;
  }

  .process-row {
    gap: 16px;
  }

  .pain-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .pain-intro {
    grid-row: span 2;
  }

  .pain-result {
    grid-column: 2 / -1;
    padding-left: 0;
    padding-top: 10px;
  }

  .industries-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .lead-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 767.98px) {
  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .site-header {
    min-height: 68px;
    padding: 0 20px;
  }

  .logo-mark {
    height: 19px;
  }

  .lead-checkbox {
    margin: 1em 0 4em 0;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    min-height: 760px;
    background-image: linear-gradient(180deg, rgba(var(--ink-rgb), .88) 0%, rgba(var(--ink-rgb), .32) 30%, rgba(var(--ink-rgb), .1) 48%, rgba(var(--ink-rgb), .55) 74%, rgba(var(--ink-rgb), .88) 100%), var(--hero-bg-mobile-image);
    background-size: cover;
    background-position: center;
  }

  .hero-bg {
    display: none;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 20px 0px 20px;
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8.9vw, 2.8rem);
    margin: 2vw 0 105vw 0;
  }

  .hero-copy .eyebrow {
    margin-top: 0vw;
  }

  .side-note {
    top: 40%;
  }

  .hero-copy p {
    font-size: 13px;
    margin: 22px 0 22px 0;
  }

  .side-menu,
  .hero-cross {
    display: none;
  }

  .pain-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 90px 20px 30px;
  }

  .pain-intro {
    padding-right: 0;
  }

  .micro-caption {
    display: none;
  }

  .card-cover {
    height: 190px;
  }

  .pain-result {
    padding: 6px 0 0;
  }

  .result-arrow {
    padding-top: 16px;
  }

  .portfolio-inner,
  .process-inner {
    padding: 90px 20px 60px;
  }

  .portfolio-head,
  .process-head {
    align-items: flex-start;
  }

  .portfolio-lead,
  .process-lead {
    text-align: left;
    max-width: none;
  }

  .process-lead {
    color: var(--yellow);
    rotate: none;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    flex-direction: column;
  }

  .portfolio-card .ph-cover {
    width: 100%;
    height: 190px;
    border-left: 0;
    border-bottom: 1px solid rgba(19, 19, 19, .18);
    order: -1;
  }

  .portfolio-cover {
    width: 100%;
    height: 190px;
    border-left: 0;
    border-bottom: 1px solid rgba(var(--b-fg-rgb), .18);
    order: -1;
  }

  .portfolio-body {
    padding: 18px 18px 22px;
  }

  .portfolio-tag {
    top: -5px;
    left: 0px;
  }

  .portfolio-link {
    opacity: 1;
    transform: none;
  }

  .process-list {
    padding-right: 18px;
  }

  .process-row {
    flex-direction: column;
    gap: 10px;
    padding: 22px 0;
  }

  .process-row-tag {
    padding-top: 0;
  }

  .process-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-inner,
  .testimonials-inner {
    padding: 90px 20px 70px;
  }

  .stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }

  .stat--hero {
    align-self: flex-start;
    transform: rotate(-1deg);
  }

  .avatars-grid {
    gap: 34px 12px;
  }

  .avatar-item:nth-child(3n+1) .avatar-circle,
  .avatar-item:nth-child(3n+2) .avatar-circle,
  .avatar-item:nth-child(3n+3) .avatar-circle {
    width: 72px;
    height: 72px;
  }

  .industries-inner,
  .pricing-inner,
  .lead-inner {
    padding: 90px 20px 70px;
  }

  .industries-head,
  .pricing-head {
    align-items: flex-start;
  }

  .industries-lead {
    text-align: left;
    max-width: none;
  }

  .industries-list {
    padding-right: 18px;
  }

  .industry-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 0;
  }

  .industry-row-name {
    width: auto;
  }

  .industry-row-text {
    flex: 1 1 100px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .lead-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 90px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 20px 24px;
  }

  .footer-seo-note {
    padding: 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 24px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

/* =====================================================
   BLOG (/blog, /blog/<slug>)
===================================================== */
.blog {
  background: var(--b-bg);
  color: var(--b-fg);
  transition: background-color .4s ease, color .4s ease;
  padding-top: 96px;
}

.blog-hero-banner {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.blog-hero-banner-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(19, 19, 19, .92) 0%, rgba(19, 19, 19, .68) 45%, rgba(19, 19, 19, .35) 100%),
    var(--blog-hero-bg-image) bottom/cover no-repeat;
}

.blog-hero-banner-inner {
  position: relative;
  z-index: 2;
  padding: 60px var(--pad) 100px;
  max-width: 1280px;
  margin: 4% auto auto auto;
}

.blog-hero-banner-inner h2 {
  margin: 0 0 14px;
  color: var(--paper);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.blog-hero-banner-inner p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(var(--paper-rgb), .7);
}

@media (max-width: 767.98px) {
  .blog-hero-banner-bg {
    background:
      linear-gradient(180deg, rgba(19, 19, 19, .85) 0%, rgba(19, 19, 19, .75) 100%),
      var(--blog-hero-bg-mobile-image) center/cover no-repeat;
  }

  .blog-hero-banner-inner {
    margin: 15% auto auto auto;
  }
}

.blog-inner {
  padding: 60px var(--pad) 100px;
  margin: 0 auto;
}

.contacts-inner {
  padding: 60px var(--pad) 100px;
  margin: 0 auto;
}

.blog-head {
  margin-bottom: 36px;
}

.blog-head h1 {
  margin: 16px 0 0;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: .96;
  transition: color .4s ease;
}

.blog-tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.blog-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--b-fg-rgb), .25);
  color: rgba(var(--b-fg-rgb), .75);
  font: 700 11px/1 'Unbounded', sans-serif;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
  animation: tag-pill-float 4s ease-in-out infinite;
}

.blog-tag-pill:nth-child(3n+2) {
  animation-delay: -1.3s;
}

.blog-tag-pill:nth-child(3n+3) {
  animation-delay: -2.6s;
}

@keyframes tag-pill-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.blog-tag-pill:hover {
  border-color: var(--yellow);
  color: var(--b-fg);
}

.blog-tag-pill.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .blog-tag-pill {
    animation: none;
  }
}

.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.blog-grid .blog-card {
  flex: 1 1 320px;
  max-width: 320px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(var(--b-fg-rgb), .18);
  background: var(--pain-card-bg);
  text-decoration: none;
  color: inherit;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease,
    background-color .4s ease, border-color .4s ease;
}

.blog-card:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .35);
}

.blog-card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--b-fg-rgb), .18);
  transition: border-color .4s ease;
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.06);
}

.blog-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font: 700 9px/1 'Unbounded', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--yellow);
}

.blog-card-body h3 {
  margin: 0;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.4rem;
  line-height: 1.08;
}

.blog-card-body p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(var(--b-fg-rgb), .6);
  transition: color .4s ease;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font: 700 11px/1 'Unbounded', sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--yellow);
}

.blog-empty {
  padding: 60px 0;
  text-align: center;
  color: rgba(var(--b-fg-rgb), .55);
}

/* ---------- article ---------- */
.article-hero {
  margin-bottom: 40px;
}

.article-meta {
  margin: 16px 0 0;
  font-size: 12px;
  color: rgba(var(--b-fg-rgb), .55);
}

.article-hero h1 {
  margin: 12px 0 0;
  color: var(--b-fg);
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  transition: color .4s ease;
}

.article-cover {
  margin-top: 28px;
  border: 1px solid rgba(var(--b-fg-rgb), .18);
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  display: none;
}

.article-content {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.75;
}

.article-content h2 {
  margin: 40px 0 16px;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--b-fg);
}

.article-content p {
  margin: 0 0 18px;
  color: rgba(var(--b-fg-rgb), .85);
}

.article-content ul,
.article-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: rgba(var(--b-fg-rgb), .85);
}

.article-content img {
  max-width: 100%;
  height: auto;
  margin: 8px 0;
}

.article-content a {
  color: var(--yellow);
  text-decoration: underline;
}

.article-tags {
  max-width: 760px;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-related {
  max-width: 1280px;
  margin: 80px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(var(--b-fg-rgb), .18);
}

.article-related h2 {
  margin: 0 0 24px;
  font-family: 'Buran USSR', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 1.6rem;
  color: var(--b-fg);
}

@media (max-width: 767.98px) {

  .article-content,
  .article-tags {
    max-width: 100%;
  }
}

/* =====================================================
   Страницы «Контакты» и «Кейсы»
===================================================== */
.page-intro {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(var(--b-fg-rgb), .65);
}

.contact-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}

.contact-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(var(--b-fg-rgb), .05);
  border: 1px solid rgba(var(--b-fg-rgb), .18);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-text .page-intro {
  margin-top: 0;
  max-width: none;
}

.contact-text {
  padding: 5vw;
}

.contact-columns .field-row {
  grid-template-columns: auto;
}

.contact-text .footer-contact-form {
  margin-top: 22px;
  max-width: 440px;
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.contact-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--b-fg-rgb), .25);
  color: var(--b-fg);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.contact-social a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--ink);
}

.contact-region-note {
  margin: 36px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(var(--b-fg-rgb), .6);
}

@media (max-width: 767.98px) {
  .contact-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-image {
    max-width: 320px;
  }

  .contact-text .footer-contact-form {
    max-width: none;
  }
}