/* Сайт Wardi: тёмно-синий и золото из логотипа, кнопки — фиолетовый градиент, как в приложении. */
:root {
  --ink: #161830;
  --ink-2: #343a6e;
  --gold: #e8be6e;
  --accent: #8b3dff;
  --accent-2: #cb11ab;
  --bg: #f6f5fa;
  --card: #ffffff;
  --text: #1d1b22;
  --muted: #6c6779;
  --border: #e6e3ee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); }
img { max-width: 100%; }

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, calc((100vw - 1100px) / 2));
  background: rgba(246, 245, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.logo img { width: 36px; height: 36px; border-radius: 9px; }

nav { display: flex; gap: 22px; margin-left: auto; }
nav a { color: var(--text); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(139, 61, 255, 0.25);
  transition: transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn.small { padding: 9px 16px; font-size: 15px; box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--border); box-shadow: none; }

/* кнопка магазина: две строки */
.btn.store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 22px 10px 52px;
  background: var(--ink) url("/img/rustore.svg") 16px center / 26px no-repeat;
  box-shadow: 0 8px 24px rgba(22, 24, 48, 0.3);
  line-height: 1.2;
}
.btn.store b { font-size: 18px; }
.btn.store small { font-size: 12px; font-weight: 500; opacity: 0.75; order: -1; }

/* ---------- главный экран ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 16px 64px;
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; color: var(--ink); }
h1 span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts b { display: block; color: var(--ink); font-size: 20px; }

.hero-art { position: relative; display: flex; justify-content: center; min-height: 560px; }
.blob {
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(139, 61, 255, 0.35), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(232, 190, 110, 0.45), transparent 60%);
  filter: blur(30px);
}
.hero-phone {
  position: relative;
  width: 330px;
  filter: drop-shadow(0 30px 40px rgba(22, 24, 48, 0.35));
  animation: bob 6s ease-in-out infinite;
}

.float {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(22, 24, 48, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.float img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.f-photo { left: 0; top: 14%; animation: bob 5s ease-in-out infinite -1s; }
.f-item { right: 0; top: 4%; animation: bob 5.5s ease-in-out infinite -3s; }
.f-size { right: 4%; bottom: 14%; flex-direction: row; padding: 10px 16px; border: 1.5px solid var(--gold); animation: bob 4.5s ease-in-out infinite -2s; }
.f-size b { color: var(--accent); font-size: 16px; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- блоки ---------- */
.block { padding: 64px 16px; }
.block > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.block.alt { background: var(--card); }

h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 auto 28px; color: var(--ink); }
h2::after { content: ""; display: block; width: 48px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--gold); }

.steps, .features, .prices { display: grid; gap: 18px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.features { grid-template-columns: repeat(2, 1fr); }
.prices { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.step, .feature, .price {
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}

/* шаги с экранами приложения */
.step { position: relative; text-align: center; padding-top: 28px; background: linear-gradient(180deg, #efeafc, var(--card) 55%); }
.step img { width: 78%; max-width: 250px; display: block; margin: 0 auto 6px; filter: drop-shadow(0 18px 24px rgba(22, 24, 48, 0.2)); transition: transform 0.3s; }
.step:hover img { transform: translateY(-6px); }
.step .num {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
}
.step h3 { margin: 10px 0 6px; color: var(--ink); }
.step p, .feature p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- демо и схема ---------- */
.demo { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.demo-screen {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  overflow: hidden;
  background: var(--ink);
  border: 10px solid var(--ink);
  box-shadow: 0 30px 50px rgba(22, 24, 48, 0.3);
}
.demo-screen img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 18px; transition: opacity 0.5s; }
.demo-screen img.fade { opacity: 0; }
.demo-magic {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(22, 24, 48, 0.75), rgba(139, 61, 255, 0.65));
  color: #fff;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s;
}
.demo-magic.on { opacity: 1; }
.demo-magic span { font-size: 56px; animation: pulse 1s ease-in-out infinite; }
.demo-magic p { margin: 6px 0 0; }
@keyframes pulse { 50% { transform: scale(1.25) rotate(15deg); } }
.demo-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 30px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.demo-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.demo-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); }
.demo-dots i.on { background: var(--gold); }

.flow { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flow-row { display: flex; align-items: center; gap: 12px; width: 100%; }
.flow-row.three { align-items: stretch; }
.flow-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}
.flow-box b { color: var(--ink); }
.flow-box small { color: var(--muted); font-size: 14px; }
.flow-box.ai { width: 100%; background: linear-gradient(135deg, var(--ink), var(--ink-2)); border: none; }
.flow-box.ai b { color: var(--gold); font-size: 19px; }
.flow-box.ai small { color: rgba(255, 255, 255, 0.75); }
.plus { font-size: 26px; font-weight: 800; color: var(--accent); }
.flow-arrow { font-size: 26px; color: var(--accent); line-height: 1; }

/* ---------- где доступно ---------- */
.where { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.where-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
}
.where-card p { margin: 0; color: var(--muted); font-size: 16px; }
.where-card .btn { margin-top: auto; }
.where-card.main { background: linear-gradient(135deg, var(--ink), var(--ink-2)); border: none; color: #fff; }
.where-card.main h3 { color: #fff; }
.where-card.main p { color: rgba(255, 255, 255, 0.78); }
.where-card.main .hint b { color: var(--gold); }
.where-card.main .btn.store { background-color: #fff; color: var(--ink); align-self: flex-start; }
.where-head { display: flex; align-items: center; gap: 10px; }
.where-head h3 { margin: 0; font-size: 22px; color: var(--ink); }
.w-ico { font-size: 26px; }
.hint { font-size: 14px !important; }
.hint.soon { margin-top: 6px !important; }

.tg-bot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #eaf4fc; }
.tg-bot div { display: flex; flex-direction: column; line-height: 1.25; }
.tg-bot small { color: #2a8bd6; font-size: 13px; }
.tg-ava { width: 46px; height: 46px; border-radius: 50%; }
.tg-qr { display: flex; align-items: center; gap: 12px; }
.tg-qr img { width: 92px; height: 92px; border-radius: 10px; border: 1px solid var(--border); flex-shrink: 0; }
.where-card.tg .btn { background: #2aabee; box-shadow: none; }

/* ---------- возможности ---------- */
.features-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: center; }
.block.alt .feature { background: var(--bg); border: none; }
.features-phone { width: 300px; filter: drop-shadow(0 26px 34px rgba(22, 24, 48, 0.3)); animation: bob 7s ease-in-out infinite; }

/* ---------- тарифы ---------- */
.sub { color: var(--muted); max-width: 760px; margin: -8px auto 30px; }
.sub.small { font-size: 15px; margin: 22px auto 0; }

.price { position: relative; display: flex; flex-direction: column; }
.price h3 { margin: 0; font-size: 22px; color: var(--ink); }
.price .amount { font-size: 38px; font-weight: 800; color: var(--ink); margin: 8px 0 0; }
.price .count { margin: 2px 0 14px; color: var(--muted); font-size: 15px; }
.price ul { margin: 0 0 22px; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--border); flex: 1; }
.price li { position: relative; padding: 5px 0 5px 28px; font-size: 15.5px; }
.price li::before { content: "✓"; position: absolute; left: 2px; top: 5px; color: var(--accent); font-weight: 800; }
.price .btn { display: block; }

/* средний тариф — фиолетовая рамка */
.price.hot {
  border: 3px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  box-shadow: 0 24px 50px rgba(139, 61, 255, 0.22);
  transform: scale(1.04);
  z-index: 1;
}
.price.hot .amount { color: var(--accent); }
.ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- для бизнеса ---------- */
.business {
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--ink), var(--ink-2));
  color: #fff;
}
.business h2 { color: var(--gold); }
.business a { color: var(--gold); font-weight: 700; }
.biz-lead { max-width: 800px; margin: -6px 0 26px; color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.biz {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(232, 190, 110, 0.25);
  transition: background 0.2s;
}
.biz:hover { background: rgba(255, 255, 255, 0.12); }
.biz b { display: block; color: #fff; }
.biz p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 14.5px; }
.biz-cta { margin: 26px 0 0; font-size: 18px; }

/* ---------- вопросы ---------- */
details { padding: 16px 0; border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 40px max(16px, calc((100vw - 1100px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}
footer .logo { color: #fff; }
.foot p { margin: 6px 0 0; font-size: 15px; }
.foot.links { display: flex; flex-direction: column; gap: 8px; }
.foot.links a { color: var(--gold); text-decoration: none; }
.legal { width: 100%; margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* документы: оферта, политика */
.doc { max-width: 820px; margin: 0 auto; padding: 48px 16px; }
.doc h1 { font-size: 32px; }
.doc h2 { font-size: 22px; margin-top: 32px; }
.doc h2::after { display: none; }
.doc p, .doc li { color: #3a3645; }
.todo { background: #fff4d6; padding: 2px 6px; border-radius: 4px; }

@media (max-width: 1000px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .where { grid-template-columns: 1fr 1fr; }
  .where-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  nav { display: none; }
  .top .btn.small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 10px; }
  .hero-art { order: -1; min-height: 0; }
  .hero-phone { width: 250px; }
  .float img { width: 70px; height: 88px; }
  .float { font-size: 11px; }
  .f-photo { left: 2%; }
  .f-item { right: 2%; }
  .steps, .features, .prices, .where, .demo, .features-wrap { grid-template-columns: 1fr; }
  .where-card:last-child { grid-column: auto; }
  .demo-screen { max-width: 320px; margin: 0 auto; }
  .features-phone { display: none; }
  .price.hot { transform: none; margin: 12px 0; }
  .business { padding: 24px 18px; }
  .biz-grid { grid-template-columns: 1fr; }
  .flow-row.three { flex-direction: column; }
}

/* код подтверждения площадки: в тексте страницы, но незаметен */
.verify { width: 100%; margin: 0; font-size: 10px; color: rgba(255, 255, 255, 0.15); }
.ico { width: 20px; height: 20px; vertical-align: -4px; }

/* тарифы: новое в старшем пакете — золотой маркер */
.price li.add::before { content: "+"; color: var(--accent-2); }
.price li.add.vip::before { content: "★"; color: var(--gold); }

/* подписки */
.subs-title { max-width: 1100px; margin: 48px auto 6px; font-size: 24px; color: var(--ink); }
.subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sub-card { position: relative; padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); text-align: center; }
.sub-card b { color: var(--ink); }
.sub-card .amount { margin: 6px 0 2px; font-size: 28px; font-weight: 800; color: var(--ink); }
.sub-card small { color: var(--muted); }
.sub-card.best { border: 2px solid var(--gold); }
.sub-card .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.perk { padding: 18px; border-radius: 16px; background: #efeafc; }
.perk b { color: var(--ink); }
.perk p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* окно «Уже уходите?» */
.leave { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(22, 24, 48, 0.55); }
.leave[hidden] { display: none; }
.leave-box { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 20px; max-width: 560px; width: 100%;
  padding: 22px; border-radius: 22px; background: var(--card); box-shadow: 0 30px 60px rgba(22, 24, 48, 0.35); }
.leave-box img { width: 100%; height: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; }
.leave-box h3 { margin: 0 0 8px; color: var(--ink); font-size: 22px; }
.leave-box p { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.leave-box small { display: block; margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.leave-x { position: absolute; top: 8px; right: 12px; border: none; background: none; font-size: 28px; color: var(--muted); cursor: pointer; }
.coupon { padding: 10px 18px; border: 2px dashed var(--accent); border-radius: 12px; background: #f4eeff; color: var(--accent);
  font-family: inherit; font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: 0.12em; cursor: pointer; }

@media (max-width: 860px) {
  .subs, .perks { grid-template-columns: 1fr 1fr; }
  .leave-box { grid-template-columns: 1fr; }
  .leave-box img { max-height: 160px; }
}
