/* Attic — лендинг. Токены и метрики по хендоффу «Attic Landing v2».
   Макет свёрстан инлайновыми стилями под свой рантайм; здесь то же самое
   в классах, плюс адаптив, которого в макете нет. */

:root {
  --royal: #2456F5;
  --royal-deep: #1638B8;
  --accent-blue: #4C7CFF;
  --ink: #0B1B45;
  --navy: #060E28;
  --panel: #0B173B;
  --panel-inner: #132455;
  --screen: #101B45;
  --control: #1B2A5E;
  --page: #F3F6FD;
  --muted: #5A6C9E;
  --on-dark: #9FB1E4;
  --on-dark-2: #8FA1D8;
  --on-dark-3: #7C8FC9;
  --faint: #8FA5CF;
  --bright: #EAF0FF;
  --bright-2: #C9D6FF;
  --bright-3: #9FB6FF;
  --coral: #FF4E2E;
  --coral-deep: #E23C1E;
  --coral-light: #FF7A5C;
  --green: #1FB268;
  --green-bright: #57E39B;
  --yellow: #FFD02F;

  --wrap: 1180px;
  --pad: 40px;
  /* Макет свёрстан без border-box: там max-width:1180 + padding:40 даёт
     1180px КОНТЕНТА (и 1260 полной ширины). Мы на border-box, поэтому
     оболочке задаётся ширина с запасом на поля — иначе вся страница
     оказывается на 80px уже эталона. */
  --shell: calc(var(--wrap) + var(--pad) * 2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--royal-deep); }
/* balance — только там, где он стоит в макете: иначе переносы строк
   расходятся с эталоном (заголовок тарифов уезжал в три строки). */
h1, h2, h3 { margin: 0; }
.hero-stack h1, .freedom h2 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; }

:focus-visible { outline: 3px solid var(--accent-blue); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad); }

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow.coral { color: var(--coral); }

@keyframes driftUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes driftDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@keyframes slideLeft { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes peek {
  0%, 8% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-54px) rotate(-3.2deg); }
  34% { transform: translateX(0) rotate(0); }
  48% { transform: translateX(54px) rotate(3.2deg); }
  62%, 100% { transform: translateX(0) rotate(0); }
}
@keyframes nudge {
  0%, 100% { transform: translateX(-50%) translateX(-16px); }
  50% { transform: translateX(-50%) translateX(16px); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 880px;
  overflow: hidden;
  background: var(--navy);
  border-radius: 0 0 56px 56px;
}
.wall {
  position: absolute;
  inset: -18%;
  display: flex;
  gap: 16px;
  transform: rotate(-5deg) scale(1.12);
}
.wall-col { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.wall-col.c1 { animation: driftUp 52s linear infinite; }
.wall-col.c2 { animation: driftDown 44s linear infinite; }
.wall-col.c3 { animation: driftUp 60s linear infinite; }
.wall-col.c4 { animation: driftDown 48s linear infinite; }
.wall-col.c5 { animation: driftUp 56s linear infinite; }
.wall-col.c6 { animation: driftDown 40s linear infinite; }
.tile {
  flex: none;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background-position: center;
  background-size: cover;
  background-color: #0d1735;
}
.c1 .a { background-image: url('photos/1441974231531-c6227db76b6e-p.webp'); }
.c1 .b { background-image: url('photos/1499856871958-5b9627545d1a-p.webp'); }
.c1 .c { background-image: url('photos/1470252649378-9c29740c9fa8-p.webp'); }
.c2 .a { background-image: url('photos/1501785888041-af3ef285b470-p.webp'); }
.c2 .b { background-image: url('photos/1519681393784-d120267933ba-p.webp'); }
.c2 .c { background-image: url('photos/1449824913935-59a10b8d2000-p.webp'); }
.c3 .a { background-image: url('photos/1470071459604-3b5ec3a7fe05-p.webp'); }
.c3 .b { background-image: url('photos/1414235077428-338989a2e8c0-p.webp'); }
.c3 .c { background-image: url('photos/1439066615861-d1af74d74000-p.webp'); }
.c4 .a { background-image: url('photos/1418065460487-3e41a6c84dc5-p.webp'); }
.c4 .b { background-image: url('photos/1470770841072-f978cf4d019e-p.webp'); }
.c4 .c { background-image: url('photos/1502082553048-f009c37129b9-p.webp'); }
.c5 .a { background-image: url('photos/1507525428034-b723cf961d3e-p.webp'); }
.c5 .b { background-image: url('photos/1506905925346-21bda4d32df4-p.webp'); }
.c5 .c { background-image: url('photos/1447752875215-b2761acb3c5d-p.webp'); }
.c6 .a { background-image: url('photos/1480714378408-67cf0d13bc1b-p.webp'); }
.c6 .b { background-image: url('photos/1476514525535-07fb3b4ae5f1-p.webp'); }
.c6 .c { background-image: url('photos/1493246507139-91e8fad9978e-p.webp'); }

.scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 45%,
    rgba(6, 14, 40, 0.92) 0%,
    rgba(6, 14, 40, 0.78) 45%,
    rgba(6, 14, 40, 0.55) 100%);
}
/* Растворение стены в собственный навy героя. Ниже контента (z-10),
   иначе вуалирует кнопки. */
.hero-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 340px;
  z-index: 5;
  background: linear-gradient(180deg, rgba(6, 14, 40, 0), rgba(6, 14, 40, 0.85) 55%, var(--navy) 100%);
}

.nav { position: relative; z-index: 20; }
/* В герое навбар вынут из потока — иначе центральный блок считает
   высоту без него и заголовок уезжает вниз на высоту шапки. */
.hero .nav { position: absolute; left: 0; right: 0; top: 0; }
.nav-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -0.6px; }
.nav-links { flex: 1; display: flex; justify-content: center; gap: 26px; font-size: 14.5px; font-weight: 600; }
.nav-links a { color: rgba(255, 255, 255, 0.72); }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--coral); color: #fff; }

.hero-stack {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
}
.hero-stack h1 {
  margin: 0;
  /* Коэффициент приходит от генератора: он зависит от длины заголовка
     на конкретном языке. Умножение, а не готовый размер, — чтобы ступени
     ниже продолжали работать (инлайн font-size их перебивал). */
  font-size: calc(132px * var(--h1k, 1));
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -6px;
  color: #fff;
}
.hero-stack p {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

/* Бейджи сторов. В макете Apple 56px, а Play — 82px с margin:-13px:
   визуально они разъезжались. Здесь у обоих один бокс и одна высота. */
.stores { display: flex; gap: 14px; align-items: center; margin-top: 34px; scroll-margin-top: 90px; }
.stores.center { justify-content: center; }
.store-badge { display: block; border-radius: 12px; transition: transform 0.18s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; border-radius: 12px; }

/* ============ TRY A SWIPE ============ */
.try {
  margin-top: -1px;
  background: var(--page);
  padding: 96px var(--pad) 110px;
  scroll-margin-top: 40px;
}
.try-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
}
.try-copy h2 {
  margin: 14px 0 0;
  font-size: 62px;
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -3px;
}
.try-copy > p {
  margin: 22px 0 0;
  max-width: 440px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
}
.try-buttons { display: flex; gap: 14px; margin-top: 34px; }
.try-buttons button {
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: background 0.18s ease;
}
.btn-archive { background: var(--coral); color: #fff; box-shadow: 0 12px 28px rgba(255, 78, 46, 0.35); }
.btn-archive:hover { background: var(--coral-deep); }
.btn-keep { background: #fff; color: var(--ink); border: 1px solid rgba(11, 27, 69, 0.14); box-shadow: 0 6px 18px rgba(11, 27, 69, 0.08); }
.btn-keep:hover { background: #E9F1FB; }

.counters { margin-top: 28px; display: flex; gap: 34px; align-items: baseline; }
.counter-num { font-size: 34px; font-weight: 800; letter-spacing: -1.4px; font-variant-numeric: tabular-nums; }
.counter-num.freed { color: var(--green); }
.counter-num.kept { color: var(--royal); }
.counter-cap { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* iPhone 402×874, ужат до .8 — как в макете.
   scale не меняет место в потоке, поэтому на узких экранах footprint
   компенсируется отрицательными полями (см. адаптив ниже). */
.phone-slot { position: relative; height: 700px; --s: 0.8; }
.phone {
  position: absolute;
  left: 0; top: 0;
  width: 402px;
  height: 874px;
  transform: scale(var(--s));
  transform-origin: top left;
  border-radius: 48px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.phone-island {
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 126px; height: 37px;
  border-radius: 24px;
  background: #000;
  z-index: 50;
}
.phone-status {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 154px;
  padding: 21px 24px 19px;
  color: #fff;
}
.phone-status .t {
  flex: 1;
  text-align: center;
  font-family: -apple-system, 'SF Pro', system-ui, sans-serif;
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
}
.phone-status .ind { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; }
.phone-status svg { fill: currentColor; }
.home-bar {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.home-bar::after { content: ''; width: 139px; height: 5px; border-radius: 100px; background: rgba(255, 255, 255, 0.7); }

.screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--screen);
  color: var(--bright);
  padding: 70px 18px 26px;
}
.scr-head { display: flex; justify-content: space-between; align-items: center; }
.round {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--control);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  color: var(--bright-2);
}
.scr-head .round:last-child { color: #fff; font-size: 17px; }
.badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
/* display:flex перебивает атрибут hidden — бейдж торчал при нуле архивных */
.badge[hidden] { display: none; }
.scr-title { text-align: center; }
.scr-title .month { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; color: #fff; }
.scr-title .stamp { font-size: 12.5px; color: var(--on-dark-2); margin-top: 2px; }
.swipes-left { display: flex; justify-content: center; align-items: baseline; gap: 7px; margin-top: 14px; }
.swipes-left b { font-size: 22px; font-weight: 800; color: var(--yellow); }
.swipes-left span { font-size: 14px; font-weight: 700; color: var(--bright-3); }

.stack { position: relative; flex: 1; margin: 16px 2px 0; }
.ghost { position: absolute; border-radius: 26px; background-position: center; background-size: cover; }
.ghost.third { inset: 18px 8px 26px; transform: rotate(2.5deg); opacity: 0.45; }
.ghost.next { inset: 9px 4px 20px; transform: rotate(-1.6deg); opacity: 0.75; }
.card {
  position: absolute;
  inset: 0 0 10px;
  border-radius: 28px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.55);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.34s;
}
.card.idle { animation: peek 4.2s ease-in-out 0.8s infinite; }
.card.dragging { cursor: grabbing; transition: none; }
.drag-hint {
  position: absolute;
  left: 50%; bottom: 84px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(11, 20, 50, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  animation: nudge 2.2s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity 0.3s;
}
.drag-hint .l { color: var(--coral-light); }
.drag-hint .r { color: var(--green-bright); }
.size-pill {
  position: absolute;
  right: 14px; top: 14px;
  background: rgba(11, 20, 50, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bright);
}
.fav {
  position: absolute;
  right: 16px; bottom: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(11, 20, 50, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
}

.thumbs { display: flex; gap: 8px; margin-top: 14px; overflow: hidden; }
.thumbs .th {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 12px;
  background-position: center;
  background-size: cover;
  opacity: 0.85;
}
.thumbs .th.cur {
  width: 56px; height: 56px;
  margin-top: -2px;
  border-radius: 14px;
  opacity: 1;
  border: 3px solid var(--accent-blue);
  box-shadow: 0 0 16px rgba(76, 124, 255, 0.6);
}
.counter { text-align: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--on-dark-2); }
.swipe-hint { text-align: center; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--accent-blue); transition: opacity 0.3s; }

.tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transition: opacity 0.12s;
}
.tint-circle {
  width: 126px; height: 126px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  color: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}
.tint-label { font-size: 22px; font-weight: 800; letter-spacing: 0.18em; color: #fff; }

/* ============ RELEASE ============ */
.release {
  background: var(--panel);
  color: var(--bright);
  padding: 110px 0;
  border-radius: 48px 48px 0 0;
  scroll-margin-top: 40px;
}
.release-head { display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: end; }
.release-head h2 { margin: 14px 0 0; font-size: 68px; line-height: 0.96; font-weight: 800; letter-spacing: -3.4px; color: #fff; }
.release-head p { margin: 0 0 8px; font-size: 19px; line-height: 1.5; color: var(--on-dark); }

.panel { margin-top: 48px; background: var(--panel-inner); border-radius: 36px; padding: 44px; display: flex; align-items: center; gap: 44px; }
.panel-before { flex: 1; min-width: 0; }
.panel-label { font-size: 15px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-3); }
.panel-label.green { color: var(--green-bright); }
/* Ряд шире панели почти на любой ширине: жёсткий срез посреди плитки
   заменён растворением правого края — продолжает лесенку прозрачности. */
.takes {
  display: flex; gap: 12px; margin-top: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 84px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 84px), transparent);
}
.take {
  position: relative;
  flex: none;
  width: 132px; height: 176px;
  border-radius: 16px;
  overflow: hidden;
  background: url('photos/1470252649378-9c29740c9fa8-take.webp') center/cover;
  filter: grayscale(0.25);
}
.take::before { content: ''; position: absolute; inset: 0; background: rgba(6, 14, 40, 0.45); }
.take:nth-child(1) { opacity: 0.85; }
.take:nth-child(2) { opacity: 0.7; }
.take:nth-child(3) { opacity: 0.55; }
.take:nth-child(4) { opacity: 0.4; }
.take:nth-child(5) { opacity: 0.28; }
.take .x {
  position: absolute;
  left: 8px; top: 8px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.take .cap {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  text-align: center;
  font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.panel-note { margin-top: 20px; font-size: 16px; color: var(--on-dark); }
.panel-note b { color: #fff; }
.panel-arrow { flex: none; font-size: 46px; font-weight: 800; color: var(--accent-blue); }
.panel-after { flex: none; }
.keeper {
  position: relative;
  width: 268px; height: 358px;
  margin-top: 22px;
  border-radius: 24px;
  overflow: hidden;
  background: url('photos/1470252649378-9c29740c9fa8-p.webp') center/cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.kept-pill {
  position: absolute;
  left: 14px; top: 14px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
}

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.stat { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 26px; padding: 34px; }
.stat-num { font-size: 60px; font-weight: 800; letter-spacing: -3px; color: #fff; font-variant-numeric: tabular-nums; }
.stat-num.small { font-size: 46px; letter-spacing: -2.4px; }
.stat-cap { font-size: 16px; color: var(--on-dark); margin-top: 6px; }
.stats-note { margin-top: 22px; font-size: 13px; color: var(--on-dark-3); }

/* ============ FREEDOM BAND ============ */
.freedom {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--navy) url('photos/1493246507139-91e8fad9978e.webp') center 40% / cover;
}
.freedom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 14, 40, 0.55), rgba(6, 14, 40, 0.8));
}
.freedom-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.freedom h2 { font-size: 84px; line-height: 0.94; font-weight: 800; letter-spacing: -4px; color: #fff; }
.freedom p { margin-top: 24px; max-width: 520px; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }

/* ============ WHAT YOU KEEP ============ */
.keep { padding: 104px 0 0; }
.keep-title { max-width: 640px; font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -2.6px; }
.keep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.keep-card { background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 10px 30px rgba(11, 27, 69, 0.09); }
.keep-photo { height: 170px; background-position: center; background-size: cover; }
.keep-photo.p1 { background-image: url('photos/1470071459604-3b5ec3a7fe05.webp'); }
.keep-photo.p2 { background-image: url('photos/1476514525535-07fb3b4ae5f1.webp'); }
.keep-photo.p3 { background-image: url('photos/1480714378408-67cf0d13bc1b.webp'); }
.keep-body { padding: 24px; }
.keep-body h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.keep-body p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ============ PRICING ============ */
.pricing { padding: 104px 0 0; scroll-margin-top: 40px; }
.slab {
  position: relative;
  overflow: hidden;
  background: var(--royal);
  color: #fff;
  border-radius: 36px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  box-shadow: 0 30px 70px rgba(36, 86, 245, 0.3);
}
.slab-circle { position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.slab-copy { position: relative; }
.pro-chip {
  display: inline-flex;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slab-copy h2 { margin: 16px 0 0; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -2.2px; }
.slab-copy > p { margin: 18px 0 0; max-width: 400px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.pro-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.pro-list li { display: flex; gap: 10px; align-items: flex-start; }
.pro-list span { color: var(--yellow); font-weight: 800; }

.plans { position: relative; display: flex; flex-direction: column; gap: 12px; }
.pro-access { padding: 28px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 24px; background: rgba(255, 255, 255, 0.06); }
.pro-access h3 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -0.8px; }
.pro-access p { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }

.plan {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.plan.best { background: #fff; color: var(--ink); }
.plan-tag {
  position: absolute;
  right: 20px; top: -11px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name { font-size: 19px; font-weight: 800; }
.plan-note { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 3px; }
.plan.best .plan-note { color: var(--muted); }
.plan-price { font-size: 26px; font-weight: 800; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.plan-fine { font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.62); }
.plan-cta { display: flex; gap: 12px; margin-top: 6px; }
.plan-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  transition: background 0.18s ease;
}
.plan-cta svg { width: 19px; height: 19px; fill: currentColor; }
.cta-dark { background: var(--ink); color: #fff; }
.cta-dark:hover { background: var(--navy); color: #fff; }
.cta-light { background: #fff; color: var(--ink); }
.cta-light:hover { background: #E9F1FB; color: var(--ink); }

/* ============ FAQ ============ */
.faq { max-width: calc(900px + var(--pad) * 2); margin: 0 auto; padding: 104px var(--pad) 0; scroll-margin-top: 40px; }
/* 1.14 — иначе хвост Q подрезается */
.faq h2 { margin-bottom: 30px; font-size: 48px; line-height: 1.14; font-weight: 800; letter-spacing: -2.2px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 20px; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  text-align: left;
}
.faq-q > span:first-child { flex: 1; font-size: 18px; font-weight: 800; letter-spacing: -0.4px; }
.faq-plus {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #EDF2FE;
  color: var(--royal);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-q[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-a.open { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 68px 22px 24px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ============ MARQUEE + CTA ============ */
.marquee { margin-top: 110px; overflow: hidden; padding: 0 0 10px; }
.marquee-track { display: flex; gap: 16px; width: 200%; animation: slideLeft 60s linear infinite; }
.marquee-set { flex: 1; display: flex; gap: 16px; }
.marquee-set span { flex: 1; height: 220px; border-radius: 18px; background-position: center; background-size: cover; }
.marquee-set .m1 { background-image: url('photos/1501785888041-af3ef285b470.webp'); }
.marquee-set .m2 { background-image: url('photos/1449824913935-59a10b8d2000.webp'); }
.marquee-set .m3 { background-image: url('photos/1418065460487-3e41a6c84dc5.webp'); }
.marquee-set .m4 { background-image: url('photos/1414235077428-338989a2e8c0.webp'); }
.marquee-set .m5 { background-image: url('photos/1470770841072-f978cf4d019e.webp'); }

.final { max-width: var(--shell); margin: 0 auto; padding: 70px var(--pad) 0; text-align: center; }
.final-icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(11, 27, 69, 0.24);
  animation: floaty 6s ease-in-out infinite;
}
.final h2 { font-size: 68px; line-height: 0.96; font-weight: 800; letter-spacing: -3.2px; }
.final p { margin: 18px auto 0; max-width: 440px; font-size: 17px; line-height: 1.5; color: var(--muted); }

.footer {
  max-width: var(--shell);
  margin: 64px auto 0;
  padding: 34px var(--pad) 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(11, 27, 69, 0.1);
}
.footer .brand { color: var(--ink); }
.footer .brand:hover { color: var(--ink); }
.footer .brand img { width: 28px; height: 28px; border-radius: 8px; }
.footer .brand span { font-size: 17px; letter-spacing: -0.4px; }
.footer-links { flex: 1; display: flex; gap: 22px; font-size: 13.5px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--royal); }
.footer .copy { font-size: 13px; color: var(--faint); }
/* Бейдж LaunchBuff: SVG приходит в 256×80, в футере он был бы крупнее
   логотипа — держим по высоте строки и отдаём ширину пропорции. */
.footer .badge-launchbuff, .footer .badge-launchnest, .footer .badge-launchstag, .footer .badge-launchkiwi { flex: none; display: inline-flex; }
.footer .badge-launchbuff img, .footer .badge-launchnest img, .footer .badge-launchstag img, .footer .badge-launchkiwi img { display: block; height: 40px; width: auto; }

/* Переключатель языка: <details>, поэтому работает и без JS, и у ботов.
   Список раскрывается колонками — 27 языков в один столбец растянули бы
   футер на два экрана. */
.footer .langs { flex: none; font-size: 13px; position: relative; }
.footer .langs summary {
  cursor: pointer; color: var(--muted); list-style: none;
  padding: 6px 0; user-select: none;
}
.footer .langs summary::-webkit-details-marker { display: none; }
.footer .langs summary::after { content: " ▾"; opacity: .5; }
.footer .langs summary:hover { color: var(--royal); }
.footer .langs summary b { color: var(--ink); font-weight: 600; }
.footer .langs ul {
  margin: 10px 0 0; padding: 14px 16px; list-style: none;
  columns: 3; column-gap: 22px;
  background: #fff; border: 1px solid rgba(11, 27, 69, 0.1);
  border-radius: 14px; box-shadow: 0 18px 40px rgba(11, 27, 69, 0.1);
}
.footer .langs li { break-inside: avoid; margin-bottom: 7px; }
.footer .langs a { color: var(--muted); }
.footer .langs a:hover { color: var(--royal); }
.footer .langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* Полоска «сайт есть на вашем языке». Предложение, а не редирект:
   принудительная переброска по языку браузера прячет остальные версии
   от поисковых роботов — они всегда приходят с английскими заголовками. */
.langbar {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 10px 18px; background: var(--royal, #2456F5);
  color: #fff; font-size: 14px; text-align: center;
}
.langbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.langbar button {
  background: none; border: 0; color: rgba(255, 255, 255, 0.7);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px;
}
.langbar button:hover { color: #fff; }

/* ============ LEGAL PAGES ============ */
.legal-nav { background: var(--navy); }
.legal-nav .nav-inner { padding: 22px var(--pad); }
.legal { max-width: calc(760px + var(--pad) * 2); margin: 0 auto; padding: 64px var(--pad) 90px; }
.legal h1 { font-size: 54px; line-height: 1.04; font-weight: 800; letter-spacing: -2.6px; }
.legal .updated { margin: 12px 0 36px; font-size: 14px; color: var(--faint); }
.legal h2 { margin: 40px 0 12px; font-size: 24px; font-weight: 800; letter-spacing: -0.8px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal li strong, .legal p strong { color: var(--ink); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ GUIDES / SEO-СТАТЬИ ============
   Отдельный слой поверх лендинга: тот же «Cobalt ice», но макет статьи —
   тёмная шапка с хлебными крошками, узкая колонка текста, врезки и CTA. */

.faq-more {
  max-width: calc(900px + var(--pad) * 2);
  margin: 26px auto 0;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}
.faq-more a { text-decoration: underline; text-underline-offset: 3px; }

.art-head { background: var(--navy); color: #fff; padding-bottom: 64px; }
.art-head .nav-inner { padding: 22px var(--pad); }
.art-head-inner { max-width: calc(760px + var(--pad) * 2); margin: 0 auto; padding: 34px var(--pad) 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--on-dark-3); }
.crumbs a { color: var(--bright-3); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-current] { color: var(--on-dark-3); }

.art-head h1 {
  margin-top: 16px;
  font-size: 52px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -2.4px;
  text-wrap: balance;
}
.art-head .lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--bright-2); max-width: 640px; }
.art-head .meta { margin-top: 22px; font-size: 13.5px; color: var(--on-dark-3); }

.article { max-width: calc(760px + var(--pad) * 2); margin: 0 auto; padding: 56px var(--pad) 90px; }
.article h2 { margin: 44px 0 14px; font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -1.2px; }
.article h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.article p, .article li { font-size: 17px; line-height: 1.72; color: var(--muted); }
.article p + p { margin-top: 16px; }
.article ul, .article ol { margin: 14px 0 0; padding-left: 24px; }
.article li { margin-bottom: 10px; }
.article li::marker { color: var(--royal); font-weight: 700; }
.article strong { color: var(--ink); }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article > p:first-child { font-size: 18.5px; }

.steps { counter-reset: step; margin: 20px 0 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0 0 14px;
  padding: 16px 20px 16px 62px;
  background: #fff;
  border-radius: 16px;
  font-size: 16.5px;
  line-height: 1.6;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--royal);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.note {
  margin: 26px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--royal);
  background: #fff;
  border-radius: 0 16px 16px 0;
}
.note p { font-size: 16px; }
.note.warn { border-left-color: var(--coral); }

.art-cta {
  margin: 48px 0 0;
  padding: 30px 32px;
  border-radius: 24px;
  background: var(--panel);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.art-cta img { width: 56px; height: 56px; border-radius: 16px; }
.art-cta-copy { flex: 1; min-width: 240px; }
.art-cta h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.7px; color: #fff; }
.art-cta p { font-size: 15.5px; line-height: 1.55; color: var(--on-dark); }
.art-cta .stores { margin: 0; }
.art-cta .store-badge img { width: auto; height: 46px; border-radius: 0; }

.art-next { margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(11, 27, 69, 0.1); }
.art-next h2 { margin: 0 0 16px; font-size: 20px; letter-spacing: -0.6px; }
.art-next ul { margin: 0; padding: 0; list-style: none; }
.art-next li { margin-bottom: 10px; font-size: 16px; }

/* Хаб /guides/ */
.guides-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--pad) 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.guide-card {
  display: block;
  padding: 30px 30px 32px;
  background: #fff;
  border-radius: 24px;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 27, 69, 0.1); color: var(--ink); }
.guide-thumb { display: block; margin: -30px -30px 20px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 24px 24px 0 0; background: #dfe8ff; }
.guide-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.guide-thumb-shot { background: linear-gradient(135deg, #dfe8ff, #eef2ff); }
.guide-thumb-icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--royal), var(--accent-blue)); }
.guide-thumb-icon img { width: 72px; height: 72px; border-radius: 18px; object-fit: contain; }
.guide-card .kicker { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--royal); }
.guide-card h2 { margin: 12px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.9px; }
.guide-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ============ АДАПТИВ (в макете не спроектирован) ============ */
@media (max-width: 1180px) {
  .try-inner { grid-template-columns: 1fr 360px; gap: 40px; }
  /* Колонка текста тут ужимается до ~420px, а 62px рассчитаны на 700px:
     длинные слова (pl «uporządkowana») вылезали за край. */
  .try-copy h2 { font-size: 50px; letter-spacing: -2.4px; }
  .phone-slot { height: 600px; --s: 0.68; }
  .release-head { grid-template-columns: 1fr 340px; gap: 40px; }
  /* Колонка здесь ~440px, а 68px рассчитаны на 700px: длинные языки
     (de, ru, uk) разъезжались на четыре строки вместо двух. */
  .release-head h2 { font-size: 54px; letter-spacing: -2.6px; }
  .slab { grid-template-columns: 1fr 380px; gap: 40px; padding: 44px; }
  .hero-stack h1 { font-size: calc(108px * var(--h1k, 1)); letter-spacing: -4.6px; }
  .freedom h2 { font-size: 68px; letter-spacing: -3px; }
  .panel { gap: 28px; padding: 32px; }
  .keeper { width: 220px; height: 294px; }
}

@media (max-width: 900px) {
  :root { --pad: 24px; }
  .nav-links { display: none; }
  .hero { min-height: 720px; border-radius: 0 0 40px 40px; }
  .hero-stack h1 { font-size: calc(76px * var(--h1k, 1)); letter-spacing: -3px; }
  .hero-stack p { font-size: 17px; margin-top: 22px; }
  .try { padding: 72px var(--pad) 80px; }
  .try-inner { grid-template-columns: 1fr; gap: 48px; }
  .try-copy h2 { font-size: 44px; letter-spacing: -2px; }
  .try-copy > p { max-width: none; }
  /* Телефон становится потоковым: гасим его 402×874 отрицательными
     полями, иначе страница не сжимается уже ~450px. */
  .phone-slot { height: auto; --s: 0.7; display: flex; justify-content: center; }
  .phone {
    position: relative;
    margin-right: calc(-402px * (1 - var(--s)));
    margin-bottom: calc(-874px * (1 - var(--s)));
  }
  .release { padding: 80px 0; border-radius: 36px 36px 0 0; }
  .release-head { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .release-head h2 { font-size: 46px; letter-spacing: -2.2px; }
  .release-head p { margin: 0; font-size: 17px; }
  .panel { flex-direction: column; align-items: stretch; }
  .panel-arrow { align-self: center; transform: rotate(90deg); }
  .panel-after { align-self: center; }
  .takes { gap: 8px; }
  .take { width: 92px; height: 124px; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 26px; }
  .stat-num { font-size: 46px; letter-spacing: -2px; }
  .stat-num.small { font-size: 36px; }
  .freedom { height: 460px; }
  .freedom h2 { font-size: 44px; letter-spacing: -2px; }
  .freedom p { font-size: 17px; }
  .keep { padding: 72px 0 0; }
  .keep-title { font-size: 38px; letter-spacing: -1.6px; }
  .keep-grid { grid-template-columns: 1fr; }
  .pricing { padding: 72px 0 0; }
  .slab { grid-template-columns: 1fr; padding: 32px; border-radius: 28px; }
  .slab-copy h2 { font-size: 34px; letter-spacing: -1.4px; }
  .faq { padding: 72px var(--pad) 0; }
  .faq h2 { font-size: 34px; letter-spacing: -1.4px; }
  .faq-a p { padding-right: 24px; }
  .marquee { margin-top: 72px; }
  /* flex:1 на узком экране давал полоски 65px шириной — фиксируем
     ширину плитки, лента едет за экран (max-content), цикл тот же. */
  .marquee-track { width: max-content; }
  .marquee-set { flex: none; }
  .marquee-set span { flex: none; width: 132px; height: 150px; }
  .final { padding: 56px var(--pad) 0; }
  .final h2 { font-size: 40px; letter-spacing: -1.8px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .legal h1 { font-size: 36px; letter-spacing: -1.6px; }
  .art-head h1 { font-size: 36px; letter-spacing: -1.6px; }
  .art-head .lede { font-size: 17px; }
  .article h2 { font-size: 25px; letter-spacing: -0.9px; }
  .guides-grid { grid-template-columns: 1fr; }
  .art-cta { padding: 26px; }
}

@media (max-width: 560px) {
  /* Ниже этой ступени кегль был фиксированным, и на телефонах 360–390px
     длинный заголовок переставал помещаться в строку. Привязываем к
     ширине экрана: 58px остаются потолком. */
  .hero-stack h1 { font-size: calc(min(58px, 10.5vw) * var(--h1k, 1)); letter-spacing: -2.2px; }
  /* 44px оставлял «this.» одинокой третьей строкой */
  .freedom h2 { font-size: 38px; letter-spacing: -1.7px; }
  .release-head h2 { font-size: 38px; letter-spacing: -1.7px; }
  .stores { flex-direction: column; align-items: center; gap: 12px; }
  .store-badge img { height: 50px; }
  .try-copy h2 { font-size: 34px; letter-spacing: -1.4px; }
  .try-buttons button { flex: 1; }
  .phone-slot { --s: 0.56; }
  .take { width: 74px; height: 100px; }
  .keeper { width: 180px; height: 240px; }
  .plan-cta { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .footer .badge-launchbuff img, .footer .badge-launchnest img, .footer .badge-launchstag img, .footer .badge-launchkiwi img { height: 34px; }
  .footer .langs ul { columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wall-col, .marquee-track, .final-icon, .card.idle, .drag-hint { animation: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Картинки в статьях: верхнее фото и карточки приложения */
.art-fig { margin: 30px 0; }
.art-fig img { display: block; width: 100%; height: auto; border-radius: 20px; }
.art-fig-hero { margin: 0 0 8px; }
.art-fig-hero img { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 14px 36px rgba(11, 27, 69, 0.16); }
.art-phones { display: flex; justify-content: center; gap: 14px; margin: 28px 0 6px; }
.art-phones img { width: calc(50% - 7px); max-width: 250px; border-radius: 24px; box-shadow: 0 14px 34px rgba(11, 27, 69, 0.18); }
.art-joined { gap: 0; width: min(100%, 540px); margin-inline: auto; border-radius: 24px; overflow: hidden; box-shadow: 0 14px 34px rgba(11, 27, 69, 0.18); }
.art-joined img { width: 50%; max-width: none; border-radius: 0; box-shadow: none; }
