/* ===== БАЗА ===== */

:root{
  --bg:#ffffff;
  --text:#0a0f1a;
  --muted:#5a667a;

  --blue:#0b66ff;
  --blue-600:#1558d6;
  --blue-100:#e8f1ff;

  --card:#ffffff;
  --border:#e8eef7;
  --shadow:0 12px 30px rgba(16, 24, 40, .08), 0 2px 10px rgba(16, 24, 40, .04);
}

*{ box-sizing:border-box; }
html,body{
  margin:0;
  padding:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }

.container{
  width:min(1200px,92vw);
  margin:0 auto;
}

/* ===== TOPBAR ===== */

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:#fff;
  border-bottom:1px solid var(--border);
  box-shadow:0 4px 16px rgba(16,24,40,.04);
}

.topbar__inner{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:6px 0;
  gap:16px;
  width:min(1200px,92vw);
  margin:0 auto;
}

.brand__logo{
  width: clamp(120px, 10vw, 160px);
}

/* ===== NAV / BURGER ===== */

.nav{
  display:flex;
  margin-left:auto;
  gap:8px;
  align-items:center;
}

.nav > a{
  padding:8px 12px;
  border-radius:999px;
  font-weight:600;
  color:#6b7690;
  transition:0.2s;
}

.nav > a:hover{
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
  color:#000;
}

.btn{
  padding:0 16px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-weight:700;
  background:#fff;
  border:1px solid var(--border);
}

.btn--cta{
  background:var(--blue);
  color:#fff;
  border:none;
}

.btn--cta:hover{
  background:var(--blue-600);
}

.btn--wide{
  min-width:220px;
}

.topbar__cta{ margin-left:8px; }

/* Burger (checkbox-hack) */
.nav-toggle{ display:none; }

.burger{
  display:none;
  margin-left:auto;
  width:40px; height:40px;
  border:1px solid var(--border);
  border-radius:10px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.burger span{
  display:block;
  width:20px; height:2px;
  background:#0f172a;
  margin:3px 0;
  transition:.25s;
}

/* ===== HERO ===== */

.hero{
  padding:24px 0 20px;
}

.hero__inner{
  position:relative;
  width:min(1200px,92vw);
  margin:0 auto;
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);

  background:#020617;
  background-image:url("background.gif");
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;

  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 32px;
}

.hero__inner::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:rgba(0,0,0,0.55);
}

.hero__content{
  position:relative;
  z-index:1;
  max-width:720px;
  text-align:center;
  color:#fff;
  margin:0 auto;
}

.hero__tag{
  display:inline-block;
  padding:4px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.25);
  font-size:13px;
  opacity:.9;
  margin-bottom:8px;
}

.hero__content h1{
  margin:0 0 12px;
  font-size:clamp(26px,2.6vw + 14px,42px);
  line-height:1.15;
}

.hero__text{
  max-width:70ch;
  opacity:.95;
  margin:0 auto;
}

.hero__actions{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-top:24px;
  flex-wrap:wrap; /* вместо translateX — адаптивно */
}

.pill{
  padding:0 18px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.4);
  color:#fff;
  display:flex;
  align-items:center;
}

.pill--ghost:hover{ background:rgba(255,255,255,.12); }

/* ===== АВАТАР-ДЕМО ===== */

.avatarDemo{
  padding:56px 0 20px;
}

.avatarDemo__layout{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:24px;
  align-items:start;
}

.avatarDemo__videoInner{
  background:#0b1220;
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow);
}


/* Резиновое видео 9:16 (вертикальный формат) */
.ratio{
  position: relative;
  width: 100%;
}

.ratio-9x16{
  /* современный способ */
  aspect-ratio: 9 / 16;
  /* фолбэк для старых браузеров */
  padding-top: 177.78%;
}

.ratio iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


.avatarDemo__note{
  font-size:14px;
  color:var(--muted);
  margin:10px 4px 0;
}

.avatarDemo__info{
  display:grid;
  gap:16px;
}

.avatarDemo__card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
}

.avatarDemo__card h2,
.avatarDemo__card h3{
  margin:0 0 8px 0;
}

/* ===== СЕКЦИИ ===== */

.section{ padding:64px 0; }
.section--muted{ background:var(--blue-100); }
.section--contacts{ background:#fff; }

.sectionTitle{
  font-size:clamp(22px,1.6vw + 12px,32px);
  margin-bottom:20px;
}

/* ===== GRID ===== */

.grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

.grid--step{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.card{
  background:#fff;
  padding:18px;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.card p{ color:var(--muted); }

.stepCard{
  background:#fff;
  padding:18px;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}

.stepCard__num{
  background:var(--blue-100);
  color:var(--blue-600);
  font-weight:700;
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:8px;
}

/* ===== CTA ===== */

.ctaCard{
  background:#f9fafb;
  border:1px solid var(--border);
  padding:22px;
  border-radius:18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.muted{ color:var(--muted); }

/* ===== FOOTER ===== */

.footer{
  padding:22px 0;
  border-top:1px solid var(--border);
  margin-top:40px;
}

.footer__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
}

.link{
  color:#246dff;
  font-weight:700;
}

/* ===== PRICING (если понадобится на странице) ===== */

.pricing{
  background:#f9fafb;
}

.pricingCard{
  background:#ffffff;
  border-radius:22px;
  padding:26px 26px 22px;
  border:1px solid rgba(148,163,184,0.4);
  box-shadow:0 18px 40px rgba(15,23,42,0.12);
}

.pricing__subtitle{
  margin:0 0 18px;
  font-size:15px;
  color:var(--muted);
}

.pricing__scroll{
  width:100%;
  overflow-x:auto;
}

.pricing__scroll::-webkit-scrollbar{ height:6px; }
.pricing__scroll::-webkit-scrollbar-thumb{
  background:#cbd5ff; border-radius:999px;
}

.pricingTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:15px;
}

.pricingTable thead th{
  padding:14px 16px;
  font-weight:600;
  color:#f9fafb;
  background:linear-gradient(90deg,#0b66ff 0%,#6366f1 50%,#22c1c3 100%);
  font-size:14px;
  text-align:left;
  white-space:nowrap;
  border-bottom:1px solid rgba(15,23,42,0.2);
  border-right:1px solid rgba(255,255,255,0.22);
}
.pricingTable thead th:first-child{ border-top-left-radius:14px; }
.pricingTable thead th:last-child{
  border-top-right-radius:14px; border-right:none;
}

.pricingTable tbody td{
  padding:14px 16px;
  border-bottom:1px solid #e2e8f0;
  border-right:1px solid #e2e8f0;
  color:#0f172a;
  background:#ffffff;
}
.pricingTable tbody td:last-child{ border-right:none; }

.pricingTable tbody tr:nth-child(even) td{ background:#f8fafc; }

.pricingTable tbody tr:hover td{
  background:#eef2ff;
  box-shadow:inset 0 0 0 1px rgba(99,102,241,0.25);
}

.pricingTable tbody tr:last-child td:first-child{ border-bottom-left-radius:14px; }
.pricingTable tbody tr:last-child td:last-child{ border-bottom-right-radius:14px; }

.pricingTable tbody td:nth-child(2),
.pricingTable tbody td:nth-child(3),
.pricingTable tbody td:nth-child(4){
  text-align:right;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}

.pricing__note{
  margin-top:14px;
  font-size:13px;
  color:var(--muted);
}

/* ===== АДАПТИВ ===== */

/* Планшет и ниже */
@media (max-width: 992px){
  .avatarDemo__layout{
    grid-template-columns: 1fr;
  }
}

/* Мобилки */
@media (max-width: 720px){
  /* burger видим, меню — выпадающее */
  .burger{ display:flex; }
  .topbar__cta{ display:none; } /* экономим место в шапке, CTA ниже можно дублировать */

  .nav{
    position:absolute;
    left:0; right:0;
    top:100%;
    background:#fff;
    border-bottom:1px solid var(--border);
    box-shadow:0 8px 20px rgba(0,0,0,.06);
    display:none;
    flex-direction:column;
    gap:0;
    padding:8px;
    z-index:40;
  }
  .nav > a{
    padding:12px 14px;
    border-radius:10px;
  }
  .nav > a:hover{ box-shadow:none; background:#f8fafc; }

  .nav-toggle:checked ~ .burger span:nth-child(1){ transform:translateY(5px) rotate(45deg); }
  .nav-toggle:checked ~ .burger span:nth-child(2){ opacity:0; }
  .nav-toggle:checked ~ .burger span:nth-child(3){ transform:translateY(-5px) rotate(-45deg); }
  .nav-toggle:checked ~ .nav{ display:flex; }

  .hero__inner{ padding:28px 16px; border-radius:16px; }
  .hero__actions{ justify-content:center; }
}

/* Таблица — карточки на телефоне */
@media(max-width:640px){

  .pricingCard{ padding:20px 16px; }

  .pricingTable{ border-spacing:0; }
  .pricingTable thead{ display:none; }

  .pricingTable,
  .pricingTable tbody,
  .pricingTable tr,
  .pricingTable td{
    display:block; width:100%;
  }

  .pricingTable tr{
    margin-bottom:12px;
    border:1px solid #e2e8f0;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(15,23,42,0.06);
  }

  .pricingTable tbody td{
    border-right:none;
    border-bottom:1px solid #e2e8f0;
    background:#ffffff;
    padding:10px 14px;
  }

  .pricingTable tbody tr:last-child td:last-child{ border-bottom:none; }

  .pricingTable tbody td::before{
    content:attr(data-label);
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:4px;
  }

  .pricingTable tbody td:nth-child(2),
  .pricingTable tbody td:nth-child(3),
  .pricingTable tbody td:nth-child(4){
    text-align:left;
  }
}





















