/* ==========================================================================
   Trust Wallet clone — прикладные стили.

   Токены ниже — точные значения из продакшен-CSS Trust Wallet, снятые со
   страницы trustwallet.com/ru. Не подбор: --v2-brand там действительно
   #0500ff, а тёмная тема переопределяет его на #463cfa.

   Анимации повторяют их: появление через v2-fade-up с cubic-bezier(.22,1,.36,1)
   — это фирменная плавность Trust Wallet, она встречается во всех переходах.
   ========================================================================== */

/* ------------------------------------------------------------------ шрифты
   Официальные файлы Trust Wallet: их CSS объявляет эти же семейства через
   --font-wix-madefor-display и --font-wix-madefor-text. Файлы скачаны с их
   сайта, поэтому начертание совпадает, а не подбирается похожим. */
@font-face {
  font-family: "Wix Madefor Display";
  src: url("fonts/wix-madefor-display.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Wix Madefor Text";
  src: url("fonts/wix-madefor-text.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------------------------------------------------------- токены: светлая */
:root {
  --font-wix-madefor-display: "Wix Madefor Display";
  --font-wix-madefor-text: "Wix Madefor Text";
  --font-inter: "Inter";

  --v2-bg-page: #eeeef0;
  --v2-bg-light: #f7f7f7;
  --v2-bg-surface: #fff;
  --v2-bg-secondary: #f0f0f2;
  --v2-bg-tertiary: #a0a1ad29;
  --v2-bg-elevated: #eeeef0;
  --v2-bg-tab-active: #d1d2d9;
  --v2-bg-social: #cdd8dc;

  --v2-text-primary: #1c2030;
  --v2-text-secondary: #1c2030cc;
  --v2-text-tertiary: #1c203099;
  --v2-text-heading: #262a3f;
  --v2-text-strong: #090d21;

  --v2-brand: #0500ff;
  --v2-brand-pressed: #0300a6;
  --v2-brand-core: #0500ff;
  --v2-on-brand: #fff;
  --v2-brand-tint: #0500ff29;

  --v2-button-primary: #0500ff;
  --v2-button-primary-pressed: #5d58f5;
  --v2-button-secondary: #f0f0f2;
  --v2-button-tertiary: #a0a1ad29;

  --v2-success: #0aa838;
  --v2-destructive: #c21414;
  --v2-warning: #ff8f0e;
  --v2-divider: #a0a1ad52;
  --v2-chrome-bg: #fff;

  --tw-ease: cubic-bezier(.22, 1, .36, 1);
  --tw-content: 1080px;
}

/* ------------------------------------------------------------ токены: тёмная */
@media (prefers-color-scheme: dark) {
  :root {
    --v2-bg-page: #0b0e11;
    --v2-bg-light: #151823;
    --v2-bg-surface: #1c2030;
    --v2-bg-secondary: #262a3f;
    --v2-bg-elevated: #262a3f;
    --v2-bg-social: #262a3f;
    --v2-bg-tab-active: #262a3f;

    --v2-text-primary: #fff;
    --v2-text-secondary: #ffffffcc;
    --v2-text-tertiary: #ffffff99;
    --v2-text-heading: #fff;
    --v2-text-strong: #fff;

    --v2-brand: #463cfa;
    --v2-button-primary: #463cfa;
    --v2-divider: #ffffff1f;
    --v2-chrome-bg: #0b0e11;
  }
}

/* ------------------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-wix-madefor-text, -apple-system, BlinkMacSystemFont), "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--v2-text-primary);
  background: var(--v2-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/*
 * Правила ниже намеренно касаются только наших собственных частей страницы:
 * шапки, меню, футера и шторки.
 *
 * Раньше здесь стояли общие `a`, `img` и `button` без ограничения. Это
 * ломало разделы, собранные из их разметки. На странице поддержки их таблица
 * стилей раскладывает утилиты по `@layer`, а правило вне слоя побеждает
 * слоёное независимо от специфичности — поэтому наш `img { display: block }`
 * перебивал их `hidden`, и на телефоне показывалась картинка, предназначенная
 * только для широкого экрана. Общие правила убраны, у каждого теперь свой
 * контейнер.
 */
.tw-header a, .tw-footer a, .tw-drawer a, .tw-lang__menu a, .tw-menu a {
  color: inherit;
  text-decoration: none;
}

.tw-header img, .tw-footer img, .tw-drawer img,
.tw-lang__menu img, .tw-menu img, .tw-brand img {
  max-width: 100%;
  display: block;
}

.tw-header button, .tw-drawer button, .tw-lang__menu button, .tw-globe, .tw-burger {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Всё, что реагирует на курсор, меняется одной кривой — так интерфейс
   ощущается цельным, а не набором разных скоростей. */
a, button, summary { transition-timing-function: var(--tw-ease); }

/* Картинки не «прыгают» при подгрузке. Только наши: в разделах высота
   задана их утилитами, и перебивать её нельзя. */
.tw-footer img[width][height],
.tw-header img[width][height] { height: auto; }

/* ------------------------------------------------------- анимации (оригинал)
   Значения сняты из продакшен-CSS Trust Wallet дословно. Обратите внимание
   на v2-fade-in: там не только прозрачность, но и scale(.985) — из-за этого
   появление выглядит мягче, чем обычный fade. */
@keyframes v2-fade-up {
  0%   { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes v2-fade-in {
  0%   { opacity: 0; transform: scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes v2-float {
  0%, to { transform: translateY(0); }
  50%    { transform: translateY(-10px); }
}
@keyframes v2-roll-in {
  0%   { opacity: 0; transform: translateY(60%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes v2-menu-in {
  0%   { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes v2-sheet-in {
  0%   { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.v2-enter,
.tw-enter { animation: v2-fade-up .7s var(--tw-ease) both; animation-delay: var(--v2-enter-delay, 0ms); }

.tw-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--tw-ease), transform .65s var(--tw-ease);
  transition-delay: var(--v2-reveal-delay, 0ms);
  will-change: opacity, transform;
}
.tw-reveal.is-visible { opacity: 1; transform: none; }

/* Парение мокапа телефона — как на их главной. */
.tw-phone--float { animation: v2-float 6s ease-in-out infinite; }

/* Карточки поднимаются под курсором их же кривой. */
.tw-card { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .tw-enter, .v2-enter, .tw-phone--float { animation: none; }
  .tw-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==================================================================== ШАПКА
   Раскладка повторяет официальный сайт:

     [ меню .................... ]   TRUST   [ ................ действия ]

   Меню прижато влево, логотип стоит по центру полосы, действия — вправо.
   Это grid из трёх колонок: крайние занимают равную долю, поэтому логотип
   остаётся ровно посередине независимо от длины меню. */
/* Панель — отдельный «островок», как на iPhone: скруглённая полоса,
   оторванная от краёв, а не приклеенная к верху во всю ширину. Контент
   проезжает под ней, поэтому она лежит на подложке с размытием: так видно,
   что она не часть фона, а слой над ним. */
.tw-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  pointer-events: none;
}

.tw-header__inner {
  pointer-events: auto;
  position: relative;
  /* Панель — островок по центру окна, как было. Внутри неё три группы
     разведены по краям: меню слева, логотип в середине панели, действия
     справа. */
  max-width: 1400px;
  height: 58px;
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  /* Крайние колонки равны, поэтому логотип в середине стоит ровно по центру
     окна, а не по центру свободного места. */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 999px;
  background: var(--v2-chrome-bg);
  box-shadow: 0 1px 2px #090d210f, 0 8px 28px #090d2117;
  border: 1px solid var(--v2-divider);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow .3s var(--tw-ease), background .3s var(--tw-ease);
}

.tw-header.is-scrolled .tw-header__inner {
  box-shadow: 0 2px 6px #090d211a, 0 14px 40px #090d2126;
}

/* В тёмной теме подложка не может быть чисто белой — она полупрозрачная,
   чтобы контент под панелью угадывался. */
@media (prefers-color-scheme: dark) {
  .tw-header__inner {
    background: color-mix(in srgb, var(--v2-chrome-bg) 82%, transparent);
  }
}

/* ---------------------------------------------------------- левая колонка */
.tw-nav {
  display: none;
  align-items: center;
  gap: 2px;
  justify-self: start;
}

/* ---- TrustSend: обычный пункт меню, как у Trust ---- */
.tw-nav__link {
  position: relative;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--v2-text-primary);
  transition: background .18s var(--tw-ease), color .18s var(--tw-ease);
}
.tw-nav__link:hover { background: var(--v2-bg-secondary); }

/* Выделен брендом — единственное отличие от соседей, чтобы TrustSend
   читался как действие, а не как очередной раздел. */
.tw-nav__link--trustsend { color: var(--v2-brand); font-weight: 600; }
.tw-nav__link--trustsend::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--v2-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--tw-ease);
}
.tw-nav__link--trustsend:hover { background: var(--v2-brand-tint); }
.tw-nav__link--trustsend:hover::after { transform: scaleX(1); }

/* -------------------------------------------------------- пункты с меню */
.tw-nav__item { position: relative; }
.tw-nav__item > button {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--v2-text-primary);
  transition: background .18s var(--tw-ease);
}
.tw-nav__item > button:hover,
.tw-nav__item.is-open > button { background: var(--v2-bg-secondary); }

/* Выпадающее меню пункта */
.tw-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  border-radius: 16px;
  background: var(--v2-bg-surface);
  box-shadow: 0 16px 48px #090d2126, 0 0 0 1px var(--v2-divider);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  animation: none;
  transition: opacity .22s var(--tw-ease), transform .22s var(--tw-ease), visibility .22s;
}
.tw-menu--wide { grid-template-columns: 1fr 1fr; min-width: 420px; }
.tw-nav__item.is-open .tw-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: v2-menu-in .24s var(--tw-ease) both;
}

.tw-menu a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  /* Переход только по фону и цвету: анимировать layout в списке из девяти
     пунктов — верный способ получить рывки при наведении. */
  transition: background .18s var(--tw-ease), color .18s var(--tw-ease);
}
.tw-menu a:hover { background: var(--v2-bg-light); }
.tw-menu img { width: 20px; height: 20px; opacity: .85; flex: 0 0 auto; }


/* TrustSend — первый пункт в «Торговля и Earn».
   Раньше он был постоянно залит синим, и это читалось как «выбранный пункт»,
   хотя ничего не выбрано. Теперь он ведёт себя как соседи: обычный вид, а
   цвет и подложка появляются только под курсором. */
.tw-menu__trustsend { font-weight: 600; }
.tw-menu__trustsend span { color: var(--v2-brand); }
.tw-menu__trustsend img { opacity: 1; }
.tw-menu__trustsend:hover { background: var(--v2-bg-light); }

/* --------------------------------------------------------- центр: логотип */
/* Логотип стоит ровно по центру полосы. Grid с крайними колонками 1fr
   этого не даёт: колонки разной ширины, и центр «плывёт». Поэтому центр
   задан абсолютно — он не зависит от того, сколько места заняло меню. */
.tw-brand {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  flex: 0 0 auto;
}
.tw-brand img { width: auto; height: 26px; }

/* -------------------------------------------------------- правая колонка */
.tw-actions {
  /* Третья колонка грида. Без justify-self группа вставала сразу после
     логотипа, и справа оставалась пустота — «Скачать» должно упираться в
     правый край панели. */
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tw-globe {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--v2-text-primary);
  transition: background .18s var(--tw-ease);
}
.tw-globe:hover { background: var(--v2-bg-secondary); }

/* ------------------------------------------------------------- выбор языка */
.tw-lang { position: relative; }

.tw-lang__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 300px;
  padding: 12px;
  border-radius: 16px;
  background: var(--v2-bg-surface);
  box-shadow: 0 16px 48px #090d2126, 0 0 0 1px var(--v2-divider);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s var(--tw-ease), transform .22s var(--tw-ease), visibility .22s;
}
.tw-lang.is-open .tw-lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  animation: v2-menu-in .24s var(--tw-ease) both;
}

.tw-lang__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--v2-text-secondary);
  text-align: center;
  transition: background .16s var(--tw-ease), color .16s var(--tw-ease);
}
.tw-lang__item:hover { background: var(--v2-bg-light); color: var(--v2-text-primary); }
.tw-lang__item.is-active { background: var(--v2-brand-tint); color: var(--v2-brand); }
.tw-lang__flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: var(--v2-bg-secondary);
  line-height: 1;
}

.tw-support {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  display: none;
  transition: color .18s var(--tw-ease);
}
.tw-support:hover { color: var(--v2-brand); }

.tw-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--v2-bg-secondary);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s var(--tw-ease);
}
.tw-cta:hover { background: var(--v2-bg-tab-active); }

/* ==================================================================== ГЛАВНАЯ */
.tw-main { width: 100%; overflow-x: clip; background: var(--v2-bg-page); }

.tw-section {
  max-width: var(--tw-content);
  margin: 0 auto;
  padding: 72px 24px;
}

.tw-h2 {
  margin: 0 0 36px;
  font-family: var(--font-wix-madefor-display, inherit);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--v2-text-heading);
  text-align: center;
}

/* ------------------------------------------------------------------- hero */
.tw-hero {
  background: var(--v2-bg-surface);
  border-radius: 24px;
  max-width: var(--tw-content);
  margin: 24px auto 0;
  padding: 56px 24px 0;
  overflow: hidden;
}
.tw-hero__inner { text-align: center; }

.tw-hero h1 {
  margin: 0 auto 20px;
  max-width: 720px;
  font-family: var(--font-wix-madefor-display, inherit);
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--v2-text-heading);
}

.tw-hero__lead {
  margin: 0 auto 28px;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--v2-text-secondary);
}

.tw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .2s var(--tw-ease);
}
.tw-btn--primary { background: var(--v2-brand); color: var(--v2-on-brand); }
.tw-btn--primary:hover { background: var(--v2-brand-pressed); transform: translateY(-2px); }
.tw-btn--light { background: #fff; color: var(--v2-brand-core); }
.tw-btn--light:hover { transform: translateY(-2px); }

/* --------------------------------------------------------- мокап телефона */
.tw-hero__phone { display: flex; justify-content: center; margin-top: 44px; }

.tw-phone {
  width: 300px;
  border-radius: 38px 38px 0 0;
  background: #1b1b1c;
  padding: 10px 10px 0;
  box-shadow: 0 -6px 40px #090d211f;
}
.tw-phone__notch {
  width: 84px; height: 20px; margin: 0 auto 6px;
  border-radius: 999px; background: #1b1b1c;
}
.tw-phone__screen {
  background: var(--v2-bg-surface);
  border-radius: 30px 30px 0 0;
  padding: 16px 14px 26px;
  min-height: 330px;
  color: #1c2030;
}
.tw-phone__top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #5c6169; }
.tw-phone__wallet { font-weight: 600; }
.tw-phone__balance { margin-top: 12px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.tw-phone__delta { font-size: 11px; font-weight: 600; color: #0aa838; margin-bottom: 14px; }
.tw-phone__acts { display: flex; gap: 8px; margin-bottom: 18px; }
.tw-phone__acts span {
  flex: 1; text-align: center; font-size: 9px; line-height: 1.4; color: #1c2030;
  background: #f0f0f2; border-radius: 12px; padding: 9px 2px;
}
.tw-phone__acts .is-active { background: var(--v2-brand); color: #fff; }
.tw-phone__tokens { font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.tw-phone__tok { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.tw-phone__coin {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 15px; color: #fff; flex: 0 0 auto;
}
.tw-phone__coin--btc { background: #f7931a; }
.tw-phone__coin--eth { background: #627eea; }
.tw-phone__name { font-size: 11px; font-weight: 600; }
.tw-phone__name i { font-style: normal; font-weight: 400; color: #8d939c; }
.tw-phone__val { margin-left: auto; text-align: right; font-size: 11px; font-weight: 600; }
.tw-phone__val .up { font-style: normal; color: #0aa838; }

/* --------------------------------------------------------------- рейтинги */
.tw-ratings {
  border-top: 1px solid var(--v2-divider);
  margin-top: 36px;
  padding: 22px 0 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tw-ratings__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--v2-text-tertiary); }
.tw-ratings__row { display: flex; align-items: center; gap: 16px; }
.tw-ratings__item { font-size: 13px; font-weight: 700; }
.tw-ratings__item i { font-style: normal; color: #ff8f0e; letter-spacing: 1px; }
.tw-ratings__sep { width: 1px; height: 22px; background: var(--v2-divider); }

/* ------------------------------------------------------------------ сетки */
.tw-grid { display: grid; gap: 16px; }
.tw-grid--cards { grid-template-columns: 1fr; }
.tw-grid--why { grid-template-columns: 1fr; }
.tw-grid--two { grid-template-columns: 1fr; }

.tw-card {
  background: var(--v2-bg-surface);
  border-radius: 20px;
  padding: 26px;
  transition: transform .35s var(--tw-ease), box-shadow .35s var(--tw-ease);
}
.tw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #090d211a; }
.tw-card img { margin-bottom: 44px; opacity: .9; transition: transform .35s var(--tw-ease); }
.tw-card:hover img { transform: scale(1.06); }
.tw-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--v2-text-heading);
  font-family: var(--font-wix-madefor-display, inherit);
}
.tw-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--v2-text-secondary); }
.tw-card--tall img { margin-bottom: 60px; }

/* --------------------------------------------------------------- свип-блок */
.tw-section--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.tw-split__text .tw-h2 { text-align: left; }

.tw-swapmock {
  background: #1b1b1c;
  border-radius: 24px;
  padding: 40px 28px;
  color: #fff;
}
.tw-swapmock__row { display: flex; align-items: center; justify-content: space-between; }
.tw-swapmock__amt { font-size: 30px; font-weight: 700; }
.tw-swapmock__tok { background: #ffffff1a; border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.tw-swapmock__sub { display: flex; justify-content: space-between; font-size: 11px; color: #ffffff99; margin-top: 6px; }
.tw-swapmock__arrow { text-align: center; margin: 14px 0; color: #ffffffcc; }
.tw-swapmock__min { text-align: center; font-size: 11px; color: #ffffff99; margin-top: 16px; }
.tw-swapmock__slider { margin-top: 14px; height: 4px; border-radius: 999px; background: #ffffff26; position: relative; }
.tw-swapmock__slider span { position: absolute; inset: 0 70% 0 0; border-radius: 999px; background: var(--v2-brand); }

.tw-featurelist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.tw-featurelist li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--v2-text-heading); }
.tw-featurelist img { opacity: .5; }

/* ------------------------------------------------------------ безопасность */
.tw-secbox {
  background: var(--v2-bg-surface);
  border-radius: 20px;
  padding: 26px;
  margin: 22px 0;
}
.tw-secbox h3 { margin: 0 0 14px; font-size: 19px; font-weight: 700; color: var(--v2-text-heading); }
.tw-secbox ul { margin: 0; padding-left: 20px; display: grid; gap: 9px; }
.tw-secbox li { font-size: 14px; color: var(--v2-text-secondary); }

.tw-photo { border-radius: 20px; width: 100%; object-fit: cover; }

/* -------------------------------------------------------------------- FAQ */
.tw-section--faq { max-width: 900px; }
.tw-faq { display: grid; gap: 2px; }
.tw-faq details { border-bottom: 1px solid var(--v2-divider); }
.tw-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: var(--v2-text-heading);
}
.tw-faq summary::-webkit-details-marker { display: none; }
.tw-faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--v2-text-tertiary);
  transition: transform .25s var(--tw-ease);
}
.tw-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tw-faq p { margin: 0 0 22px; font-size: 14px; color: var(--v2-text-secondary); }

/* -------------------------------------------------------------- синий блок */
.tw-blueblock {
  max-width: var(--tw-content);
  margin: 24px auto 72px;
  border-radius: 24px;
  background: var(--v2-brand-core);
  color: #fff;
  padding: 56px 40px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  overflow: hidden;
}
.tw-blueblock h2 {
  margin: 0 0 18px;
  font-family: var(--font-wix-madefor-display, inherit);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.tw-blueblock p { margin: 0 0 26px; max-width: 380px; font-size: 15px; color: #ffffffd9; }
.tw-blueblock__phone { display: flex; justify-content: center; }

/* ==================================================================== ФУТЕР */
.tw-footer { background: var(--v2-chrome-bg); padding: 56px 24px 40px; }
.tw-footer__inner { max-width: var(--tw-content); margin: 0 auto; }

.tw-footer__logo { margin-bottom: 40px; }
.tw-footer__logo img { height: 40px; width: auto; }

.tw-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.tw-footer__nav h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--v2-text-heading); }
.tw-footer__nav h4.tw-footer__sub { margin-top: 20px; }
.tw-footer__nav a { display: block; padding: 4px 0; font-size: 13px; color: var(--v2-text-secondary); transition: color .15s; }
.tw-footer__nav a:hover { color: var(--v2-brand); }

.tw-footer__bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--v2-divider);
  display: grid;
  gap: 28px;
}
.tw-footer__bottom h4 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--v2-text-heading); }
.tw-footer__bottom p { margin: 0 0 16px; font-size: 13px; color: var(--v2-text-tertiary); }
.tw-footer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 460px; }
.tw-footer__btns a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--v2-divider);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  transition: border-color .2s, background .2s;
}
.tw-footer__btns a:hover { border-color: var(--v2-brand); background: var(--v2-bg-light); }

.tw-footer__social { display: flex; gap: 8px; }
.tw-footer__social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; background: var(--v2-bg-secondary);
  font-size: 15px; transition: background .2s;
}
.tw-footer__social a:hover { background: var(--v2-brand); color: #fff; }

.tw-footer__copy { margin: 36px 0 0; font-size: 12px; color: var(--v2-text-tertiary); }


/* ============================================================ внутренние страницы
   Страницы разделов собраны из тех же токенов, что и главная, поэтому
   выглядят её продолжением, а не отдельным сайтом. */
.tw-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.tw-page__title {
  margin: 0 0 40px;
  font-family: var(--font-wix-madefor-display, inherit);
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--v2-text-heading);
  text-align: center;
}

.tw-page .tw-h2 {
  margin: 56px 0 20px;
  font-size: clamp(22px, 2.8vw, 32px);
  text-align: left;
}

.tw-page .tw-h3 {
  margin: 32px 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: var(--v2-text-heading);
  font-family: var(--font-wix-madefor-display, inherit);
}

.tw-page__lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--v2-text-secondary);
}

.tw-pagelist {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.tw-pagelist li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--v2-text-secondary);
}
.tw-pagelist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v2-brand);
  opacity: .8;
}

@media (min-width: 744px) {
  .tw-page { padding: 80px 24px 120px; }
}


/* ============================================================== брейкпоинты */
@media (min-width: 744px) {
  .tw-grid--cards { grid-template-columns: 1fr 1fr; }
  .tw-grid--why { grid-template-columns: repeat(2, 1fr); }
  .tw-grid--two { grid-template-columns: 1fr 1fr; }
  .tw-section--split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .tw-footer__nav { grid-template-columns: repeat(3, 1fr); }
  .tw-footer__bottom { grid-template-columns: 1.2fr 1fr; }
  .tw-support { display: inline; }
}

@media (min-width: 1080px) {
  .tw-nav { display: flex; }
  .tw-hero { padding: 72px 40px 0; }
  .tw-section { padding: 96px 24px; }
  .tw-grid--cards { grid-template-columns: repeat(4, 1fr); }
  .tw-grid--why { grid-template-columns: repeat(4, 1fr); }
  .tw-blueblock { grid-template-columns: 1fr 1fr; padding: 72px 56px 0; align-items: center; }
  .tw-footer__nav { grid-template-columns: repeat(5, 1fr); }
  .tw-phone { width: 330px; }
}
