/* ===================================
   Одиннадцать функций в действии — блоки из питча (26.09.2026).
   Каждая функция — свой экран: заголовок, короткое пояснение, список
   фактов и рядом живое доказательство: анимированный виджет, снимки
   телефона или окна программы. Все классы с приставкой fx-, чтобы не
   задевать старые стили страницы.
   =================================== */

.fx {
  --fx-s1: #12141c;
  --fx-s2: #191c26;
  --fx-bg2: #0c0e15;
  --fx-line: rgba(255, 255, 255, 0.08);
  --fx-line2: rgba(255, 255, 255, 0.14);
  --fx-t1: #f5f5f6;
  --fx-t2: #c9c9cf;
  --fx-t3: #9a9aa4;
  --fx-t4: #7c7c86;
  --fx-cyan: #3ccbea;
  --fx-amber: #f4a340;
  --fx-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  position: relative;
  padding: 120px 0 40px;
  font-family: 'Onest', var(--font-family);
  color: var(--fx-t1);
}

.fx .b {
  color: var(--fx-t1);
  font-weight: 600;
}

.fx-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font: 500 12px/1 var(--fx-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fx-t3);
}

.fx-kicker i {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--fx-line2);
}

.fx-h {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fx-t1);
}

.fx-sub {
  max-width: 62ch;
  margin-top: 18px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fx-t2);
}

.fx-intro {
  max-width: 880px;
  margin-bottom: 24px;
}

/* Оглавление: одиннадцать пунктов, по которым можно прыгнуть сразу к функции */
.fx-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.fx-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--fx-line2);
  border-radius: 999px;
  color: var(--fx-t2);
  font-size: 14px;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.fx-toc a:hover {
  border-color: var(--fx-t3);
  color: var(--fx-t1);
}

.fx-toc b {
  font: 500 12px var(--fx-mono);
  color: var(--fx-cyan);
}

/* Одна функция — один экран */
.fx-feat {
  padding: 110px 0;
  border-top: 1px solid var(--fx-line);
  scroll-margin-top: 72px;
}

.fx-feat:first-of-type {
  margin-top: 64px;
}

.fx-head {
  max-width: 880px;
  margin-bottom: 44px;
}

.fx-head .fx-sub {
  max-width: 760px;
}

.fx-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}

/* Все функции стоят одинаково: текст слева, демонстрация справа. Шахматный
   порядок (каждая вторая наоборот) владелец 08.10.2026 назвал разъезжанием:
   «то слева, то справа». Левый край текста теперь один на всю страницу. */

.fx-txt {
  position: sticky;
  top: 96px;
}

.fx-desc {
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fx-t3);
}

.fx-lead {
  max-width: 560px;
  margin-top: 18px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--fx-t1);
}

.fx-points {
  display: grid;
  gap: 14px;
  max-width: 60ch;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.fx-points li {
  position: relative;
  padding-left: 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fx-t3);
}

.fx-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--fx-cyan);
}

.fx-note {
  max-width: 560px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: var(--fx-s1);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fx-t3);
}

.fx-note-t {
  display: block;
  margin-bottom: 10px;
  font: 500 12px/1 var(--fx-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-cyan);
}

/* Таблица двух режимов перевода */
.fx-tbl {
  max-width: 560px;
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--fx-line);
  border-radius: 20px;
}

.fx-tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.fx-tbl th,
.fx-tbl td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--fx-line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.fx-tbl thead th {
  background: var(--fx-bg2);
  font: 500 12px/1.3 var(--fx-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-t3);
}

.fx-tbl tbody th {
  font-weight: 500;
  color: var(--fx-t2);
}

.fx-tbl td {
  color: var(--fx-t3);
}

.fx-tbl tr:last-child th,
.fx-tbl tr:last-child td {
  border-bottom: 0;
}

.fx-tbl .fx-us {
  background: rgba(60, 203, 234, 0.06);
  color: var(--fx-t1);
  font-variant-numeric: tabular-nums;
}

.fx-tbl .fx-yes {
  color: #4ade80;
}

/* Сцена с живой демонстрацией виджета */
.fx-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--fx-line);
  border-radius: 28px;
  background: radial-gradient(120% 90% at 50% 0%, #171a22 0%, #0d0f15 70%);
}

.fx-doc {
  width: 100%;
  max-width: 470px;
  overflow: hidden;
  border-radius: 12px;
  background: #f4f4f2;
  color: #1f1f22;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.fx-doc-h {
  padding: 10px 16px;
  border-bottom: 1px solid #e4e4e0;
  background: #ecece8;
  font-size: 12px;
  font-weight: 500;
  color: #5f5f68;
}

.fx-doc-b {
  min-height: 112px;
  padding: 16px;
  font-size: 16px;
  line-height: 1.6;
}

.fx-doc-b .ins {
  border-radius: 3px;
  background: rgba(60, 203, 234, 0.18);
}

.fx-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -3px;
  background: #1f1f22;
  animation: fx-blink 1s steps(1) infinite;
}

@keyframes fx-blink {
  50% {
    opacity: 0;
  }
}

.fx-w-slot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 44px;
}

.fx-w-state {
  /* три строки заранее: подпись меняется и не двигает страницу на узком экране */
  min-height: 4.35em;
  line-height: 1.45;
  max-width: 340px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--fx-t3);
}

/* Виджет записи 1:1 с FloatingRecorder приложения */
.wdg {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 36px;
}

.wdg-cap {
  position: relative;
  width: 156px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 18px;
  background: #1b2024;
  box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.03);
  color: #fff;
  font-family: 'Onest', system-ui, sans-serif;
  transition:
    width 0.3s cubic-bezier(0.33, 1, 0.68, 1),
    height 0.3s cubic-bezier(0.33, 1, 0.68, 1),
    border-radius 0.3s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.2s ease-out;
}

.wdg[data-mode='translate'] .wdg-cap {
  width: 176px;
}

.wdg[data-state='idle'] .wdg-cap {
  width: 70px;
  height: 10px;
  border-radius: 5px;
  opacity: 0.85;
}

.wdg[data-state='hover'] .wdg-cap {
  width: 172px;
}

.wdg[data-mode='translate'][data-state='hover'] .wdg-cap {
  width: 196px;
}

.wdg-idle,
.wdg-rec,
.wdg-proc {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s,
    visibility 0s 0.15s;
}

.wdg[data-state='hover'] .wdg-idle,
.wdg[data-state~='rec'] .wdg-rec,
.wdg[data-state='proc'] .wdg-proc {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.2s 0.1s,
    visibility 0s;
}

.wdg-idle {
  gap: 8px;
  padding: 0 12px;
  white-space: nowrap;
}

.wdg-mic {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 4px;
  color: rgba(255, 255, 255, 0.38);
}

.wdg-mic svg {
  width: 20px;
  height: 20px;
}

.wdg-ready {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
}

.wdg-idle kbd {
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: #0f1215;
  font: 12px var(--fx-mono);
  color: rgba(255, 255, 255, 0.45);
}

.wdg-rec {
  gap: 2px;
  padding: 0 2px 0 4px;
}

.wdg-btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
}

.wdg-btn svg {
  width: 16px;
  height: 16px;
}

.wdg-x {
  color: #f87171;
}

.wdg[data-state~='paused'] .wdg-p {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.22);
}

.wdg-flag {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0 1px;
  border-radius: 50%;
}

.wdg-vu {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 36px;
  height: 24px;
}

.wdg-vu i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 1.5px;
  background-image: linear-gradient(180deg, #fb923c 0%, #00d4ff 100%);
  transition: height 60ms ease-out;
}

.wdg-time {
  flex: none;
  margin-left: 4px;
  font: 12px var(--fx-mono);
  font-variant-numeric: tabular-nums;
}

.wdg-proc {
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.62);
}

.fx-dots {
  display: inline-flex;
  gap: 2px;
  margin-left: 2px;
}

.fx-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: fx-dot 1.2s infinite;
}

.fx-dots i:nth-child(2) {
  animation-delay: 0.2s;
}

.fx-dots i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fx-dot {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}

/* Полоса живых снимков под демонстрацией */
.fx-real {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--fx-line);
  border-radius: 16px;
  background: var(--fx-bg2);
}

.fx-real-t {
  margin-bottom: 12px;
  font: 500 12px var(--fx-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fx-t4);
}

.fx-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

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

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

.fx-row figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--fx-line);
  border-radius: 10px;
  background: #0b0c10;
}

.fx-row img {
  width: auto;
  max-width: 100%;
  max-height: 64px;
  height: auto;
  object-fit: contain;
}

.fx-row.tall img {
  max-height: 150px;
}

.fx-row-1 img {
  max-height: 260px;
}

.fx-row figcaption {
  font-size: 12px;
  text-align: center;
  color: var(--fx-t4);
}

/* Рамки устройств: все телефоны одинаковые, все окна одинаковые */
.fx-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.fx-phone {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border: 1px solid var(--fx-line2);
  border-radius: 40px;
  background: #1c1c20;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.fx-scr {
  overflow: hidden;
  background: #000;
}

.fx-phone .fx-scr {
  width: 100%;
  height: 100%;
  border-radius: 31px;
}

.fx-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.fx-win {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--fx-line2);
  border-radius: 14px;
  background: #111114;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.fx-win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--fx-line);
  background: #18181b;
}

.fx-win-bar i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e2e33;
}

.fx-win-bar span {
  min-width: 0;
  margin-left: 8px;
  overflow: hidden;
  font: 500 12px var(--fx-mono);
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--fx-t4);
}

.fx-win .fx-scr {
  aspect-ratio: 1311 / 1228;
  background: #0c0c0e;
}

.fx-win.wide .fx-scr {
  aspect-ratio: 16 / 9;
}

.fx-win .fx-scr.crop {
  aspect-ratio: 1311 / 772;
}

.fx-win img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.fx img.fx-zoom {
  cursor: zoom-in;
}

.fx-missing {
  display: none !important;
}

/* Появление при прокрутке */
.fx-appear {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.fx-appear.fx-shown {
  opacity: 1;
  transform: none;
}

/* Просмотр снимка во весь экран */
.fx-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(0, 0, 0, 0.9);
}

.fx-lb.open {
  display: flex;
}

.fx-lb img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
}

.fx-lb-x {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fx-line2);
  border-radius: 50%;
  background: rgba(20, 20, 22, 0.8);
  color: var(--fx-t1);
  cursor: pointer;
}

.fx-lb-x svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

html.fx-lb-open {
  overflow: hidden;
}

/* «Ещё возможности» — короткий ряд того, чему не нужен отдельный экран */
.fx-more {
  padding: 96px 0 0;
  border-top: 1px solid var(--fx-line);
}

.fx-more-h {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fx-more .features-grid {
  margin-top: 32px;
}

@media (max-width: 980px) {
  .fx {
    padding-top: 96px;
  }

  .fx-feat {
    padding: 80px 0;
  }

  .fx-grid {
    /* minmax(0, …), а не 1fr: у 1fr нижний предел равен ширине содержимого,
       и таблица сравнения раздвигала страницу шире телефона (360 точек). */
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .fx-txt {
    position: static;
  }
}

@media (max-width: 640px) {
  .fx-feat {
    padding: 64px 0;
  }

  .fx-head {
    margin-bottom: 28px;
  }

  .fx-stage {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .fx-phones {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .fx-phone {
    width: calc(50% - 6px);
    max-width: 200px;
    padding: 6px;
    border-radius: 28px;
  }

  .fx-phone .fx-scr {
    border-radius: 23px;
  }

  .fx-phones .fx-phone:only-child {
    width: 62%;
  }

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

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

  .fx-win-bar {
    height: 26px;
  }

  .fx-toc a {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-appear {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fx-caret,
  .fx-dots i {
    animation: none;
  }

  .wdg-cap,
  .wdg-idle,
  .wdg-rec,
  .wdg-proc,
  .wdg-vu i {
    transition: none;
  }
}
