/* --- audio demo player --- */
.audio-demo{
  width: 100%;
  margin-top: 12px;
  height: 32px;
}
  :root{
  /* --- LiveSklad-like светлая палитра --- */
  --bg: #f6f8fc;
  --bg2:#ffffff;

  --card:#ffffff;
  --text:#0f172a;               /* почти чёрный, как в SaaS */
  --muted: rgba(15,23,42,.72);  /* вторичный текст */
  --line: rgba(15,23,42,.10);

  /* акценты (LiveSklad base) */
  --accent:#2f6df6;
  --accent2:#22c55e;
  --warn:#f59e0b;

  /* фирменные фиолетовые Алисы (для заголовков/акцентов) */
  --alice-purple:#7b61ff;
  --alice-purple-2:#a855f7;
  --alice-purple-3:#5b2dff;

  /* тени/радиусы */
  --shadow: 0 14px 36px rgba(15,23,42,.10);
  --shadow2: 0 8px 18px rgba(15,23,42,.08);

  --radius: 18px;
  --radius2: 22px;

  --max: 1120px;
  --pad: 20px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

*{box-sizing:border-box}

html, body { height:100%; }

body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  line-height:1.35;
  overflow-x:hidden;

  /* Единый градиент на всю страницу (без пятен и без разделений) */
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
}

a{color:inherit; text-decoration:none}

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

/* ---------------- HERO ---------------- */

header.hero{
  padding: 64px 0 54px; /* как у SaaS: больше воздуха */
  text-align: center;
}

.heroGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  align-items:stretch;
  justify-items: center;
}

@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr;}
}

/* Градиент текста (алисовский фиолетовый) */
.gradText{
  /* фиолетовый градиент в стиле Яндекс Алисы */
  background: linear-gradient(135deg, var(--alice-purple-3), var(--alice-purple), var(--alice-purple-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

/* Заголовок: одна строка (на мобилке — перенос) */
h1{
  font-size:56px;
  line-height:1.05;
  margin:4px 0 36px;
  letter-spacing:-.02em;
  max-width: 34ch; /* шире => не разваливается на 3 строки */
  margin-left:auto;
  margin-right:auto;
  text-wrap: balance;
}

/* Усиливаем «алисовский» акцент именно в заголовке */
h1 .gradText{
  filter: drop-shadow(0 10px 18px rgba(123,97,255,.18));
}

/* Управление переносами заголовка: 2 строки на десктопе, 3 строки на мобиле */
.br-desktop{ display: inline; }
.br-mobile{ display: none; }

@media (max-width: 560px){
  .br-desktop{ display: none; }
  .br-mobile{ display: inline; }
}

@media (max-width: 980px){
  h1{
    font-size:42px;
    max-width: 28ch;
  }
}

@media (max-width: 560px){
  h1{
    font-size:34px;
    max-width: 100%;
  }
}

.lead{
  font-size:20px;
  line-height:1.5;
  color: rgba(15,23,42,.72);
  margin:0 auto 36px;
  max-width: 74ch;
  margin-top: 0;
}


.ctaRow{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:12px;
  justify-content:center;
}

.fine{
  color: rgba(15,23,42,.55);
  font-size:13px;
  margin-top:10px;
}

/* ---------------- BUTTONS ---------------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  font-weight:650;
  border:1px solid transparent;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
  user-select:none;
  white-space:nowrap;
}

.btn:hover{transform:translateY(-1px)}
.btn:active{transform:none; opacity:.94}

.btn-primary{
  background: linear-gradient(135deg, var(--accent), rgba(47,109,246,.92));
  color:#ffffff;
  box-shadow: 0 12px 22px rgba(47,109,246,.22);
}

.btn-primary:hover{
  box-shadow: 0 14px 26px rgba(47,109,246,.26);
}

.btn-cta{
  padding: 16px 26px;
  border-radius: 18px;
  font-size: 16px;
  box-shadow: 0 16px 30px rgba(47,109,246,.22);
}

.btn-ghost{
  background: rgba(255,255,255,.75);
  border-color: rgba(15,23,42,.12);
  color: rgba(15,23,42,.86);
  box-shadow: var(--shadow2);
}

.btn-ghost:hover{
  background:#ffffff;
  border-color: rgba(47,109,246,.20);
}

/* ---------------- SECTIONS ---------------- */

section{padding:18px 0}

.sectionTitle{
  font-size:22px;
  margin:0 0 30px;
  letter-spacing:-.01em;
  text-align: center;
}

.sectionLead{
  margin:0 0 14px;
  color: rgba(15,23,42,.70);
}

/* ---------------- CARDS ---------------- */

.card{
  background:var(--card);
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.cardInner{padding:18px}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

@media (max-width:980px){
  .grid3{grid-template-columns:1fr;}
}

/* ICON BLOCK */

.icon{
  width:38px;
  height:38px;
  border-radius:14px;
  background: rgba(47,109,246,.08);
  border:1px solid rgba(47,109,246,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
}

.pTitle{
  font-weight:800;
  margin:10px 0 6px;
}

.pText{
  margin:0;
  color: rgba(15,23,42,.70);
  font-size:14px;
}

/* ---------------- PRICING ---------------- */

/* --- Pricing: SaaS / LiveSklad-like --- */
#pricing{
  padding: 44px 0;
}

.pricingHeader{
  text-align:center;
  margin-bottom: 22px;
}

.pricingHeader .sectionLead{
  max-width: 74ch;
  margin: 0 auto;
}

.pricingShell{
  background: rgba(47,109,246,.05);
  border: 1px solid rgba(47,109,246,.10);
  border-radius: 26px;
  padding: 18px;
}

.pricingCards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 980px){
  .pricingCards{ grid-template-columns: 1fr; }
}

.pricingCard{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}

.pricingCardInner{
  padding: 22px;
  height: 100%;
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.pricingTop{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pricingPlan{
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -.01em;
}

.pricingTag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.05);
  border: 1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.78);
  font-size: 12px;
  white-space: nowrap;
}

/* .pricingCard--featured{
  border-color: rgba(47,109,246,.22);
  box-shadow: 0 18px 50px rgba(47,109,246,.14);
}

.pricingCard--featured::before{
  content:"Рекомендуем";
  position:absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47,109,246,.10);
  border: 1px solid rgba(47,109,246,.22);
  color: rgba(15,23,42,.86);
  font-size: 12px;
  font-weight: 800;
} */

.pricingDesc{
  color: rgba(15,23,42,.70);
  margin: 0;
  line-height: 1.5;
}

.pricingMeta{
  display:flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.pricingPrice{
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.pricingPeriod{
  color: rgba(15,23,42,.60);
  font-weight: 700;
}

.pricingSub{
  color: rgba(15,23,42,.68);
  font-size: 14px;
}

.pricingList{
  margin: 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}

.pricingList li{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  color: rgba(15,23,42,.86);
  line-height: 1.4;
}

.pricingList li::before{
  content:"✓";
  width: 20px;
  height: 20px;
  border-radius: 8px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.25);
  color: rgba(15,23,42,.90);
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}

.pricingFoot{
  margin-top: auto;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-wide{ width: 100%; }

.pricingHint{
  font-size: 12px;
  color: rgba(15,23,42,.55);
  margin: 8px 0 0;
}

.hr{
  height:1px;
  background: rgba(15,23,42,.10);
  margin:14px 0;
}

.pillRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pill{
  padding:8px 12px;
  border-radius:999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.78);
  font-size:13px;
}

.note{
  padding:12px;
  border-radius:16px;
  background: rgba(34,197,94,.08);
  border:1px solid rgba(34,197,94,.22);
  color: rgba(15,23,42,.86);
  font-size:14px;
}

.pricingGrid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
}

@media (max-width:980px){
  .pricingGrid{grid-template-columns:1fr;}
}

.price{
  font-size:36px;
  font-weight:900;
  letter-spacing:-.02em;
}

.muted{color: rgba(15,23,42,.70)}

.kbd{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
  padding:2px 8px;
  border-radius:10px;
  background: rgba(15,23,42,.05);
  border:1px solid rgba(15,23,42,.10);
  color: rgba(15,23,42,.75);
}

/* бейджик в прайс-карточке (если используешь) */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background: rgba(47,109,246,.08);
  border:1px solid rgba(47,109,246,.18);
  color: rgba(15,23,42,.78);
  font-size:13px;
  width:fit-content;
}

/* уменьшаем расстояние только между строками доплат */
.pricingSub + .pricingSub{
  margin-top: -10px; /* подбери: -6…-10 */
}

/* --- Pricing card centered (LiveSklad-like) --- */
.pricingCard--center{
  text-align: center;
  border-radius: 28px;
}

.pricingKicker{
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(47,109,246,.80);
  font-size: 18px;
  margin-top: 2px;
}

.pricingMeta--center{
  justify-content: center;
  gap: 10px;
}

.pricingPrice--center{
  font-size: 44px;
  line-height: 1.0;
}

.pricingPeriod--center{
  font-size: 18px;
  font-weight: 800;
  color: rgba(15,23,42,.60);
  margin-left: 6px;
}

.pricingSub--center{
  text-align: center;
}

.pricingDivider{
  height: 2px;
  width: 72%;
  margin: 14px auto 10px;
  background: rgba(47,109,246,.70);
  border-radius: 999px;
}

.pricingList--center{
  justify-items: center;
  margin-top: 2px;
  gap: 12px;
}

.pricingList--center li{
  justify-content: center;
  text-align: center;
}

.pricingList--center li::before{
  border-radius: 999px;
}

.pricingFoot--center{
  justify-content: center;
  margin-top: 10px;
}

.pricingHint--center{
  text-align: center;
}

/* ---------------- MODAL (Lead form) ---------------- */
body.modal-open{ overflow: hidden; }

.modal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.modal.is-open{ display: block; }

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal__dialog{
  position: relative;
  max-width: 640px;
  margin: 8vh auto;
  padding: 0 var(--pad);
}

.modal__card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(15,23,42,.24);
  overflow: hidden;
}

.modal__head{
  position: relative;
  display:flex;
  align-items:flex-start;
  justify-content: center;
  gap: 12px;
  padding: 18px 18px 0;
}

.modal__title{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: rgba(15,23,42,.92);
  text-align: center;
}

.modal__close{
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 18px;
  color: rgba(15,23,42,.70);
  transition: background .12s ease, color .12s ease, transform .12s ease;
  position: absolute;
  right: 12px;
  top: 12px;
}

.modal__close:hover{
  background: rgba(47,109,246,.08);
  color: rgba(15,23,42,.92);
}

.modal__body{
  padding: 28px 18px 18px; /* больше воздуха под заголовком */
}

/* кнопка в форме — как на главной */
.modal__body .btn-cta{
  padding: 16px 26px;
  border-radius: 18px;
  font-size: 16px;
  box-shadow: 0 16px 30px rgba(47,109,246,.22);

  width: fit-content;
  margin: 14px auto 0;
}

@media (max-width: 560px){
  .modal__dialog{ margin: 6vh auto; }
}

/* ---------------- FORMS ---------------- */

form{
  display:grid;
  gap:10px;
}

label{
  font-size:13px;
  color: rgba(15,23,42,.70);
}

input, textarea, select{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.14);
  background: #ffffff;
  color: var(--text);
  outline:none;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}

textarea{min-height:90px; resize:vertical;}

input:focus, textarea:focus, select:focus{
  border-color: rgba(47,109,246,.55);
  box-shadow: 0 0 0 4px rgba(47,109,246,.14);
}

/* типографика формы — как на главной */
.modal__body label{
  font-size: 14px;
  font-weight: 650;
  color: rgba(15,23,42,.82);
}

.modal__body input,
.modal__body select,
.modal__body textarea{
  font-size: 16px;
  line-height: 1.35;
}

/* ---------------- FOOTER ---------------- */

footer{
  padding:22px 0 30px;
  color: rgba(15,23,42,.55);
  font-size:13px;
  border-top:1px solid rgba(15,23,42,.10);
  margin-top:14px;
}

.split{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* ---------------- SMALL TWEAKS ---------------- */

/* Чуть “живее” hover у карточек (как у SaaS) */
.card:hover{
  transform: translateY(-1px);
  box-shadow: 0 16px 42px rgba(15,23,42,.12);
  transition: transform .12s ease, box-shadow .12s ease;
}

/* ---------------- TOPBAR (VoiceCRM) ---------------- */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(246,248,252,.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-bottom: 1px solid rgba(15,23,42,.10);
}

.topbarRow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.01em;
}

.brandMark{
  width:34px;
  height:34px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 20px rgba(47,109,246,.18);
  flex: 0 0 auto;
}

.brandName{
  font-size:16px;
  color: rgba(15,23,42,.92);
}

.nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav a{
  font-size:14px;
  color: rgba(15,23,42,.70);
  padding:8px 10px;
  border-radius:12px;
  transition: background .12s ease, color .12s ease;
}

.nav a:hover{
  background: rgba(47,109,246,.08);
  color: rgba(15,23,42,.92);
}

.topbarActions{
  display:flex;
  align-items:center;
  gap:10px;
}

@media (max-width: 980px){
  .nav{display:none;}
}
/* ---------------- NARROW SECTIONS ---------------- */
.narrow{
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px){
  .narrow{ max-width: 100%; }
}