/* ==================================================================
   Кавер АИ — главная страница и регистрация.
   Формат страницы входа: слева контент с логотипом, справа фотография.
   Цвета, шрифт и скругления — те же, что в приложении (theme/css/glass.css).
   Самостоятельный лист: библиотеки приложения не нужны.
   ================================================================== */
@font-face {
  font-family: "Wix Madefor Display";
  src: url("/theme/fonts/WixMadeforDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #0a0a0b;
  --text: #ededee;
  --text-2: rgba(255, 255, 255, 0.58);
  --text-3: rgba(255, 255, 255, 0.36);
  --fill: rgba(255, 255, 255, 0.06);
  --fill-2: rgba(255, 255, 255, 0.09);
  --fill-3: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.2);
  --brand: #2b2b2e;
  --brand-hover: #353539;
  --font: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --r: 16px;
  --pill: 999px;
  --pad: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ---------- каркас: контент слева, фотография справа ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) min(40vw, 760px); min-height: 100vh; }
.page__main { min-width: 0; border-right: 1px solid var(--line); }
.page__photo {
  position: sticky; top: 0; height: 100vh;
  background: #111 url("/theme/images/back.webp") center / cover no-repeat;
}
.page__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, 0.7) 0%, rgba(10, 10, 11, 0) 35%); pointer-events: none; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 980px) {
  .page { grid-template-columns: 1fr; }
  .page__main { border-right: 0; }
  .page__photo { display: none; }
}

/* ---------- кнопки (как «Войти» на странице входа) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 0; border-radius: var(--pill);
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 600; line-height: 1.2;
  white-space: nowrap;
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--brand-hover); }
.btn:active { transform: scale(0.985); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--fill); }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- первый экран ---------- */
.hero { padding: clamp(28px, 5vh, 56px) 0 clamp(48px, 7vw, 84px); }
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(40px, 9vh, 96px); }
.logo img { width: 200px; height: auto; }
.hero__login { font-size: 14.5px; color: var(--text-2); padding: 10px 18px; border-radius: var(--pill); transition: color .2s, background .2s; }
.hero__login:hover { color: var(--text); background: var(--fill); }
.kicker { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; animation: up .8s var(--ease) both; }
.hero__lead { margin-top: 22px; max-width: 58ch; font-size: clamp(16px, 1.2vw, 18px); color: var(--text-2); animation: up .8s .1s var(--ease) both; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; animation: up .8s .2s var(--ease) both; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 40px; }
.facts > div { padding: 18px 20px; border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.facts dd { font-size: 19px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.facts dd small { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- жанры ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chips li { padding: 8px 14px; border-radius: var(--pill); background: var(--fill); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }

/* ---------- секции ---------- */
.sec { padding: clamp(48px, 7vw, 84px) 0; border-top: 1px solid var(--line); }
.sec__head { margin-bottom: 28px; }
.sec__head h2 { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; }
.sec__head div p { margin-top: 12px; max-width: 60ch; color: var(--text-2); font-size: 16px; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- примеры треков ---------- */
.tracks { display: flex; flex-direction: column; gap: 6px; }
.trk {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 44px; column-gap: 14px; align-items: center;
  padding: 8px 10px 8px 8px;
  border-radius: var(--r);
  background: var(--fill); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.trk::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--p, 0%); background: var(--text); }
.trk:hover { background: var(--fill-2); border-color: var(--line-2); }
.trk__n { display: none; }
.trk__cover { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--fill-2); }
.trk__title { grid-column: 2; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; }
.trk__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.trk__style { grid-column: 2; grid-row: 2; font-size: 13.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: start; }
.trk__plays { grid-column: 3; grid-row: 1 / span 2; font-size: 13px; color: var(--text-3); }
.trk__btn { grid-column: 4; grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--fill-3); transition: background .2s, color .2s; }
.trk__btn:hover, .trk.is-playing .trk__btn { background: #ededee; color: #0a0a0b; }
.trk__btn .i-pause, .trk.is-playing .trk__btn .i-play { display: none; }
.trk.is-playing .trk__btn .i-pause { display: block; }
.tracks__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 22px; }
.tracks__more p { font-size: 14.5px; color: var(--text-2); }
@media (max-width: 520px) { .trk__plays { display: none; } }

/* ---------- возможности ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cell { position: relative; padding: 22px 22px 24px; border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s; }
.cell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 60%); }
.cell:hover { border-color: var(--line-2); }
.cell:hover::before { opacity: 1; }
.cell__n, .cell__tick { display: none; }
.cell h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; }
.cell p { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- как это работает ---------- */
.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: s; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 20px 22px; border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); counter-increment: s; }
.step::before { content: counter(s); grid-row: 1 / span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--fill-3); font-size: 17px; font-weight: 650; }
.step h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 4px; }
.step p { grid-column: 2; color: var(--text-2); font-size: 14.5px; }

/* ---------- для чего ---------- */
.uses { display: flex; flex-direction: column; gap: 10px; }
.use { padding: 20px 22px; border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); }
.use h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 4px; }
.use p { color: var(--text-2); font-size: 14.5px; }
.use p strong { color: var(--text); font-weight: 500; }

/* ---------- цены ---------- */
.price { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.price > div { display: flex; flex-direction: column; padding: 22px; border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); }
.price__name { font-size: 13.5px; color: var(--text-2); }
.price__sum { margin-top: 10px; font-size: 38px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price__sum small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--text-2); margin-left: 5px; }
.price__what { margin-top: 12px; font-size: 16px; font-weight: 600; }
.price__per { font-size: 14px; color: var(--text-2); }
.price__list { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.price__list li { padding: 7px 0; border-top: 1px solid var(--line); }
.price .is-free { background: var(--fill-3); border-color: var(--line-3); }
.price .is-free .btn { margin-top: 18px; }
.price__note { margin-top: 16px; font-size: 14px; color: var(--text-2); }
@media (max-width: 560px) { .price { grid-template-columns: 1fr; } }

/* ---------- вопросы и ответы ---------- */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.faq details[open] { background: var(--fill-2); border-color: var(--line-2); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.faq__plus { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--text-2); transition: transform .3s var(--ease); }
.faq__plus::after { transform: rotate(90deg); }
.faq details[open] .faq__plus::after { transform: rotate(0deg); }
.faq__a { padding: 0 22px 20px; color: var(--text-2); font-size: 15px; line-height: 1.65; animation: up .4s var(--ease); }
.faq__a a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- блог ---------- */
.posts { display: flex; flex-direction: column; gap: 8px; }
.post { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 6px 16px; align-items: center; padding: 18px 22px; border-radius: var(--r); background: var(--fill); border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.post:hover { background: var(--fill-2); border-color: var(--line-2); }
.post__date { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }
.post h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.post p { margin-top: 4px; color: var(--text-2); font-size: 14px; }
.post svg { color: var(--text-3); transition: transform .3s var(--ease), color .2s; }
.post:hover svg { color: var(--text); transform: translateX(4px); }

/* ---------- финальный призыв ---------- */
.end { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.end__bars { display: none; }
.end h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -0.04em; }
.end__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 26px; }
.end__row p { color: var(--text-2); font-size: 15px; max-width: 40ch; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 32px; }
.foot__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; }
.foot__in > div:first-child { grid-column: 1 / -1; }
.foot h2 { font-size: 13px; font-weight: 500; color: var(--text-3); margin-bottom: 10px; }
.foot li + li { margin-top: 7px; }
.foot a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.foot a:hover { color: var(--text); }
.foot__about { max-width: 52ch; font-size: 14px; color: var(--text-2); margin-top: 14px; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
@media (max-width: 560px) { .foot__in { grid-template-columns: 1fr 1fr; } }

/* ==================================================================
   Регистрация — тот же формат, что у страницы входа
   ================================================================== */
.auth__main { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 48px var(--pad); }
.auth__box { width: 100%; max-width: 460px; margin: 0 auto; }
.auth__logo { display: block; width: 232px; margin: 0 auto 34px; }
.auth__logo img { width: 100%; height: auto; }
.auth__box h1 { font-size: 22px; font-weight: 650; letter-spacing: -0.025em; text-align: center; margin-bottom: 8px; }
.auth__sub { text-align: center; color: var(--text-2); font-size: 14.5px; margin-bottom: 26px; }
.auth__sub b { color: var(--text); font-weight: 600; word-break: break-all; }
.fld { display: block; margin-bottom: 13px; }
.fld__label { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.fld__label em { font-style: normal; color: var(--text-3); }
.fld__box { position: relative; display: block; }
.fld input[type="email"], .fld input[type="password"], .fld input[type="text"] {
  width: 100%; height: 56px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--fill); color: var(--text);
  font: inherit; font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s;
}
.fld input:focus { border-color: var(--line-3); background: var(--fill-2); }
.fld input::placeholder { color: var(--text-3); }
.fld input:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px #1a1a1c inset; caret-color: var(--text); }
.fld__eye { position: absolute; right: 4px; top: 4px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; color: var(--text-3); transition: color .2s; }
.fld__eye:hover { color: var(--text); }
.fld__meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.fld__meter i { height: 3px; border-radius: 3px; background: var(--line-2); transition: background .25s; }
.fld__meter[data-s="1"] i:nth-child(-n+1), .fld__meter[data-s="2"] i:nth-child(-n+2) { background: var(--text-2); }
.fld__meter[data-s="3"] i:nth-child(-n+3), .fld__meter[data-s="4"] i { background: var(--text); }
.agree { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; margin: 16px 0 18px; font-size: 13px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.agree input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1px solid var(--line-3); border-radius: 6px; background: var(--fill); display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.agree input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #0a0a0b; border-bottom: 2px solid #0a0a0b; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.agree input:checked { background: #ededee; border-color: #ededee; }
.agree input:checked::after { opacity: 1; }
.agree a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.auth .btn { width: 100%; }
.auth__msg { margin: 0 0 12px; font-size: 14px; color: #ff8a8a; text-align: center; }
.auth__msg:empty { margin: 0; }
.auth__alt { margin-top: 18px; font-size: 14px; color: var(--text-2); text-align: center; }
.auth__alt a, .auth__link { color: var(--text); }
.auth__alt a:hover, .auth__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth__link[disabled] { color: var(--text-3); pointer-events: none; }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.code input {
  width: 100%; height: 60px; padding: 0; text-align: center;
  border: 1px solid var(--line-2); border-radius: 14px; background: var(--fill); color: var(--text);
  font: inherit; font-size: 22px; font-weight: 600;
  outline: none;
  transition: border-color .15s, background .15s;
}
.code input:focus { border-color: var(--line-3); background: var(--fill-2); }
.code input.is-filled { border-color: var(--line-3); }
.code.is-bad input { border-color: #ff8a8a; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth [hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .rv { opacity: 1; transform: none; }
}

/* кнопка в карточке «Старт» — светлая, чтобы не сливалась с фоном карточки */
.price .is-free .btn { background: #ededee; color: #0a0a0b; }
.price .is-free .btn:hover { background: #fff; }
