:root {
  --bg: #120f1f;
  --bg2: #1a1530;
  --ink: #eeeaf7;
  --soft: #b0a8c6;
  --line: rgba(255, 255, 255, .09);
  --gold: #e3c27a;
  --serif: "Noto Serif", "PT Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* звёздное небо */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(120, 90, 210, .28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(70, 60, 160, .22), transparent 60%),
    linear-gradient(180deg, #120f1f 0%, #16122a 50%, #120f1f 100%);
}
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 27% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 41% 12%, #fff, transparent),
    radial-gradient(1px 1px at 58% 44%, #fff, transparent),
    radial-gradient(1px 1px at 66% 81%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 27%, #fff, transparent),
    radial-gradient(1px 1px at 89% 66%, #fff, transparent),
    radial-gradient(1px 1px at 6% 88%, #fff, transparent),
    radial-gradient(1px 1px at 35% 92%, #fff, transparent),
    radial-gradient(1px 1px at 94% 8%, #fff, transparent);
  background-size: 600px 600px;
  opacity: .45;
}
.sky::after {
  background-size: 900px 900px; background-position: 300px 200px; opacity: .3;
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .1; } to { opacity: .45; } }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* шапка */
header.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(18, 15, 31, .72); border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.logo svg { width: 28px; height: 28px; }
nav a { margin-left: 22px; text-decoration: none; color: var(--soft); font-size: 15px; }
nav a:hover { color: var(--ink); }

/* первый экран */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.08; margin: 0 auto 22px; max-width: 900px;
}
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p.lead { max-width: 640px; margin: 0 auto; color: var(--soft); font-size: clamp(17px, 2vw, 19px); }
.orbit { display: flex; justify-content: center; gap: 18px; margin: 48px 0 0; flex-wrap: wrap; }
.orbit a {
  display: block; width: 96px; height: 96px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px var(--line);
  transition: transform .3s ease;
}
.orbit a:nth-child(odd) { transform: translateY(10px) rotate(-4deg); }
.orbit a:nth-child(even) { transform: translateY(-6px) rotate(3deg); }
.orbit a:hover { transform: translateY(-12px) scale(1.06); }
.perks { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 52px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* приложения */
.apps { padding: 24px 0 40px; }
.app {
  --accent: #e3c27a; --tint: #2a2140; --glow: rgba(160, 120, 255, .35);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  margin: 0 0 36px; padding: 56px;
  border-radius: 36px; border: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 100% 0%, var(--glow), transparent 65%),
    linear-gradient(160deg, var(--tint), rgba(18, 15, 31, .6));
}
.app.flip .info { order: 2; }
.app.flip { background:
    radial-gradient(700px 420px at 0% 0%, var(--glow), transparent 65%),
    linear-gradient(200deg, var(--tint), rgba(18, 15, 31, .6)); }
.app .head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.app .icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); flex: none; }
.app .kind { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.app h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0; }
.app .tagline { font-size: 19px; margin: 0 0 18px; }
.app ul { list-style: none; padding: 0; margin: 0 0 26px; color: var(--soft); }
.app li { position: relative; padding-left: 22px; margin: 7px 0; }
.app li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 12px; line-height: 27px; }
.app li b { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px; text-decoration: none; font-weight: 600; font-size: 15px;
  background: var(--accent); color: #17122a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.btn svg { width: 20px; height: 20px; }
.link-soft { color: var(--soft); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.link-soft:hover { color: var(--ink); }

/* телефоны */
.phones { position: relative; height: 520px; }
.phone {
  position: absolute; top: 50%; left: 50%; width: 220px;
  border-radius: 26px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .12);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.phone img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-150px) rotate(-8deg) scale(.86); z-index: 1; }
.phone:nth-child(2) { transform: translate(-50%, -50%); z-index: 3; }
.phone:nth-child(3) { transform: translate(-50%, -50%) translateX(150px) rotate(8deg) scale(.86); z-index: 2; }
.app:hover .phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-175px) rotate(-10deg) scale(.88); }
.app:hover .phone:nth-child(3) { transform: translate(-50%, -50%) translateX(175px) rotate(10deg) scale(.88); }

.lumina { --accent: #e0bd6a; --tint: #241a36; --glow: rgba(170, 110, 230, .38); }
.sonnik { --accent: #c9b8ff; --tint: #211d47; --glow: rgba(110, 100, 230, .4); }
.lunar  { --accent: #f1dfa6; --tint: #2a2550; --glow: rgba(175, 160, 240, .36); }
.garden { --accent: #9fd8a8; --tint: #12291f; --glow: rgba(70, 170, 110, .32); }
.garden .btn, .lunar .btn, .sonnik .btn { color: #16131f; }

/* принципы */
.about { padding: 56px 0 24px; }
.about h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 42px); text-align: center; margin: 0 0 40px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.card .sym { font-size: 26px; color: var(--gold); line-height: 1; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }

/* подвал */
footer { margin-top: 72px; border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--soft); font-size: 15px; }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
footer h4 { margin: 0 0 12px; color: var(--ink); font-size: 15px; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .about-dev { max-width: 320px; margin: 12px 0 0; }
footer .copy { margin-top: 36px; font-size: 13px; opacity: .7; }

/* появление при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.on { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .app, .app.flip { grid-template-columns: 1fr; padding: 40px 28px; gap: 28px; }
  .app.flip .info { order: 0; }
  .phones { height: 440px; }
  .phone { width: 190px; }
  .phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-125px) rotate(-8deg) scale(.86); }
  .phone:nth-child(3) { transform: translate(-50%, -50%) translateX(125px) rotate(8deg) scale(.86); }
  .app:hover .phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-125px) rotate(-8deg) scale(.86); }
  .app:hover .phone:nth-child(3) { transform: translate(-50%, -50%) translateX(125px) rotate(8deg) scale(.86); }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav a:not(:first-child) { display: none; }
  .hero { padding: 64px 0 48px; }
  .orbit { gap: 12px; }
  .orbit a { width: 68px; height: 68px; border-radius: 18px; }
  .app, .app.flip { padding: 30px 20px; border-radius: 28px; }
  .app .icon { width: 64px; height: 64px; border-radius: 17px; }
  .phones { height: 360px; }
  .phone { width: 150px; border-radius: 20px; }
  .phone:nth-child(1), .app:hover .phone:nth-child(1) { transform: translate(-50%, -50%) translateX(-92px) rotate(-8deg) scale(.84); }
  .phone:nth-child(3), .app:hover .phone:nth-child(3) { transform: translate(-50%, -50%) translateX(92px) rotate(8deg) scale(.84); }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .orbit a, .btn { transition: none; }
}

/* страницы политик */
.policy-hero { max-width: 860px; margin: 0 auto; padding: 64px 0 36px; }
.policy-hero .back { display: inline-block; margin-bottom: 28px; color: var(--soft); text-decoration: none; font-size: 15px; }
.policy-hero .back:hover { color: var(--ink); }
.policy-hero .head { display: flex; align-items: center; gap: 20px; }
.policy-hero .icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); flex: none; }
.policy-hero .kind { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.policy-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.1; margin: 0; }
.policy {
  max-width: 860px; margin: 0 auto; padding: 48px 56px;
  border-radius: 32px; border: 1px solid var(--line);
  background: linear-gradient(170deg, var(--tint), rgba(18, 15, 31, .7));
  color: #ddd7ea;
}
.policy h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: 24px; line-height: 1.25; margin: 40px 0 12px; }
.policy h3 { color: var(--ink); font-size: 18px; margin: 26px 0 8px; }
.policy > :first-child { margin-top: 0; }
.policy p { margin: 0 0 14px; }
.policy ul { padding-left: 1.2em; margin: 0 0 16px; }
.policy li { margin: 6px 0; }
.policy li::marker { color: var(--accent); }
.policy a { color: var(--accent); word-break: break-word; }
.policy b, .policy strong { color: var(--ink); }
.policy code { background: rgba(255, 255, 255, .07); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.policy .meta { color: var(--soft); font-size: 15px; }
.policy .summary {
  margin: 24px 0; padding: 22px 26px; border-radius: 20px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-left: 3px solid var(--accent);
}
.policy .summary h2 { margin-top: 0; font-size: 20px; }
.policy .summary ul, .policy .summary p:last-child { margin-bottom: 0; }
.policy .table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.policy table { border-collapse: collapse; width: 100%; font-size: 15px; }
.policy th, .policy td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.policy th { background: rgba(255, 255, 255, .05); color: var(--ink); font-weight: 600; }
.policy .note { padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.contact { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
@media (max-width: 560px) {
  .policy-hero { padding: 40px 0 24px; }
  .policy-hero .head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .policy-hero .icon { width: 64px; height: 64px; border-radius: 17px; }
  .policy-hero h1 { font-size: 27px; hyphens: auto; overflow-wrap: anywhere; }
  .policy { padding: 28px 20px; border-radius: 24px; }
  .policy h2 { font-size: 21px; }
}
