/* ООО «ТЕТИС Кэпитал» — стили страницы */
.slink.is-cur {
  background:#ffffff;
  color:#070B24;
}

.slink.is-cur:hover {
  background:#ffffff;
  color:#070B24;
}

.co-hero {
  background:linear-gradient(90deg,rgba(7,11,36,0.92) 0%,rgba(7,11,36,0.55) 42%,rgba(7,11,36,0.1) 72%),linear-gradient(0deg,rgba(7,11,36,0.75) 0%,rgba(7,11,36,0) 46%),#070B24 url(../img/bar-chart.webp) 70% 50%/cover no-repeat;
  min-height:680px;
}

.co-crumbs {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:rgba(255,255,255,0.72);
}

.co-crumbs a {
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,0.08);
  color:rgba(255,255,255,0.9);
  transition:background .3s,color .3s;
}

.co-crumbs a:hover {
  background:#ffffff;
  color:#070B24;
}

.co-crumbs [aria-current] {
  color:#ffffff;
  padding:0 6px;
}

.co-h1 {
  font-size:96px;
  max-width:820px;
}

.co-plate {
  position:relative;
  flex:0 0 auto;
  width:280px;
  height:176px;
  border-radius:var(--r-card);
  background:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px 34px;
  box-shadow:0 30px 80px rgba(47,91,255,0.45),0 0 0 8px rgba(255,255,255,0.08);
  animation:up 1s cubic-bezier(.16,1,.3,1) .3s both;
}

.co-plate img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}

.co-plate-cap {
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 14px);
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:rgba(255,255,255,0.86);
}

.co-stat .stat-n {
  font-size:58px;
  white-space:nowrap;
}

.co-stat .stat-c {
  max-width:200px;
}

.sheet {
  position:relative;
  overflow:clip;
  border-radius:var(--r-panel);
  color:#0A1230;
  background:#ffffff;
  padding:80px 64px 0;
}

.ch-part {
  margin:0 -64px;
  padding:150px 64px 64px;
  background:linear-gradient(180deg,#ffffff 0%,#C9D7F2 8%,#6F8EDF 18%,#3D6BF0 28%,#2F5BFF 62%,#1B3FB0 100%);
}

.sheet-top {
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
  gap:40px 72px;
}

.sheet-p {
  margin:0;
  font-size:18px;
  line-height:1.6;
  font-weight:300;
  color:#0A1230;
}

.sheet-p .mute {
  color:#8A93A6;
}

.facts {
  margin:36px 0 0;
  display:grid;
  grid-template-columns:200px minmax(0,1fr);
  border-top:1px solid #E1E7F2;
}

.facts dt,
.facts dd {
  margin:0;
  padding:16px 0;
  border-bottom:1px solid #E1E7F2;
}

.facts dt {
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#4A5263;
  padding-top:20px;
}

.facts dd {
  font-size:17px;
  line-height:1.45;
}

.facts a {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#1B4C9C;
  min-height:28px;
}

.facts a:hover {
  color:#2F5BFF;
}

.inn {
  font-variant-numeric:tabular-nums;
  letter-spacing:.04em;
}

.ch-head {
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px 40px;
  flex-wrap:wrap;
  color:#ffffff;
}

.ch-leg {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.ch-leg span {
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 14px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.24);
  font-size:13px;
  color:#ffffff;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.ch-leg i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:0 0 10px #ffffff;
}

.ch-box {
  position:relative;
  margin-top:28px;
  overflow-x:auto;
  scrollbar-width:none;
}

.ch-box::-webkit-scrollbar {
  display:none;
}

.ch-box:focus-visible {
  outline:2px solid #ffffff;
  outline-offset:4px;
  border-radius:var(--r-sm);
}

.ch-svg {
  display:block;
  width:100%;
  min-width:720px;
  height:auto;
  overflow:visible;
  font-family:'Onest',system-ui,sans-serif;
}

.ch-grid {
  stroke:rgba(255,255,255,0.22);
  stroke-width:1;
  stroke-dasharray:2 6;
}

.ch-yr {
  fill:rgba(255,255,255,0.82);
  font-size:13px;
}

.ch-lvl {
  fill:#ffffff;
  font-size:15px;
  font-weight:500;
}

.ch-line {
  fill:none;
  stroke:#ffffff;
  stroke-width:4;
}

.ch-glow {
  fill:none;
  stroke:#BFD3FF;
  stroke-width:14;
  opacity:.55;
}

.ch-pt {
  fill:#2F5BFF;
  stroke:#ffffff;
  stroke-width:3;
}

.ch-up {
  fill:#ffffff;
  stroke:#ffffff;
  stroke-width:3;
}

.ch-tip {
  fill:rgba(255,255,255,0.9);
  font-size:12px;
}

.ch-stats {
  position:relative;
  display:flex;
  gap:24px 72px;
  flex-wrap:wrap;
  margin-top:40px;
  color:#ffffff;
}

.ch-stats .stat-n {
  font-size:48px;
}

@keyframes draw {
  from {
    stroke-dashoffset:1;
  }
  to {
    stroke-dashoffset:0;
  }
}

@keyframes ptin {
  from {
    opacity:0;
    transform:scale(.2);
  }
  to {
    opacity:1;
    transform:none;
  }
}

@supports (animation-timeline: view()) {
  .ch-svg .ch-line,
  .ch-svg .ch-glow {
    stroke-dasharray:1;
    animation:draw linear both;
    animation-timeline:view();
    animation-range:entry 20% cover 50%;
  }
  .ch-svg .ch-dot {
    transform-box:fill-box;
    transform-origin:center;
    animation:ptin cubic-bezier(.16,1,.3,1) both;
    animation-timeline:view();
    animation-range:entry calc(20% + var(--i, 0) * 3%) cover calc(36% + var(--i, 0) * 2%);
  }
}

.co-ghost {
  top:46%;
  font-size:300px;
}

.tl-bar {
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px 32px;
  flex-wrap:wrap;
  margin-bottom:28px;
}

.tl-note {
  margin:0;
  max-width:560px;
  font-size:16px;
  line-height:1.6;
  font-weight:300;
  color:rgba(255,255,255,0.88);
}

.rbtn[disabled] {
  opacity:.35;
  cursor:default;
  transform:none;
}

.tl-view {
  position:relative;
  overflow:clip;
  padding:4px 4px 40px 64px;
  margin:-4px -4px -40px -64px;
  -webkit-mask-image:linear-gradient(90deg,transparent 44px,#000 64px);
  mask-image:linear-gradient(90deg,transparent 44px,#000 64px);
}

.tl-track {
  --cw:290px;
  display:flex;
  gap:20px;
  transform:translateX(calc(var(--o) * -1 * (var(--cw) + 20px)));
  transition:transform .9s cubic-bezier(.16,1,.3,1);
}

.tl-item {
  flex:0 0 var(--cw);
  display:flex;
  flex-direction:column;
  gap:18px;
}

.tl-rail {
  position:relative;
  height:56px;
}

.tl-rail::before {
  content:"";
  position:absolute;
  left:0;
  right:-20px;
  top:40px;
  height:2px;
  background:linear-gradient(90deg,rgba(158,187,234,0.65),rgba(158,187,234,0.25));
}

.tl-year {
  position:absolute;
  left:0;
  top:0;
  font-size:13px;
  font-weight:600;
  letter-spacing:.12em;
  color:#9EBBEA;
}

.tl-dot {
  position:absolute;
  left:0;
  top:33px;
  width:16px;
  height:16px;
  border-radius:50%;
  background:#070B24;
  border:2px solid #9EBBEA;
}

.tl-dot.is-up {
  background:#ffffff;
  border-color:#ffffff;
  box-shadow:0 0 0 6px rgba(47,91,255,0.35),0 0 24px rgba(158,187,234,0.9);
}

.tl-card {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:16px;
  min-height:330px;
  padding:24px;
  border-radius:var(--r-card);
  background:#ffffff;
  color:#0A1230;
  transition:transform .5s cubic-bezier(.2,.7,.2,1),box-shadow .5s;
}

.tl-card:hover {
  transform:translateY(-8px);
  box-shadow:0 26px 60px rgba(47,91,255,0.42);
}

.tl-card.is-up {
  box-shadow:0 0 0 2px #3D7FEA,0 24px 60px rgba(47,91,255,0.4);
}

.tl-chips {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.tl-chips .chip {
  height:30px;
  padding:0 12px;
  font-size:12px;
}

.tl-rate {
  font-size:40px;
  font-weight:300;
  letter-spacing:-0.03em;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.tl-sec {
  font-size:13px;
  line-height:1.5;
  color:#4A5263;
}

.tl-foot {
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.tl-pr {
  gap:10px;
  height:44px;
  padding:0 20px;
}

.tl-pr svg {
  transition:transform .45s cubic-bezier(.25,1.25,.35,1);
}

.tl-pr:hover svg {
  transform:rotate(45deg);
}

.tl-prog {
  position:relative;
  height:4px;
  margin-top:28px;
  border-radius:var(--r-pill);
  background:rgba(255,255,255,0.14);
  overflow:clip;
}

.tl-prog span {
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  border-radius:var(--r-pill);
  background:linear-gradient(90deg,#2F5BFF,#9EBBEA);
  transition:width .9s cubic-bezier(.16,1,.3,1),margin-left .9s cubic-bezier(.16,1,.3,1);
}

.ct-ghost {
  top:auto;
  bottom:-60px;
  transform:translateX(-50%);
  font-size:300px;
}

/* Демо-форма: состояние «отправлено» (логика формы — в main.js) */
.sent-box {
  min-height:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:20px;
}

.sent-ic {
  width:84px;
  height:84px;
  border-radius:50%;
  background:linear-gradient(135deg,#2F5BFF,#1B4C9C);
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 40px rgba(47,91,255,0.45);
}

/* ---------- Адаптив: ноутбуки и планшеты (≤1180) ---------- */
@media (max-width:1180px) {
  .co-h1 {
    font-size:76px;
  }
  .co-bot {
    flex-wrap:wrap;
    row-gap:36px;
  }
  .co-stat .stat-n {
    font-size:52px;
  }
  .sheet {
    padding:64px 48px 0;
  }
  .ch-part {
    margin:0 -48px;
    padding:130px 48px 56px;
  }
  .sheet-top {
    grid-template-columns:1fr;
    gap:32px;
  }
  #sh-title {
    font-size:48px !important;
  }
  #ct-title {
    font-size:50px !important;
  }
}

@media (max-width:960px) {
  .co-h1 {
    font-size:46px;
  }
  .co-plate {
    width:100%;
    max-width:300px;
    height:150px;
    margin-bottom:28px;
  }
  .co-stat .stat-n {
    font-size:40px;
  }
  .co-hero {
    background:linear-gradient(0deg,rgba(7,11,36,0.9) 0%,rgba(7,11,36,0.45) 60%,rgba(7,11,36,0.6) 100%),#070B24 url(../img/bar-chart.webp) 70% 50%/cover no-repeat;
  }
  .sheet {
    padding:48px 20px 0;
  }
  .ch-part {
    margin:0 -20px;
    padding:120px 20px 40px;
  }
  .sheet-top {
    grid-template-columns:1fr;
  }
  .facts {
    grid-template-columns:1fr;
  }
  .facts dt {
    border-bottom:0;
    padding-bottom:0;
  }
  .ch-stats .stat-n {
    font-size:36px;
  }
  .tl-track {
    --cw:78vw;
    gap:16px;
    transform:translateX(calc(var(--o) * -1 * (var(--cw) + 16px)));
  }
  .tl-view {
    padding-left:16px;
    margin-left:-16px;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .co-ghost,
  .ct-ghost {
    font-size:140px;
  }
}

/* ---------- Адаптив: планшеты (601–960) — логотип справа от названия ---------- */
@media (min-width:601px) and (max-width:960px) {
  .co-top {
    flex-direction:row !important;
    align-items:flex-start !important;
  }
  .co-h1 {
    font-size:56px;
  }
  .co-plate {
    width:240px;
    height:150px;
    margin-bottom:0;
  }
}

@media (max-width:960px) {
  #sh-title,
  #ct-title {
    font-size:40px !important;
  }
  .ch-head h3 {
    font-size:30px !important;
  }
}

/* ---------- Адаптив: телефоны (≤600) ---------- */
@media (max-width:600px) {
  .co-stat {
    gap:24px 40px !important;
  }
  .co-stat .stat-n {
    font-size:40px;
  }
  #sh-title,
  #ct-title {
    font-size:36px !important;
  }
  /* график листается по горизонтали — делаем его крупнее, чтобы подписи читались */
  .ch-svg {
    min-width:900px;
  }
  .ch-yr {
    font-size:16px;
  }
  .ch-lvl {
    font-size:19px;
  }
  .ch-tip {
    font-size:15px;
  }
  .facts dd {
    font-size:16px;
  }
}

/* ---------- Ультраширокие экраны: в карусели ровно 5 карточек ---------- */
@media (min-width:1800px) {
  .tl-track {
    --cw:calc((100% - 80px) / 5);
  }
}


@media (max-width:400px) {
  .co-h1 {
    font-size:40px;
  }
}

/* телефоны: заголовки секций переносятся естественно (ручные переносы — для десктопа) */
@media (max-width:600px) {
  .h2.words br {
    display:none;
  }
}

/* планшеты: в карусели по две карточки */
@media (min-width:601px) and (max-width:960px) {
  .tl-track {
    --cw:calc((100% - 16px) / 2);
  }
}
