/* Сайт Movable. Цвета и формы – те же, что в приложении (res/values/colors_ns.xml): синий #2F5BD3, плоские карточки,
   одна «живая» синяя карточка на экран, заголовки тонким начертанием с жирным ключевым словом. */

@font-face { font-family: "Inter"; src: url("fonts/inter_display_light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter_medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #F2F2F7; --card: #FFFFFF; --card2: #EFEFF4; --ink: #0B0B0F; --sub: #63636B; --line: rgba(60, 60, 67, .14);
  --blue: #2F5BD3; --on-blue: #FFFFFF; --ic: #2F5BD3; --icbg: rgba(47, 91, 211, .10); --red: #D63A3F;
  --haze-a: #D9E4FF; --haze-b: #EEF2FB; --shadow: 0 18px 50px rgba(15, 36, 102, .16); --seg: #E3E3E8; --seg-on: #FFFFFF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --card: #1C1C1E; --card2: #2C2C2E; --ink: #FFFFFF; --sub: #98989F; --line: rgba(84, 84, 88, .55);
    --ic: #7AA0FF; --icbg: rgba(96, 136, 255, .18); --red: #FF5A5F;
    --haze-a: #101C44; --haze-b: #060B1C; --shadow: 0 18px 60px rgba(0, 0, 0, .6); --seg: #1C1C1E; --seg-on: #48484A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --card: #1C1C1E; --card2: #2C2C2E; --ink: #FFFFFF; --sub: #98989F; --line: rgba(84, 84, 88, .55);
  --ic: #7AA0FF; --icbg: rgba(96, 136, 255, .18); --red: #FF5A5F;
  --haze-a: #101C44; --haze-b: #060B1C; --shadow: 0 18px 60px rgba(0, 0, 0, .6); --seg: #1C1C1E; --seg-on: #48484A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--ic); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ic); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* какой кадр показывать – по теме */
.only-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block; } :root:not([data-theme="light"]) .only-light { display: none; } }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }

/* ---------- шапка: плавающая капсула, как нижнее меню приложения ---------- */
.top { position: sticky; top: 12px; z-index: 20; padding: 0 12px; }
.capsule {
  max-width: 1080px; margin: 0 auto; height: 60px; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 30px; box-shadow: 0 6px 24px rgba(0, 0, 0, .10);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -.01em; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 2px; }
.nav a { color: var(--sub); font-size: 14.5px; padding: 9px 12px; border-radius: 20px; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--card2); }
.pillbtn {
  height: 40px; min-width: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 20px; background: var(--card2); color: var(--ink); font: 500 14px "Inter", sans-serif; cursor: pointer;
}
.pillbtn:hover { text-decoration: none; filter: brightness(1.06); }
.pillbtn svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- заголовки ---------- */
h1, h2 { font-weight: 300; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
h1 b, h2 b { font-weight: 600; }
h1 { font-size: clamp(38px, 6.4vw, 68px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.kicker { color: var(--ic); font-size: 13.5px; font-weight: 500; letter-spacing: .02em; }
.lead { color: var(--sub); font-size: clamp(17px, 2vw, 20px); line-height: 1.5; margin: 18px 0 0; max-width: 34em; }
section { padding: 84px 0 0; }
.sec-head { max-width: 40em; }
.sec-head p { color: var(--sub); font-size: 17px; margin: 14px 0 0; }

/* ---------- кнопки ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 28px;
  background: var(--blue); color: var(--on-blue); font-weight: 600; font-size: 17px; border: 0; cursor: pointer;
}
.cta:hover { text-decoration: none; filter: brightness(1.08); }
.cta.ghost { background: var(--card); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--icbg); color: var(--ic); font-size: 13.5px; font-weight: 500; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ic); }

/* ---------- первый экран ---------- */
.hero { position: relative; padding-top: 56px; }
.hero::before {
  content: ""; position: absolute; inset: -90px 0 auto 0; height: 620px; z-index: -1;
  background: linear-gradient(180deg, var(--haze-a) 0%, var(--haze-b) 55%, var(--bg) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { margin-top: 18px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-phone { order: 2; } }

/* ---------- телефон ---------- */
.phone {
  width: min(300px, 78vw); aspect-ratio: 1280 / 2856; margin: 0 auto; padding: 9px; border-radius: 46px;
  background: #101014; box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone .shot { position: absolute; inset: 0; opacity: 0; transition: opacity .28s ease; }
.phone .shot.on { opacity: 1; }

/* ---------- «Что внутри»: сегменты + телефон + текст ---------- */
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; padding: 3px; gap: 2px; border-radius: 14px; background: var(--seg); margin-top: 28px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font: 500 15px "Inter", sans-serif; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--seg-on); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); font-weight: 600; }
.show { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; margin-top: 34px; }
.show-text { display: none; }
.show-text.on { display: block; animation: rise .3s ease; }
.show-text h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; letter-spacing: -.02em; line-height: 1.15; }
.show-text h3 b { font-weight: 600; }
.show-text ul { list-style: none; padding: 0; margin: 20px 0 0; }
.show-text li { position: relative; padding: 13px 0 13px 44px; border-top: 1px solid var(--line); color: var(--sub); }
.show-text li:first-child { border-top: 0; }
.show-text li b { color: var(--ink); font-weight: 500; }
.show-text li::before { content: ""; position: absolute; left: 0; top: 13px; width: 28px; height: 28px; border-radius: 9px; background: var(--icbg); }
.show-text li::after { content: ""; position: absolute; left: 10px; top: 21px; width: 8px; height: 5px; border-left: 2px solid var(--ic); border-bottom: 2px solid var(--ic); transform: rotate(-45deg); }
@media (max-width: 860px) { .show { grid-template-columns: 1fr; gap: 28px; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- живая синяя карточка и опрос «Как ты сегодня?» ---------- */
.live {
  position: relative; overflow: hidden; border-radius: 30px; padding: 30px; color: #fff; margin-top: 34px;
  background: linear-gradient(135deg, #5B86F2 0%, #2F5BD3 46%, #1B3A9E 100%);
}
.live::before, .live::after {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none;
  background: radial-gradient(circle, rgba(140, 176, 255, .9) 0%, rgba(140, 176, 255, 0) 70%); animation: drift 14s ease-in-out infinite alternate;
}
.live::before { left: -160px; top: -260px; }
.live::after { right: -200px; bottom: -320px; animation-duration: 18s; animation-direction: alternate-reverse; background: radial-gradient(circle, rgba(15, 36, 102, .9) 0%, rgba(15, 36, 102, 0) 70%); }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(120px, 70px); } }
.live > * { position: relative; z-index: 1; }
.live .small { font-size: 13px; opacity: .82; }
.live h3 { font-size: clamp(24px, 3vw, 30px); margin-top: 4px; }
.live p { margin: 6px 0 0; opacity: .9; }
.checkin { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.q-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.opts { display: grid; gap: 8px; }
.opts button {
  text-align: left; padding: 12px 16px; border-radius: 16px; border: 0; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, .16); font: 500 15px "Inter", sans-serif;
}
.opts button small { display: block; font-weight: 400; font-size: 12.5px; opacity: .8; margin-top: 2px; }
.opts button[aria-pressed="true"] { background: #fff; color: #1B3A9E; }
.result { background: rgba(8, 18, 52, .34); border-radius: 22px; padding: 20px; min-height: 148px; }
.result .small { opacity: .75; }
.result strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.result p { font-size: 14.5px; }
@media (max-width: 860px) { .checkin { grid-template-columns: 1fr; } .live { padding: 22px; border-radius: 26px; } }

/* ---------- плитки ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.tile { background: var(--card); border-radius: 22px; padding: 22px; }
.tile p { color: var(--sub); margin: 8px 0 0; font-size: 15px; }
.cube { width: 44px; height: 44px; border-radius: 13px; background: var(--icbg); color: var(--ic); display: grid; place-items: center; margin-bottom: 16px; }
.cube svg { width: 22px; height: 22px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* серия: кружки дней */
.streak { display: flex; gap: 6px; margin-top: 14px; }
.streak i { width: 22px; height: 22px; border-radius: 8px; background: var(--card2); }
.streak i.on { background: #D9A441; }
.streak i.rest { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }

/* ---------- две карточки рядом ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.panel { background: var(--card); border-radius: 26px; padding: 28px; }
.panel p { color: var(--sub); margin: 10px 0 0; }
.panel ul { margin: 14px 0 0; padding-left: 20px; color: var(--sub); }
.panel li { margin: 6px 0; }
.panel .more { display: inline-block; margin-top: 16px; font-weight: 500; }
.panel.gust .cube { background: rgba(208, 138, 82, .16); color: #D08A52; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ---------- подвал ---------- */
footer { margin-top: 96px; padding: 30px 0 46px; border-top: 1px solid var(--line); color: var(--sub); font-size: 14.5px; }
.foot { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot .brand { font-size: 15px; margin-right: 12px; }
.foot .brand img { width: 26px; height: 26px; }
.foot a { color: var(--sub); }
.foot a:hover { color: var(--ink); }
.foot .right { margin-left: auto; }

/* ---------- страницы с текстом: политика, условия, поддержка ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 0; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc .date { color: var(--sub); font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; margin-top: 14px; }
.doc .short { background: var(--icbg); border-radius: 20px; padding: 18px 20px; margin: 26px 0 0; }
.doc h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: 44px 0 0; }
.doc p, .doc ul { margin: 12px 0 0; }
.doc ul { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc .card { background: var(--card); border-radius: 22px; padding: 22px; margin-top: 20px; }
.doc .card h2 { margin-top: 0; font-size: 19px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.toc a { background: var(--card); border-radius: 16px; padding: 7px 13px; font-size: 14px; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live::before, .live::after { animation: none; }
  .phone .shot, .show-text.on { transition: none; animation: none; }
}
