/* Emberson — сайт. Тёмная тема, кинофон океана, акцент #8ae9ff, Inter Tight + Inter. */

:root {
  --bg: #090b0f;
  --panel: rgba(12, 15, 20, 0.78);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f7fa;
  --muted: rgba(226, 234, 242, 0.7);
  --dim: rgba(205, 216, 228, 0.5);
  --accent: #8ae9ff;
  --ink: #06131a;
  --wrap: 1160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: "Inter Tight", Inter, sans-serif; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }

/* ---------- фон: ролик океана на всех страницах ---------- */

.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg) url("ocean.jpg") center / cover no-repeat; }
.bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6) saturate(1.08); }
.bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.55) 0%, rgba(9, 11, 15, 0) 26%, rgba(9, 11, 15, 0) 52%, rgba(9, 11, 15, 0.9) 90%, var(--bg) 100%),
    radial-gradient(95% 75% at 50% 45%, transparent 40%, rgba(9, 11, 15, 0.7) 100%);
}
/* на документах и в кабинете ролик темнее, чтобы не спорил с текстом */
.page .bg video, .cab-page .bg video { filter: brightness(0.42) saturate(1.05); }
.page .bg::after, .cab-page .bg::after {
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.7) 0%, rgba(9, 11, 15, 0.35) 30%, rgba(9, 11, 15, 0.55) 70%, rgba(9, 11, 15, 0.92) 100%),
    radial-gradient(90% 70% at 50% 40%, transparent 30%, rgba(9, 11, 15, 0.75) 100%);
}

/* ---------- кнопки ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 28px; border-radius: 16px; border: 1px solid transparent; font: 700 16px/1 Inter, sans-serif; cursor: pointer; white-space: nowrap; transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.2s, border-color 0.2s, color 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 14px 48px -14px rgba(138, 233, 255, 0.85); }
.btn--accent:hover { box-shadow: 0 18px 56px -12px rgba(138, 233, 255, 1); }
.btn--glass { background: rgba(14, 17, 23, 0.55); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { border-color: rgba(138, 233, 255, 0.45); }
.btn--sm { height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- шапка ---------- */

.pill {
  position: fixed; z-index: 10; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; max-width: calc(100% - 24px); padding: 7px 7px 7px 16px; border-radius: 18px;
  background: rgba(14, 17, 23, 0.6); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.9);
  transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: drop 0.8s var(--ease) both;
}
.pill.is-scrolled { background: rgba(12, 15, 20, 0.84); border-color: rgba(255, 255, 255, 0.13); box-shadow: 0 22px 60px -20px rgba(0, 0, 0, 0.95); }
.logo { display: flex; align-items: center; gap: 9px; font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; }
.logo img { width: 22px; height: 22px; transition: transform 0.6s var(--ease); }
.logo:hover img { transform: rotate(-14deg) scale(1.08); }
.pill .logo { margin-right: 14px; }
.pill nav { display: flex; gap: 2px; }
.pill nav a { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.pill nav a:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.pill nav svg, .pill .pill__go svg { width: 15px; height: 15px; flex: none; }
.pill nav svg { opacity: 0.8; }
.pill .pill__go { display: flex; align-items: center; gap: 7px; max-width: 200px; margin-left: 10px; padding: 9px 15px; border-radius: 12px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.pill .pill__go span { overflow: hidden; text-overflow: ellipsis; }
.pill .pill__go:hover { box-shadow: 0 10px 34px -10px rgba(138, 233, 255, 0.9); transform: translateY(-1px); }

/* ---------- первый экран ---------- */

.hero { position: relative; display: flex; flex-direction: column; align-items: center; padding: 148px 20px 40px; text-align: center; }
.mark { width: 68px; height: 68px; margin-bottom: 28px; filter: drop-shadow(0 0 24px rgba(138, 233, 255, 0.6)); }
.hero h1 { font-size: clamp(50px, 9vw, 128px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; text-shadow: 0 10px 60px rgba(0, 0, 0, 0.5); }
.hero h1 span {
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%) 0 0 / 250% 100% no-repeat, linear-gradient(180deg, #ffffff 10%, var(--accent) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s ease-in-out 1.4s infinite;
}
.lead { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: 21px; line-height: 1.45; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.where { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.where span { padding: 8px 14px; border-radius: 999px; background: rgba(14, 17, 23, 0.5); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* ---------- блоки под первым экраном ---------- */

.blocks { background: linear-gradient(180deg, rgba(9, 11, 15, 0) 0, rgba(9, 11, 15, 0.82) 420px, rgba(9, 11, 15, 0.94) 100%); }
.block { padding: 80px 0; }
.block:first-child { padding-top: 40px; }
.block + .block { padding-top: 24px; }
.head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.head h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.plan {
  --h: 195;
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 22px 20px 20px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, hsla(var(--h), 85%, 62%, 0.32), hsla(var(--h), 70%, 30%, 0.1) 55%, rgba(255, 255, 255, 0.02)), rgba(14, 17, 23, 0.72);
  border: 1px solid hsla(var(--h), 90%, 75%, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.plan::before {
  content: ""; position: absolute; right: -40px; top: 18px; width: 200px; height: 200px; opacity: 0.09; pointer-events: none;
  background: url("logo.png") center / contain no-repeat;
  transition: transform 0.7s var(--ease), opacity 0.7s;
}
.plan:hover { transform: translateY(-6px); border-color: hsla(var(--h), 90%, 78%, 0.42); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 34px 70px -42px hsla(var(--h), 90%, 62%, 0.9); }
.plan:hover::before { transform: rotate(-14deg) scale(1.1); opacity: 0.16; }
.plan__label { color: hsl(var(--h) 90% 80%); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.plan__term { margin-top: auto; font-family: "Inter Tight", Inter, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.plan__price { margin-top: 6px; color: hsl(var(--h) 95% 82%); font-family: "Inter Tight", Inter, sans-serif; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.plan__per { color: var(--dim); font-size: 13px; }
.plan .btn { margin-top: 18px; }
.plan--best { border-color: rgba(138, 233, 255, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 30px 80px -40px rgba(138, 233, 255, 0.55); }
.plan--best::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(138, 233, 255, 0.16) 50%, transparent 70%) 0 0 / 250% 100% no-repeat; animation: shine 6s ease-in-out 2s infinite; }
.note { margin-top: 26px; color: var(--dim); font-size: 14px; text-align: center; }
.note a, .faq a, .doc a { color: var(--accent); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 26px 24px; border-radius: 22px; background: rgba(14, 17, 23, 0.6); border: 1px solid var(--line); transition: border-color 0.35s, transform 0.4s var(--ease), background-color 0.35s; }
.step:hover { border-color: rgba(138, 233, 255, 0.3); background-color: rgba(18, 24, 31, 0.7); transform: translateY(-3px); }
.step b { color: var(--accent); font-family: "Inter Tight", Inter, sans-serif; font-size: 15px; font-weight: 800; }
.step h3 { margin-top: 14px; font-size: 22px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }

.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; transition: color 0.2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease), border-color 0.2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); border-color: var(--accent); }
.faq .answer { padding: 0 4px 24px; color: var(--muted); }
.faq details[open] .answer { animation: rise 0.45s var(--ease) both; }
.faq .answer p + p { margin-top: 8px; }
.faq code, .step code { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 0.9em; word-break: break-all; }

/* ---------- документы ---------- */

.doc { max-width: 860px; margin: 120px auto 80px; padding: 48px 52px; border-radius: 26px; background: rgba(12, 15, 20, 0.86); border: 1px solid var(--line); animation: rise 0.7s var(--ease) both; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; }
.doc__meta { margin-top: 12px; color: var(--dim); font-size: 14px; }
.doc .lead { max-width: none; margin-top: 22px; color: var(--text); font-size: 16px; line-height: 1.6; }
.doc h2 { margin: 36px 0 12px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; }
.doc p + p { margin-top: 10px; }
.doc ol, .doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--dim); }

/* ---------- подвал ---------- */

.foot { padding: 64px 0 34px; background: rgba(7, 9, 12, 0.96); border-top: 1px solid var(--line); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.foot__brand p { margin-top: 14px; color: var(--dim); font-size: 14px; }
.foot__col { display: flex; flex-direction: column; gap: 9px; }
.foot__col h3 { margin-bottom: 4px; font-family: Inter, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.foot__col a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.foot__col a:hover { color: var(--text); }
.foot__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ---------- cookie ---------- */

.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 14px; max-width: 470px; padding: 14px 14px 14px 18px; border-radius: 16px; background: rgba(16, 19, 25, 0.92); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: rise 0.6s var(--ease) 0.8s both; }
.cookie[hidden] { display: none; }
.cookie p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.cookie a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- движение ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes glow { 0%, 100% { filter: drop-shadow(0 0 18px rgba(138, 233, 255, 0.45)); } 50% { filter: drop-shadow(0 0 34px rgba(138, 233, 255, 0.85)); } }
@keyframes shine { 0% { background-position: 150% 0, 0 0; } 45%, 100% { background-position: -60% 0, 0 0; } }

.hero > * { animation: rise 0.9s var(--ease) both; }
.hero > :nth-child(2) { animation-delay: 0.08s; }
.hero > :nth-child(3) { animation-delay: 0.16s; }
.hero > :nth-child(4) { animation-delay: 0.24s; }
.hero > :nth-child(5) { animation-delay: 0.32s; }
.hero > .mark { animation: rise 0.9s var(--ease) both, float 6s ease-in-out 1s infinite, glow 6s ease-in-out 1s infinite; }
.plan--best::after { background-position: 150% 0; }

/* появление при прокрутке: класс .rv ставит app.js, без скрипта всё видно сразу */
.rv { opacity: 0; }
.rv.is-in { opacity: 1; animation: rise 0.8s var(--ease) var(--d, 0s) backwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; }
}

/* ---------- узкие экраны ---------- */

@media (max-width: 1100px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .pill { gap: 2px; padding-left: 12px; }
  .pill .logo { margin-right: 6px; }
  .pill .logo span, .pill nav svg, .pill nav .hide-sm { display: none; }
  .pill nav a { padding: 9px 9px; }
  .pill .pill__go { margin-left: 4px; padding: 9px 12px; max-width: 130px; }
  .hero { padding: 128px 16px 32px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { min-height: 240px; }
  .plan--best { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .block { padding: 64px 0; }
  .block:first-child { padding-top: 32px; }
  .doc { margin: 100px 16px 56px; padding: 30px 22px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .where { display: none; }
  .plan__price { font-size: 28px; }
  .cookie { right: 16px; flex-direction: column; align-items: stretch; }
}
