/* ВАРІАНТ C1 «Tally premium» (референс Діми: tallysoft.framer.website)
   Граматика tallysoft: величезний спокійний заголовок, вирізаний об'єкт на ореолі, темні плаваючі «чипи» з крапкою,
   пігулкова кнопка з колом-стрілкою, картка цифр. Преміум: глибокий зелений бренду + шампань-золото (gold з ДС) на теплому папері.
   CTA синій за ТЗ. Дані лише з business.aisance.io/fr/scanner, без вигаданих відгуків і рейтингів. */
body.tally{--ink:#0B2A26;--ink-2:#3C4F4B;--muted:#72807C;--line:#E6E1D6;--brand:#0E5A4F;--deep:#0A2B27;--gold:#C9A55E;--gold-2:#E9D6A6;
  --paper:#F6F3EC;--fh:"Host Grotesk","Inter",system-ui,sans-serif;background:var(--paper);color:var(--ink)}
body.tally .bg-shape{display:none}
body.tally .top{background:rgba(246,243,236,.86)}
body.tally h1,body.tally h2,body.tally h3,body.tally .btn{font-family:var(--fh)}
body.tally main{padding-top:10px;padding-bottom:14px}
.t-eye{margin:0;font:500 13px/1 var(--fh);color:var(--gold);letter-spacing:0}

/* кнопка як у tallysoft: пігулка + біле коло зі стрілкою (синій за ТЗ) */
body.tally .t-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:14px;height:58px;padding:0 7px 0 26px;border-radius:999px;
  font:600 16px/1 var(--fh);letter-spacing:-.01em}
body.tally .t-cta .t-arr{flex:none;width:44px;height:44px;border-radius:50%;background:#fff;color:#1170F5;display:grid;place-items:center;font-size:18px;
  transition:transform .35s cubic-bezier(.2,.8,.2,1)}
body.tally .t-cta:hover .t-arr{transform:translateX(3px)}
body.tally .t-cta>i.arr{display:none}

/* чип: глибокий зелений, золота крапка */
.tchip{position:absolute;z-index:4;display:inline-flex;align-items:center;gap:9px;padding:10px 16px 10px 12px;border-radius:999px;
  background:var(--deep);color:#F6F3EC;font:500 13.5px/1 var(--fh);white-space:nowrap;box-shadow:0 14px 30px -14px rgba(10,43,39,.55);
  animation:tFloat 6s ease-in-out infinite}
.tchip i{width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(201,165,94,.22)}
@keyframes tFloat{0%,100%{translate:0 0}50%{translate:0 -6px}}

/* ---------- STEP 1 ---------- */
body.tally .step.t1.active{display:block}
.t1-stage{position:relative;width:100%;height:min(700px,calc(100vh - 104px));min-height:600px;border-radius:32px;overflow:hidden;
  background:radial-gradient(90% 80% at 50% 100%,#EAE3D3 0%,rgba(234,227,211,0) 70%),linear-gradient(180deg,#FBF9F4,#F3EFE5)}
body.tally .step[data-step="1"] h1.t1-h{position:absolute;left:0;right:0;top:34px;margin:0!important;text-align:center;z-index:1;white-space:normal!important;
  font:500 clamp(60px,7.4vw,112px)/.93 var(--fh)!important;letter-spacing:-.052em!important;color:var(--deep)}
.t1-h span{display:block}
.t1-h span+span{color:var(--brand);opacity:.92}
.t1-halo{position:absolute;left:50%;bottom:-150px;width:620px;height:620px;margin-left:-310px;border-radius:50%;z-index:0;
  background:radial-gradient(closest-side,#fff 0%,rgba(255,255,255,.7) 45%,rgba(233,214,166,.55) 75%,rgba(233,214,166,0) 100%)}
.t1-halo span{position:absolute;inset:60px;border-radius:50%;border:1px solid rgba(201,165,94,.35)}
.t1-scan{position:absolute;left:50%;bottom:-3%;width:min(500px,36vw);transform:translateX(-50%);z-index:2;
  filter:drop-shadow(0 36px 34px rgba(10,43,39,.28)) drop-shadow(0 6px 10px rgba(10,43,39,.12))}
.tc-a{left:calc(50% - 400px);top:38%}
.tc-b{left:calc(50% + 170px);top:44%;animation-delay:-2s}
.tc-c{left:calc(50% - 330px);top:52%;animation-delay:-4s}
.t1-left{position:absolute;left:40px;bottom:38px;width:min(370px,27vw);z-index:3;display:flex;flex-direction:column;gap:18px}
.t1-lead{margin:0;font:400 15.5px/1.55 var(--fh);color:var(--ink-2)}
body.tally .t1-left .t-cta{width:100%}
.t1-by{display:flex;align-items:center;gap:12px}
.t1-seal{flex:none;width:40px;height:40px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 1px var(--line)}
.t1-seal img{border-radius:3px}
.t1-by p{margin:0;display:flex;flex-direction:column;gap:3px}
.t1-by b{font:600 14px/1.2 var(--fh);color:var(--ink)}
.t1-by span{font:400 12.5px/1.2 var(--fh);color:var(--muted)}
.t1-video{position:absolute;right:38px;bottom:38px;width:min(330px,24vw);z-index:3;padding:6px;border-radius:24px;background:#fff;
  box-shadow:0 1px 2px rgba(10,43,39,.06),0 24px 44px -24px rgba(10,43,39,.4)}
body.tally .t1-video .media{aspect-ratio:16/10.5;border-radius:18px;box-shadow:none;margin:0}
body.tally .t1-video .vtitle.vt-on{font-size:12px!important;padding:6px 10px 6px 8px!important;left:10px!important;top:10px!important}
body.tally .t1-video .play,body.tally .t1-video .video.hot .play{width:58px!important;height:58px!important;margin:-29px 0 0 -29px!important}
body.tally .t1-video .sound{font-size:11px;padding:6px 10px;bottom:10px}
body.tally .t1-video .dur{top:10px;right:10px;font-size:11px;padding:5px 8px}

/* ---------- STEP 2 ---------- */
body.tally .step.t2.active{display:block}
.t2-panel{position:relative;display:grid;grid-template-columns:minmax(0,4.2fr) minmax(0,7fr);grid-template-rows:1fr auto;gap:22px 44px;
  padding:40px;border-radius:32px;background:radial-gradient(70% 90% at 0% 0%,#14423B 0%,#0A2B27 60%),#0A2B27;color:#F6F3EC;
  height:min(700px,calc(100vh - 104px));min-height:600px;overflow:hidden}
.t2-panel::after{content:"";position:absolute;right:-120px;top:-160px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(201,165,94,.18),rgba(201,165,94,0));pointer-events:none}
.t2-copy{display:flex;flex-direction:column;gap:14px;min-width:0;grid-row:1/3}
body.tally .step[data-step="2"] .t2-copy h2{margin:0!important;font:500 clamp(36px,3.5vw,50px)/1 var(--fh)!important;letter-spacing:-.04em!important;color:#fff;white-space:normal!important}
.t2-sub{margin:0;font:400 15px/1.55 var(--fh);color:rgba(246,243,236,.72)}
body.tally .t2-tabs{display:flex!important;flex-direction:column;gap:2px;margin-top:6px;counter-reset:tt;grid-template-columns:none!important}
body.tally .t2-tabs button{appearance:none;counter-increment:tt;display:flex;align-items:center;gap:14px;width:100%;padding:11px 14px;border:0!important;border-radius:14px;
  background:transparent;color:rgba(246,243,236,.62);font:500 15.5px/1.2 var(--fh);text-align:left;cursor:pointer;opacity:1!important;aspect-ratio:auto!important;box-shadow:none!important;
  transition:background .3s,color .3s}
body.tally .t2-tabs button::before{content:"0" counter(tt);font:500 12px/1 var(--fh);color:rgba(201,165,94,.7);width:20px}
body.tally .t2-tabs button:hover{color:#fff}
body.tally .t2-tabs button.on{background:rgba(246,243,236,.08);color:#fff;box-shadow:inset 0 0 0 1px rgba(246,243,236,.12)!important}
body.tally .t2-tabs button.on::before{color:var(--gold)}
.t2-stats{list-style:none;margin:auto 0 0;padding:16px 0 0;border-top:1px solid rgba(246,243,236,.12);display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.t2-stats li{display:flex;flex-direction:column;gap:5px}
.t2-stats b{font:500 26px/1 var(--fh);letter-spacing:-.03em;color:var(--gold-2)}
.t2-stats span{font:400 12.5px/1.25 var(--fh);color:rgba(246,243,236,.6)}
body.tally .t2-show{grid-column:2;grid-row:1;min-height:0;filter:none!important;margin:0}
body.tally .t2-show .stage{height:100%;aspect-ratio:auto!important;border-radius:22px!important;box-shadow:0 30px 60px -30px rgba(0,0,0,.6)}
body.tally .t2-show .track,body.tally .t2-show .sl{height:100%}
body.tally .t2-show .sl img{height:100%;object-fit:cover}
body.tally .t2-show .capbar.t2-cap{position:absolute!important;left:16px;bottom:16px;right:auto;z-index:4;margin:0!important;width:min(440px,calc(100% - 32px));min-height:0;height:auto;
  border:1px solid rgba(255,255,255,.6)!important;border-radius:18px!important;background:rgba(255,255,255,.82);backdrop-filter:blur(14px) saturate(1.3);-webkit-backdrop-filter:blur(14px) saturate(1.3);display:grid!important}
body.tally .t2-show .cap{padding:14px 18px!important;flex-direction:column;align-items:flex-start;gap:6px}
body.tally .t2-show .cap b{font:600 17px/1.2 var(--fh)!important;color:var(--deep)!important;letter-spacing:-.01em}
body.tally .t2-show .cap ul{margin:0;font:400 13px/1.3 var(--fh)!important;color:var(--ink-2)}
body.tally .t2-show .nav{top:22px;margin:0;bottom:auto}
body.tally .t2-show .nav.prev{left:auto;right:70px}
body.tally .t2-show .nav.next{right:18px}
body.tally .t2-show .autobar{top:0;bottom:auto;background:var(--gold)}
body.tally .t2-cta{grid-column:2;grid-row:2;margin:0;display:flex;justify-content:flex-end}
body.tally .t2-cta .t-cta{min-width:420px}

/* ---------- STEP 3 ---------- */
body.tally .step.t3.active{display:grid!important;grid-template-columns:minmax(0,6fr) minmax(0,5fr)!important;gap:28px!important;align-items:stretch!important}
.t3-visual{position:relative;border-radius:32px;overflow:hidden;min-height:0;height:min(700px,calc(100vh - 104px))}
.t3-visual img{width:100%;height:100%;object-fit:cover;display:block}
.t3-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,43,39,0) 55%,rgba(10,43,39,.35))}
.tc-d{left:24px;bottom:24px}
.tc-e{left:24px;bottom:72px;animation-delay:-3s}
body.tally .t3-card{align-self:stretch;justify-content:center;display:flex;flex-direction:column;gap:14px;padding:36px 36px 28px;border-radius:32px;background:#fff;
  box-shadow:0 1px 2px rgba(10,43,39,.05),0 30px 60px -36px rgba(10,43,39,.35);text-align:left;align-items:stretch}
body.tally .step[data-step="3"] .t3-card h2{margin:0!important;font:500 34px/1.05 var(--fh)!important;letter-spacing:-.035em!important;color:var(--deep);white-space:normal!important}
body.tally .t3-card .price{display:flex;align-items:baseline;gap:12px;margin:4px 0 0}
body.tally .t3-card .price .now{font:500 56px/1 var(--fh)!important;letter-spacing:-.04em;color:var(--deep)}
body.tally .t3-card .price .was{font:400 20px/1 var(--fh)!important;color:var(--muted)}
body.tally .t3-card .price .save{font:600 13px/1 var(--fh);padding:7px 11px;border-radius:999px;background:#F5ECD6;color:#7A5A1C}
body.tally .t3-card .split{margin:-4px 0 0;font:400 13.5px/1.4 var(--fh);color:var(--muted)}
.t3-list{list-style:none;margin:4px 0 2px;padding:16px 0 0;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:13px}
.t3-list li{display:flex;gap:12px;align-items:flex-start}
.t3-list .ck{flex:none;width:24px;height:24px;border-radius:50%;background:var(--deep);color:var(--gold-2);display:grid;place-items:center;font-size:12px;margin-top:1px}
.t3-list p{margin:0;display:flex;flex-direction:column;gap:3px}
.t3-list b{font:600 15px/1.25 var(--fh);color:var(--ink)}
.t3-list span{font:400 13px/1.4 var(--fh);color:var(--muted)}
body.tally .t3 .cta-row.two{display:flex!important;flex-direction:column;gap:10px;margin:4px 0 0}
body.tally .t3 .cta-row.two .t-cta{width:100%}
body.tally .t3 .agent-btn{width:100%;border-radius:999px!important;height:58px}
.t3-foot{display:flex;flex-wrap:nowrap;align-items:center;gap:8px 18px;padding-top:4px}
.t3-foot span{display:inline-flex;align-items:center;gap:6px;font:400 12.5px/1 var(--fh);color:var(--muted)}
.t3-foot i{font-size:14px;color:var(--brand)}
.t3-faq{margin-left:auto;appearance:none;border:0;background:none;padding:0;display:inline-flex;align-items:center;gap:6px;cursor:pointer;
  font:500 12.5px/1 var(--fh);color:var(--ink);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line)}

/* ---------- MOBILE ---------- */
@media (max-width:960px){
  body.tally main{padding:10px 12px 14px}
  .t1-stage{height:auto;min-height:0;padding:22px 18px 18px;display:flex;flex-direction:column;gap:14px;border-radius:24px}
  body.tally .step[data-step="1"] h1.t1-h{position:static;font-size:44px!important;text-align:left}
  .t1-halo{bottom:auto;top:150px;width:340px;height:340px;margin-left:-170px}
  .t1-scan{position:relative;left:auto;bottom:auto;transform:none;width:70%;margin:0 auto}
  .tchip{display:none}
  .t1-left,.t1-video{position:static;width:auto}
  .t1-left{gap:12px}.t1-lead{font-size:14px}
  .t1-video{display:none}
  .t2-panel{grid-template-columns:1fr;grid-template-rows:auto;height:auto;min-height:0;padding:20px 16px;gap:14px;border-radius:24px}
  .t2-copy{grid-row:auto}
  body.tally .step[data-step="2"] .t2-copy h2{font-size:30px!important}
  .t2-sub{font-size:13.5px}
  body.tally .t2-tabs{flex-direction:row;overflow-x:auto;gap:4px}
  body.tally .t2-tabs button{width:auto;white-space:nowrap;padding:8px 11px;font-size:13px}
  body.tally .t2-tabs button::before{display:none}
  .t2-stats{display:none}
  body.tally .t2-show{grid-column:auto;grid-row:auto}
  body.tally .t2-show .stage{height:auto;aspect-ratio:4/3!important}
  body.tally .t2-show .capbar.t2-cap{left:10px;bottom:10px;width:calc(100% - 20px)}
  body.tally .t2-cta{grid-column:auto;grid-row:auto}
  body.tally .t2-cta .t-cta{min-width:0;width:100%}
  body.tally .step.t3.active{grid-template-columns:1fr!important;gap:12px!important}
  .t3-visual{height:200px;border-radius:22px}
  .tc-e{display:none}
  body.tally .t3-card{padding:20px 18px;border-radius:22px;gap:10px}
  body.tally .step[data-step="3"] .t3-card h2{font-size:26px!important}
  body.tally .t3-card .price .now{font-size:42px!important}
  .t3-list{display:none}
  body.tally .t-cta{height:54px;font-size:15px}
  body.tally .t-cta .t-arr{width:40px;height:40px}
}
@media (max-width:960px){
  body.tally .step.active{display:flex!important;flex-direction:column;justify-content:flex-start!important;align-items:stretch!important;flex:0 0 auto}
  body.tally main{justify-content:flex-start}
  .t3-visual{flex:none}
  .t3-foot{flex-wrap:wrap}
}

/* ===== 01.12 ЕКРАН 1, ПЕРЕРОБКА (Альона: «все в одну купу, немає балансу»)
   Дві зони 5/7, проміжок 64, поля 64. Відступи лише 8 · 16 · 24 · 32 · 64.
   Ієрархія: надзаголовок → заголовок 72 → пояснення → одна кнопка → 3 факти → довіра. Праворуч доказ: сканер + відео, 1 чип. */
body.tally .t1-stage{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);column-gap:64px;align-items:center;
  padding:0 64px;height:min(680px,calc(100vh - 110px));min-height:560px}
.t1-copy{display:flex;flex-direction:column;align-items:flex-start;gap:24px;position:relative;z-index:3}
body.tally .step[data-step="1"] h1.t1-h{position:static;margin:-8px 0 0!important;text-align:left;font:500 clamp(48px,5vw,72px)/.98 var(--fh)!important;letter-spacing:-.045em!important}
body.tally .t1-copy .t-eye{color:#9A7630}
.t1-lead{max-width:440px;font-size:16px;line-height:1.55}
body.tally .t1-copy .t-cta{width:auto;min-width:360px}
.t1-facts{list-style:none;margin:8px 0 0;padding:24px 0 0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,auto);gap:32px;width:100%}
.t1-facts li{display:flex;flex-direction:column;gap:4px}
.t1-facts b{font:500 24px/1 var(--fh);letter-spacing:-.03em;color:var(--deep)}
.t1-facts span{font:400 12.5px/1.3 var(--fh);color:var(--muted)}
body.tally .t1-left{display:none}
.t1-visual{position:relative;height:100%;min-height:0}
body.tally .t1-halo{left:50%;top:50%;bottom:auto;width:560px;height:560px;margin:-300px 0 0 -280px}
body.tally .t1-scan{left:50%;top:50%;bottom:auto;width:min(440px,32vw);transform:translate(-56%,-58%)}
body.tally .tc-a{left:4%;top:16%}
body.tally .t1-video{right:0;bottom:48px;width:min(300px,22vw)}
@media (max-width:960px){
  body.tally .t1-stage{display:flex;flex-direction:column;padding:24px 16px;height:auto;min-height:0;gap:16px}
  .t1-copy{gap:16px}
  body.tally .step[data-step="1"] h1.t1-h{font-size:40px!important}
  body.tally .t1-copy .t-cta{min-width:0;width:100%}
  .t1-facts{gap:16px;padding-top:16px}.t1-facts b{font-size:20px}
  .t1-visual{order:-1;height:220px;width:100%}
  body.tally .t1-halo{width:260px;height:260px;margin:-130px 0 0 -130px}
  body.tally .t1-scan{width:200px;transform:translate(-50%,-50%)}
  .t1-by{display:none}
}
@media (min-width:961px){
  body.tally .t1-stage{grid-template-columns:minmax(0,6fr) minmax(0,6fr)}
  body.tally .step[data-step="1"] h1.t1-h{font-size:clamp(44px,4.4vw,64px)!important}
  .t1-h span{white-space:nowrap}
  body.tally .t1-scan{width:min(400px,28vw);transform:translate(-62%,-64%)}
  body.tally .t1-halo{margin:-320px 0 0 -320px;width:520px;height:520px}
  body.tally .tc-a{left:0;top:14%}
  body.tally .t1-video{right:0;bottom:56px;width:min(280px,20vw)}
}
body.tally .t1-video .sound{white-space:nowrap}
@media (min-width:961px){body.tally .t1-video{width:min(300px,22vw)}}
