/* saz0n0v.ru — тёмная тема, bento, liquid glass, кинетическая типографика */
:root {
  --bg: #0a0a0f;
  --bg2: #101018;
  --ink: #f2f0ea;
  --muted: #9c9aa8;
  --accent: #c8f04a;
  --accent2: #7c5cff;
  --glass: rgba(255, 255, 255, 0.055);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(200, 240, 74, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* ---------- CSS-логотип ---------- */
.logo {
  position: fixed; top: 18px; left: 22px; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.logo-glass {
  width: 46px; height: 46px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: -1px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.04));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transform: rotate(-4deg);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.logo:hover .logo-glass { transform: rotate(4deg) scale(1.06); }
.logo-s { color: var(--accent); }
.logo-0 { color: var(--accent2); }
.logo-word { font-size: 18px; letter-spacing: 1px; }
.logo-word b { color: var(--accent); font-weight: 800; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 6vw 90px;
}
.hero-bg {
  position: absolute; inset: -10% 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 70% 40%, rgba(124,92,255,.25), transparent 70%),
    radial-gradient(500px 300px at 25% 65%, rgba(200,240,74,.14), transparent 70%);
  filter: blur(2px);
  will-change: transform;
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .28em; font-size: 12px;
  color: var(--muted); margin: 0 0 18px;
}
.hero-title {
  margin: 0; font-size: clamp(44px, 8.5vw, 118px);
  line-height: .98; letter-spacing: -0.03em; font-weight: 800;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); }
.hero-title em {
  font-style: normal; color: var(--ink);
  text-shadow: 0 0 26px rgba(200,240,74,.4);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 50% { text-shadow: 0 0 44px rgba(200,240,74,.75); } }
.hero-sub { color: var(--muted); font-size: clamp(15px, 2vw, 20px); max-width: 640px; margin: 26px 0 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Кинетический тикер */
.ticker {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden; border-top: 1px solid var(--glass-border);
  background: rgba(255,255,255,.03); backdrop-filter: blur(6px);
  padding: 12px 0;
}
.ticker-track {
  display: flex; white-space: nowrap; width: max-content;
  font-weight: 700; font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  animation: ticker 26s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; cursor: pointer;
  border: 1px solid var(--glass-border); transition: transform .2s, box-shadow .2s, background .2s;
  font-size: 15px;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary {
  background: var(--accent); color: #111; border-color: transparent;
  box-shadow: 0 8px 30px rgba(200,240,74,.35);
}
.btn.ghost { background: var(--glass); color: var(--ink); backdrop-filter: blur(10px); }
.btn.small { padding: 8px 18px; font-size: 13px; }

/* ---------- Секции и бенто ---------- */
.section { padding: 90px 6vw; }
.section-title {
  font-size: clamp(30px, 4.6vw, 56px); letter-spacing: -0.02em;
  margin: 0 0 40px; font-weight: 800;
}
.section-title::after {
  content: ""; display: block; width: 72px; height: 5px; margin-top: 14px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 3px;
}
.bento {
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(170px, auto);
}
.bento-services .card, .bento-why .card { grid-column: span 2; }
.bento-products .card { grid-column: span 3; }
.bento-why .card:nth-child(4) { grid-column: span 4; }
.bento-why .card:nth-child(4) { grid-column: span 4; }

.card.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
  padding: 26px;
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.card.glass::before { /* жидкий блик */
  content: ""; position: absolute; top: -60%; left: -30%;
  width: 70%; height: 220%; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  pointer-events: none;
}
.card.glass:hover { transform: translateY(-6px); box-shadow: 0 26px 60px rgba(0,0,0,.55); }
.card h3 { margin: 8px 0 10px; font-size: 22px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0 0 16px; }
.card-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent2);
  border: 1px solid rgba(124,92,255,.5); border-radius: 999px; padding: 4px 12px;
}
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 700; color: var(--accent); }

/* ---------- Шаги ---------- */
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step-num {
  font-size: 44px; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.step h3 { margin: 6px 0 8px; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 18px; }
.contact-list li { margin-bottom: 8px; }
a { color: var(--accent); }
.lead-form label { display: block; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.lead-form input, .lead-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--glass-border);
  color: var(--ink); font: inherit;
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent2); }
.muted { color: var(--muted); font-size: 14px; }
.form-status { min-height: 22px; margin: 10px 0 0; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #ff7a7a; }

.footer {
  border-top: 1px solid var(--glass-border); padding: 30px 6vw;
  color: var(--muted); font-size: 14px;
}

/* ---------- Детальные описания продуктов ---------- */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px;
}
.product-detail .card.glass { padding: 34px; }
.product-detail h3 { font-size: 26px; }
.feature-list { list-style: none; margin: 0 0 18px; padding: 0; }
.feature-list li {
  position: relative; padding: 7px 0 7px 26px; color: var(--muted);
  border-bottom: 1px dashed rgba(255,255,255,.08);
}
.feature-list li::before {
  content: "✦"; position: absolute; left: 2px; color: var(--accent);
}
.feature-list li strong { color: var(--ink); }

/* ---------- Плашка «Официальный партнёр Битрикс24» ---------- */
.b24-plate {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(120deg, #0057C1 0%, #2B7CE6 60%, #0057C1 100%);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 60, 160, .45), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
  position: relative; overflow: hidden;
}
.b24-plate::after { /* блик в стиле B24 */
  content: ""; position: absolute; top: -60%; left: -20%;
  width: 45%; height: 220%; transform: rotate(16deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.b24-plate:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0, 60, 160, .6); }
.b24-logo {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px; white-space: nowrap;
}
.b24-logo b { color: #9DCF00; }
.b24-text { flex: 1; min-width: 240px; }
.b24-text strong { display: block; font-size: 18px; }
.b24-text span { font-size: 14px; opacity: .9; }
.b24-cta {
  background: #9DCF00; color: #123; font-weight: 700; border-radius: 999px;
  padding: 11px 22px; white-space: nowrap;
}

/* ---------- Reveal и параллакс ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-products .card, .bento-services .card, .bento-why .card { grid-column: span 2; }
  .product-detail, .step-list, .contact-grid { grid-template-columns: 1fr; }
}
