/* ============================================
   COLLAB PAGE — collab.html
   Structure matches Artem Belakh reference
   ============================================ */

.collab-body {
  background: var(--color-black);
  color: var(--color-text-primary);
}

/* Collab page — акцентные кнопки в ОФИЦИАЛЬНОМ красном UFC #D20A0A */
.collab-body {
  --color-red: #D20A0A;            /* UFC official red */
  --color-red-glow: rgba(210, 10, 10, 0.20);
}

/* Override tokens for light bg sections */
.collab-body .eyebrow { color: var(--color-red); }

/* NAV — скрыт на collab странице */
.nav--transparent { display: none; }

/* ============================================
   1. HERO
   ============================================ */
.c-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #000;
  /* content выровнен по низу через align-items: flex-end */
}

.c-hero__img-wrap {
  position: absolute;
  inset: 0;
}

.c-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* mobile fix: focal point из content.yaml (--hero-focal). Дефолт «center 22%» держит лицо
     бойца в кадре на узком вертикальном экране (было right top → лицо уезжало за кадр). */
  object-position: var(--hero-focal, center 22%);
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .c-hero__img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    /* на десктопе кадр шире — фокус на нижний-правый угол (поза бойца) */
    object-position: var(--hero-focal-desktop, right bottom);
    margin-left: auto;
    display: block;
  }
}

/* Placeholder gradient removed — real image now in place */

.c-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.0) 20%,
    rgba(0,0,0,0.65) 65%,
    rgba(0,0,0,0.85) 100%
  );
}

.c-hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  /* растягиваем на всю высоту hero */
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* лого вверху, контент внизу */
  justify-content: space-between;
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(47px, 8vw, 98px);
}

.c-hero__logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--color-white);
  text-decoration: none;
}

/* группируем нижний контент */
.c-hero__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.c-hero__title {
  font-family: var(--font-display);
  color: #fff;
  max-width: 80%;
  /* design-review fix: гарантия контраста на светлых зонах фото бойца (WCAG AA) */
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.c-hero__collab-tag {
  margin-top: 0;
}

.c-hero__logo span {
  color: var(--color-red);
  margin-left: 4px;
}

.c-hero__collab-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-red);
  margin-bottom: 24px;
}

.c-hero__collab-dot {
  display: none;
}

.c-hero__cta {
  align-self: flex-start;
}

/* ============================================
   2. VALUE PROPS
   ============================================ */
.c-value {
  background: transparent;
  padding: clamp(58px, 8vw, 98px) 0;
}

.c-value__title {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 56px;
}

.c-value__title em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 4px;
}

.c-value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.c-value__item { }

.c-value__icon {
  display: none;
}

.c-value__item-title {
  color: #fff;
  margin-bottom: 10px;
}

.c-value__item-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
}

/* ============================================
   3. QUOTE STRIP
   ============================================ */
.c-quote-strip {
  background: transparent;
  padding: 48px 0;
}

.c-quote-strip__text {
  font-family: var(--font-display);
  color: #fff;
}

/* ============================================
   4. FIGHTER FEATURE
   ============================================ */
.c-fighter-feature {
  background: transparent;
  overflow: hidden;
}

.c-fighter-feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.c-fighter-feature__title {
  grid-column: 1 / -1;
}

.c-fighter-feature__left {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 560px;
}

.c-fighter-feature__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.c-fighter-feature__right {
  padding: clamp(58px, 8vw, 98px) 0;
}
    rgba(10, 10, 15, 0.15) 100%
  );
  pointer-events: none;
}

/* Phone stack mockup */
.c-phone-stack {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.c-phone {
  position: absolute;
  width: 220px;
  background: #1A1A1A;
  border-radius: 32px;
  border: 1.5px solid #333;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.c-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  z-index: 2;
}

.c-phone__screen {
  aspect-ratio: 9/19.5;
  overflow: hidden;
  background: #0A0A0F;
}

.c-phone__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder for missing images */
.c-phone__screen--fighter {
  background: linear-gradient(160deg, #1a0505 0%, #050514 100%);
}

.c-phone--back {
  transform: rotate(-8deg) translateX(-40px);
  z-index: 1;
  opacity: 0.7;
}

.c-phone--front {
  transform: rotate(3deg) translateX(30px);
  z-index: 2;
}

.c-phone--single {
  position: relative;
  width: 240px;
  margin: 0 auto;
}

.c-fighter-bio {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.c-fighter-bio__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-align: left;
}

.c-fighter-bio__titles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.c-fighter-bio__titles li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  padding-left: 16px;
  position: relative;
}

.c-fighter-bio__titles li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  background: var(--color-red);
  border-radius: 50%;
}

/* Mobile: no bullets, centered */
@media (max-width: 900px) {
  .c-fighter-bio {
    margin-bottom: 40px;
  }
  .c-fighter-bio__titles {
    text-align: center;
    align-items: center;
  }
  .c-fighter-bio__titles li {
    padding-left: 0;
    text-align: center;
  }
  .c-fighter-bio__titles li::before {
    display: none;
  }
}

.c-fighter-feature__title {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 24px;
}

.c-fighter-feature__title span {
  color: var(--color-red);
}

.c-fighter-feature__desc {
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  max-width: 440px;
}

/* ============================================
   5. PRO SECTION
   ============================================ */
.c-pro-section {
  background: transparent;
  padding: clamp(58px, 8vw, 98px) 0;
}

.c-pro-section__title {
  font-family: var(--font-display);
  color: #fff;
  margin-bottom: 16px;
}

.c-pro-section__title em {
  font-style: normal;
  color: var(--color-red);
}

.c-pro-section__subtitle {
  color: var(--color-text-secondary);
  margin-bottom: 72px;
}

/* Alternating feature blocks */
.c-pro-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: 60px 0;
  border-top: 1px solid var(--color-border);
}

.c-pro-block--right-text .c-pro-block__visual { order: -1; }

.c-pro-block__title {
  color: #fff;
  margin-bottom: 16px;
}

.c-pro-block__desc {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.c-pro-block__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-pro-block__list li {
  font-size: 14px;
  color: var(--color-text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.c-pro-block__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-red);
  font-size: 12px;
}

.c-pro-block__cta { margin-top: 8px; }

.c-pro-block__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-pro-section__cta-row {
  display: flex;
  justify-content: center;
  padding-top: 48px;
}

/* ============================================
   6. DARK SPLIT — Dieting & Training
   ============================================ */
.c-dark-split {
  background: var(--color-black);
  color: var(--color-text-primary);
  overflow: hidden;
}

.c-dark-split__headings {
  padding: clamp(58px, 8vw, 98px) 0 40px;
}

.c-dark-split__title {
  font-family: var(--font-display);
  color: #fff;
}

.c-dark-split__title--strike {
  text-decoration: line-through;
  color: var(--color-text-dim);
  text-decoration-color: var(--color-red);
}

/* Fighter photo + quote side by side */
.c-dark-split__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  padding: clamp(47px, 6vw, 78px) 0;
}

.c-dark-split__photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.c-dark-split__photo-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.c-dark-split__quote-side {
  display: flex;
  align-items: center;
}

.c-dark-split__quote p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 22px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Full-width fighter photo */
/* .c-dark-split__full-photo — styles disabled */

.c-dark-split__full-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.c-dark-split__full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.0) 40%,
    rgba(0,0,0,0.7) 100%
  );
}

/* Bottom quote */
.c-dark-split__bottom-quote {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
  max-width: 100%;
  padding: clamp(47px, 6vw, 78px) 0;
  margin-top: 0;
}

/* ============================================
   7. WAITLIST CTA
   ============================================ */
.c-waitlist {
  background: transparent;
  overflow: hidden;
}

.c-waitlist__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: stretch;
}

.c-waitlist__left {
  padding: clamp(58px, 8vw, 98px) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
}

.c-waitlist__left .btn {
  align-self: flex-start;
}

.c-waitlist__title {
  font-family: var(--font-display);
  color: #fff;
  margin: 0;
}

.c-waitlist__desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.c-waitlist__desc:empty {
  display: none;
}

.c-waitlist__right {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.c-waitlist__photo {
  display: block;
  width: auto;
  height: 100%;
  max-height: 700px;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.c-waitlist__scroll-cta { }

.c-waitlist__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.c-waitlist__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-red);
}

.c-waitlist__price-block {
  margin-bottom: 24px;
}

.c-waitlist__price-label {
  margin-bottom: 8px;
}

.c-waitlist__price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.c-waitlist__price-note {
  font-size: 13px;
  color: #888;
}

.c-waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Override input styles for dark bg */
.c-waitlist .waitlist__input {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text-primary);
  border-radius: var(--radius-pill);
  padding: 16px 32px;
}

.c-waitlist .waitlist__input::placeholder { color: var(--color-text-secondary); }
.c-waitlist .waitlist__input:focus { border-color: var(--color-red); }

.c-waitlist__submit {
  width: 100%;
  justify-content: center;
}

.c-waitlist__disclaimer {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
}
.c-waitlist__disclaimer--cta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
}

/* success msg override for light bg */
.c-waitlist .waitlist__success {
  background: rgba(88, 108, 237, 0.06);
  border-color: rgba(88, 108, 237, 0.2);
}

.c-waitlist .waitlist__success-icon { color: var(--color-red); }

/* footer on collab light page */
.footer--red {
  background: var(--color-black);
}

.footer--red .footer__logo span { color: var(--color-red); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .c-value__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* Mobile: center all headings and text */
  .c-value__title,
  .c-value__item,
  .c-pro-section__title,
  .c-pro-section__subtitle,
  .c-fighter-feature__title,
  .c-fighter-feature__desc,
  .c-fighter-bio,
  .c-dark-split__title,
  .c-dark-split__bottom-quote,
  .c-waitlist__title,
  .c-waitlist__desc,
  .c-waitlist__disclaimer,
  .c-waitlist__left {
    text-align: center;
    align-items: center;
  }

  .c-fighter-feature__inner {
    grid-template-columns: 1fr;
  }

  /* Mobile: title → photo → rest of text */
  .c-fighter-feature__title { order: 1; text-align: center; }
  .c-fighter-feature__left { order: 2; }
  .c-fighter-feature__right { order: 3; padding: clamp(20px, 3vw, 40px) 0 0; }

  /* Bigger top padding before fighter section */
  .c-fighter-feature {
    padding-top: clamp(50px, 8vw, 80px);
  }

  .c-fighter-feature__left {
    min-height: 280px;
    overflow: hidden;
  }

  .c-fighter-feature__photo {
    width: 100%;
    height: 280px;
    max-height: none;
    object-fit: cover;
    object-position: center 15%;
  }

  /* Slightly less padding before dark-split */
  .c-dark-split {
    padding-top: 0;
  }
  .c-dark-split__headings {
    padding-top: clamp(30px, 4vw, 50px);
  }

  .c-phone-stack { height: 380px; }

  .c-pro-block {
    grid-template-columns: 1fr;
  }

  /* Мобильный порядок: текст сначала, картинка снизу — для всех блоков */
  .c-pro-block__text    { order: 1; }
  .c-pro-block__visual  { order: 2; }

  /* Сбрасываем desktop-порядок для right-text блока */
  .c-pro-block--right-text .c-pro-block__visual { order: 2; }
  .c-pro-block--right-text .c-pro-block__text   { order: 1; }

  .c-dark-split__body {
    grid-template-columns: 1fr;
  }

  .c-dark-split__photo { min-height: 320px; }
  .c-dark-split__photo-overlay {
    background: linear-gradient(to bottom, transparent 50%, var(--color-black) 100%);
  }

  .c-waitlist__inner {
    grid-template-columns: 1fr;
  }

  .c-waitlist__left {
    align-items: center;
  }

  .c-waitlist__right {
    justify-content: center;
  }

  /* Mobile: bigger gap before feature-cards section */
  .c-pro-section {
    padding-top: clamp(70px, 10vw, 110px);
  }

  /* Mobile: tighter gap between subtitle and cards */
  .c-pro-section__subtitle {
    margin-bottom: 36px;
  }
}

@media (max-width: 600px) {
  .c-value__grid { grid-template-columns: 1fr; }
  .c-hero__title { font-size: clamp(24px, 7vw, 36px); }

  /* Mobile: center feature cards */
  .c-feature-card {
    text-align: center;
  }

  /* Mobile: center quiz */
  .c-quiz__q {
    text-align: center;
  }

  /* Mobile: center waitlist disclaimer and CTA */
  .c-waitlist__left .btn {
    align-self: center;
  }
}

/* ============================================
   PRICING CARD — c-plan & c-cancel
   ============================================ */

/* Plan block */
.c-plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.c-plan__label {
  display: block;
}

.c-plan__price {
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #fff;
}

.c-plan__currency {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: 700;
}

.c-plan__period {
  font-size: 0.25em;
  font-weight: 600;
  letter-spacing: 0;
  color: #888;
  vertical-align: middle;
}

.c-plan__note {
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-top: -4px;
}

/* Cancellation block */
.c-cancel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-cancel__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.c-cancel__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.c-cancel__email {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-cancel__footnote {
  font-size: 11px;
  color: #aaa;
}

/* Pro block images — фиксированная высота для всех */
.c-pro-block__img-wide,
.c-pro-block__img-phone {
  display: block;
  width: auto;
  height: 480px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* ============================================
   FEATURE CARDS — 5-карточная сетка
   ============================================ */
.c-feature-cards {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.c-feature-card {
  grid-column: span 2;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-feature-card:nth-child(4),
.c-feature-card:nth-child(5) {
  grid-column: span 3;
}

.c-feature-card__icon {
  display: none;
}

.c-feature-card__title {
  color: #fff;
}

.c-feature-card__title em {
  font-style: normal;
  color: #fff;
}

.c-feature-card__desc {
  font-size: 13px;
  line-height: 1.6;
  color: #fff;
}

@media (max-width: 900px) {
  .c-feature-cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .c-feature-card {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .c-feature-cards {
    grid-template-columns: 1fr;
  }
  .c-feature-card,
  .c-feature-card:nth-child(4),
  .c-feature-card:nth-child(5) {
    grid-column: span 1;
  }
}

/* ============================================
   CMS interactive blocks (nav / quiz / app-links) — QA/design-fix (subagent review)
   ============================================ */
.c-nav {
  position: fixed; top: var(--fz-cookie-offset, 0px); right: 0; left: 0; z-index: 200;
  display: flex; gap: 32px; justify-content: flex-end; align-items: center;
  padding: 9px var(--gutter);
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  transition: top .3s ease, background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
}
.c-nav--scrolled {
  background: rgba(10, 10, 15, .50);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}
.c-nav a { color: var(--color-text-primary); opacity: .8; transition: opacity .2s, color .2s; }
.c-nav a:hover { opacity: 0; color: var(--color-red); }
.c-nav__cta { opacity: 1 !important; min-width: 0 !important; }
.c-nav__cta:hover { opacity: 1 !important; color: #fff !important; }

.c-quiz { padding: var(--section-pad) 0; text-align: center; }
.c-quiz__q { margin-bottom: 24px; }
/* autolayout: чипы перетекают на новую строку, мелкие, по центру */
.c-quiz__chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 620px; margin: 0 auto; }
.c-quiz__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border); background: var(--color-surface);
  color: #F0F0F8; font-family: var(--font-display);
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out), color .15s;
}
.c-quiz__chip:hover { border-color: var(--color-red); }
/* чекбокс-индикатор слева (мультивыбор) */
.c-quiz__check {
  width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,0.5);
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;   /* контраст рамки ≥3:1 (WCAG 1.4.11) */
}
.c-quiz__check::after { content: "✓"; font-size: 11px; color: #fff; opacity: 0; transition: opacity .15s; }
.c-quiz__chip[aria-pressed="true"] { background: var(--color-red); color: #fff; border-color: var(--color-red); }
.c-quiz__chip[aria-pressed="true"] .c-quiz__check { background: #fff; border-color: #fff; }
.c-quiz__chip[aria-pressed="true"] .c-quiz__check::after { opacity: 1; color: var(--color-red); }
/* динамический текст-результат + кнопка continue */
.c-quiz__result { margin: 20px auto 0; max-width: 520px; color: #555; font-size: 14px; min-height: 20px; }
.c-quiz__continue { margin-top: 20px; min-height: 48px; }
.c-quiz__continue[hidden] { display: none; }

.c-app-links { padding: var(--section-pad) 0; }
.c-app-links .container { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.c-app-links__qr { width: 96px; height: 96px; border-radius: var(--radius-md); background: var(--color-surface); }

@media (max-width: 768px) { .c-nav { display: none; } .c-app-links .container { flex-direction: column; } }

/* ============================================
   INTERACTIVE: RickForm bottom sheet + QR (interactive.js)
   ============================================ */
.rick-sheet-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: flex-end; justify-content: center;
  animation: rs-fade 0.2s var(--ease-out);
}
.rick-sheet-overlay[hidden] { display: none; }
@keyframes rs-fade { from { opacity: 0 } to { opacity: 1 } }
.rick-sheet {
  position: relative; width: 100%; max-width: 480px;
  background: var(--color-black, #0A0A0F); color: var(--color-text-primary, #F0F0F8);
  border-radius: 24px 24px 0 0; padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.5);
  animation: rs-up 0.28s var(--ease-out);
}
@keyframes rs-up { from { transform: translateY(100%) } to { transform: translateY(0) } }
@media (min-width: 600px) {
  .rick-sheet-overlay { align-items: center; }
  .rick-sheet { border-radius: 24px; animation: rs-pop 0.24s var(--ease-out); }
  @keyframes rs-pop { from { transform: scale(0.96); opacity: 0 } to { transform: scale(1); opacity: 1 } }
}
/* legacy .rick-sheet__close/__label/__input удалены (заменены на Typhoon .rick-sheet-close + .rf-field) */
.rick-sheet__title { margin: 0 0 24px; font-size: clamp(20px, 4vw, 26px); }
.rick-sheet__submit { width: 100%; min-height: 60px; margin-top: 24px; justify-content: center; cursor: pointer; border: none; }
.rick-sheet__submit:disabled { opacity: 0.6; cursor: default; }
.rick-sheet__error { margin: 12px 0 0; color: var(--color-red, #D20A0A); font-size: 14px; }
.rick-sheet__success { text-align: center; padding: 24px 0; }
.rick-sheet__success h3 { margin: 0 0 8px; }

/* (quiz chip active — определено выше в секции квиза с чекбоксом) */

/* App-links layout + QR */
.c-app-links__inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.c-app-links__stores { display: flex; gap: 12px; flex-wrap: wrap; }
.c-app-links__qr {
  width: 132px; height: 132px; background: #fff; padding: 8px;
  border-radius: var(--radius-md, 12px); flex-shrink: 0;
}
.c-app-links__qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 600px) { .c-app-links__qr { display: none; } } /* QR не нужен на телефоне — он уже в руке */

/* scroll-lock когда открыт bottom sheet (вместо inline style — не затирает чужие стили) */
body.rick-no-scroll { overflow: hidden; }

/* reduced-motion: убираем slide/pop анимации sheet (vestibular safety) */
@media (prefers-reduced-motion: reduce) {
  .rick-sheet-overlay, .rick-sheet { animation: none !important; }
}

/* ============================================
   RickForm Typhoon-grade: grabber+close-row, floating label, verdict, google
   (порт rick-ui-kit components/rick-sheet + text-field)
   ============================================ */
.rick-sheet-wrap { width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: stretch; }
@media (min-width: 600px) { .rick-sheet-wrap { max-width: 460px; margin: auto; } }

/* grabber «———» + close-row НАД белым листом, на тёмном overlay (Standard 4.19) */
.rick-sheet-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  height: 40px; padding: 0 4px 5px; touch-action: pan-y;   /* grabber/close сидят на 5px над листом (не оторваны) */
}
.rick-sheet-grabber {
  grid-column: 2; width: 44px; height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.5);
}
/* drag-down — мобильный жест; на desktop (центрированный popup) grabber скрыт (ложный аффорданс) */
@media (min-width: 600px) { .rick-sheet-grabber { display: none; } }
.rick-sheet-close {
  grid-column: 3; justify-self: end; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px;
  min-width: 44px; min-height: 44px;            /* iOS HIG тап-таргет (design-review fix, без translateY) */
  background: transparent; border: none; color: rgba(255,255,255,0.7); cursor: pointer;
  font-family: var(--font-body, sans-serif); font-size: 13px; padding: 8px 6px 2px;
  transition: filter 0.2s var(--ease-out);
}
.rick-sheet-close:hover { filter: brightness(1.5); }
.rick-sheet-close__key {
  font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 1px 6px; opacity: .7;
}
.rick-sheet-close__x { font-size: 22px; line-height: 1; }
@media (max-width: 599px) { .rick-sheet-close__key { display: none; } }

/* OR divider + google — отступы по сетке 12px (Standard 4.19) */
.rf-google { margin-bottom: 24px; }
#rf-google-btn { display: flex; justify-content: center; }
.rf-or { display: flex; align-items: center; gap: 12px; margin: 24px 0 12px; color: var(--color-text-secondary, #9191A8); font-size: 12px; }
.rf-or::before, .rf-or::after { content: ""; flex: 1; height: 1px; background: var(--color-border, #2E2E3D); }

/* floating-label поле — на сетке 12px: высота input 60 (5×12), gap между полями 24 (2×12) */
.rf-field { position: relative; margin-bottom: 24px; }
.rf-field__input {
  width: 100%; min-height: 60px; padding: 24px 16px 12px; font-size: 16px;
  background: var(--color-surface, #1A1A24); color: var(--color-text-primary, #F0F0F8);
  border: 1.5px solid var(--color-border, #2E2E3D); border-radius: var(--radius-md, 12px);
  transition: border-color 0.2s var(--ease-out);
}
/* placeholder виден всегда (label всегда поднят выше — надзаголовок над значением) */
.rf-field__input::placeholder { color: var(--color-text-secondary, #6E6E84); }
.rf-field__input:focus { outline: none; border-color: var(--color-red, #D20A0A); }
.rf-field[data-verdict="ok"] .rf-field__input { border-color: #2EAD5B; }
.rf-field[data-verdict="warn"] .rf-field__input { border-color: #E0A100; }

/* label ВСЕГДА поднят (надзаголовок выше значения) — не накладывается на placeholder */
.rf-field__label {
  position: absolute; left: 16px; top: 10px; display: flex; align-items: center; gap: 8px;
  color: var(--color-text-secondary, #9191A8); font-size: 12px; pointer-events: none;
  transition: color 0.16s;
}
.rf-field[data-verdict="ok"] .rf-field__label { color: #2EAD5B; }
.rf-field__req { font-style: italic; font-size: 0.85em; opacity: .7; }
.rf-field__verdict { color: #2EAD5B; font-weight: 700; }
.rf-field__msg { margin: 6px 2px 0; min-height: 12px; font-size: 12px; color: #E0A100; }

/* shake на ошибке (порт rick-ui-kit shake) */
@keyframes rf-shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-7px)} 40%,80%{transform:translateX(7px)} }
.rf-shake { animation: rf-shake 0.4s var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .rf-shake { animation: none; } }

.rf-field__msg--ok { color: #2EAD5B; }   /* verdict-текст не только цветом рамки (WCAG 1.4.1) */

/* ============================================
   Sticky mobile CTA — красная кнопка внизу экрана под большим пальцем (только ≤600px)
   ============================================ */
.c-sticky-cta { display: none; }
@media (max-width: 600px) {
  .c-sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    background: var(--color-black);
    text-align: center;
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  }
  .c-sticky-cta .btn {
    width: 100%; max-width: 380px; min-height: 48px; padding: 12px 24px; font-size: 12px;
    justify-content: center; box-shadow: 0 6px 22px rgba(0,0,0,0.32);  /* мягкая тень вместо фона */
  }
  /* скрыта: пока форма открыта (rick-no-scroll) ИЛИ JS-контроллер (hero виден / форма-футер в кадре) */
  body.rick-no-scroll .c-sticky-cta,
  .c-sticky-cta--off { opacity: 0; transform: translateY(100%); pointer-events: none; }
}

/* ============================================
   Cookie consent (privacy-first) — низ слева, не перекрывает sticky CTA
   ============================================ */
.c-cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 950; max-width: 360px;
  background: var(--color-black, #0A0A0F); color: var(--color-text-primary, #F0F0F8);
  border: 1px solid var(--color-border, #2E2E3D); border-radius: var(--radius-md, 12px);
  padding: 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.c-cookie[hidden] { display: none; }
/* пока форма открыта — cookie скрыт (design-review: не мешать в нижней зоне) */
body.rick-no-scroll .c-cookie { display: none; }
.c-cookie__text { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--color-text-secondary, #9191A8); }
.c-cookie__text a { color: var(--color-text-primary, #F0F0F8); text-decoration: underline; }
.c-cookie__actions { display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.c-cookie__decline {
  background: transparent; border: none; color: var(--color-text-secondary, #9191A8);
  font-size: 13px; cursor: pointer; padding: 8px 12px; min-height: 36px;
}
.c-cookie__decline:hover { color: var(--color-text-primary, #F0F0F8); }
.c-cookie__accept { min-height: 40px; padding: 10px 22px; font-size: 11px; cursor: pointer; border: none; }
/* на мобиле — над липкой кнопкой, во всю ширину */
@media (max-width: 600px) {
  /* над липкой кнопкой (учитываем её высоту 48 + паддинги + home indicator), не наезжая (design-review fix) */
  .c-cookie { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
}

/* ============================================
   Cookie top-bar — дизайн q.builds.io (Figma 9317-7767): светлая полоса В ПОТОКЕ сверху,
   скроллится и исчезает с шапкой. Универсальный rick ui-kit компонент. (support layer, не трогает контент)
   ============================================ */
.c-cookie-bar {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  width: 100%; padding: 10px clamp(16px, 4vw, 48px);
  background: #F8FAFC; border-bottom: 1px solid #E6EAF2;
  position: relative; z-index: 150;
}
.c-cookie-bar[hidden] { display: none; }
.c-cookie-bar__text {
  margin: 0; font-family: var(--font-body, sans-serif); font-style: italic;
  font-size: 13px; line-height: 1.45; color: #7E8CA9; max-width: 640px;
}
.c-cookie-bar__actions { display: flex; gap: 12px; flex-shrink: 0; }
.c-cookie-bar__btn {
  padding: 7px 22px; min-height: 36px; border-radius: var(--radius-pill, 999px);
  background: #fff; border: 1px solid #DDE3EE; color: #3B4762;
  font-family: var(--font-body, sans-serif); font-size: 13px; cursor: pointer;
  transition: filter 0.2s ease, border-color 0.2s;
}
.c-cookie-bar__btn:hover { border-color: #B9C3D8; filter: brightness(0.985); }
@media (max-width: 600px) {
  .c-cookie-bar { flex-direction: column; gap: 10px; text-align: center; padding: 10px 16px 12px; }
}

/* ============================================
   IG-scroll — горизонтальная лента постов Артёма (unicorngo men-home + fara quiz scrollable)
   ============================================ */
.c-ig { padding: var(--section-pad, clamp(58px,8vw,98px)) 0; overflow: hidden; }
.c-ig__title { color: #fff; margin-bottom: 12px; }
.c-ig__subtitle { color: var(--color-text-secondary, #9191A8); margin-bottom: 24px; max-width: 560px; }
.c-ig__track {
  display: flex; gap: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; padding: 0 clamp(20px, 5vw, 80px) 12px; scrollbar-width: none;
}
.c-ig__track::-webkit-scrollbar { display: none; }
.c-ig__item {
  flex: 0 0 300px; max-width: 300px; scroll-snap-align: start;
  border-radius: var(--radius-lg, 24px); overflow: hidden; background: #F5F5F5;
}
.c-ig__item .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; }
.c-ig__more { margin-top: 20px; }
@media (max-width: 600px) { .c-ig__item { flex-basis: 260px; } }
