/* ============================================================
   /cases/4team — «сайт как кейс».
   Дизайн-система клиента (4team.by: web/app/globals.css + скилл
   4team-design), перенесённая в ванильный CSS и изолированная под .ft4.
   Oswald + Inter, острые углы, белая база, чёрный + кобальт #0051FF.
   Анимации — только transform/opacity.
   ============================================================ */
.ft4 {
  --ft4-bg: #ffffff;
  --ft4-ink: #0d0d0d;
  --ft4-surface: #eceeef;
  --ft4-line: #d6d9db;
  --ft4-muted: #5e6469;
  --ft4-accent: #0051ff;
  --ft4-sale: #d81e05;
  --ft4-ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ft4-pad: clamp(20px, 3.4vw, 48px);

  position: relative;
  background: var(--ft4-bg);
  color: var(--ft4-ink);
  font-family: var(--ft4-font-inter), Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
  overflow-x: clip;
}
.ft4 *,
.ft4 *::before,
.ft4 *::after { box-sizing: border-box; border-radius: 0; }
.ft4 a { color: inherit; text-decoration: none; }
.ft4 h1, .ft4 h2, .ft4 h3, .ft4 p, .ft4 ul, .ft4 dl, .ft4 dd, .ft4 dt { margin: 0; }
.ft4 ul { padding: 0; list-style: none; }
.ft4 :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.ft4 [id] { scroll-margin-top: 84px; }
.ft4 ::selection { background: var(--ft4-ink); color: #fff; }
.ft4 :focus-visible { outline: 2px solid var(--ft4-accent); outline-offset: 2px; }

.ft4-container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--ft4-pad); }
.ft4-section { padding-block: clamp(48px, 7vw, 96px); }
.ft4-bt { border-top: 1px solid var(--ft4-line); }

/* Типографика */
.ft4-display {
  font-family: var(--ft4-font-oswald), 'Arial Narrow', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}
.ft4-h2 { font-size: clamp(28px, 2.6vw, 36px); }
.ft4-h2-xl { max-width: 13ch; font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; line-height: 0.95; margin-top: 12px !important; }
.ft4-h3 { font-size: 20px; line-height: 1.1; }
.ft4-eyebrow, .ft4-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ft4-muted);
}
.ft4-label { letter-spacing: 0.08em; }
.ft4-outline { color: transparent; -webkit-text-stroke: 2px var(--ft4-ink); }
.ft4-outline-inv { -webkit-text-stroke: 1.5px #fff; }
.ft4-sub { margin-top: -12px !important; max-width: 64ch; color: var(--ft4-muted); }
.ft4-crumbs { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ft4-muted); }
.ft4-link { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; text-decoration: underline !important; text-underline-offset: 4px; }
.ft4-link:hover { text-decoration: none !important; }

/* Кнопки: 48px, прописные 14/600, стрелка сдвигается на ховере */
.ft4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid var(--ft4-ink);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ft4-btn > span[aria-hidden] { transition: transform 0.2s; }
.ft4-btn:hover > span[aria-hidden] { transform: translateX(4px); }
.ft4 .ft4-btn-ink { background: var(--ft4-ink); color: #fff; }
.ft4 .ft4-btn-ink:hover { background: var(--ft4-accent); border-color: var(--ft4-accent); }
.ft4 .ft4-btn-line { background: rgba(255, 255, 255, 0.7); color: var(--ft4-ink); }
.ft4 .ft4-btn-line:hover { background: var(--ft4-ink); color: #fff; }
.ft4-btn-block { width: 100%; height: 52px; }
.ft4-ai { display: inline-block; padding: 2px 4px; font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: 0.04em; background: var(--ft4-accent); color: #fff; }

@keyframes ft4-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.ft4-rise { animation: ft4-rise 0.55s var(--ft4-ease) both; }
@keyframes ft4-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.ft4-bob { animation: ft4-bob 3.6s ease-in-out infinite; animation-delay: var(--d, 0s); }

/* ---------- HERO: сцена с фигурами во всё окно ---------- */
.ft4-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(72px + 32px + 66px);
}
.ft4-site-top { position: absolute; inset: 72px 0 auto; z-index: 3; }
.ft4-promo {
  display: flex;
  align-items: stretch;
  height: 32px;
  background: var(--ft4-ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ft4-promo-line { flex: 1; min-width: 0; padding-inline: 12px; line-height: 32px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft4-promo-side { display: flex; align-items: center; gap: 8px; padding-inline: 20px var(--ft4-pad); border-left: 1px solid rgba(255, 255, 255, 0.25); font-weight: 600; }
.ft4-promo-side:hover { color: #9db9ff; }
.ft4-promo-dot { width: 6px; height: 6px; background: #3fbf5a; }
.ft4-header { background: #fff; border-bottom: 1px solid var(--ft4-line); }
.ft4-header-in { display: flex; align-items: center; gap: 32px; height: 65px; }
.ft4-logo { display: block; width: auto; height: 36px; flex-shrink: 0; }
.ft4-logo-sm { height: 28px; }
.ft4-nav { display: flex; gap: 24px; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.ft4-nav a, .ft4-header-live { padding-block: 4px; border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.ft4-nav a:hover, .ft4-header-live:hover { border-color: var(--ft4-ink); }
.ft4-header-live { margin-left: auto; font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

.ft4-hero-copy { position: relative; z-index: 3; padding-top: clamp(16px, 2.6vh, 40px); }
.ft4-back { display: inline-block; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ft4-muted) !important; transition: color 0.2s; }
.ft4-back:hover { color: var(--ft4-ink) !important; }
.ft4-h1 {
  margin-top: 14px !important;
  font-weight: 700;
  font-size: clamp(40px, min(7.6vw, 12.4vh), 108px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.ft4-h1 > span { display: block; }
.ft4-h1-2 { display: flex !important; align-items: center; gap: 0.22em; }
.ft4-h1-2 i { display: block; width: 0.95em; height: 0.11em; margin-top: 0.06em; background: var(--ft4-ink); }

.ft4-scene { position: relative; z-index: 2; flex: 1; min-height: clamp(220px, 29vh, 380px); margin-top: clamp(4px, 1.2vh, 20px); }
.ft4-ridge { position: absolute; inset: 0 0 18%; width: 100%; height: 82%; }
.ft4-ridge polyline { fill: none; stroke: var(--ft4-line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.7; }
.ft4-floor {
  position: absolute;
  inset: 52% 0 0;
  background-image: repeating-linear-gradient(180deg, rgba(13, 13, 13, 0.06) 0px, rgba(13, 13, 13, 0.06) 1px, transparent 1px, transparent 9px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 45%, transparent);
}
.ft4-fig {
  position: absolute;
  left: var(--x);
  bottom: calc(16% + var(--lift));
  height: var(--h);
  aspect-ratio: var(--ar);
  display: block;
}
.ft4-fig img { display: block; width: 100%; height: 100%; }
.ft4-fig-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--ft4-line);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.ft4-fig:hover .ft4-fig-label, .ft4-fig:focus-visible .ft4-fig-label { background: var(--ft4-ink); border-color: var(--ft4-ink); color: #fff; }

.ft4-strip {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  transform: translate(-50%, 50%);
  display: grid;
  grid-template-columns: 120px repeat(3, 210px);
  gap: 8px;
}
.ft4-strip-tile, .ft4-strip-card { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 64px; padding: 0 16px; }
.ft4-strip-tile { background: var(--ft4-accent); color: #fff !important; }
.ft4-strip-tile b { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ft4-strip-tile span { font-size: 11px; opacity: 0.85; }
.ft4-strip-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; background: #fff; border: 1px solid var(--ft4-line); transition: border-color 0.2s; }
.ft4-strip-card:hover { border-color: var(--ft4-ink); }
.ft4-strip-card b { font-size: 26px; }
.ft4-strip-card span { font-size: 11.5px; line-height: 1.25; color: var(--ft4-muted); }

.ft4-hero-foot { position: relative; z-index: 1; border-top: 1px solid var(--ft4-line); background: rgba(255, 255, 255, 0.6); }
.ft4-hero-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 46px 18px; }
.ft4-hero-foot p { max-width: 46ch; font-size: 14px; color: var(--ft4-muted); }
.ft4-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Шапка секции ---------- */
.ft4-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.ft4-head-l { display: flex; align-items: flex-end; gap: 16px; }
.ft4-head-sil { display: block; width: auto; height: 36px; }
.ft4-head-link { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; text-decoration: underline !important; text-underline-offset: 4px; }
.ft4-head-link:hover { text-decoration: none !important; }

/* ---------- Задача: каркас инфостраницы ---------- */
.ft4-info { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 8vw, 160px); align-items: start; }
.ft4-info-text { display: grid; gap: 14px; max-width: 72ch; margin-top: 28px; color: rgba(13, 13, 13, 0.8); }
.ft4-info .ft4-h3 { margin-top: 40px; }
.ft4-dash { display: grid; gap: 8px; max-width: 72ch; margin-top: 16px !important; color: rgba(13, 13, 13, 0.8); }
.ft4-dash li { position: relative; padding-left: 28px; }
.ft4-dash li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 16px; height: 1.5px; background: var(--ft4-accent); }
.ft4-sidecard { display: grid; gap: 20px; padding: 24px; border: 2px solid var(--ft4-accent); background: #fff; }
.ft4-sidecard dl { display: grid; gap: 16px; }
.ft4-sidecard dd { margin-top: 4px; font-size: 20px; line-height: 1.1; }
.ft4-sidecard .ft4-btn { justify-self: start; }

/* ---------- Брендбук ---------- */
.ft4-bb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: clamp(24px, 4vw, 64px); align-items: start; margin-top: 36px; }
.ft4-bb-left { position: sticky; top: 100px; }
.ft4-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ft4 .ft4-swatch {
  display: grid;
  gap: 3px;
  padding: 8px 8px 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--ft4-line);
  transition: border-color 0.2s, transform 0.3s var(--ft4-ease);
}
.ft4 .ft4-swatch:hover { border-color: var(--ft4-muted); }
.ft4 .ft4-swatch[aria-selected='true'] { border-color: var(--ft4-ink); transform: translateY(-3px); }
.ft4-swatch-chip { display: block; height: 56px; margin-bottom: 6px; border: 1px solid rgba(13, 13, 13, 0.12); }
.ft4-swatch-name { font-size: 13px; font-weight: 600; }
.ft4-swatch-hex { font-size: 11px; letter-spacing: 0.08em; color: var(--ft4-muted); }

.ft4-swatch-roles { position: relative; display: grid; margin-top: 24px; }
.ft4-swatch-roles p {
  grid-area: 1 / 1;
  padding-left: 16px;
  border-left: 2px solid var(--ft4-accent);
  color: rgba(13, 13, 13, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.35s, transform 0.35s var(--ft4-ease), visibility 0s 0.35s;
}
.ft4[data-hl='ink'] [data-role='ink'],
.ft4[data-hl='white'] [data-role='white'],
.ft4[data-hl='surface'] [data-role='surface'],
.ft4[data-hl='line'] [data-role='line'],
.ft4[data-hl='muted'] [data-role='muted'],
.ft4[data-hl='accent'] [data-role='accent'],
.ft4[data-hl='sale'] [data-role='sale'] { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.ft4-bb-stage {
  padding: clamp(16px, 2.4vw, 28px);
  background: #fff;
  border: 1px solid var(--ft4-line);
  outline: 2px dashed transparent;
  outline-offset: -7px;
  transition: outline-color 0.35s;
}
.ft4-bb-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; margin-top: 14px; }
.ft4-bb-note { margin-top: 18px !important; padding-top: 12px; border-top: 1px solid var(--ft4-line); font-size: 12px; color: var(--ft4-muted); }

/* плитка товара 4:5 на подложке, фото contain + multiply, на ховере — второй кадр */
.ft4-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ft4-surface); outline: 2px dashed transparent; outline-offset: 4px; }
.ft4-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(0.97); transition: transform 0.5s, opacity 0.3s; }
.ft4-tile:hover img { transform: none; }
.ft4-tile .ft4-tile-hover { opacity: 0; }
.ft4-tile:hover .ft4-tile-hover { opacity: 1; }
.ft4-tile:hover img:not(.ft4-tile-hover) { opacity: 0; }

/* панель покупки */
.ft4-buy-name { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.02; }
.ft4-buy-art { margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ft4-muted); }
.ft4-buy-price { margin-top: 12px; font-size: 22px; font-weight: 600; }
.ft4-buy-stock { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; }
.ft4-sq { width: 7px; height: 7px; background: var(--ft4-ink); }
.ft4-buy-sizehead { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; justify-content: space-between; gap: 4px 12px; min-height: 42px; margin-top: 22px; }
.ft4-buy-sizehead .ft4-label { white-space: nowrap; }
.ft4-buy-warn { font-size: 12px; color: var(--ft4-sale); }
.ft4-buy-level { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; color: var(--ft4-sale); animation: ft4-stock-in 0.35s var(--ft4-ease) both; }
@keyframes ft4-stock-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}
.ft4-dot { position: relative; flex-shrink: 0; width: 6px; height: 6px; background: var(--ft4-sale); }
.ft4-dot-hot::after { content: ''; position: absolute; inset: 0; background: var(--ft4-sale); animation: ft4-pulse 1.4s ease-out infinite; }
@keyframes ft4-pulse {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0; transform: scale(3.4); }
}
.ft4-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ft4 .ft4-size { min-width: 48px; height: 48px; padding: 0 8px; font-size: 14px; background: #fff; border: 1px solid var(--ft4-line); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.ft4 .ft4-size:hover { border-color: var(--ft4-ink); }
.ft4 .ft4-size[aria-pressed='true'] { background: var(--ft4-ink); border-color: var(--ft4-ink); color: #fff; }
.ft4 .ft4-size:disabled { color: var(--ft4-line); text-decoration: line-through; cursor: not-allowed; border-color: var(--ft4-line); }
.ft4-buy-table { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--ft4-muted) !important; text-decoration: underline !important; text-underline-offset: 4px; }
.ft4-buy-table:hover { color: var(--ft4-ink) !important; }
.ft4-buy-actions { display: grid; gap: 12px; margin-top: 24px; }

/* подсветка палитры: «листовые» цвета гаснут, выбранный остаётся */
.ft4-bb-stage [data-c], .ft4-bb-stage img, .ft4-bb-stage .ft4-size { transition: opacity 0.35s, outline-color 0.35s, border-color 0.35s, background-color 0.35s, color 0.2s; }
.ft4[data-hl='ink'] .ft4-bb-stage :is([data-c='muted'], [data-c='accent'], [data-c='sale']),
.ft4[data-hl='muted'] .ft4-bb-stage :is([data-c='ink'], [data-c='accent'], [data-c='sale']),
.ft4[data-hl='accent'] .ft4-bb-stage :is([data-c='ink'], [data-c='muted'], [data-c='sale']),
.ft4[data-hl='sale'] .ft4-bb-stage :is([data-c='ink'], [data-c='muted'], [data-c='accent']),
.ft4:is([data-hl='white'], [data-hl='surface'], [data-hl='line']) .ft4-bb-stage :is([data-c='ink'], [data-c='muted'], [data-c='accent'], [data-c='sale']) { opacity: 0.16; }
.ft4:not([data-hl='ink']):not([data-hl='surface']) .ft4-bb-stage .ft4-tile img:not(.ft4-tile-hover) { opacity: 0.3; }
.ft4:not([data-hl='ink']) .ft4-bb-stage .ft4-size[aria-pressed='true'] { background: #fff; color: var(--ft4-ink); }
.ft4[data-hl='accent'] .ft4-bb-stage .ft4-ai { transform: scale(1.5); }
.ft4-bb-stage .ft4-ai { transition: transform 0.35s var(--ft4-ease), opacity 0.35s; }
.ft4[data-hl='white'] .ft4-bb-stage { outline-color: var(--ft4-accent); }
.ft4[data-hl='surface'] .ft4-bb-stage .ft4-tile { outline-color: var(--ft4-accent); }
.ft4[data-hl='line'] .ft4-bb-stage .ft4-size:not(:disabled),
.ft4[data-hl='line'] .ft4-bb-stage .ft4-bb-note,
.ft4[data-hl='line'] .ft4-bb-stage .ft4-btn-line { border-color: var(--ft4-accent); }
.ft4[data-hl='line'] .ft4-bb-stage { border-color: var(--ft4-accent); }

/* Шрифты */
.ft4-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(40px, 6vw, 72px); }
.ft4-type { padding-top: 20px; border-top: 1px solid var(--ft4-ink); }
.ft4-type-sample { display: flex; align-items: flex-end; min-height: 1.6em; font-size: clamp(34px, 3.6vw, 52px); font-weight: 700; white-space: nowrap; }
.ft4-type-ui { font-size: clamp(15px, 1.35vw, 19px); font-weight: 600; white-space: normal; min-height: calc(clamp(34px, 3.6vw, 52px) * 1.6); }
.ft4-type-name { margin-top: 14px; font-weight: 600; }
.ft4-type-role { margin-top: 6px; font-size: 13px; color: var(--ft4-muted); }

/* ---------- Лента экранов (карточка товара) ---------- */
.ft4-rail {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding-block: 4px 8px;
  padding-inline: max(var(--ft4-pad), calc((100vw - 1440px) / 2 + 48px));
  scroll-padding-inline: max(var(--ft4-pad), calc((100vw - 1440px) / 2 + 48px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.ft4-rail::-webkit-scrollbar { display: none; }
.ft4-rail.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ft4-rail a, .ft4-rail img { -webkit-user-drag: none; user-select: none; }
.ft4-card { flex: 0 0 min(80vw, 380px); scroll-snap-align: start; }
.ft4-card-tile { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; padding: 7%; overflow: hidden; background: var(--ft4-surface); }
.ft4-card-tile img { display: block; width: 100%; height: auto; border: 1px solid var(--ft4-line); transform: scale(0.97); transition: transform 0.5s; }
.ft4-card:hover .ft4-card-tile img { transform: none; }
.ft4-card-badge { position: absolute; top: 0; left: 0; padding: 5px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; line-height: 1; background: var(--ft4-ink); color: #fff; }
.ft4-card-name { margin-top: 12px !important; font-size: 14px; font-weight: 500; line-height: 1.35; text-underline-offset: 4px; }
.ft4-card:hover .ft4-card-name { text-decoration: underline; }
.ft4-card-art { margin-top: 2px; font-size: 11px; letter-spacing: 0.06em; color: var(--ft4-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ft4-card-sub { margin-top: 2px; font-size: 12px; color: var(--ft4-muted); }
.ft4-card-price { margin-top: 4px; font-size: 14px; font-weight: 600; }

/* ---------- Состав: страница каталога ---------- */
.ft4-plp-head { margin-bottom: clamp(28px, 4vw, 48px); }
.ft4-plp-title { display: inline-flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); margin-top: 18px; }
.ft4-plp-title h2 { font-size: clamp(44px, 8vw, 120px); font-weight: 700; line-height: 0.9; letter-spacing: -0.02em; }
.ft4-plp-sil { display: block; width: auto; height: clamp(44px, 5.4vw, 80px); }
.ft4-plp-line { width: min(100%, 760px); height: 3px; margin-top: 10px; background: var(--ft4-accent); transform-origin: left center; }
.ft4-plp-count { margin-top: 14px !important; font-size: 13px; color: var(--ft4-muted); }

.ft4-plp { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; }
.ft4-filters { position: sticky; top: 96px; }
.ft4-filters-head { padding-bottom: 14px; border-bottom: 1px solid var(--ft4-line); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ft4-muted); }
.ft4-filters-label { margin-top: 22px; }
.ft4-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ft4 .ft4-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; background: #fff; border: 1px solid var(--ft4-line); transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.ft4 .ft4-chip:hover { border-color: var(--ft4-ink); }
.ft4 .ft4-chip[aria-pressed='true'] { background: var(--ft4-ink); border-color: var(--ft4-ink); color: #fff; }
.ft4-chip-n { font-size: 11px; font-weight: 400; opacity: 0.6; }
.ft4-filters-note { margin-top: 20px !important; font-size: 12px; color: var(--ft4-muted); }
.ft4-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ft4-line); font-size: 13px; color: var(--ft4-muted); }
.ft4-toolbar-sort { padding: 9px 14px; border: 1px solid var(--ft4-line); color: var(--ft4-ink); background: #fff; }
.ft4-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 12px; margin-top: 24px; }
.ft4-part { display: flex; flex-direction: column; padding: 20px; min-height: 100%; background: #fff; border: 1px solid var(--ft4-line); animation: ft4-rise 0.4s var(--ft4-ease) both; transition: border-color 0.2s; }
.ft4-part:hover { border-color: var(--ft4-ink); }
.ft4-part-num { font-size: 13px; letter-spacing: 0.06em; color: var(--ft4-accent); }
.ft4-part-t { margin-top: 10px !important; font-size: 22px; line-height: 1.05; }
.ft4-part-d { margin-top: 12px !important; font-size: 13.5px; color: rgba(13, 13, 13, 0.78); }
.ft4-part-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 16px; }
.ft4-part-tags span { padding: 4px 7px; font-size: 10.5px; letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase; background: var(--ft4-surface); }

/* ---------- 1С: тёмный наклонный блок с кобальтовой лентой ---------- */
.ft4-dark {
  --cut: clamp(26px, 4.5vw, 80px);
  position: relative;
  overflow: hidden;
  margin-block: clamp(16px, 3vw, 40px) 0;
  padding-block: calc(var(--cut) + clamp(48px, 6vw, 88px)) calc(var(--cut) + clamp(110px, 12vw, 210px));
  background: var(--ft4-ink);
  color: #fff;
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.ft4-dark-ghost { position: absolute; right: -2%; top: 8%; font-size: clamp(90px, 17vw, 260px); font-weight: 700; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09); transform: rotate(-3deg); pointer-events: none; }
.ft4-dark-in { position: relative; }
.ft4-eyebrow-inv { color: rgba(255, 255, 255, 0.6); }
.ft4-dark-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0.12em 0.24em; margin-top: 16px !important; font-size: clamp(40px, 7vw, 104px); font-weight: 700; line-height: 0.95; }
.ft4-plaque { display: inline-block; padding: 0.04em 0.16em 0.08em; background: var(--ft4-accent); color: #fff; }
.ft4-dark-lead { max-width: 62ch; margin-top: 24px !important; color: rgba(255, 255, 255, 0.72); }
.ft4-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.ft4-step { padding: 22px 24px 0 0; }
.ft4-step + .ft4-step { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.ft4-step-num { font-size: 13px; letter-spacing: 0.06em; color: #7fa6ff; }
.ft4-step-t { margin-top: 10px; font-size: 24px; }
.ft4-step-d { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }
.ft4-tape { position: absolute; left: -4%; right: -4%; bottom: calc(var(--cut) + 18px); overflow: hidden; background: var(--ft4-accent); transform: rotate(-3deg); transform-origin: left bottom; }
.ft4-tape-track { display: flex; width: max-content; animation: ft4-marquee 36s linear infinite; }
.ft4-tape-track span { display: inline-flex; align-items: center; padding: 12px 0; margin-right: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.ft4-tape-track span::after { content: ''; width: 6px; height: 6px; margin-left: 28px; background: #fff; }
@keyframes ft4-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- AI ---------- */
.ft4-ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ft4-ai-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(20px, 2.6vw, 32px); background: #fff; border: 1px solid var(--ft4-line); transition: border-color 0.2s; }
.ft4-ai-card:hover { border-color: var(--ft4-accent); }
.ft4-ai-card-h { display: flex; align-items: center; gap: 10px; }
.ft4-ai-card .ft4-h3 { font-size: 26px; }
.ft4-ai-card p { max-width: 62ch; color: rgba(13, 13, 13, 0.8); }
.ft4-ai-card .ft4-link { margin-top: auto; }

/* ---------- Метрики ---------- */
.ft4-metrics { border-block: 1px solid var(--ft4-line); background: rgba(255, 255, 255, 0.7); }
.ft4-metrics-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.ft4-metrics-in > div { padding: clamp(28px, 4vw, 56px) 24px clamp(28px, 4vw, 56px) 0; }
.ft4-metrics-in > div + div { padding-left: 24px; border-left: 1px solid var(--ft4-line); }
.ft4-metric-num { font-size: clamp(44px, 6vw, 88px); font-weight: 700; font-variant-numeric: tabular-nums; }
.ft4-metric-label { max-width: 26ch; margin-top: 10px; font-size: 13px; color: var(--ft4-muted); }

/* ---------- Финал ---------- */
.ft4-final-h { margin-top: 14px !important; font-size: clamp(38px, 6.4vw, 96px); font-weight: 700; line-height: 0.94; letter-spacing: -0.02em; }
.ft4-final-list { margin-top: 32px !important; font-size: 16px; }
.ft4-final-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ft4-made { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); padding-top: 24px; border-top: 1px solid var(--ft4-line); font-size: 13px; color: var(--ft4-muted); }
.ft4-made-by { display: inline-flex; align-items: center; gap: 8px; }
.ft4-made-by img { display: block; }
.ft4-made-note { margin-left: auto; }

/* ---------- Появления (только с JS и без reduced-motion) ---------- */
.ft4.js-sc [data-sc='reveal'] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ft4-ease), transform 0.6s var(--ft4-ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.ft4.js-sc [data-sc='reveal'].in-view { opacity: 1; transform: none; }
.ft4.js-sc [data-sc='reveal'] .ft4-plp-line { transform: scaleX(0); transition: transform 0.7s var(--ft4-ease) 0.25s; }
.ft4.js-sc [data-sc='reveal'].in-view .ft4-plp-line { transform: none; }
.ft4.js-sc [data-sc='steps'] .ft4-step {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s, transform 0.5s var(--ft4-ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.ft4.js-sc [data-sc='steps'].in-view .ft4-step { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ft4-rise, .ft4-bob, .ft4-part, .ft4-buy-level, .ft4-dot-hot::after, .ft4-tape-track { animation: none; }
  .ft4-dot-hot::after { display: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .ft4-nav { gap: 18px; font-size: 13px; }
  .ft4-bb { grid-template-columns: 1fr; }
  .ft4-bb-left { position: static; }
  .ft4-bb-stage { max-width: 720px; }
  .ft4-parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft4-strip { grid-template-columns: 110px repeat(3, 180px); }
}
@media (max-width: 1023px) {
  .ft4-nav { display: none; }
  .ft4-info { grid-template-columns: 1fr; }
  .ft4-sidecard { max-width: 420px; }
  .ft4-plp { grid-template-columns: 1fr; gap: 24px; }
  .ft4-filters { position: static; }
  .ft4-filters-note { display: none; }
  .ft4-steps { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .ft4-step:nth-child(3) { padding-left: 0; border-left: 0; }
  .ft4-metrics-in { grid-template-columns: repeat(2, 1fr); }
  .ft4-metrics-in > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ft4-metrics-in > div:nth-child(n + 3) { border-top: 1px solid var(--ft4-line); }
}
@media (max-width: 767px) {
  .ft4 { font-size: 14.5px; }
  .ft4-hero { padding-top: calc(72px + 32px + 57px); }
  .ft4-header-in { height: 56px; }
  .ft4-logo { height: 30px; }
  .ft4-promo { font-size: 10.5px; letter-spacing: 0.06em; }
  .ft4-promo-side { padding-inline: 12px 16px; }
  .ft4-outline { -webkit-text-stroke-width: 1.5px; }
  .ft4-scene { min-height: 250px; }
  .ft4-fig { left: var(--mx); height: calc(var(--h) * 0.92); bottom: calc(22% + var(--lift)); }
  .ft4-fig-desk { display: none; }
  .ft4-fig-label { font-size: 10px; padding: 4px 7px; }
  .ft4-strip { position: absolute; left: var(--ft4-pad); right: var(--ft4-pad); transform: translateY(50%); grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ft4-strip-tile { display: none; }
  .ft4-strip-card { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; height: 66px; padding: 0 10px; }
  .ft4-strip-card b { font-size: 22px; }
  .ft4-strip-card span { font-size: 10px; line-height: 1.2; }
  .ft4-hero-foot-in { flex-direction: column; align-items: stretch; gap: 16px; padding-block: 48px 20px; }
  .ft4-hero-actions .ft4-btn { flex: 1; padding: 0 12px; }
  .ft4-head { margin-bottom: 24px; }
  .ft4-head-sil { display: none; }
  .ft4-swatch-chip { height: 44px; }
  .ft4-bb-grid { grid-template-columns: 1fr; }
  .ft4-tile { max-width: 300px; }
  .ft4-types { grid-template-columns: 1fr; gap: 24px; }
  .ft4-type-sample, .ft4-type-ui { min-height: 0; }
  .ft4-parts { grid-template-columns: 1fr; gap: 12px; }
  .ft4-toolbar-sort { display: none; }
  .ft4-ai-grid { grid-template-columns: 1fr; }
  .ft4-made-note { margin-left: 0; }
  .ft4-dark-ghost { display: none; }
}
@media (max-width: 479px) {
  .ft4-swatches { grid-template-columns: repeat(3, 1fr); }
  .ft4-header-live { font-size: 12px; }
  .ft4-steps { grid-template-columns: 1fr; }
  .ft4-step + .ft4-step { padding-left: 0; border-left: 0; }
  .ft4-metric-num { font-size: 40px; }
}
