/* ============================================================
   B2B Product — общие стили страниц-презентаций.
   Базовая часть скопирована из index.html (лендинг живёт со
   своими стилями внутри файла и этот файл не подключает).
   ============================================================ */

:root{
  --bg:#0e0c09;
  --bg-soft:#15120d;
  --card:#181510;
  --card-2:#1d1913;
  --line:rgba(217,169,63,.16);
  --line-soft:rgba(255,255,255,.07);
  --gold:#d9a93f;
  --gold-bright:#f0c469;
  --gold-dim:rgba(217,169,63,.55);
  --text:#f4efe5;
  --muted:#c6bfb3;
  --muted-2:#7d7466;
  --green:#4fc26b;
  --accent-fill:rgba(217,169,63,.1);
  --accent-fill-2:rgba(217,169,63,.12);
  --accent-fill-soft:rgba(217,169,63,.07);
  --accent-glow:rgba(217,169,63,.13);
  --accent-glow-2:rgba(217,169,63,.05);
  --accent-grad:linear-gradient(135deg,#e8bd58,#c9962e);
  --accent-ink:#1a1405;
  --radius:18px;
  --font-body:"Golos Text",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --font-display:"Playfair Display",Georgia,serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{
  background:transparent;
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  overflow-x:clip; /* clip не ломает липкую шапку, hidden — запасной вариант */
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 20px}

/* ---------- живой фон-аврора ---------- */
.aurora{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.aurora i{position:absolute;border-radius:50%;will-change:transform}
.aurora i:nth-child(1){
  width:72vmax;height:72vmax;left:-26vmax;top:-22vmax;
  background:radial-gradient(circle,rgba(217,169,63,.13),transparent 62%);
  animation:aur1 46s ease-in-out infinite alternate;
}
.aurora i:nth-child(2){
  width:62vmax;height:62vmax;right:-24vmax;top:8vmax;
  background:radial-gradient(circle,rgba(176,108,32,.11),transparent 60%);
  animation:aur2 58s ease-in-out infinite alternate;
}
.aurora i:nth-child(3){
  width:56vmax;height:56vmax;left:18vmax;bottom:-30vmax;
  background:radial-gradient(circle,rgba(240,196,105,.08),transparent 60%);
  animation:aur3 70s ease-in-out infinite alternate;
}
@keyframes aur1{to{transform:translate(18vmax,12vmax) scale(1.15)}}
@keyframes aur2{to{transform:translate(-15vmax,14vmax) scale(1.22)}}
@keyframes aur3{to{transform:translate(12vmax,-14vmax) scale(1.1)}}

/* ---------- кнопки ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font:600 16px/1 var(--font-body);
  border-radius:14px;border:1px solid transparent;
  padding:16px 26px;cursor:pointer;white-space:nowrap;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,border-color .15s;
}
.btn:active{transform:scale(.97)}
.btn-gold{
  background:linear-gradient(135deg,#e8bd58,#c9962e);
  color:#1a1405;
  box-shadow:0 6px 24px rgba(217,169,63,.25);
}
.btn-gold:hover{box-shadow:0 8px 30px rgba(217,169,63,.4)}
.btn-wa{
  background:#1f8f4d;color:#fff;
  box-shadow:0 6px 24px rgba(31,143,77,.25);
}
.btn-wa:hover{background:#23a257}
.btn-ghost{
  background:transparent;color:var(--text);
  border-color:rgba(244,239,229,.22);
}
.btn-ghost:hover{border-color:var(--gold-dim);color:var(--gold-bright)}
.btn-sm{padding:11px 18px;font-size:14px;border-radius:11px}
.btn svg{flex:none}

/* ---------- шапка ---------- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(14,12,9,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0}
.logo{display:flex;align-items:center;gap:11px;font-weight:500;letter-spacing:.22em;font-size:15px;color:var(--text)}
.logo .mark{width:40px;height:24px;flex:none}
.nav-actions{display:flex;gap:10px}

/* ---------- типографика секций ---------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:12.5px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;
  color:var(--gold);margin-bottom:22px;
}
.eyebrow::before{content:"";width:26px;height:1px;background:var(--gold)}
h1{
  font-family:var(--font-display);
  font-size:clamp(30px,6.4vw,52px);
  font-weight:700;line-height:1.12;letter-spacing:.01em;
  max-width:18ch;
}
h1 em{font-style:normal;color:var(--gold-bright)}
h2{
  font-family:var(--font-display);
  font-size:clamp(26px,5vw,38px);
  font-weight:700;line-height:1.18;
}
section{padding:56px 0}
.sec-head{margin-bottom:36px}
.sec-head .eyebrow{margin-bottom:14px}
.sec-head p{color:var(--muted);margin-top:12px;max-width:62ch}

/* ---------- навигация по цепочке ---------- */
.crumbs{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  padding:18px 0 0;font-size:13.5px;color:var(--muted-2);
}
.crumbs a{color:var(--muted);transition:color .15s}
.crumbs a:hover{color:var(--gold-bright)}
.crumbs svg{flex:none;opacity:.5}

/* ---------- шапка страницы продукта ---------- */
.page-hero{position:relative;padding:34px 0 52px;overflow:hidden}
.page-hero::before{
  content:"";position:absolute;inset:-40% -20% auto auto;width:680px;height:680px;
  background:radial-gradient(circle,var(--accent-glow) 0%,var(--accent-glow-2) 35%,transparent 65%);
  pointer-events:none;
}
.page-hero .container{position:relative;z-index:2}
.ph-top{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:20px}
.ph-icon{
  width:56px;height:56px;border-radius:15px;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent-fill);border:1px solid var(--line);
  color:var(--gold-bright);
}
.badge{
  font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;
  padding:6px 12px;border-radius:99px;white-space:nowrap;
}
.badge-live{background:rgba(79,194,107,.12);color:#7ddb97;border:1px solid rgba(79,194,107,.3)}
.badge-demo{background:var(--accent-fill-2);color:var(--gold-bright);border:1px solid var(--line)}
.badge-custom{background:rgba(120,150,255,.1);color:#a9bcff;border:1px solid rgba(120,150,255,.25)}
.page-hero .sub{margin:20px 0 30px;max-width:58ch;color:var(--muted);font-size:clamp(16px,2.4vw,18.5px)}
.ph-cta{display:flex;flex-wrap:wrap;gap:12px}
.ph-facts{
  display:flex;flex-wrap:wrap;gap:10px 28px;margin-top:38px;
  padding-top:24px;border-top:1px solid var(--line-soft);
}
.fact{min-width:130px}
.fact b{display:block;font-family:var(--font-display);font-size:23px;color:var(--gold-bright);font-weight:700}
.fact span{font-size:13.5px;color:var(--muted-2)}

/* ---------- зачем это нужно: боли ---------- */
#why-crm{background:rgba(21,18,13,.72);border-block:1px solid var(--line-soft)}
.pain-grid{display:grid;grid-template-columns:1fr;gap:16px}
.pain{
  background:var(--card);border:1px solid var(--line-soft);
  border-radius:var(--radius);padding:22px 20px;
  transition:border-color .2s,transform .25s ease;
}
.pain:hover{border-color:var(--line);transform:translateY(-3px)}
.pain-head{display:flex;align-items:center;gap:11px;margin-bottom:10px}
.pain-head .w-icon{
  width:38px;height:38px;border-radius:11px;flex:none;
  display:flex;align-items:center;justify-content:center;
  background:rgba(224,123,106,.1);border:1px solid rgba(224,123,106,.22);color:#e59b8c;
}
.pain h3{font-size:16.5px;font-weight:700;line-height:1.3}
.pain p{color:var(--muted);font-size:14.5px}
.pain .fix{
  display:flex;gap:8px;margin-top:13px;padding-top:13px;
  border-top:1px solid var(--line-soft);color:var(--text);font-size:14.5px;
}
.pain .fix svg{flex:none;margin-top:3px;color:var(--green)}

/* ---------- функционал ---------- */
.feat-grid{display:grid;grid-template-columns:1fr;gap:16px}
.feat{
  display:flex;flex-direction:column;
  background:linear-gradient(160deg,var(--card-2),var(--card) 60%);
  border:1px solid var(--line-soft);border-radius:var(--radius);
  padding:24px 22px;
  transition:border-color .2s,transform .25s ease;
}
.feat:hover{border-color:var(--line);transform:translateY(-3px)}
.feat .w-icon{
  width:44px;height:44px;border-radius:12px;flex:none;margin-bottom:15px;
  display:flex;align-items:center;justify-content:center;
  background:var(--accent-fill);border:1px solid var(--line);color:var(--gold-bright);
}
.feat h3{font-size:18px;font-weight:700;margin-bottom:12px}
.feat ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.feat li{
  position:relative;padding-left:22px;
  color:var(--muted);font-size:14.5px;line-height:1.5;
}
.feat li::before{
  content:"";position:absolute;left:2px;top:8px;
  width:7px;height:7px;border-radius:50%;
  background:var(--gold);opacity:.75;
}
.feat li b{color:var(--text);font-weight:600}

/* ---------- технологии ---------- */
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chips span{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;color:var(--muted);
  border:1px solid var(--line-soft);border-radius:11px;padding:9px 14px;
  background:rgba(255,255,255,.02);
}
.chips svg{flex:none;color:var(--gold-bright);opacity:.9}

/* ---------- как начать ---------- */
.steps{display:grid;grid-template-columns:1fr;gap:16px;counter-reset:step}
.step{
  position:relative;background:var(--card);
  border:1px solid var(--line-soft);border-radius:var(--radius);
  padding:24px 22px 22px;
}
.step::before{
  counter-increment:step;content:counter(step);
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;margin-bottom:14px;
  font-family:var(--font-display);font-size:18px;font-weight:700;
  color:var(--accent-ink);background:var(--accent-grad);
}
.step h3{font-size:17px;font-weight:700;margin-bottom:6px}
.step p{color:var(--muted);font-size:14.5px}

/* ---------- финальный призыв ---------- */
#cta{background:rgba(21,18,13,.72);border-block:1px solid var(--line-soft)}
.cta-band{
  position:relative;overflow:hidden;
  background:linear-gradient(150deg,var(--card-2),var(--card) 70%);
  border:1px solid var(--line);border-radius:22px;
  padding:32px 24px;
}
.cta-band::before{
  content:"";position:absolute;bottom:-160px;left:-160px;width:380px;height:380px;
  background:radial-gradient(circle,var(--accent-glow),transparent 65%);pointer-events:none;
}
.cta-band>*{position:relative;z-index:1}
.cta-band p{color:var(--muted);margin-top:14px;max-width:52ch}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.cta-note{margin-top:18px;font-size:13.5px;color:var(--muted-2)}

/* ---------- футер ---------- */
footer{padding:44px 0 34px}
.foot{
  display:flex;flex-direction:column;gap:22px;
  border-top:1px solid var(--line-soft);padding-top:32px;
}
.foot-contacts{display:flex;flex-direction:column;gap:10px}
.foot-contacts a{display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:15px;transition:color .15s}
.foot-contacts a:hover{color:var(--gold-bright)}
.foot-bottom{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;color:var(--muted-2);font-size:13.5px}
.foot-links{display:flex;flex-wrap:wrap;gap:8px 18px}
.foot-links a{color:var(--muted-2);font-size:13.5px;transition:color .15s}
.foot-links a:hover{color:var(--gold-bright)}

/* ---------- плавающая кнопка WhatsApp ---------- */
.wa-float{
  position:fixed;right:16px;bottom:16px;z-index:60;
  width:56px;height:56px;border-radius:50%;
  background:#1f8f4d;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 28px rgba(31,143,77,.45);
  transition:transform .15s;
}
.wa-float:hover{transform:scale(1.06)}
.wa-float svg{width:28px;height:28px}

/* ---------- анимация появления ---------- */
.reveal{opacity:0;transform:translateY(24px) scale(.985);transition:opacity .7s ease,transform .7s cubic-bezier(.22,.8,.32,1)}
.reveal.in{opacity:1;transform:none}
.pain-grid .reveal:nth-child(2),.feat-grid .reveal:nth-child(2),.steps .reveal:nth-child(2){transition-delay:.08s}
.pain-grid .reveal:nth-child(3),.feat-grid .reveal:nth-child(3),.steps .reveal:nth-child(3){transition-delay:.16s}
.pain-grid .reveal:nth-child(4),.feat-grid .reveal:nth-child(4){transition-delay:.24s}
@media (prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none;transition-delay:0s}
  .pain,.feat,.step{transition:border-color .2s}
  .aurora i{animation:none}
  html{scroll-behavior:auto}
}

/* ---------- адаптив ---------- */
@media (max-width:479px){
  .nav .btn-lead{display:none}
  .page-hero{padding:26px 0 44px}
  .ph-cta .btn,.cta-actions .btn{width:100%}
}
@media (min-width:640px){
  .pain-grid,.feat-grid{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:820px){
  section{padding:80px 0}
  .page-hero{padding:40px 0 72px}
  .cta-band{padding:44px 40px}
}
@media (min-width:1000px){
  .feat-grid{grid-template-columns:repeat(3,1fr)}
}

/* ---------- «На главную» в шапке ---------- */
.nav-left{display:flex;align-items:center;gap:12px;min-width:0}
.btn-back{
  display:inline-flex;align-items:center;gap:8px;flex:none;
  padding:9px 14px;border-radius:11px;
  border:1px solid var(--line-soft);background:rgba(255,255,255,.02);
  color:var(--muted);font:600 14px var(--font-body);
  transition:border-color .2s,color .2s,background .2s;
}
.btn-back:hover{border-color:var(--gold-dim);color:var(--gold-bright);background:var(--accent-fill-soft)}
.btn-back svg{flex:none}
@media (max-width:700px){
  .btn-back span{display:none}
  .btn-back{padding:9px 10px}
}
@media (max-width:400px){
  .logo{font-size:13px;letter-spacing:.16em;gap:8px}
  .logo .mark{width:34px}
}

/* ---------- кнопка «наверх» ---------- */
.to-top{
  position:fixed;right:16px;bottom:84px;z-index:60;
  width:48px;height:48px;border-radius:50%;padding:0;
  display:flex;align-items:center;justify-content:center;
  background:rgba(24,21,16,.92);border:1px solid var(--line);
  color:var(--gold-bright);cursor:pointer;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:0 8px 24px rgba(0,0,0,.45);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s,border-color .2s,color .2s,background .2s;
}
.to-top.show{opacity:1;visibility:visible;transform:none}
.to-top:hover{border-color:var(--gold-dim);background:rgba(34,29,21,.95);color:#fff}
.to-top:active{transform:scale(.94)}
.to-top:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media (max-width:479px){
  .to-top{width:44px;height:44px;right:16px;bottom:80px}
}
@media (prefers-reduced-motion:reduce){
  .to-top{transition:opacity .2s,visibility .2s}
}

/* ---------- якоря не уезжают под липкую шапку ---------- */
section[id],[id^="why"],[id="top"]{scroll-margin-top:88px}

/* ---------- акцент-тема страницы (по цвету продукта) ---------- */
body.t-optics{
  --gold:#3aa0d6;--gold-bright:#6fbde6;
  --gold-dim:rgba(58,160,214,.55);
  --line:rgba(58,160,214,.3);
  --accent-fill:rgba(58,160,214,.12);
  --accent-fill-2:rgba(58,160,214,.14);
  --accent-fill-soft:rgba(58,160,214,.08);
  --accent-glow:rgba(58,160,214,.14);
  --accent-glow-2:rgba(58,160,214,.05);
  --accent-grad:linear-gradient(135deg,#5cb4e3,#1f6ea8);
  --accent-ink:#04202f;
}
body.t-jewellery{
  --gold:#e7c66b;--gold-bright:#f0d68f;
  --gold-dim:rgba(231,198,107,.55);
  --line:rgba(231,198,107,.3);
  --accent-fill:rgba(231,198,107,.12);
  --accent-fill-2:rgba(231,198,107,.14);
  --accent-fill-soft:rgba(231,198,107,.08);
  --accent-glow:rgba(231,198,107,.14);
  --accent-glow-2:rgba(231,198,107,.05);
  --accent-grad:linear-gradient(135deg,#f0d68f,#c9962f);
  --accent-ink:#241a03;
}
body.t-beauty{
  --gold:#f472b6;--gold-bright:#f9a3d0;
  --gold-dim:rgba(244,114,182,.55);
  --line:rgba(244,114,182,.3);
  --accent-fill:rgba(244,114,182,.12);
  --accent-fill-2:rgba(244,114,182,.14);
  --accent-fill-soft:rgba(244,114,182,.08);
  --accent-glow:rgba(244,114,182,.14);
  --accent-glow-2:rgba(244,114,182,.05);
  --accent-grad:linear-gradient(135deg,#f9a3d0,#db2777);
  --accent-ink:#3d0620;
}
body.t-security{
  --gold:#82a9dd;--gold-bright:#a6c5ea;
  --gold-dim:rgba(130,169,221,.55);
  --line:rgba(130,169,221,.3);
  --accent-fill:rgba(130,169,221,.12);
  --accent-fill-2:rgba(130,169,221,.14);
  --accent-fill-soft:rgba(130,169,221,.08);
  --accent-glow:rgba(130,169,221,.14);
  --accent-glow-2:rgba(130,169,221,.05);
  --accent-grad:linear-gradient(135deg,#a6c5ea,#4a76ad);
  --accent-ink:#06182b;
}
body.t-ai{
  --gold:#a98bea;--gold-bright:#c3aef2;
  --gold-dim:rgba(169,139,234,.55);
  --line:rgba(169,139,234,.3);
  --accent-fill:rgba(169,139,234,.12);
  --accent-fill-2:rgba(169,139,234,.14);
  --accent-fill-soft:rgba(169,139,234,.08);
  --accent-glow:rgba(169,139,234,.14);
  --accent-glow-2:rgba(169,139,234,.05);
  --accent-grad:linear-gradient(135deg,#c3aef2,#7c5fd0);
  --accent-ink:#170a2e;
}
body.t-nkt{
  --gold:#5fc9c0;--gold-bright:#8fdcd5;
  --gold-dim:rgba(95,201,192,.55);
  --line:rgba(95,201,192,.3);
  --accent-fill:rgba(95,201,192,.12);
  --accent-fill-2:rgba(95,201,192,.14);
  --accent-fill-soft:rgba(95,201,192,.08);
  --accent-glow:rgba(95,201,192,.14);
  --accent-glow-2:rgba(95,201,192,.05);
  --accent-grad:linear-gradient(135deg,#8fdcd5,#2f9a91);
  --accent-ink:#032422;
}
