/* ============ TOKENS ============ */
:root {
  /* UPG палитра: фиолетовый (базовый акцент) + розовый + зелёный + чёрный */
  --red: #5C296E;        /* базовый акцент — UPG фиолетовый */
  --red-dark: #3A1A47;   /* тёмный фиолетовый */
  --red-soft: #ECDDF2;   /* мягкий фиолетовый тинт */
  --purple: #5C296E;
  --pink: #E6007E;
  --green: #42AB34;
  --ink: #111111;
  --gray-bg: #EFEFEF;
  --gray-ph: #D9D9D9;
  --gray-ph-dark: #BDBDBD;
  --black: #111111;
  --white: #ffffff;

  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --radius-pill: 999px;

  --container: 1800px;
  --gap: 16px;
  --section-gap: 28px;

  --font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

html { font-family: var(--font); font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }

/* Lenis smooth scroll requires this */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============ RESET ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); color: var(--black); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input { font: inherit; }

/* ============ LAYOUT ============ */
.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}
/* header и intro визуально склеены: убираем gap между ними */
.header + .intro { margin-top: calc(-1 * var(--section-gap)); }

/* больше воздуха между сеткой карточек и блоком статистики */
.product-grid + .stats { margin-top: 36px; }
/* такой же воздух под блоком «Сделай шумно» (two-col) перед кейсами */
.two-col + .product-grid { margin-top: 36px; }

/* ============ FILTERS PANEL ============ */
.filters {
  overflow: hidden;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: calc(-1 * var(--section-gap));
}
.filters.is-open { grid-template-rows: 1fr; }
.filters__inner {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 4px;
}
.filters.is-open .filters__inner {
  padding: 8px 4px 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--red);
  background: transparent;
  border: 1.5px solid var(--red);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  white-space: nowrap;
  /* стартовое состояние для stagger-анимации */
  opacity: 0;
  transform: translateY(-12px);
}
.filters.is-open .tag {
  opacity: 1;
  transform: translateY(0);
}
/* поочерёдное появление */
.filters.is-open .tag:nth-child(1) { transition-delay: 0.05s; }
.filters.is-open .tag:nth-child(2) { transition-delay: 0.10s; }
.filters.is-open .tag:nth-child(3) { transition-delay: 0.15s; }
.filters.is-open .tag:nth-child(4) { transition-delay: 0.20s; }
.filters.is-open .tag:nth-child(5) { transition-delay: 0.25s; }
.filters.is-open .tag:nth-child(6) { transition-delay: 0.30s; }
.filters.is-open .tag:nth-child(7) { transition-delay: 0.35s; }

.tag:hover { background: var(--red); color: var(--white); }
.tag.is-active {
  background: var(--red);
  color: var(--white);
}

/* ============ SCROLL REVEAL ============ */
/* блок появляется снизу с фейдом, когда попадает в viewport */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ ITALIC → NORMAL (skew animation) ============ */
/* текст изначально с наклоном (имитация курсива), при появлении выпрямляется */
.skew-in h2 {
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: left center;
  display: inline-block;
}
.skew-in h2 { transform: skewX(-14deg); }
.skew-in.is-visible h2 { transform: skewX(0deg); }

/* ============ FAQ ACCORDION ============ */
.faq__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.faq__item { border-bottom: 1px solid rgba(255,255,255,0.4); padding: 0; }
.faq__item:first-child { border-top: 1px solid rgba(255,255,255,0.4); }
.faq__plus {
  font-size: 25px;
  font-weight: 300;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__item.is-open .faq__plus { transform: rotate(45deg); }

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq__body > p {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.92;
  padding: 0 0 0 0;
  transition: padding 0.4s ease;
}
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }
.faq__item.is-open .faq__body > p { padding: 0 0 24px 0; }

/* ============ BURGER MENU OVERLAY ============ */
.menu {
  position: fixed;
  inset: 0;
  background: var(--red);
  color: var(--white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.menu__close {
  display: none;
  align-self: flex-end;
  font-size: 48px;
  line-height: 1;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  width: 56px;
  height: 56px;
}
.menu__list {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  padding: 0;
}
.menu__list a {
  font-size: 57px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
  display: inline-block;
}
.menu__list a:hover { opacity: 0.7; transform: translateX(12px); }
.menu__footer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin-top: 32px;
}
.menu__footer .tg-link,
.menu__footer .max-link { color: var(--white); display: inline-flex; align-items: center; transition: opacity 0.2s; }
.menu__footer .tg-link:hover,
.menu__footer .max-link:hover { opacity: 0.7; }
.menu__footer .tg-icon { width: 44px; height: 44px; }
.menu__footer .max-icon { width: 34px; height: 34px; }
body.menu-open { overflow: hidden; }

/* ============ CARD HOVER ============ */
.product-card,
.two-col__photo,
.two-col__card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card__frame,
.two-col__photo-frame,
.red-card {
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.product-card:hover { transform: translateY(-4px); }
.product-card:hover .product-card__frame {
  box-shadow: 0 18px 40px -16px rgba(225, 36, 27, 0.45);
}
.two-col__photo:hover .two-col__photo-frame,
.two-col__card:hover .red-card {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -16px rgba(225, 36, 27, 0.45);
}

/* ============ HEADER ============ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 4px 0;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  margin-left: -8px;
}
.logo__mark { height: 150px; width: auto; }
.logo__tag { display: none; }
@media (max-width: 640px) { .logo__mark { height: 104px; } .logo { margin-left: -4px; } .burger { margin-top: 22px; } }
.burger {
  width: 54px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  position: relative;
  z-index: 110;
}
.burger span {
  display: block;
  width: 100%;
  height: 9px;
  background: var(--red);
  border-radius: 4.5px;
  transform-origin: center;
  transition: transform 0.45s cubic-bezier(0.65,0,0.35,1), opacity 0.3s ease, background 0.3s ease;
}
/* бургер → белый крестик при открытом меню */
.burger.is-active span { background: var(--white); }
.burger.is-active span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { transform: translateY(-10.5px) rotate(-45deg); }

/* ============ INTRO STRIP ============ */
.intro {
  display: grid;
  grid-template-columns: 240px 1fr 80px;
  gap: 80px;
  padding: 120px 4px 24px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--red);
  align-items: end;
}
.intro__col--date {
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.intro__col--text { display: flex; justify-content: center; transform: translateX(48px); }
.intro__col--text p { max-width: 480px; font-size: 19px; font-weight: 500; line-height: 1.35; }
.intro__col--dots { display: flex; justify-content: flex-end; }
.dots-icon {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  grid-template-rows: repeat(2, 11px);
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 5px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.dots-icon:hover { transform: scale(1.15); }
.dots-icon[aria-expanded="true"] { transform: rotate(45deg) scale(1.1); }
.dots-icon span {
  width: 11px;
  height: 11px;
  background: var(--red);
  border-radius: 50%;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--red);
}
.hero__image {
  display: block;
  width: 100%;
  height: auto; /* высота по картинке — не обрезаем по высоте */
}
/* затемнение для читаемости заголовка поверх фото */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1) 45%, rgba(0,0,0,0) 70%);
  z-index: 1;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%; /* +10% для parallax-движения */
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero__video.is-ready { opacity: 1; }
.hero__content { z-index: 2; }
.hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 48px 56px;
  gap: 24px;
  z-index: 2;
}
.hero__title {
  color: var(--white);
  font-size: 57px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: right;
  max-width: 70%;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 38px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--pink); color: var(--white); }
.btn--ghost {
  background: var(--white);
  color: var(--red);
  align-self: flex-end;
  margin-top: auto;
  z-index: 2;
}

/* ============ BIG HEADING ============ */
.big-heading {
  padding: 48px 0 48px;
}
.big-heading h2 {
  color: var(--red);
  font-size: 57px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-align: left;
}
.big-heading__line {
  display: block;
  white-space: nowrap; /* запрет переноса — строка всегда одна */
}
.big-heading__line--indent {
  padding-left: 14%; /* первая строка с отступом слева */
}

/* ============ TWO COL ============ */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--gap);
  align-items: stretch;
}
.two-col__photo { display: flex; flex-direction: column; gap: 12px; }
.two-col__photo-frame {
  width: 100%;
  /* aspect 2:1 — даёт ту же высоту, что и квадратная карточка в 1fr-колонке */
  aspect-ratio: 2 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--red-dark);
}
.two-col__photo-frame svg { width: 100%; height: 100%; }
.two-col__card { display: flex; flex-direction: column; gap: 12px; }

.red-card {
  position: relative;
  background: var(--red);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  padding: 36px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.red-card__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.025em;
  z-index: 2;
}

/* Концентрические кольца — общий центр в правом-нижнем углу */
.red-card__rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.red-card__rings::before,
.red-card__rings::after,
.red-card__rings span {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  right: 0;
  bottom: 0;
  width: var(--ring-d, 100%);
  height: var(--ring-d, 100%);
  transform: translate(50%, 50%);
}
.red-card__rings::before { --ring-d: 200%; }
.red-card__rings::after  { --ring-d: 140%; }
.red-card__rings span    { --ring-d:  85%; }

/* ============ CAPTION ============ */
.caption {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.02em;
}
/* Подписи кейсов на главной — крупнее и жирнее */
.product-grid .caption { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; }
/* На внутренних страницах (Кейсы по теме) оставляем прежний размер */


/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  row-gap: 64px;
}
.product-card { display: flex; flex-direction: column; gap: 18px; }
.product-card__frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-bg);
}
.product-card__frame svg { width: 100%; height: 100%; }

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.stat {
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat__value {
  font-size: 88px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.stat__label {
  margin-top: auto;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.92;
}
.stat--light { background: var(--purple); color: var(--white); }
.stat--dark { background: var(--green); color: var(--white); }
.stat--white { background: #f5f5f5; color: var(--pink); }

/* ============ FAQ ============ */
.faq {
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.faq__title {
  font-size: 57px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.faq__list { display: flex; flex-direction: column; list-style: none; padding: 0; }
.faq__q { font-size: 17px; font-weight: 700; }
.faq__head { padding: 24px 0; }

/* ============ FOOTER ============ */
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 4px 0;
  color: var(--red);
}
/* правая колонка футера = такая же сетка, как у FAQ сверху:
   экосистема слева (под вопросами), контакты справа */
.footer__right { display: flex; justify-content: space-between; gap: 40px; }
.footer__nav { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 17px; font-weight: 700; color: var(--red); }
.footer__col a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
.footer__col a:hover { opacity: 0.75; }
.footer__head { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.1em; opacity: 0.65; }
.footer__head--gap { margin-top: 22px; }

.footer__signup { display: flex; flex-direction: column; gap: 14px; }
.footer__signup-text { font-size: 15px; color: var(--red); font-weight: 500; }
.footer__form {
  display: flex;
  background: var(--red-soft);
  border-radius: var(--radius-pill);
  padding: 4px 6px 4px 20px;
  align-items: center;
}
.footer__form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 13px;
  color: var(--red);
  outline: none;
}
.footer__form input::placeholder { color: var(--red); opacity: 0.55; }
.footer__form button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  font-size: 18px;
}
.footer__legal { font-size: 11px; color: var(--red); opacity: 0.75; }
/* ============ TELEGRAM LINK ============ */
.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
.tg-link:hover { opacity: 0.75; transform: translateX(3px); }
.tg-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
}
.tg-link--footer { font-size: 14px; }

/* контакты в подвале: telegram + max + телефон */
/* 3-й столбец: адрес, телефон, email — единым списком с ровным шагом 10px */
.footer__contacts-col { display: flex; flex-direction: column; gap: 10px; }
.footer__contacts-col > p,
.footer__contact-link { font-size: 17px; font-weight: 700; color: var(--red); }
.footer__contact-link { text-decoration: none; transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.footer__contact-link:hover { opacity: 0.75; transform: translateX(2px); }
/* соцсети — отдельной группой ниже */
.footer__socials { display: flex; align-items: center; gap: 32px; margin-top: 16px; }
.footer__socials .contact-link { display: inline-flex; align-items: center; color: var(--red); transition: opacity 0.2s; }
.footer__socials .contact-link:hover { opacity: 0.75; }
.footer__socials .contact-icon { width: 41px; height: 41px; }
.footer__socials .contact-icon--max { width: 32px; height: 32px; }
/* у самолётика Telegram внутри SVG воздух слева — компенсируем сдвигом влево;
   MAX чуть опускаем для оптического выравнивания */
.footer__socials .contact-icon:not(.contact-icon--max) { transform: translateX(-5px); }
.footer__socials .contact-icon--max { transform: translate(-10px, 1px); }

/* экосистема Noisy Friends */
.footer__eco-title { font-size: 17px; font-weight: 700; color: var(--red); }
.footer__ecosystem { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.footer__ecosystem a { font-size: 17px; font-weight: 700; color: var(--red); text-decoration: none; transition: opacity 0.2s, transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.footer__ecosystem a:hover { opacity: 0.75; transform: translateX(3px); }

/* ============ BOTTOM BAR ============ */
.bottombar {
  display: flex;
  gap: 32px;
  padding: 14px 4px 0;
  font-size: 11px;
  color: var(--red);
  opacity: 0.85;
  flex-wrap: wrap;
  font-weight: 500;
}
.bottombar__copy { margin-left: 0; }

/* ============ CUSTOM CURSOR ============ */
/* Базовое — красная точка. На красных фонах переключается на белую
   через JS-класс .cursor--on-red (детект по элементу под курсором) */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              border 0.3s ease,
              box-shadow 0.3s ease;
  display: none;
}
.cursor.is-active { display: flex; align-items: center; justify-content: center; }

/* На красных фонах — белый курсор */
.cursor.cursor--on-red { background: var(--white); }

/* Hover на ссылках/кнопках — кольцо вместо точки */
.cursor.is-on-link {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--red);
}
.cursor.cursor--on-red.is-on-link {
  border-color: var(--white);
  background: transparent;
}

/* Hover на карточках кейсов — крупный красный круг с белой обводкой и текстом.
   На красном фоне инвертируем: белый круг с красной обводкой */
.cursor.is-on-case {
  width: 96px;
  height: 96px;
  background: var(--red);
  border: 2px solid var(--white);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.45);
}
.cursor.cursor--on-red.is-on-case {
  background: var(--white);
  border-color: var(--red);
}
.cursor.cursor--on-red.is-on-case .cursor__label { color: var(--red); }

/* Текст внутри курсора */
.cursor__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}
.cursor.is-on-case .cursor__label { opacity: 1; }

/* скрываем системный курсор на интерактиве, когда custom активен */
.has-custom-cursor,
.has-custom-cursor * { cursor: none !important; }

/* На тач-устройствах custom cursor не нужен */
@media (hover: none) {
  .cursor { display: none !important; }
  .has-custom-cursor, .has-custom-cursor * { cursor: auto !important; }
}

/* ============ FLIP FILTERING ============ */
.product-card { transition: opacity 0.35s ease; }
.product-card.is-filtered-out {
  opacity: 0;
  pointer-events: none;
  display: none; /* убираем из сетки, чтобы карточки переразложились */
}

/* ============ BLUR-UP / LAZY LOAD ============ */
.lazy-img {
  filter: blur(20px);
  transform: scale(1.05);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.lazy-img.is-loaded {
  filter: blur(0);
  transform: scale(1);
}

/* ============ PRODUCT CARD как button (сброс) ============ */
.product-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.product-card__frame { display: block; }

/* ============ CASE MODAL ============ */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.case-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 6, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.case-modal__panel {
  position: absolute;
  inset: 5% 5%;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(40px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.case-modal.is-open .case-modal__panel {
  transform: translateY(0) scale(1);
}

.case-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  color: var(--red);
  font-size: 28px;
  cursor: pointer;
  border: 1.5px solid var(--red);
  z-index: 3;
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
.case-modal__close:hover {
  background: var(--red);
  color: var(--white);
  transform: rotate(90deg);
}

.case-modal__hero {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: var(--gray-bg);
  overflow: hidden;
}
.case-modal__hero-svg { width: 100%; height: 100%; }

.case-modal__content {
  padding: 48px 56px 56px;
  max-width: 900px;
}
.case-modal__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.case-modal__title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--black);
  margin-bottom: 20px;
}
.case-modal__lead {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 680px;
}
.case-modal__body {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
  margin-bottom: 36px;
  max-width: 680px;
}
.case-modal__body p { margin-bottom: 14px; }
.case-modal__body strong { color: var(--red); font-weight: 700; }

body.modal-open { overflow: hidden; }

/* мобильная адаптация модалки добавится в общий @media блок ниже */

/* ===================================================== */
/* ============== RESPONSIVE / ADAPTIVE ================ */
/* ============ (всегда в самом конце CSS!) ============ */
/* ===================================================== */

/* === ПЛАНШЕТ (≤ 1024px) === */
@media (max-width: 1024px) {
  .page { padding: 16px 20px 32px; }

  .logo { font-size: 32px; }

  .intro {
    grid-template-columns: 130px 1fr 50px;
    gap: 32px;
    padding: 56px 4px 12px;
  }
  /* сброс десктопного сдвига текста интро — иначе уезжает за экран */
  .intro__col--text { transform: none; }
  /* правая колонка футера (экосистема + контакты) — в столбик на планшете/мобилке */
  .footer__right { flex-direction: column; gap: 28px; }

  .hero { aspect-ratio: auto; }
  .hero__content { padding: 32px 36px; gap: 18px; }
  .hero__title { font-size: 40px; max-width: 80%; }

  .big-heading h2 { font-size: 38px; }
  .big-heading__line--indent { padding-left: 8%; }

  .two-col__photo-frame { aspect-ratio: 16 / 10; }
  .red-card { padding: 28px; }
  .red-card__title { font-size: 24px; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .stat { padding: 28px; min-height: 200px; }
  .stat__value { font-size: 52px; }

  .faq { padding: 36px 32px; gap: 32px; }
  .faq__title { font-size: 44px; }

  .menu__list a { font-size: 56px; }
  .menu { padding: 32px; }
}

/* === МОБИЛКА (≤ 640px) === */
@media (max-width: 640px) {
  :root {
    --section-gap: 24px;
    --gap: 24px;
  }
  .page { padding: 12px 16px 24px; }
  /* единый увеличенный зазор между карточными блоками до конца страницы (футер не трогаем) */
  .two-col + .product-grid { margin-top: 24px; }
  .product-grid + .stats { margin-top: 24px; }
  .stats + .faq { margin-top: 0; }
  .service__cases + .cta-band { margin-top: 24px; }

  /* HEADER */
  .header { padding: 18px 0 0; }
  .logo { font-size: 31px; }
  .burger { width: 32px; height: 22px; gap: 7px; margin-top: 7px; }
  .burger span { height: 6px; }
  .burger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger.is-active span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

  /* INTRO — стек вертикально */
  .intro {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 40px 0 15px;
    align-items: end;
    align-content: space-between;
    min-height: 26vh;
  }
  .intro__col--text { grid-column: 1 / -1; order: 1; }
  .intro__col--text p { max-width: 100%; font-size: 17px; }
  .intro__col--date { order: 2; grid-column: 1; opacity: 0.7; align-self: end; line-height: 1; }
  .intro__col--dots { order: 3; grid-column: 2; justify-self: end; justify-content: flex-end; align-self: end; }
  .dots-icon { margin-bottom: 0; }

  /* FILTERS — горизонтальный скролл */
  .filters__inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .filters__inner::-webkit-scrollbar { display: none; }
  .tag { padding: 9px 18px; font-size: 12px; }

  /* HERO — портретнее */
  .hero { aspect-ratio: auto; }
  .hero__content {
    padding: 24px;
    align-items: flex-start;
    text-align: left;
  }
  .hero__title {
    font-size: 32px;
    text-align: left;
    max-width: 100%;
    line-height: 1.05;
  }
  .btn { padding: 12px 24px; font-size: 12px; }

  /* БОЛЬШОЙ ЗАГОЛОВОК */
  .big-heading { padding: 24px 0 24px; }
  .big-heading h2 { font-size: 28px; }
  .big-heading__line { white-space: normal; }
  .big-heading__line--indent { padding-left: 0; }
  .skew-in h2 { transform: none !important; }

  /* TWO-COL — стек */
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col__photo-frame { aspect-ratio: 16 / 10; }
  .red-card { aspect-ratio: 4 / 3; padding: 24px; }
  .red-card__title { font-size: 24px; }

  /* КЕЙСЫ — 1 колонка */
  .product-grid {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }
  .product-card { gap: 12px; }

  /* СТАТИСТИКА — стек */
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 160px; padding: 24px; }
  .stat__value { font-size: 44px; }

  /* FAQ — стек */
  .faq {
    grid-template-columns: 1fr;
    padding: 16px 24px 28px;
    gap: 20px;
    align-items: start;
  }
  .faq__title { font-size: 36px; }
  .faq__q { font-size: 14px; }
  .faq__head { padding: 16px 0; }

  /* ФУТЕР — стек */
  .footer {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 0 0;
  }
  .footer__nav { grid-template-columns: 1fr; gap: 24px; }
  .footer__right { flex-direction: column; gap: 40px; }

  /* BOTTOM BAR */
  .bottombar {
    flex-direction: column;
    gap: 8px;
    padding: 20px 0 0;
  }
  .bottombar__copy { margin-left: 0; margin-top: 8px; }

  /* МЕНЮ */
  .menu { padding: 24px; }
  .menu__close { font-size: 36px; width: 44px; height: 44px; }
  .menu__list a { font-size: 36px; }
  .menu__footer { padding-top: 24px; margin-top: 24px; }
  .menu__footer .tg-link { font-size: 16px; }

  /* отключаем hover-lift на тач */
  .product-card:hover { transform: none; }
  .product-card:hover .product-card__frame { box-shadow: none; }
  .two-col__photo:hover .two-col__photo-frame,
  .two-col__card:hover .red-card {
    transform: none;
    box-shadow: none;
  }

  /* МОДАЛКА КЕЙСА */
  .case-modal__panel { inset: 0; border-radius: 0; }
  .case-modal__hero { aspect-ratio: 4 / 3; }
  .case-modal__content { padding: 28px 24px 36px; }
  .case-modal__title { font-size: 40px; }
  .case-modal__lead { font-size: 18px; }
  .case-modal__body { font-size: 15px; }
  .case-modal__close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
}

/* === МАЛЕНЬКАЯ МОБИЛКА (≤ 380px) === */
/* === МАЛЕНЬКИЕ ЭКРАНЫ (≤ 380px) === */
@media (max-width: 380px) {
  .logo { font-size: 29px; }
  /* копирайт + кнопку опускаем ниже, ближе к hero */
  .intro { min-height: 34vh; }
}

/* ========================================================= */
/* ============== ВНУТРЕННИЕ СТРАНИЦЫ (кейсы/услуги) ======= */
/* ========================================================= */
.logo { text-decoration: none; }
.product-card { text-decoration: none; }

/* хлебные крошки */
.crumbs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 60px 0 24px; font-size: 17px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; color: var(--red); }
.crumbs a { color: inherit; text-decoration: none; opacity: 1; transition: opacity 0.2s; }
.crumbs a:hover { opacity: 0.65; }
.crumbs > span:nth-child(even) { opacity: 0.4; }

/* hero страницы кейса */
.case-page__hero { display: flex; flex-direction: column; gap: 24px; }
.case-page__hero-media { width: 100%; aspect-ratio: 16 / 7; border-radius: var(--radius-lg); overflow: hidden; }
.case-page__hero-media svg { width: 100%; height: 100%; }
.case-page__hero-meta { display: none; }
.case-page__title { font-size: clamp(56px, 10vw, 148px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.92; color: var(--red); margin: 36px 0 0 -0.05em; }
.case-page__lead { font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; line-height: 1.3; color: var(--black); max-width: 920px; margin: 0 0 0 -0.04em; }

/* контент-блоки задача/решение/результат */
.case-body { display: flex; flex-direction: column; gap: 48px; padding: 24px 0; }
.content-block { display: grid; grid-template-columns: 100px 1fr; gap: 40px; align-items: start; }
.content-block__idx { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--red); opacity: 0.5; padding-top: 16px; visibility: hidden; }
.content-block h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; color: var(--red); margin: 0 0 16px; }
.content-block p { font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--black); max-width: 760px; margin: 0; }

/* галерея-плейсхолдеры */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); row-gap: var(--section-gap); margin-top: 64px; }
.gallery__item { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--gray-bg); }
.gallery__item svg { width: 100%; height: 100%; }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 2 / 1; }

/* CTA-полоса */
.cta-band { background: var(--red); color: var(--white); border-radius: var(--radius-lg); padding: 64px 56px; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.cta-band h2 { font-size: clamp(34px, 6vw, 72px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.0; margin: 0; }
.cta-band .btn--solid { background: var(--white); color: var(--red); }
.case-next { color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; opacity: 0.85; transition: opacity 0.2s, transform 0.3s; }
.case-next:hover { opacity: 1; transform: translateX(4px); }

/* страница услуги */
.service__hero { display: flex; flex-direction: column; gap: 28px; padding: 24px 0 0; align-items: flex-start; }
.service__hero .btn { margin-top: 16px; padding: 22px 46px; font-size: 17px; }
.service__desc, .service-steps, .service__cases { margin-top: 32px; }
.service__cases + .cta-band { margin-top: 36px; }
.service__label { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); opacity: 0.6; }
.service__title { font-size: clamp(56px, 12vw, 168px); font-weight: 900; letter-spacing: -0.04em; line-height: 0.9; color: var(--red); margin: 0 0 0 -0.05em; }
.service__tagline { font-size: clamp(22px, 3.2vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; color: var(--black); max-width: 960px; margin: 0 0 0 -0.04em; }
.service__desc p { font-size: clamp(18px, 2vw, 24px); line-height: 1.5; font-weight: 500; color: var(--black); max-width: 880px; margin: 0 0 0 -0.04em; }
.service-steps { display: flex; flex-direction: column; gap: 20px; }
.service-steps h2, .service__cases h2 { font-size: clamp(28px, 4vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; color: var(--red); margin: 0 0 8px -0.05em; }
.service__cases h2 { margin-bottom: 28px; }
.service__cases { margin-top: 48px; }
/* внутренние страницы: логотип к левому краю (убираем +4px шапки и оптический свес) */
.service-step { display: block; border-top: 1.5px solid var(--red-soft); padding: 36px 0 16px; }
.service-step h3 { font-size: 32px; font-weight: 900; letter-spacing: -0.02em; color: var(--red); margin: 0 0 10px; }
.service-step p { font-size: 16px; line-height: 1.5; color: var(--black); opacity: 0.85; max-width: 700px; margin: 0; }

/* адаптив внутренних страниц */
@media (max-width: 640px) {
  .content-block { grid-template-columns: 1fr; gap: 8px; }
  .content-block__idx { display: none; }
  .gallery { grid-template-columns: 1fr; margin-top: 46px; }
  .gallery__item, .gallery__item--wide { aspect-ratio: 4 / 3; }
  .cta-band { padding: 52px 24px; border-radius: var(--radius-lg); }
  .service-step { grid-template-columns: 44px 1fr; gap: 14px; }
  .case-page__hero-media { aspect-ratio: 4 / 3; }
}

/* Короткое «Фото» вместо «Фотопродакшн» в навигации на мобилке */
.nb-short{display:none}
@media (max-width:640px){.nb-full{display:none}.nb-short{display:inline}}

/* caption mobile 28 — подписи кейсов на мобилке чуть меньше */
@media (max-width:640px){.caption{font-size:28px;font-weight:900;}}

/* crumbs mobile 15 — хлебные крошки на мобилке мельче */
@media (max-width:640px){.crumbs{font-size:17px;font-weight:500;padding-top:40px;padding-bottom:0;}}

/* service hero btn mobile +20 */
@media (max-width:640px){.service__hero .btn{padding:14px 29px;font-size:14px;margin-top:0;}}

/* cta-band btn +20% — кнопка «Сделаем шумно» */
.cta-band .btn { padding: 22px 46px; font-size: 17px; }
@media (max-width:640px){.cta-band .btn{padding:14px 29px;font-size:14px;}}

/* service-step h3 mobile match — шаги как заголовок «Как мы работаем» на мобилке */
@media (max-width:640px){.service-step h3{font-size:clamp(28px,4vw,52px);}}

/* service cases caption 28 — подписи кейсов на страницах услуг меньше, чем на главной */
.service__cases .product-grid .caption { font-size: 28px; }

/* cta-band mobile no margin — убираем верхний отступ блока «Сделаем шумно» на мобилке */
@media (max-width:640px){.service__cases + .cta-band{margin-top:24px;margin-bottom:24px;}}

/* service tagline mobile mb — отступ под вторым заголовком на мобилке */
@media (max-width:640px){.service__tagline{margin-bottom:3px;}}

/* crumbs hidden everywhere — убрали хлебные крошки со всех страниц */
.crumbs{display:none !important;}

/* service hero mobile top +32 — отступ заголовка услуги от логотипа на мобилке */
@media (max-width:640px){.service__hero{margin-top:32px;}}

/* hero top after crumbs removed — отступ заголовка от логотипа на услугах и кейсах */
.service__hero, .case-page__hero { margin-top: 32px; }

/* case hero extra 32 — кейсам ещё +32px (итого 64) */
.case-page__hero { margin-top: 64px; }

/* case hero mobile 48 — на мобилке кейс-заголовок чуть выше */
@media (max-width:640px){.case-page__hero{margin-top:48px;}}

/* faq mobile bottom 24 — нижний отступ блока «Частые вопросы» как сверху */
@media (max-width:640px){.faq{margin-bottom:24px;}}

/* case cta-band mobile margin 24 — отступы блока «Хотите так же громко» на кейсах */
@media (max-width:640px){.stats + .cta-band{margin-top:0;margin-bottom:24px;}}

/* case-img-fill — фото в рамках кейсов/карточек */
.case-page__hero-media img, .gallery__item img, .product-card__frame img { width:100%; height:100%; object-fit:cover; display:block; }
