/* LiveMind — тот же язык, что у приложения и скриншотов витрины:
   тёмный фон со свечением в цветах дня, звёзды, Golos Text, персиковый акцент. */

@font-face {
  font-family: "Golos";
  src: url("GolosText-VF.ttf") format("truetype");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #17181A;
  --bg-deep: #111214;
  --ink: #EFEAE2;
  --grey: #8A8781;
  --line: #2C2D30;
  --accent: #E4B08E;
  --rose: #B84A6A;
  --coral: #E9876A;
  --gold: #F7D08A;
  --violet: #6A4FB5;
  --sea: #2E6F9E;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font: 400 18px/1.6 "Golos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Небо: свечение и звёзды за всей страницей. */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% 5%, rgba(184, 74, 106, 0.28), transparent 70%),
    radial-gradient(55% 35% at 5% 35%, rgba(233, 135, 106, 0.16), transparent 70%),
    radial-gradient(70% 45% at 50% 100%, rgba(106, 79, 181, 0.22), transparent 72%),
    linear-gradient(180deg, #141518 0%, var(--bg) 55%, #1B1618 100%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(239, 234, 226, .6), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(239, 234, 226, .4), transparent),
    radial-gradient(1.6px 1.6px at 44% 12%, rgba(239, 234, 226, .5), transparent),
    radial-gradient(1px 1px at 63% 30%, rgba(239, 234, 226, .35), transparent),
    radial-gradient(1.3px 1.3px at 78% 16%, rgba(239, 234, 226, .55), transparent),
    radial-gradient(1px 1px at 90% 48%, rgba(239, 234, 226, .35), transparent),
    radial-gradient(1.2px 1.2px at 8% 70%, rgba(239, 234, 226, .4), transparent),
    radial-gradient(1px 1px at 55% 62%, rgba(239, 234, 226, .3), transparent),
    radial-gradient(1.5px 1.5px at 35% 85%, rgba(239, 234, 226, .45), transparent),
    radial-gradient(1px 1px at 82% 80%, rgba(239, 234, 226, .3), transparent);
  animation: twinkle 7s ease-in-out infinite alternate;
}
.sky::after { transform: translate(37%, 23%); animation-delay: -3.5s; opacity: .7; }
@keyframes twinkle { from { opacity: .45; } to { opacity: 1; } }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Шапка */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; letter-spacing: .3px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--grey); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* Рубрика с акцентной чертой — как в приложении. */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 13px; font-weight: 500; letter-spacing: 4px; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 36px; height: 2px; background: var(--accent); border-radius: 1px; }

h1, h2 { font-weight: 400; letter-spacing: -0.03em; margin: 0; }
h1 { font-size: clamp(42px, 6vw, 74px); line-height: 1.05; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
em {
  font-style: normal; font-weight: 500;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent) 45%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: #C9C3BA; font-size: clamp(18px, 2vw, 21px); max-width: 560px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 80px; }
.hero-text { display: flex; flex-direction: column; gap: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 16px 26px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 500; font-size: 17px;
}
.store:hover { text-decoration: none; filter: brightness(1.05); }
.store svg { width: 20px; height: 20px; }
.note { color: var(--grey); font-size: 14px; }

/* Телефоны */
.phones { position: relative; height: 640px; }
.phone {
  position: absolute; width: 280px; aspect-ratio: 1320 / 2868; border-radius: 44px;
  background: #0B0B0C; padding: 9px;
  box-shadow: 0 0 0 1.5px #3A3B3F, 0 40px 90px rgba(0, 0, 0, .55);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; display: block; }
.phone::after {
  content: ""; position: absolute; left: -30%; right: -30%; bottom: -12%; height: 45%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow, rgba(233, 135, 106, .45)), transparent); filter: blur(30px);
}
.phones .phone:nth-child(1) { left: 4%; top: 70px; transform: rotate(-8deg); --glow: rgba(184, 74, 106, .45); }
.phones .phone:nth-child(2) { left: 30%; top: 0; z-index: 2; --glow: rgba(247, 208, 138, .45); }
.phones .phone:nth-child(3) { left: 56%; top: 80px; transform: rotate(8deg); --glow: rgba(106, 79, 181, .5); }

/* Разделы */
section { padding-top: 90px; padding-bottom: 90px; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.feature { border-top: 1px solid var(--line); padding-top: 24px; }
.feature h3 { font-size: 22px; font-weight: 500; margin: 0 0 10px; }
.feature p { margin: 0; color: #B8B2A9; font-size: 17px; }

/* Официальный значок App Store — без изменений, как требует Apple. */
.store-badge { display: inline-block; align-self: flex-start; line-height: 0; }
.store-badge img { height: 60px; width: auto; }
.store-badge:hover { text-decoration: none; opacity: .9; }
.honest .store-badge { align-self: center; }

/* Видео-превью */
.motion { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.motion .section-head { margin-bottom: 0; }
.preview { position: relative; }
.preview video {
  display: block; width: 340px; aspect-ratio: 886 / 1920; border-radius: 34px; background: #111;
  box-shadow: 0 0 0 1px #2C2D30, 0 40px 90px rgba(0, 0, 0, .55);
}
.preview::before {
  content: ""; position: absolute; left: -30%; right: -30%; top: 30%; bottom: -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(233, 135, 106, .35), transparent); filter: blur(40px);
}

/* Контактная форма */
.contact .section-head { margin-bottom: 36px; }
.form { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--grey); letter-spacing: .2px; }
.form label small { color: #5E5C58; font-size: 14px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: rgba(30, 31, 34, .72); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form button { border: none; cursor: pointer; font-family: inherit; }
.form button:disabled { opacity: .5; cursor: progress; }
.form-status { font-size: 15px; color: var(--grey); }
.form-status[data-kind="ok"] { color: #A8D8B0; }
.form-status[data-kind="error"] { color: #E88B7A; }

/* Честно */
.honest { text-align: center; }
.honest h2 { font-size: clamp(40px, 6vw, 72px); }
.honest .lead { margin: 24px auto 34px; }
.honest .store { align-self: center; }

/* Футер */
footer { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--grey); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--grey); }
footer a:hover { color: var(--ink); }

/* Текстовые страницы: политика, поддержка, условия. */
.doc { max-width: 720px; padding-top: 30px; padding-bottom: 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin: 18px 0 8px; }
.doc h2 { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 500; margin: 38px 0 8px; }
.doc p, .doc li { color: #CFC9C0; }
.doc .muted { color: var(--grey); font-size: 15px; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 64px 0; }

/* Появление при прокрутке — мягко, без рывков. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sky::before, .sky::after { animation: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 10px; }
  .phones { height: 520px; }
  .phone { width: 230px; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .form .row { grid-template-columns: 1fr; }
  .motion { grid-template-columns: 1fr; gap: 36px; }
  .preview { justify-self: center; }
  .preview video { width: min(320px, 80vw); }
  .nav-links { gap: 16px; }
}
@media (max-width: 520px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .phones { height: 440px; }
  .phones .phone { width: 190px; }
  .phones .phone:nth-child(1) { left: -2%; }
  .phones .phone:nth-child(3) { left: 50%; }
  .nav-links a:not(.lang) { display: none; }
}
