/* Заметность: доводка подачи. Загружается последним. */
:root { --font-hand: "Caveat", "Segoe Script", cursive; }

/* ---- типографика ---- */
h1, h2, h3 { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }
.h1 { font-size: clamp(2.3rem, 5.6vw, 4.3rem); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.05; letter-spacing: -0.035em; max-width: 19ch; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; }
.hero__note { font-size: 1rem; }
.hand-line { font-family: var(--font-hand); font-weight: 600; font-size: 1.75rem; line-height: 1; color: var(--violet); transform: rotate(-2deg); transform-origin: 0 50%; }
.tag { display: inline-block; width: fit-content; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.2; }

/* ---- заголовки выезжают, когда до них дошли ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv .line__in { animation: none; transform: translateY(115%) rotate(3deg); }
  .js .rv.in .line__in { animation: rise 1s cubic-bezier(.2, .8, .2, 1) forwards; }
  .js [data-pop] { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s ease var(--i, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--i, 0s); }
  .js [data-pop].is-in { opacity: 1; transform: none; }
}
.tilt-card:hover { transform: none; translate: 0 -8px; rotate: -.5deg; }

/* ---- полоса прогресса ---- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 70; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--violet), var(--pink), var(--gold)); }

/* ---- подпись от руки возле телефона ---- */
.note-hand { position: absolute; z-index: 4; left: 0; bottom: 8%; width: 138px; font-family: var(--font-hand); font-weight: 600; font-size: 1.55rem; line-height: .95; color: var(--violet); transform: rotate(-6deg); pointer-events: none; }
.note-hand svg { width: 96px; height: auto; margin: 8px 0 0 30px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.note-hand path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw 1.1s ease 2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chip--c { left: auto; right: -2%; bottom: 14%; }
@media (max-width: 899px) {
  .note-hand { left: 2%; bottom: -34px; width: auto; font-size: 1.25rem; }
  .note-hand span { display: block; max-width: 150px; }
  .note-hand svg { display: none; }
  .hero__stage { padding-bottom: 44px; }
}

/* ---- фон первого экрана дышит ---- */
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.hero::before { width: 560px; height: 560px; right: -140px; top: -80px; background: radial-gradient(closest-side, rgba(122, 64, 255, .24), transparent); animation: drift 15s ease-in-out infinite alternate; }
.hero::after { width: 440px; height: 440px; left: -160px; bottom: -80px; background: radial-gradient(closest-side, rgba(255, 200, 61, .3), transparent); animation: drift 19s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { translate: 70px -50px; } }

/* ---- тёмные блоки как плавающие карточки ---- */
.night { margin-inline: clamp(8px, 1.6vw, 22px); border-radius: clamp(28px, 4.5vw, 56px); transition: background-color 1s ease; }
.night[data-mood="evening"] { background: #1a1248; }
.night[data-mood="day"] { background: #2b2386; }
.night[data-mood="late"] { background: #0a0722; }

/* ---- часы: ночь, день, вечер ---- */
.clock { margin-top: 26px; display: flex; align-items: baseline; gap: 16px; }
.clock__t { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.4rem); letter-spacing: -0.05em; line-height: 1; color: var(--gold); min-width: 3.1ch; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(255, 200, 61, .35); }
.clock__l { color: #cfc8f5; font-size: 1.05rem; }

/* ---- плитки «что входит» ---- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chips li { display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); font-weight: 500; font-size: 1.05rem; transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease; }
.chips li::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--violet); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.chips li:hover { background: var(--violet-soft); box-shadow: inset 0 0 0 2px var(--violet); translate: 0 -4px; rotate: -1.5deg; }

/* ---- каналы бота ---- */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 40px; max-width: 820px; }
.channel { display: grid; gap: 4px; padding: 24px 26px; border-radius: 26px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); }
.channel b { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.channel span { color: var(--muted); }
.channel--on { background: var(--ink); color: #fff; box-shadow: none; }
.channel--on span { color: #a8f0c4; }
.channel--on span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #3ddc84; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

/* ---- глаз на карточке цены ---- */
.price { position: relative; }
.price__eye { position: absolute; top: 22px; right: 26px; width: 84px; }
.price--hi .h3 { padding-right: 96px; }

/* ---- ссылки: подчёркивание рисуется ---- */
.link-arrow { border-bottom: 0; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; transition: background-size .3s ease, color .2s ease; }
.link-arrow:hover { background-size: 0 2px; background-position: 100% 100%; }
.offer__foot { align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .note-hand path, .channel--on span::before { animation: none !important; }
  .note-hand path { stroke-dashoffset: 0; }
}

/* моргание: анимация сама возвращается в открытое состояние */
.eye.is-blink .eye-ball { transform: none; animation: blink .22s ease-in-out; }
@keyframes blink { 50% { transform: scaleY(.06); } }

@media (max-width: 899px) { .price__eye { top: 18px; width: 62px; right: 20px; } .price--hi .h3 { padding-right: 70px; font-size: 1.15rem; } }
