/* ============ главная ============ */
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--a2); margin-bottom: 10px; }

/* --- первый экран: центр + облако иконок --- */
/* первый экран на всю ширину окна — облако не упирается в колонку контента */
.h-hero { position: relative; width: calc(100vw - var(--sbw, 0px)); margin-left: calc(50% - 50vw + var(--sbw, 0px) / 2); padding: 60px 20px 90px; min-height: min(calc(100vh - 64px), 980px); display: grid; place-items: center; isolation: isolate; overflow: clip; }
html { overflow-x: clip; }
/* фактура: точечная сетка, гаснущая к краям */
.h-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 20%, transparent 75%); }
/* мягкий акцент за заголовком вместо заливки всего фона */
.h-hero::after { content: ""; position: absolute; left: 50%; top: 46%; width: min(900px, 90vw); height: 420px; transform: translate(-50%, -50%); z-index: -2; background: radial-gradient(closest-side, color-mix(in srgb, var(--a1) 18%, transparent), transparent); filter: blur(30px); }
.h-cloud { position: absolute; top: 0; bottom: 0; left: max(0px, calc(50% - 800px)); right: max(0px, calc(50% - 800px)); z-index: -1; pointer-events: none; }
.fl { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%) translate(calc(var(--px, 0) * var(--z) * 40px), calc(var(--py, 0) * var(--z) * 40px)); transition: transform .9s var(--ease); }
.fl img { width: calc(44px + var(--z) * 34px); height: calc(44px + var(--z) * 34px); border-radius: 26%; opacity: calc(.25 + var(--z) * .6); filter: blur(calc((1 - var(--z)) * 2.5px)) saturate(calc(.6 + var(--z) * .4)); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .8); rotate: var(--r); animation: fl-bob var(--s) ease-in-out var(--t) infinite alternate, fl-in 1s var(--spring) both; animation-delay: var(--t), calc(var(--t) * .3); }
@keyframes fl-bob { to { translate: 0 -14px; rotate: calc(var(--r) * -1); } }
@keyframes fl-in { from { opacity: 0; scale: .4; } }
.h-center { text-align: center; width: 100%; max-width: 820px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.h-title { overflow-wrap: anywhere; }
.h-title { font-size: clamp(42px, 7.6vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 22px 0 22px; }
.h-center .lead { margin: 0 auto 30px; max-width: 620px; }
.h-search { display: flex; align-items: center; gap: 10px; width: min(620px, 100%); padding: 7px 7px 7px 20px; border-radius: 20px; background: rgba(28, 20, 24, .75); border: 1px solid var(--border-2); backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px var(--glow); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.h-search:focus-within { border-color: color-mix(in srgb, var(--a1) 70%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--a1) 18%, transparent), 0 24px 70px -20px var(--glow); transform: translateY(-2px); }
.h-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.h-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 10px 0; }
.h-search input::placeholder { color: var(--dim); }
.h-search .btn { padding: 12px 22px; border-radius: 14px; }
.h-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.h-quick a { font-size: 13.5px; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); transition: color .2s, border-color .2s, transform .2s var(--ease); }
.h-quick a:hover { color: var(--text); border-color: var(--border-2); transform: translateY(-2px); }
.h-quick a.all { color: var(--a2); }
.h-scroll { position: absolute; bottom: 22px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 2px solid var(--border-2); }
.h-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--a1); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* --- бегущие ленты --- */
.marquee { margin: 0 calc(50% - 50vw); padding: 10px 0 20px; display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); overflow: hidden; }
.mq-row { overflow: hidden; }
.mq-track { display: flex; gap: 14px; width: max-content; animation: mq 60s linear infinite; }
.mq-row.rev .mq-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; }
.mq-item:hover { border-color: color-mix(in srgb, var(--a1) 45%, transparent); background: color-mix(in srgb, var(--a1) 8%, transparent); }
.mq-item img { width: 34px; height: 34px; border-radius: 9px; }

/* --- как это работает: телефон + синхронные шаги --- */
.h-how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.h-how-phone .phone-wrap { justify-content: center; }
.h-how-phone .phone { transform: rotateY(10deg) rotateX(3deg); animation-name: bob-r; }
@keyframes bob-r { 50% { transform: rotateY(6deg) rotateX(1deg) translateY(-12px); } }
.h-how-text h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 28px; }
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-steps li { position: relative; display: flex; gap: 16px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color .5s, background .5s, opacity .5s, transform .5s var(--ease); opacity: .55; }
.h-steps li.on { opacity: 1; border-color: color-mix(in srgb, var(--a1) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 12%, transparent), color-mix(in srgb, var(--a2) 5%, transparent)); transform: translateX(6px); }
.h-steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.h-steps p { margin: 0; color: var(--muted); font-size: 15px; }
.h-step-n { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: var(--surface-2); border: 1px solid var(--border-2); transition: all .5s var(--spring); }
.h-steps li.on .h-step-n { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -6px var(--glow); transform: scale(1.08); }
.h-step-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; transition: opacity .3s; }
.h-steps li.on .h-step-bar { opacity: 1; }

/* --- категории --- */
.h-split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.h-split-head h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; margin: 0; line-height: 1.05; }
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px 18px; border-radius: 22px; text-decoration: none; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .4s var(--ease), border-color .3s, background .3s; }
.cat:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--a1) 40%, transparent); background: color-mix(in srgb, var(--a1) 6%, transparent); }
.cat-stack { display: flex; height: 52px; margin-bottom: 14px; }
.cat-stack img { width: 46px; height: 46px; border-radius: 12px; border: 2px solid #1a1215; margin-left: calc(var(--j) * -14px + (var(--j) > 0) * 0px); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .8); transition: transform .45s var(--spring); }
.cat-stack img + img { margin-left: -14px; }
.cat:hover .cat-stack img { transform: translateX(calc(var(--j) * 8px)) rotate(calc(var(--j) * 4deg - 6deg)); }
.cat b { font-size: 15.5px; line-height: 1.25; }
.cat-n { font-size: 13px; color: var(--muted); }
.cat-arr { position: absolute; right: 16px; top: 18px; font-style: normal; color: var(--dim); transition: transform .3s var(--ease), color .3s; }
.cat:hover .cat-arr { transform: translateX(4px); color: var(--a2); }
.h-band { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 20px; border-radius: 18px; border: 1px dashed color-mix(in srgb, var(--a1) 40%, transparent); color: var(--muted); }
.h-band b { color: var(--text); }
.h-band .btn { flex: none; }

/* --- цифры --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: 26px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.stat { padding: 30px 26px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat b { display: flex; align-items: baseline; gap: 4px; font-size: clamp(44px, 5vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .4em; letter-spacing: 0; }
.stat > span { color: var(--muted); font-size: 14.5px; }

/* --- вопросы в две колонки --- */
.h-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 50px; align-items: start; }
.h-faq-side { position: sticky; top: 90px; }
.h-faq-side h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.035em; margin: 0 0 12px; }
.h-faq-side p { margin: 0 0 20px; }
.h-faq .faq { max-width: none; }

@media (max-width: 1000px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .h-how { grid-template-columns: 1fr; gap: 30px; }
  .h-how-phone { order: 2; }
  .h-how-phone .phone { transform: none; animation-name: bob-flat; }
  .h-faq { grid-template-columns: 1fr; gap: 20px; }
  .h-faq-side { position: static; }
}
@media (max-width: 560px) {
  .h-hero { min-height: 0; padding: 50px 16px 70px; }
  .fl:nth-child(n+9) { display: none; }
  .fl img { width: calc(34px + var(--z) * 20px); height: calc(34px + var(--z) * 20px); opacity: calc(.18 + var(--z) * .35); }
  .h-title { font-size: 44px; }
  .h-search { padding-left: 14px; }
  .h-search .btn { padding: 11px 14px; }
  .h-scroll { display: none; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat { padding: 16px 14px; }
  .cat-stack img { width: 38px; height: 38px; }
  .h-split-head { flex-direction: column; align-items: flex-start; }
  .h-band { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; border-top: 1px solid var(--border); padding: 22px; }
  .stat:first-child { border-top: 0; }
  .h-steps li.on { transform: none; }
}

/* --- цены --- */
.prices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.price { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 18px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .3s; }
.price:hover { transform: translateY(-4px); border-color: var(--border-2); }
.price.first { border-color: rgba(61, 220, 132, .35); background: linear-gradient(180deg, rgba(61, 220, 132, .07), transparent 60%), var(--surface); }
.price.best { border-color: color-mix(in srgb, var(--a1) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--a1) 10%, transparent), transparent 60%), var(--surface); }
.price-badge { position: absolute; top: -11px; right: 16px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; background: var(--grad); box-shadow: 0 6px 16px -6px var(--glow); }
.price-name { font-size: 17px; }
.price-v { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 0; }
.price-v.ok { color: var(--ok); }
.price-sub { font-size: 13.5px; color: var(--muted); min-height: 40px; }
.price-sub em { font-style: normal; font-weight: 700; color: var(--ok); margin-left: 4px; }
.price .btn { margin-top: auto; width: 100%; }
@media (max-width: 1000px) { .prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .prices { grid-template-columns: 1fr 1fr; } .price { padding: 18px 14px 14px; } .price-v { font-size: 30px; } .price.first { grid-column: 1 / -1; } }

@media (max-width: 380px) {
  .h-title { font-size: 36px; }
  .h-search { padding-left: 12px; gap: 8px; }
  .h-search input { font-size: 15px; }
  .h-search .btn { padding: 10px 12px; }
}

/* подсказки поиска на главной */
.h-search { position: relative; z-index: 5; }
.h-search:focus-within { z-index: 60; }
.h-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; padding: 6px; border-radius: 18px; background: #17131a; border: 1px solid var(--border-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); text-align: left; animation: hs-in .18s var(--ease); }
@keyframes hs-in { from { opacity: 0; transform: translateY(-4px); } }
.hs-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; color: var(--text); text-decoration: none; outline: none; }
.hs-row:hover, .hs-row:focus-visible { background: rgba(255, 255, 255, .06); }
.hs-row img, .hs-ph { width: 38px; height: 38px; border-radius: 10px; flex: none; background: rgba(255, 255, 255, .08); }
.hs-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hs-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-name small { font-size: 12px; color: var(--dim); }
.hs-row em { flex: none; font-style: normal; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; }
.hs-all { display: block; padding: 10px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: none; border-top: 1px solid var(--border); margin-top: 4px; }
.hs-all:hover { color: var(--text); }
.hs-empty { padding: 12px; font-size: 13.5px; color: var(--muted); }
.hs-empty a { color: #ff9aa6; text-decoration: none; }
@media (max-width: 420px) { .hs-row em { padding: 6px 10px; font-size: 12px; } }
.h-hero:focus-within { z-index: 20; }
.h-hero { overflow: visible; overflow-x: clip; }
