/* ==========================================================================
   Brick-style landing — mobile-first (iPhone portrait).
   Metrics lifted from getbrick.com at 390px: 16px gutter, 24px card radius,
   blue #1654FD pills, TWK Lausanne 350/500.
   ========================================================================== */

@font-face {
  font-family: "TWK Lausanne";
  src: url("../fonts/TWKLausanne-350.woff2") format("woff2");
  font-weight: 300 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TWK Lausanne";
  src: url("../fonts/TWKLausanne-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1654fd;
  --blue-deep: #0038d0;
  --yellow: #ffc83b;
  --ink: #181818;
  --black: #000;
  --night: #131313;
  --cream: #f5f1ec;
  --grey-bg: #f5f5f5;
  --grey-text: #555;
  --taupe: #685d58;
  --star: #f5a623;
  --white: #fff;

  --font: "TWK Lausanne", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --radius: 24px;
  --header-h: 58px;
  --card-w: 310px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
s { text-decoration: line-through; opacity: .6; }

.icon { width: 24px; height: 24px; display: inline-block; vertical-align: middle; fill: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--white); color: var(--black); }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Shared ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: var(--white);
  border-radius: 50px; padding: 14px 32px;
  font-size: 18px; line-height: 1.6; white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { background: #0f46e0; }
.btn:active { transform: scale(.98); }
.btn--sm { font-size: 14px; line-height: 1; }
.btn--md { font-size: 16px; line-height: 1; letter-spacing: -.16px; }
.btn--lg { font-size: 18px; }
.btn--full { width: 100%; font-size: 14px; line-height: 1.6; padding: 14px 20px; }

.h2 { font-size: 32px; line-height: 1.1; font-weight: 400; letter-spacing: -.01em; }
.h2--center { text-align: center; }
.sub { font-size: 18px; line-height: 1.6; }
.sub--center { text-align: center; }

.rating { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.6; }
.rating--center { justify-content: center; }
.rating--light { color: #f2f2f2; }
.stars { display: inline-flex; gap: 1px; }
.star { width: 26px; height: 26px; color: var(--star); fill: currentColor; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--yellow); text-align: center; padding: 8px var(--gutter); }
.announce__link {
  color: var(--blue-deep); font-size: 13px; line-height: 1.35; font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
/* «(новое: 18%, 31%)» — служебная часть плашки, тише номера версии */
.announce__new { opacity: .72; white-space: nowrap; }

.header {
  position: sticky; top: 0; z-index: 50;
  padding: 8px 8px 0;
  margin-bottom: calc(-1 * (var(--header-h) + 8px));
  pointer-events: none;
}
.header__pill {
  pointer-events: auto;
  height: var(--header-h);
  background: var(--white); border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header__logo { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__menu { width: 32px; height: 32px; display: grid; place-content: center; gap: 5px; }
.header__menu span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; background: var(--black); color: #f2f2f2;
  overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 50px) var(--gutter) 40px;
  text-align: center;
}
/* Портретный кадр: экран во всю высоту, чтобы текст лёг на пустую стену,
   а предмет остался ниже кнопки. Включается hero.tall в site.json. */
.hero--tall { min-height: 100svh; display: flex; flex-direction: column; }
.hero--tall .hero__media { object-position: center 45%; }
/* Затемнение только под текстом: к середине экрана сходит на нет,
   чтобы дисплей на фотографии остался живым, а не блёклым. */
.hero--tall .hero__shade {
  background: linear-gradient(180deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.5) 20%, rgba(0,0,0,.14) 38%, rgba(0,0,0,0) 52%);
}
/* Кнопка прижата к низу экрана */
.hero--tall .hero__content { flex: 1; width: 100%; }
.hero--tall .hero__content .btn { margin-top: auto; }
/* Фон-слайдер: слои лежат друг на друге и перетекают один в другой */
.hero__bgs { position: absolute; inset: 0; z-index: -2; background: var(--black); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero__slide.is-on { opacity: 1; }
.hero__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero__film { opacity: 0; transition: opacity .4s ease; }
.hero__film.is-live { opacity: 1; }
/* Кольца слева внизу, как на home.google.com: неактивное — целое кольцо с точкой,
   активное прочерчивается заново ровно за те же секунды, что держится слайд. */
.hero__timer { position: absolute; left: var(--gutter); bottom: 24px; z-index: 1; display: flex; gap: 12px; }
/* На полноэкранном герое кнопка стоит внизу по центру — поднимаем кольца над ней */
.hero--tall .hero__timer { bottom: 96px; }
.hero__tick {
  width: 40px; height: 40px; padding: 0; border: 0; background: none;
  color: #fff; opacity: .7; cursor: pointer; transition: opacity .3s ease-in-out;
}
.hero__tick svg { display: block; width: 100%; height: 100%; transform: rotateZ(-90deg); }
.hero__tick.is-playing { opacity: 1; }
.hero__tick.is-playing .hero__tick-bar { stroke-width: 9; animation: hero-tick var(--slide, 5s) linear forwards; }
@keyframes hero-tick {
  from { stroke-dasharray: 260; stroke-dashoffset: 260; }
  to   { stroke-dasharray: 260; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: none; }
  .hero__tick.is-playing .hero__tick-bar { animation: none; }
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.7) 30%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 80%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; gap: 0; }
.hero__title { font-size: 36px; line-height: 1; font-weight: 400; margin-top: 16px; }
.hero__sub { font-size: 18px; line-height: 1.15; margin-top: 14px; max-width: 340px; }
.hero__content .btn { margin-top: 30px; }

.hero__badge {
  position: absolute; right: 24px; top: 54%; width: 116px; height: 116px;
  transform: rotate(-10deg);
}
.hero__badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; transform-origin: 50% 50%; }
.hero__badge-ring text { font-size: 8.6px; font-weight: 500; letter-spacing: .12em; fill: var(--blue-deep); }
.hero__badge::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--yellow);
  clip-path: polygon(50% 0%, 58% 6%, 67% 3%, 73% 10%, 82% 10%, 86% 18%, 94% 22%, 95% 31%, 100% 38%, 98% 47%, 100% 56%, 96% 64%, 96% 73%, 90% 79%, 87% 87%, 79% 90%, 74% 97%, 65% 97%, 58% 100%, 50% 96%, 42% 100%, 35% 97%, 26% 97%, 21% 90%, 13% 87%, 10% 79%, 4% 73%, 4% 64%, 0% 56%, 2% 47%, 0% 38%, 5% 31%, 6% 22%, 14% 18%, 18% 10%, 27% 10%, 33% 3%, 42% 6%);
}
.hero__badge-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--blue-deep); line-height: 1; }
.hero__badge-top, .hero__badge-bottom { font-size: 9px; font-weight: 500; letter-spacing: .2em; }
.hero__badge-big { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Приватность ---------- */
/* Четыре главных вопроса — карусель на общем механизме [data-carousel],
   под ней полный FAQ складками. .icon--chevron жил в блоке старого FAQ,
   теперь он здесь — на нём держится стрелка складок. */
.privacy { padding: 72px 0 64px; }
.privacy__title {
  margin: 0; padding: 0 var(--gutter); text-align: center;
  font-size: 30px; line-height: 1.15; font-weight: 400; letter-spacing: -.01em;
}
.privacy__carousel { margin-top: 36px; }
.qcard {
  background: var(--cream); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.qcard__q { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.qcard__a { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); opacity: .8; }
.privacy__sub {
  margin: 56px 0 0; padding: 0 var(--gutter); text-align: center;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); opacity: .5;
}
.privacy__list { display: grid; gap: 10px; margin-top: 18px; padding: 0 var(--gutter); }

.icon--chevron { flex: 0 0 24px; color: var(--blue); transition: transform .25s ease; }
.pfold { background: var(--cream); border-radius: var(--radius); }
.pfold summary { list-style: none; }
.pfold summary::-webkit-details-marker { display: none; }
.pfold__q {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 20px; font-size: 16px; font-weight: 500; line-height: 1.35; cursor: pointer;
}
.pfold__q .icon--chevron { margin-top: -1px; }
.pfold[open] .icon--chevron { transform: rotate(180deg); }
.pfold__a { margin: 0; padding: 0 20px 18px; font-size: 16px; line-height: 1.5; color: var(--ink); opacity: .78; }

/* ---------- Overview ---------- */
.overview { padding: 8px var(--gutter) 0; }
.overview__card {
  background: var(--cream); border-radius: var(--radius);
  padding: 56px 24px 60px; text-align: center;
}
.overview__label {
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--taupe);
}
.overview__lead {
  margin-top: 22px; font-size: 26px; line-height: 1.2; font-weight: 400;
  letter-spacing: -.02em; color: var(--ink);
}
.overview__text {
  margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--taupe);
  max-width: 30ch; margin-left: auto; margin-right: auto;
}

/* ---------- Press marquee ---------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--white); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__list { display: flex; align-items: center; gap: 56px; padding-right: 56px; }
.marquee__item { white-space: nowrap; font-family: "Times New Roman", Times, Georgia, serif; font-weight: 700; font-size: 24px; letter-spacing: -.01em; color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track, .hero__badge-ring { animation: none; } }

/* ---------- Intro ---------- */
.intro { padding: 8px var(--gutter) 0; display: grid; gap: 16px; }
.intro__card { background: var(--cream); border-radius: var(--radius); padding: 48px 24px 44px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.intro__title { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.03em; }
.intro__text { font-size: 16px; line-height: 1.3; margin-top: 22px; }
.intro__card .btn { margin-top: 32px; }
.intro__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 358 / 452; background: var(--cream); }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Carousels ---------- */
.carousel { margin-top: 32px; }
.carousel__track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 calc((100% - var(--card-w)) / 2); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { flex: 0 0 var(--card-w); scroll-snap-align: center; }
.carousel__nav { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.carousel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid #d9d9d9; background: var(--white); display: grid; place-items: center; color: var(--ink); }
.carousel__btn:disabled { opacity: .35; }



/* ---------- Real stories ---------- */
/* Карточка как была: фото, фраза, имя. Значка play нет — видеоотзывов нет,
   а кнопка, которая ничего не делает, собьёт людей на тесте. */
.stories { padding: 64px 0 60px; }
.stories__title { font-size: 40px; line-height: 1.1; font-weight: 400; text-align: center; padding: 0 var(--gutter); }
.scard__media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 310 / 425; background: var(--cream); }
.scard__media img { width: 100%; height: 100%; object-fit: cover; }
.scard__quote { font-size: 16px; line-height: 1.4; margin-top: 18px; color: var(--ink); }
.scard__name { font-size: 15px; line-height: 1.4; margin-top: 6px; color: var(--taupe); }

/* ---------- Режим исследования: переход в опрос ---------- */
/* Панель есть в разметке всегда, но показывается только при ?study=1 и только когда
   человек посмотрел страницу (см. brick.js). Меньше 15% экрана, ничего не блокирует,
   встаёт под открытую шторку юзкейса — у той z-index 100. */
.survey-bar {
  position: fixed; left: 0; right: 0; z-index: 90;
  width: calc(100% - 24px); max-width: 406px; margin: 0 auto;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(calc(100% + 40px)); transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.survey-bar[hidden] { display: none; }
.survey-bar.is-in { transform: none; }
.survey-bar__go {
  display: grid; gap: 3px; width: 100%; padding: 14px 20px;
  border: 0; border-radius: 18px; background: var(--blue); color: var(--white);
  text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.survey-bar__title { font-size: 17px; line-height: 1.25; font-weight: 500; }
.survey-bar__note { font-size: 13px; line-height: 1.3; opacity: .8; }
.survey-bar.is-nudge .survey-bar__go { animation: survey-nudge 1.2s ease-in-out 1; }
@keyframes survey-nudge { 0%, 100% { transform: none; } 30% { transform: scale(1.03); } 60% { transform: scale(.99); } }
/* пока панель на экране, низ страницы доскролливается над ней */
body.has-survey main { padding-bottom: 96px; }
@media (prefers-reduced-motion: reduce) {
  .survey-bar { transition: none; }
  .survey-bar.is-nudge .survey-bar__go { animation: none; }
}

/* ---------- Wider screens: keep the phone layout centred (desktop comes later) ---------- */
@media (min-width: 560px) {
  body { background: #e9e7e3; }
  .announce, .header, main { width: 100%; max-width: 430px; margin-left: auto; margin-right: auto; }
  .header { margin-bottom: calc(-1 * (var(--header-h) + 8px)); }
}
