/* ============================================================
   KV EXPERT — стили главной страницы
   ============================================================ */

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 84px); padding-bottom: 40px; }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 0.94fr; gap: 56px; align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy .display { margin-bottom: 24px; max-width: 13ch; }
.hero-copy .lead { max-width: 52ch; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 46px; }
.hstat { display: flex; flex-direction: column; gap: 4px; }
.hstat-num { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hstat-num .u { font-size: 18px; }
.hstat-lbl { font-size: 13.5px; color: var(--muted); }

/* ---------- PHONE ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
.flagship-tag {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 4; font-size: 11px; letter-spacing: 0.08em; color: #fff;
  background: rgba(13,10,32,0.8); border: 1px solid var(--line); backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: var(--r-pill); white-space: nowrap;
}
.flagship-tag::before { content: "★ "; color: var(--primary); }
.phone {
  position: relative; z-index: 2;
  width: 320px; height: 640px; border-radius: 46px;
  background: linear-gradient(160deg, #1b1640, #0b0820);
  padding: 13px;
  box-shadow:
    0 0 0 2px rgba(139,92,246,0.30),
    0 40px 90px -30px rgba(168,85,247,calc(0.6 * var(--glow))),
    0 0 80px -20px rgba(236,72,153,calc(0.4 * var(--glow)));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.phone-notch { position: absolute; top: 13px; left: 50%; transform: translateX(-50%); width: 130px; height: 26px; background: #060415; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(180deg, #0b0820, #0a0118);
  display: flex; flex-direction: column; padding: 38px 16px 18px;
}
.app-top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.app-ai { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; }
.ai-orb { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 14px var(--primary); position: relative; flex-shrink: 0; }
.ai-orb::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: rgba(255,255,255,0.5); filter: blur(2px); }
.ai-orb.sm { width: 26px; height: 26px; }

.app-photo {
  position: relative; height: 168px; border-radius: 16px; margin-bottom: 12px;
  background:
    radial-gradient(120% 120% at 70% 10%, rgba(168,85,247,0.35), transparent 55%),
    linear-gradient(135deg, #2a2350, #15112e);
  overflow: hidden;
}
.app-photo::after { content: "\f1ad"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; font-size: 44px; color: rgba(255,255,255,0.10); }
.app-photo-tag { position: absolute; left: 10px; bottom: 10px; font-size: 9.5px; letter-spacing: 0.08em; color: #fff; background: rgba(0,0,0,0.45); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.app-verify { position: absolute; right: 10px; top: 10px; font-size: 10px; font-weight: 600; color: #fff; background: rgba(16,185,129,0.85); padding: 4px 9px; border-radius: 20px; display: flex; align-items: center; gap: 5px; }

.app-listing { background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.app-listing-top { display: flex; justify-content: space-between; align-items: flex-start; }
.app-title { font-weight: 700; font-size: 15px; }
.app-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.app-trend { font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 20px; display: inline-flex; gap: 4px; align-items: center; }
.app-trend.up { color: var(--success); background: rgba(16,185,129,0.14); }
.app-trend.down { color: var(--error); background: rgba(239,68,68,0.14); }
.app-price { font-size: 25px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.app-price .tg { color: var(--primary); }
.app-spark { height: 44px; margin: 6px 0; }
.app-spark svg { width: 100%; height: 100%; }
.app-meta { font-size: 10px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.app-chat { margin-top: auto; display: flex; gap: 10px; align-items: flex-start; padding-top: 14px; }
.app-bubble { background: var(--grad-soft); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 11px 13px; font-size: 12px; line-height: 1.5; color: #fff; }

.orb { position: absolute; border-radius: 50%; filter: blur(50px); z-index: 1; opacity: var(--glow); }
.orb-1 { width: 260px; height: 260px; background: rgba(99,102,241,0.5); top: 4%; right: -6%; }
.orb-2 { width: 240px; height: 240px; background: rgba(236,72,153,0.4); bottom: 2%; left: -8%; }

/* ---------- PRODUCT FEATURE (homepage) ---------- */
.product-feature {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 0; overflow: hidden;
  border: 1px solid var(--line);
}
.pf-copy { padding: clamp(28px, 4vw, 48px); }
.pf-brand { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.pf-brand .chip { width: 56px; height: 56px; font-size: 24px; flex-shrink: 0; }
.pf-cat { color: var(--primary); font-size: 12.5px; letter-spacing: 0.06em; margin-top: 4px; display: block; }
.pf-copy > p { color: var(--text-2); max-width: 56ch; margin-bottom: 20px; }
.pf-copy .fb-list { margin-bottom: 28px; }
.pf-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-visual {
  background: radial-gradient(120% 100% at 70% 0%, rgba(168,85,247,0.22), transparent 60%), linear-gradient(160deg, #1a1540, #0d0a22);
  border-left: 1px solid var(--line);
  padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative;
}
.pf-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #6ee7b7; background: rgba(16,185,129,0.14); border: 1px solid rgba(16,185,129,0.35); padding: 6px 13px; border-radius: var(--r-pill); }
.pf-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pf-metrics > div { display: flex; flex-direction: column; gap: 4px; }
.pf-v { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.pf-l { font-size: 13px; color: var(--text-2); }

.product-soon {
  display: flex; gap: 14px; align-items: center; margin-top: 18px;
  padding: 20px 24px; border: 1px dashed var(--line); border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02); color: var(--text-2); font-size: 14.5px; line-height: 1.5;
}
.product-soon i { color: var(--primary); font-size: 20px; flex-shrink: 0; }
.product-soon a { color: var(--primary); font-weight: 600; white-space: nowrap; }

@media (max-width: 940px) {
  .product-feature { grid-template-columns: 1fr; }
  .pf-visual { border-left: none; border-top: 1px solid var(--line); }
  .product-soon { flex-direction: column; align-items: flex-start; }
}

/* ---------- LOGO STRIP ---------- */
.logo-strip { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.ls-label { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ls-item { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.ls-item i { color: var(--primary); font-size: 18px; }

/* ---------- PROBLEM ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card h3 { margin: 18px 0 10px; }
.problem-card--accent { background: var(--grad); border: none; }
.problem-card--accent .chip { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.3); }
.problem-card--accent .chip i { -webkit-text-fill-color: #fff; color: #fff; }
.problem-card--accent .text-2 { color: rgba(255,255,255,0.9); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: #fff; }
.link-arrow .arr { transition: transform 0.25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }
.problem-card:not(.problem-card--accent) .link-arrow { color: var(--primary); }

/* ---------- COMPARE ---------- */
.compare { border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; background: var(--card); }
.compare-head, .compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head { border-bottom: 1px solid var(--line); }
.ch { padding: 20px 28px; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.ch-old { color: var(--muted); }
.ch-new { color: #fff; background: var(--grad-soft); }
.ch-new .logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--grad); display: grid; place-items: center; }
.ch-new .logo-mark svg { width: 15px; height: 15px; }
.compare-row { border-bottom: 1px solid var(--line-soft); }
.compare-row:last-child { border-bottom: none; }
.cc { padding: 17px 28px; font-size: 15px; display: flex; align-items: flex-start; gap: 12px; line-height: 1.45; }
.cc i { margin-top: 3px; flex-shrink: 0; }
.cc-old { color: var(--text-2); }
.cc-old i { color: var(--muted); }
.cc-new { color: #fff; border-left: 1px solid var(--line); background: rgba(139,92,246,0.04); }
.cc-new i { color: var(--success); }

/* ---------- FEATURES ---------- */
.feat h3 { margin: 18px 0 10px; }
.feat { transition: transform 0.3s var(--ease), border-color 0.3s; }
.feat:hover { transform: translateY(-5px); }

/* ---------- PATHS ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.path-card {
  position: relative; padding: 48px; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, #1c1740, #100c28);
  border: 1px solid var(--line); transition: transform 0.3s var(--ease), border-color 0.3s;
}
.path-card--alt { background: linear-gradient(150deg, #2a1338, #140a28); }
.path-card:hover { transform: translateY(-5px); border-color: rgba(139,92,246,0.35); }
.path-card::before { content: ""; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: var(--grad); filter: blur(70px); opacity: calc(0.4 * var(--glow)); }
.path-kicker { position: relative; color: var(--primary); font-size: 13px; letter-spacing: 0.1em; }
.path-card h3 { position: relative; margin: 16px 0 14px; font-size: clamp(24px, 2.4vw, 32px); }
.path-card .text-2 { position: relative; max-width: 42ch; }
.path-card .link-arrow { color: #fff; }

/* ---------- EVERYWHERE ---------- */
.everywhere-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.store-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 13px; padding: 13px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,0.03); transition: all 0.25s var(--ease); }
.store-btn:hover { border-color: var(--primary); transform: translateY(-2px); background: rgba(139,92,246,0.10); }
.store-btn i { font-size: 28px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; }
.store-btn small { font-weight: 500; font-size: 11px; color: var(--muted); }
.qr-card { display: flex; gap: 20px; align-items: center; }
.qr-ph { width: 110px; height: 110px; border-radius: 14px; background: #fff; position: relative; display: grid; place-items: center; flex-shrink: 0; }
.qr-grid { position: absolute; inset: 10px; background-image: repeating-linear-gradient(0deg, #0a0118 0 4px, transparent 4px 8px), repeating-linear-gradient(90deg, #0a0118 0 4px, transparent 4px 8px); border-radius: 4px; opacity: 0.85; }
.qr-ph .logo-mark { position: relative; width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; border: 3px solid #fff; }
.qr-ph .logo-mark svg { width: 18px; height: 18px; }

/* ---------- FINAL CTA ---------- */
.final-cta { padding-bottom: 40px; }
.cta-box {
  text-align: center; padding: clamp(48px, 7vw, 92px) var(--pad); border-radius: var(--r-xl);
  background: radial-gradient(120% 140% at 50% 0%, rgba(168,85,247,0.18), transparent 60%), var(--card);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: var(--grad); opacity: calc(0.06 * var(--glow)); }
.cta-box .h2 { position: relative; max-width: 18ch; margin: 0 auto 18px; text-wrap: balance; }
.cta-box .lead { position: relative; max-width: 56ch; margin: 0 auto 32px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* заголовок и кнопки — первыми, макет телефона — после (мобила) */
  .hero-visual { min-height: 480px; }
  .phone { width: 280px; height: 560px; }
  .problem-grid { grid-template-columns: 1fr; }
  .paths { grid-template-columns: 1fr; }
  .everywhere-grid { grid-template-columns: 1fr; }
  .compare-head, .compare-row { grid-template-columns: 1fr; }
  .cc-old { display: none; }
  .ch-old { display: none; }
  .ch-new, .cc-new { border-left: none; }
}
@media (max-width: 560px) {
  .hero-stats { gap: 24px; }
  .hstat-num { font-size: 28px; }
  .path-card { padding: 32px 26px; }
  /* кнопки CTA во всю ширину — длинные подписи (RU/KZ) не вылезают за экран */
  .hero-cta .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
}
