/* Лендинг кошелька MOFT Travel Wallet (MB005 / MB005S).
   Стили только этой страницы; переменные и базовые классы - из style.css.
   Страница светлая: официальные кадры MOFT сняты на белом, любой цветной фон
   съедает силуэт сложенного конверта. */

.tw {
  --pad: clamp(64px, 9vw, 130px);
  /* синий Apple - только в блоке про «Локатор»: это цвет самой функции,
     фирменный оранжевый --hl остаётся акцентом всего остального сайта */
  --tw-blue: #0071e3;
  --tw-mist: #f5f5f7;
}

/* появление блоков при скролле; без JS и при prefers-reduced-motion - сразу видно */
.rise { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- Хиро ---------- */
.tw-hero { background: var(--tw-mist); padding: clamp(40px, 5.5vw, 80px) 0 clamp(30px, 4vw, 52px); }
.tw-hero-in {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(24px, 4vw, 60px); align-items: center;
}
.tw-eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.tw-hero h1 {
  font-size: clamp(38px, 5.6vw, 72px); line-height: 1.03; letter-spacing: -.035em; text-wrap: balance;
}
.tw-hero h1 span { display: block; color: var(--muted); }
.tw-hero-sub {
  margin-top: 20px; max-width: 46ch; font-size: clamp(15.5px, 1.5vw, 19px);
  color: var(--ink); opacity: .8; line-height: 1.5;
}
/* бейдж совместимости - плашка как на официальном лендинге MOFT */
.tw-badge {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 12px; font-size: 13.5px; font-weight: 600;
}
.tw-badge svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--ink); stroke-width: 1.8; }
.tw-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1ede7; }
.btn-ondark { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ondark:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* кадр снят на белом фоне; multiply гасит подложку, и кошелёк садится прямо на фон
   секции - без прямоугольной «заплатки» вокруг телефона */
/* кадр вертикальный (телефон во весь рост) - ограничиваем по высоте, иначе хиро
   вырастает вдвое выше экрана и факты под ним никто не видит */
.tw-hero-media img { max-height: min(64vh, 620px); width: auto; margin-inline: auto; mix-blend-mode: multiply; }
.tw-facts {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 54px);
  list-style: none; border-top: 1px solid var(--line); padding-top: 22px; margin-top: clamp(24px, 3vw, 40px);
}
.tw-facts b { display: block; font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -.02em; }
.tw-facts span { font-size: 13px; color: var(--muted); }

/* ---------- Общие блоки ---------- */
.tw-sec { padding: var(--pad) 0; }
.tw-sec-dark { background: var(--ink); color: #fff; }
.tw-sec-soft { background: var(--surface); }
.tw-head { max-width: 760px; margin: 0 auto clamp(38px, 5vw, 64px); text-align: center; }
.tw-head h2, .tw-h2 { font-size: clamp(29px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.tw-head p {
  margin-top: 16px; font-size: clamp(15.5px, 1.6vw, 18.5px); color: var(--muted); line-height: 1.55;
}
.tw-kicker {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--hl); margin-bottom: 14px;
}
.tw-kicker-blue { color: var(--tw-blue); }
.tw-lead { margin-top: 18px; font-size: 17px; color: var(--muted); line-height: 1.6; }
.tw-sec-dark .tw-lead, .tw-final-p { color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.6; }

.tw-figure { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tw-figure img { width: 100%; height: 100%; object-fit: cover; }
.tw-figure-tall { aspect-ratio: 4 / 5; }
.tw-wide { border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.tw-wide img { width: 100%; display: block; }
/* кадр на белом фоне - без плашки, подложка гасится наложением */
.tw-plain img { width: 100%; display: block; mix-blend-mode: multiply; }
.tw-plain-wide { max-width: 900px; margin-inline: auto; }

/* ---------- Конструкция: раскладка + выноски ---------- */
.tw-inside {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(26px, 4.5vw, 64px); align-items: center;
}
.tw-specs { list-style: none; display: grid; gap: 18px; }
.tw-specs li {
  display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--line);
}
.tw-specs b { font-size: clamp(16px, 1.8vw, 18.5px); letter-spacing: -.01em; }
.tw-specs span { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- Три слоя ---------- */
.tw-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.6vw, 34px); }
.tw-trio .tw-figure { aspect-ratio: 4 / 3; background: #fff; }
.tw-trio figcaption { margin-top: 16px; text-align: center; }
.tw-trio figcaption b { display: block; font-size: clamp(17px, 1.9vw, 21px); letter-spacing: -.02em; }
.tw-trio figcaption span { display: block; margin-top: 5px; font-size: 14.5px; color: var(--muted); }

/* ---------- Текст рядом с кадром ---------- */
.tw-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tw-split .tw-figure-tall { aspect-ratio: 3 / 4; }
.tw-note { margin-top: 26px; display: grid; gap: 14px; }
.tw-note li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.tw-note li b { flex: 0 0 auto; color: var(--hl); }

/* ---------- Четыре действия ---------- */
.tw-quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.2vw, 28px); }
.tw-card .tw-figure { aspect-ratio: 1; background: #fff; margin-bottom: 16px; }
.tw-card .tw-figure img { object-fit: contain; padding: 8%; }
.tw-card b { display: block; font-size: clamp(17px, 1.9vw, 20px); letter-spacing: -.02em; }
.tw-card p { margin-top: 7px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Совместимость ---------- */
.tw-compat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.tw-compat-card {
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 2.8vw, 34px);
  display: flex; flex-direction: column;
}
.tw-sec-soft .tw-compat-card { background: #fff; }
.tw-compat-card h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; }
.tw-compat-card p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.tw-compat-imgs {
  margin-top: auto; padding-top: 24px; display: flex; align-items: flex-end;
  justify-content: center; gap: clamp(10px, 2vw, 26px);
}
.tw-compat-imgs img { width: auto; max-height: 150px; mix-blend-mode: multiply; }

/* ---------- Блок «под заказ»: кадр слева ---------- */
.tw-split-rev .tw-figure { order: -1; }

/* ---------- Цвета ---------- */
.tw-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(12px, 1.8vw, 22px); }
.tw-color {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 12px 16px; text-align: center; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tw-color:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tw-color img { width: 100%; max-width: 168px; aspect-ratio: 1; object-fit: contain; margin: 0 auto 10px; }
.tw-color b { display: block; font-size: 14.5px; font-weight: 600; }
.tw-color span { font-size: 12.5px; color: var(--muted); }
.tw-colors-fine { margin-top: 22px; text-align: center; }

/* ---------- Две версии ---------- */
.tw-versions {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 28px);
  margin-top: clamp(40px, 5vw, 70px);
}
.tw-ver {
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.8vw, 32px);
}
.tw-ver-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tw-ver h3 { font-size: clamp(19px, 2.1vw, 24px); letter-spacing: -.02em; }
.tw-ver-sku { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tw-ver-price { font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; letter-spacing: -.03em; text-align: right; }
.tw-ver-price small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tw-ver ul { list-style: none; display: grid; gap: 9px; margin: 6px 0 4px; }
.tw-ver li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.tw-ver li i { flex: 0 0 auto; font-style: normal; color: var(--hl); }
.tw-ver .btn { margin-top: auto; }
.tw-ver-on { border-color: var(--ink); }

/* ---------- Брендирование (B2B) ---------- */
.tw-brand { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 66px); align-items: center; }
.tw-brand .tw-figure { background: #fff; }
.tw-steps { display: grid; gap: 16px; margin: 26px 0 18px; }
.tw-step { display: flex; gap: 14px; align-items: flex-start; }
.tw-step i {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 700; font-style: normal;
}
.tw-step b { display: block; font-size: 16px; }
.tw-step p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.tw-place { margin-bottom: 22px; line-height: 1.5; }

/* ---------- Финальный CTA ---------- */
.tw-final { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 64px); align-items: center; }
.tw-final .tw-figure { background: #000; }
.tw-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 6px; }
.tw-price b { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.tw-price span { color: rgba(255,255,255,.6); font-size: 14.5px; }
.tw-spec {
  margin-top: 26px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px;
  font-size: 14.5px; color: rgba(255,255,255,.66); line-height: 1.6;
}

/* ---------- Липкая панель заказа на мобильных ---------- */
.tw-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.tw-sticky .btn { flex: 1; padding: 12px 14px; font-size: 14.5px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .tw-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tw-hero-in, .tw-inside, .tw-split, .tw-brand, .tw-final, .tw-compat { grid-template-columns: 1fr; }
  .tw-hero-media { order: -1; max-width: 340px; }
  /* на одной колонке кадр «под заказ» встаёт после текста, как в остальных блоках */
  .tw-split-rev .tw-figure { order: 0; }
  .tw-split .tw-figure-tall, .tw-brand .tw-figure, .tw-final .tw-figure { aspect-ratio: 4 / 3; }
  .tw-versions { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tw-trio { grid-template-columns: 1fr; }
  .tw-quad { grid-template-columns: 1fr; gap: 26px; }
  .tw-card .tw-figure { aspect-ratio: 4 / 3; }
  .tw-colors { grid-template-columns: repeat(2, 1fr); }
  .tw-facts { gap: 18px 30px; }
  .tw-facts li { flex: 1 1 40%; }
  .tw-compat-imgs img { max-height: 110px; }
  .tw-sticky { display: flex; }
  .tw-final-body { padding-bottom: 64px; }
}
