/* ==================== TOKENS ==================== */
:root {
  --bg: #F1F1F1;
  --ink: #1D2D2C;
  /* brand dark headings/text */
  --ink-2: #1D2D2C;
  --muted: #8B8A87;
  --muted-2: #6E6D6A;
  --muted-3: #B8BCBC;
  /* light labels */
  --line: #E3E1DE;
  --white: #fff;
  --accent: #F29633;
  /* brand orange */
  --accent-2: #E88A2B;
  --yellow: #F9B440;
  /* CTA yellow */
  --yellow-2: #FFC855;
  /* loyalty card */
  --cream: #F2EFEA;
  --card-radius: 20px;
  --maxw: 1448px;
  --gutter: 24px;
  --font: 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --body: 'Inter', 'TikTok Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Inter for body copy (matches Figma) */
.cmp-list li,
.faq-body p,
.faq__note p,
.contact__consent,
.contact__sub {
  font-family: var(--body)
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1,
h2,
h3,
h4,
p {
  margin: 0
}

ul {
  margin: 0;
  padding: 0;
  list-style: none
}

button {
  font-family: inherit;
  cursor: pointer
}

[hidden] {
  display: none !important
}

.wrap {
  width: min(var(--maxw), 100% - var(--gutter)*2);
  margin-inline: auto;
  max-width: 1400px;
}

.wrap.nav {
  max-width: 1448px;
}

/* ==================== BUTTONS / LINKS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  padding: 14px 39px;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, box-shadow .2s ease
}

/* Кнопка чуть поднимается под курсором и проваливается при нажатии. */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 45, 44, .18)
}

.btn:active {
  transform: translateY(0) scale(.98);
  box-shadow: none
}

@media(prefers-reduced-motion:reduce) {

  .btn,
  .link-more .rarr,
  .link-more__t::after,
  .case-card,
  .case-card--big .case-card__phone,
  .pay-band,
  .pay-card,
  .pay-card__img,
  .svc-card {
    transition: none
  }

  .btn:hover,
  .case-card:hover,
  .svc-card:hover,
  .pay-band:hover,
  .pay-card:hover,
  .case-card--big:hover .case-card__phone,
  .pay-card:hover .pay-card__img {
    transform: none
  }
}

.btn-dark {
  background: #0B0B0B;
  color: #fff
}

.btn-dark:hover {
  background: #232323
}

.btn-yellow {
  background: var(--yellow);
  color: #12100F;
  font-weight: 600
}

.btn-yellow:hover {
  background: #f2b93a
}

.btn-block {
  width: 100%
}

.btn-sm {
  padding: 13px 26px;
  font-size: 15px
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink)
}

.link-more .rarr {
  font-size: 17px;
  line-height: 1;
  transition: transform .15s ease
}

.link-more:hover .rarr {
  transform: translateX(3px)
}

/* Подчёркивание выезжает слева направо. Псевдоэлемент висит на подписи, а не на
   всей ссылке: иначе линия шла бы и под стрелкой. У карточек кейсов ::after
   ссылки занят растянутым на всю карточку кликом — поэтому здесь ::after
   подписи, он свободен. */
.link-more__t {
  position: relative
}

.link-more__t::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease
}

.link-more:hover .link-more__t::after,
.link-more:focus-visible .link-more__t::after,
.case-card:hover .link-more__t::after {
  transform: scaleX(1)
}

.link-more--light {
  color: #fff
}

.rarr {
  font-weight: 300
}

/* ==================== NAV ==================== */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 20px;
}

/* Логотип слева, кнопка справа, меню — ровно по центру шапки: боковые колонки
   по 1fr симметричны, поэтому центр меню не съезжает от ширины логотипа и CTA. */
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  background: rgba(241, 241, 241, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 4px 33px rgba(0, 0, 0, .03)
}

.logo {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  line-height: 1;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .02em
}

.logo img {
  display: block
}

.logo-a {
  color: #12100F
}

.logo-b {
  color: var(--accent)
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-link {
  font-size: 16px;
  font-weight: 300;
  color: #111;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0
}

.nav-link:hover {
  color: var(--accent-2)
}

.nav-link .chev {
  margin-top: 2px;
  transition: transform .2s ease
}

/* ===== Выпадашка «Услуги» =====
   Панель начинается вплотную к пункту меню (top: 100%) и «отбивается» от него
   собственным padding-top: между ними нет зазора, поэтому курсор доезжает до
   списка и меню не схлопывается по дороге. */
.nav-drop {
  position: relative;
  display: inline-flex
}

.nav-drop__menu {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 60;
  padding-top: 18px;
  min-width: 296px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s
}

.nav-drop__item {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.25;
  color: #111;
  background: rgba(241, 241, 241, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .15s ease, color .15s ease
}

.nav-drop__item:first-child {
  border-radius: 16px 16px 10px 10px;
  padding-top: 14px
}

.nav-drop__item:last-child {
  border-radius: 10px 10px 16px 16px;
  padding-bottom: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .07)
}

.nav-drop__item:hover {
  background: #fff;
  color: var(--accent-2)
}

.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu,
.nav-drop.is-open .nav-drop__menu {
  opacity: 1;
  visibility: visible;
  transform: none
}

.nav-drop:hover .chev,
.nav-drop:focus-within .chev,
.nav-drop.is-open .chev {
  transform: rotate(180deg)
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-2)
}

.nav-cta:hover {
  opacity: .8
}

.burger {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px
}

.burger span {
  width: 22px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .2s ease, opacity .15s ease
}

/* ==================== HERO shared ==================== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px
}

.hero-title {
  font-weight: 600;
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -.05em;
  ;
  color: #12100F
}

.hero-title .accent {
  background: linear-gradient(270deg, #F29633 20%, #F9B440 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

/* animated orange word rotator */
.rotator {
  display: inline-block;
  overflow: hidden;
  height: 1.025em;
  line-height: 1.05;
  vertical-align: bottom
}

.rotator__in {
  display: flex;
  flex-direction: column;
  animation: rotate-words 8s cubic-bezier(.86, 0, .07, 1) infinite
}

.rotator__in span {
  display: block;
  height: 1.05em;
  line-height: 1.05;
  white-space: nowrap;
  background: linear-gradient(270deg, #F29633 20%, #F9B440 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

@keyframes rotate-words {

  0%,
  28% {
    transform: translateY(0)
  }

  33.3%,
  61.6% {
    transform: translateY(-1.05em)
  }

  66.6%,
  95% {
    transform: translateY(-2.1em)
  }

  100% {
    transform: translateY(-3.15em)
  }
}

@media(prefers-reduced-motion:reduce) {
  .rotator__in {
    animation: none
  }
}

.hero-sub {
  margin-top: 39px;
  font-size: 24px;
  line-height: 1.35;
  color: #2C2A28;
  font-weight: 300
}

.hero-btn {
  margin-top: 34px
}

/* HERO A (Макет 1) — staggered headline + left smoke */
.hero-a {
  padding-top: 113px
}

.hero-a .wrap {
  position: relative;
  z-index: 1
}

.hero-a__smoke {
  /* Был <img> с bg01.png на 1.35 МБ: ниже 1100px он display:none, но браузер
     всё равно его качал. Фоном картинка не грузится, когда блок скрыт, плюс
     webp вместо png (1.35 МБ -> 209 КБ). */
  position: absolute;
  left: 0px;
  top: 0px;
  width: 1448px;
  aspect-ratio: 3200 / 2010;
  background: url(assets/bg01.webp) 0 0 / 100% auto no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: 0
}

.hero-title--a {
  display: flex;
  flex-direction: column
}

.hero-title--a .ht-ind {
  margin-left: 440px
}

.hero-a__ind {
  margin-left: 440px
}

.pay-band {
  margin-top: 84px;
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease, background-size .4s ease, background-color .28s ease;
  background: var(--cream);
  border-radius: var(--card-radius);
  max-width: 1010px;
  padding: 24px 24px;
  background-image: url('assets/bg02.webp');
  background-size: 100% auto;
  background-position: right bottom;
  background-repeat: no-repeat;
}

/* Дымка на фоне — CSS-фон, поэтому «наезжает» через background-size,
   а не transform: у карточки overflow: hidden, за скругление не вылезет. */
.pay-band:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(29, 45, 44, .12);
  background-color: #F9F5ED;
  background-size: 104% auto
}

.pay-band__text {
  position: relative;
  z-index: 2;
  max-width: 560px
}

.pay-band h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px
}

.pay-band p {
  font-size: 16px;
  line-height: 1.5;
  color: #2C2A28;
  font-weight: 300
}

.pay-band .muted {
  color: #8B8A87
}

.pay-band .link-more {
  margin-top: 22px
}

.pay-band__img {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  height: 100%;
  width: auto;
  object-fit: cover;
  z-index: 1;
  pointer-events: none
}

/* HERO B (V2) */
.hero-b__grid {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 40px;
  align-items: start
}

.hero-title--b {
  font-size: 54px;
  line-height: 1.06
}

.pay-card {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  border-radius: 24px;
  padding: 34px 38px;
  min-height: 360px;
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease
}

.pay-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(29, 45, 44, .12);
  background-color: #F9F5ED
}

.pay-card__img {
  transition: transform .4s ease
}

.pay-card:hover .pay-card__img {
  transform: scale(1.04)
}

.pay-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px
}

.pay-card p {
  font-size: 16px;
  line-height: 1.5;
  color: #2C2A28;
  font-weight: 300;
  position: relative;
  z-index: 2;
  max-width: 440px
}

.pay-card .muted {
  color: #8B8A87
}

.pay-card .link-more {
  margin-top: 22px;
  position: relative;
  z-index: 2
}

.pay-card__img {
  position: absolute;
  right: -4%;
  bottom: -6%;
  height: 86%;
  width: auto;
  object-fit: contain;
  object-position: right bottom;
  z-index: 1;
  pointer-events: none
}

/* ==================== STATS + FEATURES ==================== */
.stats-sec {
  padding-top: 80px
}

.stats-grid {
  display: flex;
  gap: 90px;
  align-items: stretch;
  flex-wrap: wrap;
}

.playbook-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #E7E6E3;
  border-radius: 16px;
  padding: 15px 18px;
  height: 76px
}

.playbook-card__img {
  width: 67px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex: none
}

.playbook-card__txt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3
}

.playbook-card .rarr {
  margin-left: auto;
  color: #111;
  font-size: 18px
}

.stats-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.stats-right__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.stats-right__bot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px
}

.stat-big {
  background: #fff;
  border-radius: 18px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 132px;
}

.stat-big__num {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.05em;
  ;
  line-height: 1
}

.stat-big__label {
  margin-top: 27px;
  font-size: 16px;
  color: #6E6D6A;
  font-weight: 300
}

.feat-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  display: flex;
  align-items: center;
  min-height: 84px
}

/* ==================== BRANDS ==================== */
.brands {
  padding: 180px 0 80px;
  text-align: center
}

.brands__tags {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 14px;
  color: #8B8A87;
  font-weight: 300;
  font-style: italic
}

.brands__title {
  margin-top: 18px;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -.05em
}

.brands__sub {
  margin-top: 16px;
  font-size: 16px;
  color: #3a3a38;
  font-weight: 300
}

.brands__strip {
  margin-top: 94px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent)
}

.brands__track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  animation: marquee 60s linear infinite
}

.brands__track img {
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.4)
}

.bl-marco {
  height: 40px
}

.bl-uryuk {
  height: 30px
}

.bl-2mood {
  height: 26px
}

.bl-pierre {
  height: 36px
}

.bl-lexmer {
  height: 20px
}

.bl-bravo {
  height: 26px
}

.bl-finn {
  height: 22px
}

.bl-mono {
  height: 20px
}

.bl-movavi {
  height: 28px
}

.bl-funsun {
  height: 44px
}

.bl-galer {
  height: 34px
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

@media(prefers-reduced-motion:reduce) {
  .brands__track {
    animation: none
  }
}

/* ==================== SERVICES ==================== */
.services {
  padding: 128px 0 40px
}

.services__top {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 88px
}

.services__title {
  font-size: 46px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.05em;
}

.services__intro p {
  font-size: 24px;
  line-height: 1.4;
  font-weight: 400;
  color: #12100F
}

.team-row {
  margin-top: 30px;
  display: flex;
  align-items: center
}

.team-row img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  margin-left: -14px;
  background: #ddd
}

.team-row img:first-child {
  margin-left: 0
}

.team-more {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--bg);
  margin-left: -14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.svc-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease, filter .28s ease
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(29, 45, 44, .12)
}

/* Подчёркивание и стрелка реагируют на наведение всей карточки, а не только
   на саму подпись — как в карточках кейсов. */
.svc-card:hover .link-more__t::after {
  transform: scaleX(1)
}

.svc-card:hover .link-more .rarr {
  transform: translateX(3px)
}

.svc-card h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em
}

.svc-card p {
  margin-top: 39px;
  font-size: 16px;
  line-height: 1.5;
  color: #6E6D6A;
  font-weight: 300;
  flex: 1
}

.svc-card .link-more {
  margin-top: 16px;
  align-self: flex-start
}

.svc-card--dark {
  color: #fff;
  position: relative;
  overflow: hidden;
  background-color: #000000;
  background-image: url(assets/bg03.webp);
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: cover;
}

/* У тёмной карточки фон — картинка, поэтому «ярче» делаем яркостью целиком:
   background-size с ключевого слова cover не анимируется, будет рывок. */
.svc-card--dark:hover {
  filter: brightness(1.18)
}

.svc-card--dark p {
  color: #B9B7B3
}

.svc-card--yellow {
  background: var(--yellow-2)
}

.svc-card--yellow:hover {
  background-color: #FFD268
}

.svc-card--yellow p {
  color: #6a5416
}

/* ==================== CASES ==================== */
.cases {
  padding: 141px 0 60px;
}

.sec-title {
  font-size: 46px;
  font-weight: 500;
  letter-spacing: -.05em;
  ;
  line-height: 1.1
}

.sec-title--center {
  text-align: center
}

.cases__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 79px 0 40px
}

.eyebrow {
  font-size: 20px;
  font-weight: 500
}

.eyebrow--lg {
  font-size: 20px;
  font-weight: 600
}

.cases__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.case-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  position: relative
}

/* Кликабельна вся карточка: ссылка «Читать кейс» растягивается на неё через
   ::after. Обернуть карточку в <a> нельзя — внутри уже есть ссылка, а вложенные
   <a> невалидны; так в карточке остаётся ровно один линк, адрес виден в
   статусбаре и фокус с клавиатуры работает как раньше. */
.case-card {
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease
}

/* Карточка приподнимается под курсором, креатив в большой карточке чуть
   наезжает — overflow: hidden держит его в скруглении. */
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(29, 45, 44, .12)
}

.case-card--big .case-card__phone {
  transition: transform .4s ease
}

.case-card--big:hover .case-card__phone {
  transform: scale(1.04)
}

/* Блок с цифрами теплеет — тот же шаг, что и у карточки «Оплата за результат». */
.case-card:hover .case-metrics {
  background-color: #FCF2E1
}

.case-card .link-more::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1
}

.case-card:hover .link-more .rarr {
  transform: translateX(3px)
}

/* Клавиатурный фокус подсвечивает карточку целиком, а не только текст ссылки. */
.case-card:has(.link-more:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px
}

.case-card--big {
  position: relative;
  display: flex;
  min-height: 506px;
  padding: 30px 24px;
  gap: 20px;
}

.case-card--big .case-card__body {
  padding: 0px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 52%
}

.case-card__spacer {
  flex: 1
}

.case-logo {
  width: auto;
  object-fit: contain;
  object-position: left;
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px
}

.case-brand--uryuk {
  color: #F5333F;
  text-transform: lowercase
}

.case-brand--uryuk span {
  font-weight: 800;
  letter-spacing: -.01em
}

.ap-logo {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: .05em;
  font-family: Georgia, serif
}

.ap-logo span {}

.case-brand small {
  font-size: 10px;
  letter-spacing: .18em;
  color: #111;
  font-weight: 600;
  margin-left: 2px
}

.bravo-logo {
  display: inline-flex;
  font-size: 15px;
  font-weight: 800
}

.bravo-logo b {
  background: #E11B22;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px
}

.bravo-logo i {
  font-style: normal;
  color: #111;
  padding: 2px 5px;
  border: 1.5px solid #111;
  border-left: none;
  border-radius: 0 3px 3px 0
}

.case-stat {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-top: 8px
}

.case-stat--sm {
  font-size: 24px
}

.case-card__body .link-more {
  margin-top: 16px
}

.case-tag {
  padding-top: 22px;
  font-size: 14px;
  color: #8B8A87;
  font-weight: 300
}

.case-card--big .case-card__phone {
  width: 312px;
  position: relative;
  height: auto;
  object-fit: contain;
}

.cases__col {
  display: flex;
  flex-direction: column;
  gap: 22px
}

/* Обе узкие карточки делят высоту колонки поровну, чтобы правая колонка
   всегда была вровень с большим кейсом. Без этого высота зависит от длины
   текста в карточке и снизу остаётся щель. */
.cases__col .case-card--row {
  flex: 1
}

.case-card--row {
  display: flex;
  justify-content: space-between;
  padding: 30px 24px;
  min-height: 211px
}

.case-card--row .case-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.case-card--row .case-tag {
  padding-top: 0
}

.case-metrics {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  transition: background-color .28s ease;
  background: #F7F1E6;
  border-radius: 16px;
  padding: 25px 22px;
  width: 222px;
  flex: none;
  align-self: stretch;
  margin: -4px 0
}

.metric__num {
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: -.01em
}

.metric__lbl {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.15;
  color: #6E6D6A;
  font-weight: 300
}

.metric__hr {
  font-size: 0;
  line-height: 1px;
  height: 1px;
  opacity: 0.08;
  background: #000;
}

/* ==================== REVIEWS ==================== */
.reviews {
  padding: 30px 0 60px
}

.reviews__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px
}

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

.review-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative
}

.review-logo {
  width: auto;
  max-width: none;
  height: 27px;
  object-fit: contain;
  object-position: left;
}

.review-brand {
  font-weight: 800;
  font-size: 22px;
  display: flex;
  flex-direction: column;
  line-height: 1
}

.review-brand small {
  font-size: 8px;
  letter-spacing: .15em;
  font-weight: 600;
  margin-top: 4px;
  color: #333
}

.review-brand--marco {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  align-items: center
}

.review-brand--lexmer {
  letter-spacing: .35em;
  font-weight: 600;
  font-size: 20px
}

.review-brand--2mood {
  letter-spacing: -.05em;
}

.quote {
  font-size: 52px;
  line-height: 52px;
  color: #DededB;
  margin-top: 34px;
  height: 22px;
  font-family: Georgia, serif
}

.quote--end {
  align-self: flex-end;
  margin-top: 14px
}

.review-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
  margin-top: 5px;
  letter-spacing: -.03em
}

/* Цитаты приходят из блога и разной длины, поэтому блок с автором прижимается
   к низу карточки (карточка — flex-колонка), а не следует сразу за текстом:
   иначе имена в трёх карточках стоят на разной высоте. Так же сделано в блоге
   (PersonBadge, mt-auto pt-4). padding-top держит отступ, когда текст длинный. */
.review-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px
}

.review-person img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  background: #ddd
}

.review-person b {
  font-size: 15px;
  font-weight: 600;
  display: block
}

.review-person small {
  font-size: 14px;
  color: #8B8A87;
  font-weight: 300;
  display: block;
  margin-top: 7%;
}

.reviews__cta {
  display: flex;
  justify-content: center;
  margin-top: 102px;
}

/* ==================== COMPARE ==================== */
.compare {
  padding: 133px 0 60px;
}

.compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 81px
}

.cmp-card {
  background: #fff;
  border-radius: 22px;
  padding: 29px 24px
}

.cmp-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 18px
}

.cmp-card--dark {
  color: #fff;
  position: relative;
  overflow: hidden;
  background: radial-gradient(130% 90% at 100% 8%, #F2AB3E 0%, #a4700f 22%, rgba(12, 12, 12, 0) 55%), #0C0C0C
}

.cmp-list li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
  padding: 3px 0 4px;
  font-weight: 300
}

.cmp-list li::before {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700
}

.cmp-list--no li::before {
  content: "✕";
  background: #EEE;
  color: #9a9a9a
}

.cmp-list--yes li::before {
  content: "✓";
  background: var(--accent);
  color: #12100F
}

.cmp-card--dark .cmp-list li {
  color: #E7E5E1
}

.compare__cta {
  display: flex;
  justify-content: center;
  margin-top: 88px
}

/* ==================== FAQ ==================== */
.faq {
  padding: 131px 0 60px;
}

.faq__grid {
  display: grid;
  grid-template-columns: 598px 1fr;
  gap: 102px;
  align-items: start
}

/* В двухколоночной раскладке левая часть (заголовок + CTA) держится на экране,
   пока справа листаются вопросы. Работает за счёт align-items: start у сетки —
   иначе колонка растянулась бы на всю высоту и прилипать было бы нечему.
   Отступ сверху — под липкую шапку (92px) плюс воздух. */
@media(min-width:1101px) {
  .faq__left {
    position: sticky;
    top: 116px
  }
}

.faq__note {
  margin-top: 79px;
  background: #E7E6E3;
  border-radius: 18px;
  padding: 24px 24px;
  max-width: 598px
}

.faq__note h4 {
  font-size: 24px;
  font-weight: 500
}

.faq__note p {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.45;
  color: #6E6D6A;
  font-weight: 300
}

.faq__note .btn {
  margin-top: 35px;
  max-width: 196px;
  width: 100%;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: #fff;
  border-radius: 18px;
  padding: 0 24px;
  overflow: hidden
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 24px;
  font-weight: 500;
  padding: 24px 0;
  cursor: pointer;
  letter-spacing: -.01em
}

.faq-item summary::-webkit-details-marker {
  display: none
}

.faq-ic {
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #EFEEEB;
  position: relative
}

.faq-ic::before,
.faq-ic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 1.6px;
  background: #111;
  transform: translate(-50%, -50%);
  transition: .2s
}

.faq-ic::after {
  transform: translate(-50%, -50%) rotate(90deg)
}

.faq-item[open] .faq-ic::after {
  transform: translate(-50%, -50%) rotate(0)
}

.faq-body {
  padding-bottom: 24px;
  max-width: 640px
}

.faq-body p {
  font-size: 16px;
  line-height: 1.55;
  color: #4a4947;
  font-weight: 300
}

/* ==================== CONTACT ==================== */
.contact {
  padding: 122px 0 70px
}

.contact__card {
  border-radius: 12px;
  padding: 30px 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-image: url(assets/bg04.webp);
  background-color: #000000;
  background-position: left bottom;
  background-size: cover;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.contact__card>* {
  position: relative;
  z-index: 1
}

.contact__left h2 {
  font-size: 46px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.contact__sub {
  margin-top: 27px;
  font-size: 16px;
  line-height: 1.5;
  color: #C9C7C3;
  font-weight: 300
}

.contact__pm {
  margin-top: 86px
}

.contact__pm-title {
  font-size: 24px;
  font-weight: 500
}

.contact__person {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px
}

.contact__person img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #333
}

.contact__person b {
  font-size: 16px;
  font-weight: 500;
  display: block;
  line-height: 115%;
}

.contact__person small {
  display: block;
  font-size: 14px;
  color: #B7B5B1;
  font-weight: 300;
  margin-top: 10px
}

.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5399FB;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: 12px;
  margin-top: 15px;
  max-width: 196px;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

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

.field {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  display: block
}

.field__label {
  font-size: 13px;
  color: #8B8A87;
  font-weight: 300
}

.field input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  color: #111;
  padding-top: 8px;
  font-family: inherit
}

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

.field__phone .flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px
}

.contact__form .btn {
  margin-top: 6px
}
.contact__form .contact__form_btn {
  padding: 31px 20px;
}

.contact__consent {
  font-size: 14px;
  line-height: 1.5;
  color: #B7B5B1;
  text-align: center;
  font-weight: 300;
  margin-top: 6px
}

.contact__consent a {
  text-decoration: underline
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 122px 0 60px
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.logo--footer {
  font-size: 20px
}

.footer__links {
  display: flex;
  gap: 24px
}

.footer__links a {
  font-size: 14px;
  color: #6E6D6A;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 300;
  white-space: nowrap;
}

.footer__links a:hover {
  color: #111
}

.under_header-line {
  border-bottom: 1px solid #eeeeee;
  margin-top: 27px;
}
/* ===== Бургер-меню =====
   Раскрывается второй строкой внутри той же стеклянной карточки: пункты в
   столбик во всю ширину (по ним удобно попадать пальцем), CTA — последней
   строкой, чтобы кнопка не терялась под меню. */
.menu-open .nav {
  flex-wrap: wrap;
  row-gap: 0;
}

.menu-open .nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  order: 4;
  flex-basis: 100%;
  gap: 0;
  margin: 16px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, .07);
}

.menu-open .nav-link {
  width: 100%;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 17px;
}

.menu-open .nav-cta {
  display: inline-flex;
  order: 5;
  flex-basis: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
}

.menu-open .nav-cta:hover {
  opacity: 1;
  background: var(--accent-2)
}

/* Три полоски складываются в крестик — видно, что тап сработал. */
.menu-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

.menu-open .burger span:nth-child(2) {
  opacity: 0
}

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

/* ==================== RESPONSIVE ==================== */
@media(max-width:1100px) {
  :root {
    --maxw: 900px
  }

  .hero-title--a .ht-ind,
  .hero-a__ind {
    margin-left: 0
  }

  .hero-a__smoke {
    display: none
  }

  .hero-title {
    font-size: 56px
  }

  .hero-title--b {
    font-size: 44px
  }

  .hero-b__grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .pay-card {
    min-height: 240px
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .services__top,
  .services__grid,
  .cases__grid,
  .compare__grid,
  .contact__card {
    grid-template-columns: 1fr
  }

  .reviews__grid {
    grid-template-columns: 1fr
  }

  .faq__grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .brands__title,
  .sec-title,
  .contact__left h2 {
    font-size: 38px
  }

  

  .case-card--big .case-card__body {
    width: 100%
  }

  .case-card--big .case-card__phone {
    position: static;
    width: 100%;
    height: 320px
  }
  /* На мобильных центрирующая сетка не нужна: остаются логотип и бургер,
     а раскрытое меню кладётся следующей строкой через flex-wrap. */
  .nav {
    display: flex;
  }
  .nav-links {
    display: none;
  }
  /* В бургер-меню «Услуги» — не всплывающая панель, а раскрывающийся список:
     ховера на тач-экранах нет, поэтому раскрытие только по тапу (.is-open),
     а display: none перебивает ховер-правила десктопа. */
  .nav-drop {
    display: block;
    width: 100%;
  }
  .nav-drop__menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 2px 0 6px 14px;
  }
  .nav-drop.is-open .nav-drop__menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-drop__item {
    padding: 9px 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    font-size: 14px;
    color: #6E6D6A;
  }
  .nav-drop__item:first-child,
  .nav-drop__item:last-child {
    border-radius: 0;
    padding: 9px 0;
    box-shadow: none;
  }
  .burger {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .case-card--big {
    min-height: auto;
  }
 
  
}
@media(max-width:900px) {
  .stats-grid {
    flex-direction: column;
  }
  .stats-right__top {
    grid-template-columns: 1fr;
  }
  .stats-right__bot {
    grid-template-columns: 1fr 1fr;
  }
  .footer__row {
    flex-wrap: wrap;
  }
}

@media(max-width:720px) {

  .nav-links,
  .nav-cta {
    display: none
  }

  .burger {
    display: flex
  }

  .hero-title {
    font-size: 40px
  }

  .hero-title br {
    display: none
  }

  .hero-sub br,
  .hero-sub {}

  .brands__tags {
    flex-wrap: wrap;
    gap: 14px
  }

  .case-card--row {
    flex-direction: column;
    gap: 20px
  }

  .case-metrics {
    width: 100%
  }

  .contact__card {
    padding: 32px 24px
  }

  .contact__form {}


}
@media(max-width:640px) { 
  .team-row img {
    width: 44px;
    height: 44px;
  }
  .footer__links {
    flex-wrap: wrap;
  }
  .stats-right__bot {
    grid-template-columns: 1fr;
  }
  .case-card--big {
    flex-direction: column;
    min-height: auto
  }
   .case-card--big .case-card__phone{
    height: auto;
  }
}
/* ===== Consent checkboxes (contact form) ===== */
.form-consent {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 4px;
}
.form-consent__row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  color: #B7B5B1;
}
.form-consent__box {
  margin-top: 1px;
  width: 16px;
  height: 16px;
  flex: none;
  cursor: pointer;
  accent-color: var(--yellow);
}
.form-consent__row a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-consent__row a:hover {
  color: var(--yellow);
}

/* ===== Cookie consent banner (landing gold) ===== */
/* ===== Куки-баннер =====
   Стоит у правого края колонки контента — симметрично попапу плейбука слева
   (точный отступ ставит JS по .wrap, в CSS стартовое значение). Стекло и
   скругления те же, что у шапки. */
.cc-cookie {
  position: fixed;
  right: max(24px, calc((100vw - 1400px) / 2));
  bottom: 32px;
  z-index: 60;
  width: 340px;
  max-width: calc(100vw - 48px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(29, 45, 44, .06);
  border-radius: 18px;
  padding: 20px 22px 18px;
  box-shadow: 0 12px 34px rgba(29, 45, 44, .12);
  animation: ccUp .3s ease both;
}

@keyframes ccUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media(prefers-reduced-motion:reduce) {
  .cc-cookie { animation: none; }
}

.cc-cookie__x {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: rgba(29, 45, 44, .38);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

.cc-cookie__x:hover {
  color: #1d2d2c;
  background: rgba(29, 45, 44, .06);
}

/* Палец толще крестика: зона нажатия 42x42 без изменения вида. */
.cc-cookie__x::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.cc-cookie__text {
  margin: 0;
  padding-right: 26px;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  color: #2C2A28;
  font-weight: 300;
}

.cc-cookie__text a {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 138, 43, .35);
  transition: border-color .15s ease;
}

.cc-cookie__text a:hover {
  border-bottom-color: var(--accent-2);
}

.cc-cookie__actions {
  margin-top: 16px;
  display: flex;
}

.cc-cookie__ok {
  flex: 1;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: #12100F;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 26px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.cc-cookie__ok:hover {
  background: #f2b93a;
  transform: translateY(-1px);
}

.cc-cookie__ok:active {
  transform: translateY(0) scale(.98);
}

/* ===== Попап плейбука =====
   Живёт у нижнего края окна и едет за пользователем с первого экрана. Прячется
   на блоке с формой, чтобы не спорить с основным CTA, и на время скрытия
   отдаёт клики странице. --promo-stack поднимает попап над куки-баннером,
   если тот перекрывает его по горизонтали (это про мобильный: на десктопе
   баннер справа, попап слева). */
.playbook-pop {
  position: fixed;
  /* Левый край — по колонке контента, как у плашки в секции. Точное значение
     ставит JS по .wrap (учитывает ширину скроллбара), это стартовое. */
  left: max(24px, calc((100vw - 1400px) / 2));
  bottom: calc(32px + var(--promo-stack, 0px));
  z-index: 59;
  width: 340px;
  max-width: calc(100vw - 48px);
  transition: bottom .2s ease;
}

.playbook-pop[hidden] {
  display: none !important;
}

.playbook-pop .playbook-card {
  box-shadow: 0 8px 30px rgba(29, 45, 44, .18);
}

/* Крестик вынесен на угол карточки, иначе он налезал бы на стрелку. */
.playbook-card__close {
  position: absolute;
  right: -9px;
  top: -9px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(29, 45, 44, .2);
  color: rgba(29, 45, 44, .55);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color .15s ease, background .15s ease;
}

.playbook-card__close:hover {
  color: #1d2d2c;
  background: #f5f4f2;
}

/* Палец толще крестика: растягиваем зону нажатия до 44x44, не трогая вид. */
.playbook-card__close::before {
  content: "";
  position: absolute;
  inset: -8px;
}

@media(max-width:900px) {
  /* Во всю ширину экрана за вычетом полей; крестик уезжает внутрь — за краем срежет. */
  .playbook-pop {
    left: 24px;
    right: 24px;
    width: auto;
    max-width: none;
  }

  .playbook-pop .playbook-card {
    padding-right: 40px;
  }

  .playbook-card__close {
    right: 6px;
    top: 6px;
    width: 26px;
    height: 26px;
    box-shadow: none;
    background: rgba(255, 255, 255, .7);
  }
}
