/* Секции сайта: шапка, hero, Bento, игры, город, доверие, скачивание, подвал. */

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  background: var(--glass-strong);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(100% - 40px, 1280px);
  height: var(--nav-h);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  min-height: 44px;
}

.brand-mark {
  display: inline-block;
  flex: none;
  width: 26px;
  height: 32px;
  background: currentColor;
  color: var(--primary-light);
  -webkit-mask: url('../images/logo.svg') center / contain no-repeat;
  mask: url('../images/logo.svg') center / contain no-repeat;
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.45));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.brand-name {
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.beta-badge {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--input-fill);
}

.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--cyan));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-cta {
  min-height: 44px;
  padding: 10px 18px;
}

.burger {
  display: none;
}

/* ── Шторка ────────────────────────────────────────────────────────────── */

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.is-visible {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  width: min(86vw, 370px);
  padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--glass-strong);
  border-left: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: translateX(102%);
  transition: transform 0.38s var(--ease-out);
  touch-action: pan-y;
  overflow-y: auto;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.drawer-links {
  display: grid;
  gap: 2px;
  padding: 14px 0;
}

.drawer-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-soft);
}

.drawer-links a:hover {
  background: var(--input-fill);
  color: var(--text);
}

.drawer-foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.drawer-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.drawer-qr svg {
  width: 18px;
  height: 18px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  --text: #f1f5f9;
  --text-muted: #9ca3af;
  --text-soft: #cbd5e1;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --primary-light: #60a5fa;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--nav-h) + clamp(40px, 7vw, 84px)) 0 0;
  overflow: hidden;
  color: #f1f5f9;
  background:
    radial-gradient(1000px 620px at 85% 8%, rgba(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(1100px 700px at 8% -10%, rgba(26, 86, 219, 0.42), transparent 62%),
    linear-gradient(160deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
}

.hero-auras {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.aura {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.aura-blue {
  left: -12vw;
  top: -8vw;
  background: radial-gradient(circle, rgba(26, 86, 219, 0.75), transparent 65%);
  animation: breathe 14s ease-in-out infinite alternate;
}

.aura-teal {
  right: -14vw;
  bottom: 6vw;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.55), transparent 65%);
  animation: breathe 18s ease-in-out infinite alternate-reverse;
}

@keyframes breathe {
  from {
    transform: translate3d(0, 0, 0) scale(0.9);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.12);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(30px, 5vw, 60px);
}

.hero-copy h1 {
  max-width: 20ch;
  font-size: clamp(2.05rem, 3.6vw, 3.35rem);
  text-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

.hero-copy .hero-sub {
  max-width: 48ch;
  margin-top: 16px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: #b6c2d6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.86rem;
  color: #9fadc4;
}

.hero-facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.hero-facts strong {
  color: #fff;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  perspective: 1200px;
}

.phone-glow {
  position: absolute;
  width: 70%;
  height: 60%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 65%);
  filter: blur(50px);
  pointer-events: none;
}

.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 430px;
}

.phone-wrap {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.phone {
  position: relative;
  width: clamp(256px, 24vw, 306px);
  aspect-ratio: 306 / 636;
  padding: 9px;
  border-radius: 52px;
  background: linear-gradient(155deg, #44464d 0%, #17181c 26%, #050506 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-notch {
  position: absolute;
  z-index: 6;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 24px;
  border-radius: 999px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1020, #070a14);
  color: #f1f5f9;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 56px 12px 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
  pointer-events: none;
}

.scene.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.scene-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.scene-top img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.scene-top > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.scene-top strong {
  font-size: 0.82rem;
}

.online {
  font-size: 0.64rem;
  color: #34d399;
}

.scene-top-icon {
  margin-left: auto;
  color: #93c5fd;
}

.scene-top-icon svg {
  width: 18px;
  height: 18px;
}

.scene-chip {
  margin-left: auto;
  padding: 3px 8px;
  font-size: 0.6rem;
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.3);
  background: rgba(37, 99, 235, 0.16);
}

.chat-stream {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  overflow: hidden;
  padding: 4px 2px;
}

.msg {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 15px;
  font-size: 0.72rem;
  line-height: 1.35;
  background: #2c2c2e;
  color: #eef2ff;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  animation: msg-in 0.5s var(--ease-out) both;
}

.msg:nth-child(2) {
  animation-delay: 0.1s;
}
.msg:nth-child(3) {
  animation-delay: 0.2s;
}
.msg:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg-out {
  align-self: flex-end;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 5px;
  background: #2563eb;
  color: #fff;
}

.msg-reaction {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reaction {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.35);
  font-size: 0.64rem;
}

.msg-task {
  display: grid;
  gap: 5px;
  width: 88%;
}

.mini-task {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.68rem;
}

.mini-task.done {
  text-decoration: line-through;
  opacity: 0.6;
}

.scene-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  color: #8fa0b8;
}

.send-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
}

.send-dot svg {
  width: 15px;
  height: 15px;
}

.scene-top-call {
  justify-content: space-between;
}

.call-title {
  font-weight: 800;
  font-size: 0.82rem;
}

.call-count {
  font-size: 0.64rem;
  color: #93c5fd;
}

.call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}

.call-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #111827;
}

.call-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.call-tile span {
  position: absolute;
  left: 7px;
  bottom: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-shadow: 0 1px 6px #000;
}

.call-tile.speaking {
  box-shadow: inset 0 0 0 2px #22d3ee;
  animation: speaker-glow 2.2s ease-in-out infinite;
}

@keyframes speaker-glow {
  0%,
  100% {
    box-shadow: inset 0 0 0 2px rgba(34, 211, 238, 0.9);
  }
  50% {
    box-shadow: inset 0 0 0 3px rgba(34, 211, 238, 0.4);
  }
}

.call-mic {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  padding: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.call-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
}

.call-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.call-btn svg {
  width: 16px;
  height: 16px;
}

.call-btn-off {
  background: rgba(239, 68, 68, 0.8);
}

.call-btn-share {
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
  align-content: start;
}

.market-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.market-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.market-card strong {
  font-size: 0.64rem;
}

.market-card span {
  font-size: 0.62rem;
  color: #93c5fd;
  font-weight: 700;
}

.market-note {
  margin-top: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
}

.mini-map {
  position: relative;
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.16), transparent 55%),
    linear-gradient(135deg, #16213b, #0d1426);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-map::before,
.mini-map::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
}

.mini-map::before {
  left: 0;
  right: 0;
  top: 42%;
  height: 10px;
  transform: rotate(-8deg);
}

.mini-map::after {
  top: 0;
  bottom: 0;
  left: 46%;
  width: 8px;
  transform: rotate(12deg);
}

.mini-road {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 24%;
  height: 6px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.25);
  transform: rotate(6deg);
}

.pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #ef4444;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.pin-a {
  left: 22%;
  top: 30%;
}
.pin-b {
  left: 64%;
  top: 22%;
  background: #f59e0b;
}
.pin-c {
  left: 68%;
  top: 62%;
  background: #10b981;
}
.pin-d {
  left: 34%;
  top: 68%;
  background: #3b82f6;
}

.mini-tasks {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.64rem;
}

.mini-tasks strong {
  font-size: 0.68rem;
}

.mini-tasks span {
  color: #b6c2d6;
}

/* Плавающие плашки вокруг смартфона */
.float-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 25, 45, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  color: #dbe4f3;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  animation: float 7s ease-in-out infinite alternate;
  will-change: transform;
}

.float-chip strong {
  color: #fff;
}

.chip-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.25);
  color: #93c5fd;
}

.chip-ico svg {
  width: 14px;
  height: 14px;
}

.chip-1 {
  right: -10%;
  top: 9%;
  animation-delay: -1s;
}

.chip-2 {
  left: -32%;
  top: 42%;
  animation-delay: -3.5s;
}

.chip-3 {
  left: -18%;
  bottom: 18%;
  animation-delay: -5s;
}

@keyframes float {
  from {
    transform: translate3d(0, -7px, 0);
  }
  to {
    transform: translate3d(0, 9px, 0);
  }
}

.scene-tabs {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 14, 26, 0.55);
  backdrop-filter: blur(14px);
}

.scene-tabs button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #9ca3af;
  transition: color 0.25s ease, background 0.25s ease;
}

.scene-tabs button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1a56db, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Бегущая строка */
.marquee {
  position: relative;
  z-index: 2;
  margin-top: clamp(18px, 4vw, 46px);
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track span {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c3cfe2;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ── Блок 2: один InfoPoint ────────────────────────────────────────────── */

.one-app {
  background: var(--bg-alt);
}

.one-app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}

.one-app-stage {
  position: relative;
  height: clamp(340px, 42vw, 480px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.14), transparent 58%),
    var(--bg-elevated-2);
  overflow: hidden;
}

.app-tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 92px;
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--soft-shadow);
  color: var(--text-soft);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
}

.app-tile svg {
  width: 26px;
  height: 26px;
  color: var(--primary-light);
}

.app-tile em {
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  color: var(--text-muted);
}

.tile-1 {
  left: 18%;
  top: 20%;
}
.tile-2 {
  left: 42%;
  top: 11%;
}
.tile-3 {
  left: 68%;
  top: 17%;
}
.tile-4 {
  left: 83%;
  top: 39%;
}
.tile-5 {
  left: 78%;
  top: 68%;
}
.tile-6 {
  left: 57%;
  top: 83%;
}
.tile-7 {
  left: 30%;
  top: 82%;
}
.tile-8 {
  left: 13%;
  top: 55%;
}

.one-app-stage.is-merged .app-tile {
  opacity: 0;
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.core-halo {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45), transparent 65%);
  filter: blur(24px);
  opacity: 0.7;
  transition: transform 0.9s var(--ease-out), opacity 0.9s ease;
}

.one-app-stage.is-merged .core-halo {
  transform: scale(1.35);
  opacity: 1;
  animation: core-pulse 1.9s ease-in-out infinite;
}

@keyframes core-pulse {
  0%,
  100% {
    transform: scale(1.24);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.46);
    opacity: 1;
  }
}

.core-logo {
  position: relative;
  display: block;
  width: 74px;
  height: 90px;
  background: currentColor;
  color: var(--primary-light);
  -webkit-mask: url('../images/logo.svg') center / contain no-repeat;
  mask: url('../images/logo.svg') center / contain no-repeat;
  filter: drop-shadow(0 18px 40px rgba(37, 99, 235, 0.55));
  transition: transform 0.9s var(--ease-out);
}

.one-app-stage.is-merged .core-logo {
  transform: scale(1.12);
}

.core-label {
  position: relative;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.one-app-copy h2 {
  max-width: 20ch;
}

/* ── Блок 3: Bento ─────────────────────────────────────────────────────── */

.bento-section {
  overflow: hidden;
}

.bento-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--pattern-color);
  -webkit-mask-image: url('../images/logo.svg');
  mask-image: url('../images/logo.svg');
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 120px auto;
  mask-size: 120px auto;
  opacity: 0.5;
}

.bento {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bento-card {
  padding: clamp(18px, 2.2vw, 26px);
  min-height: 240px;
  transition: var(--transition-theme), transform 0.35s var(--ease-out), border-color 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.bento-tasks {
  grid-column: span 2;
}

.task-bubble {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bubble-in);
  border: 1px solid var(--border);
}

.task-bubble-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.task-bubble-head strong {
  font-size: 0.9rem;
}

.task-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
}

.task-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.task-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.task-box svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.task-row input:checked + .task-box {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.task-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.task-row input:checked ~ .task-text {
  text-decoration: line-through;
  opacity: 0.55;
}

.task-row input:focus-visible + .task-box {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

.task-progress {
  height: 6px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--input-fill);
  overflow: hidden;
}

.task-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--success));
  transition: width 0.45s var(--ease-out);
}

.route-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--input-fill);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-soft);
}

.route-status .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.route-status.is-ok .status-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.route-status.is-ok {
  color: var(--text);
}

.voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bubble-in);
  min-height: 46px;
}

.voice-play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
}

.voice-play svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  height: 22px;
  overflow: hidden;
}

.voice-wave i {
  width: 3px;
  flex: none;
  height: 30%;
  border-radius: 3px;
  background: var(--primary-light);
  animation: wave 1.1s ease-in-out infinite alternate;
}

.voice-wave i:nth-child(2n) {
  animation-delay: -0.25s;
}
.voice-wave i:nth-child(3n) {
  animation-delay: -0.5s;
}
.voice-wave i:nth-child(5n) {
  animation-delay: -0.75s;
}

@keyframes wave {
  from {
    height: 18%;
    opacity: 0.55;
  }
  to {
    height: 88%;
    opacity: 1;
  }
}

.voice-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.transcript-btn {
  min-width: 40px;
  min-height: 46px;
  padding: 4px 8px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--input-fill);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text);
}

.transcript-btn[aria-expanded='true'] {
  background: rgba(37, 99, 235, 0.18);
  color: var(--primary-light);
}

.transcript {
  margin: 10px 0 0;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-style: italic;
  animation: toast-in 0.3s var(--ease-out);
}

.call-strip {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.call-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  font-weight: 800;
  color: var(--text-soft);
}

.call-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-avatar.speaking {
  box-shadow: 0 0 0 2px var(--success);
  animation: avatar-glow 2s ease-in-out infinite;
}

@keyframes avatar-glow {
  50% {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
  }
}

.call-avatar.more {
  font-size: 0.8rem;
}

.mini-features {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.mini-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-features svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
}

.ai-chat {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--bubble-in);
  border: 1px solid var(--border);
}

.ai-msg {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.4;
}

.ai-user {
  justify-self: end;
  max-width: 90%;
  background: var(--bubble-out);
  color: var(--text);
}

html[data-theme='dark'] .ai-user {
  color: #fff;
}

.ai-bot {
  background: var(--bg-elevated-2);
  color: var(--text-soft);
}

.typing {
  display: inline-flex;
  gap: 3px;
  margin-right: 8px;
  vertical-align: middle;
}

.typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: typing 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.story-rings {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  overflow: hidden;
}

.story-ring {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    var(--success) 0 24%,
    transparent 24% 30%,
    var(--success) 30% 58%,
    transparent 58% 64%,
    var(--success) 64% 100%
  );
}

.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-elevated);
}

.story-add {
  background: var(--input-fill);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
  font-size: 1.3rem;
  font-weight: 700;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.story-tags span {
  font-size: 0.76rem;
  padding: 5px 10px;
}

/* ── Блок 4: игры ──────────────────────────────────────────────────────── */

.games-section {
  background: var(--bg-alt);
}

.games-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.games-copy h2 {
  max-width: 20ch;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.game-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  transition: transform 0.25s var(--ease-out), border-color 0.25s ease, background 0.25s ease;
}

.game-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  background: var(--bg-elevated-2);
}

.game-glyph {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.25), rgba(34, 211, 238, 0.16));
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.ttt-panel {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(18px);
  box-shadow: var(--card-shadow);
}

.ttt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ttt-head h3 {
  margin: 0;
}

.ttt-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ttt-scores span {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-fill);
}

.ttt-scores strong {
  color: var(--text);
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
}

.ttt-board button {
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.16s var(--ease-out);
  min-width: 44px;
  min-height: 44px;
}

.ttt-board button:hover:not(:disabled) {
  border-color: rgba(37, 99, 235, 0.45);
  background: rgba(37, 99, 235, 0.08);
}

.ttt-board button:disabled {
  cursor: default;
}

.ttt-board button.is-x {
  color: var(--primary-light);
}

.ttt-board button.is-o {
  color: var(--success);
}

.ttt-board button.is-win {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  animation: win-pop 0.4s var(--ease-out);
}

@keyframes win-pop {
  50% {
    transform: scale(1.06);
  }
}

.ttt-status {
  margin: 14px 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-soft);
  min-height: 1.4em;
}

/* ── Блок 5: город ─────────────────────────────────────────────────────── */

.city-panels {
  display: grid;
  gap: clamp(34px, 6vw, 72px);
}

.city-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.city-panel + .city-panel {
  border-top: 1px solid var(--border);
  padding-top: clamp(28px, 5vw, 56px);
}

.city-panel.is-reversed .city-copy {
  order: 2;
}

.city-panel.is-reversed .city-visual {
  order: 1;
}

.city-copy h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
}

.city-visual {
  min-width: 0;
}

.compare {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
}

.compare-layer {
  position: absolute;
  inset: 0;
}

.compare-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.compare-after {
  clip-path: inset(0 0 0 var(--pos, 50%));
}

.blur-patch {
  position: absolute;
  display: block;
  border-radius: 6px;
  background: rgba(120, 130, 150, 0.18);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.patch-a {
  left: 11%;
  top: 55%;
  width: 15%;
  height: 13%;
}

.patch-b {
  left: 73%;
  top: 54%;
  width: 15%;
  height: 14%;
}

.compare-tag {
  position: absolute;
  top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.compare-before .compare-tag {
  left: 12px;
}

.compare-after .compare-tag {
  right: 12px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 2px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.65);
  cursor: ew-resize;
  touch-action: none;
}

.compare-handle::before,
.compare-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
}

.compare-handle::before {
  top: 8px;
  border-top-color: #fff;
}

.compare-handle::after {
  bottom: 8px;
  border-bottom-color: #fff;
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.compare-handle span::before,
.compare-handle span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
}

.compare-handle span::before {
  left: 8px;
  transform: translateY(-50%);
  border-right-color: var(--primary);
}

.compare-handle span::after {
  right: 8px;
  transform: translateY(-50%);
  border-left-color: var(--primary);
}

.visual-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.visual-caption svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.map-scene {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.16), transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(16, 185, 129, 0.12), transparent 55%),
    var(--bg-elevated-2);
}

.map-roads {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(90deg, transparent 46%, var(--border-strong) 46%, var(--border-strong) 47%, transparent 47%),
    linear-gradient(0deg, transparent 58%, var(--border-strong) 58%, var(--border-strong) 59%, transparent 59%),
    linear-gradient(28deg, transparent 30%, rgba(59, 130, 246, 0.22) 30%, rgba(59, 130, 246, 0.22) 31%, transparent 31%),
    linear-gradient(-18deg, transparent 72%, rgba(16, 185, 129, 0.18) 72%, rgba(16, 185, 129, 0.18) 73%, transparent 73%);
  opacity: 0.8;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
  border-radius: 50% 50% 50% 0;
  background: var(--danger);
  border: 2px solid #fff;
  rotate: -45deg;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease, filter 0.25s ease;
  min-width: 30px;
  min-height: 30px;
}

.map-pin::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: inherit;
}

.map-pin > span {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

.map-pin:hover,
.map-pin.is-active {
  transform: translate(-50%, -100%) scale(1.14);
}

.map-pin.is-open {
  background: var(--success);
}

.map-pin.is-closed {
  background: var(--text-muted);
  opacity: 0.45;
  filter: grayscale(0.6);
}

.place-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--soft-shadow);
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}

.place-card img {
  width: 78px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}

.place-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.place-info strong {
  font-size: 0.92rem;
}

.place-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--rating);
  font-weight: 800;
}

.place-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  stroke: none;
}

.place-status {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--success);
}

.place-status.is-closed {
  color: var(--danger);
}

.feed-visual {
  display: grid;
  gap: 14px;
}

.feed-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  box-shadow: var(--soft-shadow);
}

.feed-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feed-author {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feed-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--input-fill);
  font-weight: 800;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.like-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease-out);
}

.like-btn[aria-pressed='true'] {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
}

.like-btn[aria-pressed='true'] svg {
  fill: currentColor;
  transform: scale(1.15);
}

.like-btn.is-burst svg {
  animation: heart-burst 0.45s var(--ease-out);
}

@keyframes heart-burst {
  40% {
    transform: scale(1.45) rotate(-6deg);
  }
  70% {
    transform: scale(0.92) rotate(3deg);
  }
}

.whisper-card {
  position: relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--bg-elevated-2);
}

.whisper-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #a78bfa;
  font-size: 0.72rem;
  font-weight: 800;
}

.whisper-text {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  filter: blur(6px);
  opacity: 0.55;
  user-select: none;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.whisper-card.is-revealed .whisper-text {
  filter: none;
  opacity: 1;
  user-select: text;
}

.whisper-reveal {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.8rem;
}

.planner-visual {
  display: grid;
  gap: 14px;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.week-strip button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 56px;
  padding: 8px 2px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.week-strip button i {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-style: normal;
  font-size: 0.62rem;
}

.week-strip button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.week-strip button.is-active i {
  background: rgba(255, 255, 255, 0.25);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--border-strong);
}

.plan-time {
  flex: none;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-light);
  font-variant-numeric: tabular-nums;
}

.plan-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

.plan-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.plan-check svg {
  width: 15px;
  height: 15px;
  stroke-width: 3;
}

.timeline-item.is-done {
  opacity: 0.65;
}

.timeline-item.is-done .plan-text {
  text-decoration: line-through;
}

.timeline-item.is-done .plan-check {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.planner-counter {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-muted);
}

/* ── Блок 6: доверие ───────────────────────────────────────────────────── */

.trust-section {
  background: var(--bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.trust-card {
  padding: 22px;
}

.trust-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary-light);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-card h3 {
  margin-bottom: 6px;
}

.trust-card p {
  margin: 0;
  font-size: 0.86rem;
}

.creator-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 22px;
}

.creator-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.creator-copy blockquote {
  margin: 0 0 14px;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 600;
}

.creator-sign {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.creator-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.creator-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.share-card h3 {
  margin-bottom: 4px;
}

.share-card p {
  margin: 0;
  font-size: 0.88rem;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-fill);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-soft);
  transition: transform 0.2s var(--ease-out), border-color 0.2s ease;
}

.share-link:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.share-link.tg {
  color: #38bdf8;
}
.share-link.wa {
  color: #25d366;
}
.share-link.vk {
  color: #60a5fa;
}

.faq-block h2 {
  margin-bottom: 22px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.is-open {
  border-color: var(--border-strong);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
}

.faq-q:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--primary-light);
  border-radius: 12px;
}

.faq-q svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-muted);
  transform: rotate(90deg);
  transition: transform 0.3s var(--ease-out), color 0.2s ease;
}

.faq-item.is-open .faq-q svg {
  transform: rotate(-90deg);
  color: var(--primary-light);
}

.faq-a {
  padding: 0 18px 16px;
}

.faq-a p {
  margin: 0;
  font-size: 0.9rem;
}

.faq-a a {
  color: var(--primary-light);
  text-decoration: underline;
}

/* ── Блок 7: скачать ───────────────────────────────────────────────────── */

.download-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(26, 86, 219, 0.28), transparent 65%),
    var(--bg);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 20px;
  text-align: center;
}

.store-card h3 {
  margin: 0;
}

.store-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
}

.store-logo.rustore {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.3);
}
.store-logo.googleplay {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}
.store-logo.appstore {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .store-logo.rustore {
  color: #1d4ed8;
}

html[data-theme='light'] .store-logo.googleplay {
  color: #047857;
}

html[data-theme='light'] .store-logo.appstore {
  color: #0f172a;
  background: #e5e7eb;
  border-color: #d1d5db;
}

html[data-theme='light'] .like-btn[aria-pressed='true'] {
  color: #be123c;
  border-color: rgba(190, 18, 60, 0.35);
  background: rgba(190, 18, 60, 0.08);
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
}

.qr-box {
  color: #0f172a;
  background: #ffffff;
  padding: 9px;
  border-radius: 10px;
  width: 168px;
  height: 168px;
}

.qr-box svg {
  width: 100%;
  height: 100%;
}

.qr-box svg * {
  stroke: none;
}

.qr-reveal {
  display: none;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--input-fill);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.qr-note {
  margin: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.store-card .btn {
  margin-top: auto;
}

.apk-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  margin-top: 18px;
}

.apk-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.apk-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--primary-light);
}

.apk-icon svg {
  width: 24px;
  height: 24px;
}

.apk-copy h3 {
  margin-bottom: 3px;
}

.apk-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.download-note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.download-note a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Подвал ────────────────────────────────────────────────────────────── */

.footer {
  padding: clamp(40px, 6vw, 72px) 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: clamp(24px, 4vw, 52px);
}

.footer-brand p {
  margin: 14px 0;
  font-size: 0.88rem;
  max-width: 34ch;
}

.theme-row-footer {
  max-width: 240px;
  margin-bottom: 14px;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer h3 {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 800;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.footer-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
}

.footer-nav > a:hover {
  color: var(--primary-light);
}

.legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:hover {
  color: var(--text);
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-row > a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-soft);
}

.contact-row > a:hover {
  color: var(--primary-light);
}

.contact-row svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--primary-light);
}

.contact-row span {
  overflow-wrap: anywhere;
}

.footer-legal-note {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}
