/* styles.css */
/* =========================
   Fonts helpers
========================= */
.expletus-sans { font-family: "Expletus Sans", sans-serif; font-style: normal; }
.inter-tight  { font-family: "Inter Tight", sans-serif; font-style: normal; }

/* =========================
   Base
========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body{
  background:
    radial-gradient(100vw 60vh at 20% 10%, rgba(35,213,171,.18), transparent 60%),
    radial-gradient(80vw 55vh at 90% 20%, rgba(70,120,255,.16), transparent 55%),
    linear-gradient(180deg,#0b1220,#0f1a2f);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: rgba(255,255,255,.92);
  font-family: "Inter Tight", sans-serif;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
.container { max-width: 1170px; margin: auto; padding: 0 15px; }
.hidden { display: none !important; }

.text-uppercase{ text-transform: uppercase; }
.text-center { text-align:center; }

ul{ padding-left:18px; margin:4px 0 6px; font-size:14px; color: rgba(255,255,255,.78); }
li{ margin-bottom:4px; }

/* =========================
   Header
========================= */
#header{
  width: 100%;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  background: rgba(10,16,30,.55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 12px;
  padding: 12px 0;
}

.logo{
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;      /* иначе флекс-элемент не сжимается и рвёт шапку */
  flex: 1 1 auto;
}

.menu-toggle{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { background: rgba(255,255,255,.12); }

/* Top nav (desktop), hidden on mobile */

.top-nav{

  display: none;

}

.top-nav__link{

  border: none;

  background: transparent;

  color: rgba(255,255,255,.75);

  font-family: "Inter Tight", sans-serif;

  font-size: 14px;

  padding: 6px 10px;

  border-radius: 999px;

  cursor: pointer;

  transition: background-color .2s ease, color .2s ease;

}

.top-nav__link:hover{

  background: rgba(255,255,255,.10);

  color: rgba(255,255,255,.92);

}

.top-nav__link.active{

  background: rgba(35,213,171,.20);

  color: rgba(255,255,255,.96);

}


/* =========================
   Sidebar
========================= */
.side-menu{
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100vh;
  padding: 78px 14px 14px;
  z-index: 120;
  background: rgba(10,16,30,.86);
  backdrop-filter: blur(14px);
  border-right: 1px solid rgba(255,255,255,.10);
  transform: translateX(-110%);
  transition: transform .18s ease;
}
.side-menu.open{ transform: translateX(0); }

.side-menu__nav{ display:flex; flex-direction:column; gap:10px; }

.side-menu__link{
  width:100%;
  text-align:left;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  cursor:pointer;
  font-family:"Inter Tight",sans-serif;
}
.side-menu__link:hover,
.side-menu__link.active{
  background: rgba(35,213,171,.14);
  border-color: rgba(35,213,171,.35);
}

.menu-overlay{
  position:fixed;
  inset:0;
  z-index:110;
  background: rgba(0,0,0,.55);
}

/* =========================
   Main / pages
========================= */
#main{ padding-top: 86px; }
.pages{ padding-bottom: 6px; }

.page{ display:none; }
.page.active{ display:block; }

/* =========================
   Cards / typography
========================= */
.card{
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  padding: 16px 16px 16px;
  margin-bottom: 18px;
}

.section-title{
  margin-bottom: 10px;
  font-size: 22px;
  color: rgba(255,255,255,.92);
}

.section-caption{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color: rgba(255,255,255,.60);
  margin-bottom:4px;
}

.section-header-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:8px;
}

.main-info-text{
  font-size:15px;
  line-height:1.6;
  margin-bottom:10px;
  color: rgba(255,255,255,.78);
}

.company-line{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:15px;
  color: rgba(255,255,255,.68);
  margin-bottom:10px;
}
.company-line strong{ color: rgba(255,255,255,.92); }

/* =========================
   About layout
========================= */
.about-grid{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap:20px;
  align-items:start;
}
@media (max-width: 880px){
  .about-grid{ grid-template-columns:1fr; }
}

.big-photo{
  height: 560px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 70px rgba(0,0,0,.45);
  background:
    radial-gradient(900px 450px at 50% 20%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.55));
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.big-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to top, rgba(0,0,0,.55), transparent 45%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}

.big-photo__social{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 2;
}

/* толстая ровная рамка без "пикселей" */
.big-photo__social .social-link{
  width: 56px;
  height: 56px;
  border-radius: 20px;
  background: rgba(0,0,0,.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  backdrop-filter: blur(8px);
  transition: transform .25s ease, background .25s ease;
}
.big-photo__social .social-link::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 20px;
  border: 3px solid rgba(255,255,255,.48);
  box-shadow: 0 0 0 1px rgba(0,0,0,.65) inset;
  pointer-events:none;
}
.big-photo__social .social-link:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.42);
}
.big-photo__social .social-link:hover::before{ border-color: rgba(255,255,255,.72); }

.big-photo__social .social-link i{
  font-size: 30px;
  color: #000;
  opacity: .92;
  text-shadow: 0 0 2px rgba(255,255,255,.85), 0 0 10px rgba(255,255,255,.18);
  transition: color .25s ease, opacity .25s ease, text-shadow .25s ease;
}
.big-photo__social .social-link.telegram:hover i{ color: #1c87df; text-shadow: none; }
.big-photo__social .social-link.whatsapp:hover i{ color: #13c421; text-shadow: none; }
.big-photo__social .social-link.twitter:hover i{ color: #1966d8; text-shadow: none; }
.big-photo__social .social-link.phone:hover i{ color: rgba(35,213,171,1); text-shadow: none; }
.big-photo__social .social-link.github:hover i{ color: #8a2eaf; text-shadow: none; }


/* =========================
   Badges / tabs
========================= */
.badge-row{ display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }

.badge{
  font-size:13px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background-color: rgba(255,255,255,.06);
  color: rgba(255,255,255,.78);
  margin-bottom: 10px;
}

.experience-tabs .exp-tab{
  cursor:pointer;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.experience-tabs .exp-tab:hover{
  background: rgba(35,213,171,.14);
  border-color: rgba(35,213,171,.35);
  transform: translateY(-1px);
}
.experience-tabs .exp-tab.active{
  background: rgba(35,213,171,.18);
  border-color: rgba(35,213,171,.45);
}

/* =========================
   Tabs content — FIXED page + smooth "slide down"
   - не используем display:none/block (убивает анимацию)
   - не используем position:absolute/inset (даёт наплывы)
========================= */
.experience-content{
  position: relative;
  transition: min-height .25s ease;
  will-change: min-height;
  overflow: hidden; /* чтобы панель выезжала "внутри" и не прыгал лейаут */
}

/* Состояние по умолчанию: панель свернута и невидима */
.exp-panel{
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-14px);

  visibility: hidden;
  pointer-events: none;

  transition:
    max-height .55s ease,
    opacity .35s ease,
    transform .45s ease,
    visibility 0s linear .55s;

  will-change: max-height, opacity, transform;
}

/* Активная панель: раскрывается + плавно "выплывает" сверху вниз */
.exp-panel.is-active{
  max-height: 2800px; /* запас */
  overflow: visible;

  opacity: 1;
  transform: translateY(0);

  visibility: visible;
  pointer-events: auto;

  transition:
    max-height .65s ease,
    opacity .40s ease,
    transform .55s ease,
    visibility 0s;
}

/* пока JS "замораживает" высоту, не трогаем её */
.experience-content.is-animating{
  transition: none;
}


/* =========================
   Hobby photos (one window)
========================= */
.hobby-layout{
  display:grid;
  grid-template-columns:120px minmax(0,1fr);
  gap:14px;
  align-items:flex-start;
}
@media (max-width: 720px){
  .hobby-layout{ grid-template-columns:1fr; }
}

body.js-ready .hobby-layout > div:first-child{
  position: relative;
  width: 120px;
  height: 120px;
}

.hobby-photo{
  width:120px;
  height:120px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
  background-size:cover;
  background-position:center;
}

body.js-ready .hobby-photo{
  position:absolute;
  inset:0;
  opacity:0;
  transform: scale(.985);
  transition: opacity .25s ease, transform .25s ease;
}
body.js-ready .hobby-photo.is-active{
  opacity:1;
  transform: scale(1);
}

/* =========================
   Achievements grid
========================= */
.achievements-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
@media (max-width: 880px){
  .achievements-grid{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width: 640px){
  .achievements-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}

.achievement-card{
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 6px 20px rgba(0,0,0,.35);
  background-size:cover;
  background-position:center;
  cursor:pointer;
  padding-top:70%;
  position:relative;
}
.achievement-card::after{ content:""; position:absolute; inset:0; }
.achievement-card img{ display:none; }

.video-card{ padding-top:0; }
.video-card .video-preview{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  position:absolute;
  top:0; left:0;
  pointer-events:none;
}
.video-card .video-play-btn{
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:48px; height:48px;
  background:rgba(0,0,0,.55);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  transition:background .2s;
}
.video-card .video-play-btn i{ color:#fff; font-size:18px; margin-left:3px; }
.video-card:hover .video-play-btn{ background:rgba(35,213,171,.7); }
.video-card{ padding-top:70%; }

.video-modal-content{
  max-width:90vw;
  max-height:90vh;
}
.video-modal-content video{
  display:block;
  max-width:90vw;
  max-height:90vh;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.9);
}

/* =========================
   Photos strip
========================= */
.photo-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.photo-card{
  height:250px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 8px 30px rgba(0,0,0,.35);
  background-size:cover;
  background-position:center;
  cursor:pointer;
}

/* =========================
   Education page
========================= */
.edu-stack{ display: block; }

.edu-row{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
@media (max-width: 880px){
  .edu-row{ grid-template-columns: 1fr; }
}

.edu-item{
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.edu-logo{
  width: 86px;
  height: 86px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  background-size: cover;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  flex: 0 0 86px;
}
.edu-text{ min-width: 0; }

/* =========================
   Image modal
========================= */
.image-modal{
  display:none;
  position:fixed;
  z-index:9999;
  left:0; top:0;
  width:100%;
  height:100%;
  background-color:rgba(0,0,0,.85);
  justify-content:center;
  align-items:center;
}
.image-modal.open{ display:flex; }

.image-modal-content{
  max-width:90vw;
  max-height:90vh;
  border-radius:12px;
  box-shadow:0 20px 60px rgba(0,0,0,.9);
}
.image-modal-content img{
  display:block;
  max-width:100%;
  max-height:90vh;
  border-radius:12px;
}

/* =========================
   Desktop: menu always visible
========================= */
@media (min-width: 992px){

  /* Hide burger + sidebar on desktop */

  .side-menu{

    display: none !important;

  }

  .menu-overlay{

    display: none !important;

  }

  .menu-toggle{

    display: none;

  }

  /* Header layout + show top nav */

  #header .header-row{

    justify-content: space-between;

    align-items: center;

  }

  .top-nav{

    display: flex;

    gap: 8px;

  }

  /* Main content without left padding */

  #main{

    padding-left: 0;

  }

}

/* =========================
   Tabs content (smooth reveal, no page jerk)
   Работает с твоим app.js: он ставит .is-active и поддерживает min-height контейнера
========================= */
.experience-content{
  position: relative;
  transition: min-height .25s ease;
  will-change: min-height;
  overflow: hidden;               /* чтобы при анимации не "торчало" */
}

/* Все панели остаются в потоке (display НЕ трогаем), но скрыты визуально */
.exp-panel{
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(12px);

  visibility: hidden;
  pointer-events: none;

  transition:
    max-height .30s ease,
    opacity .40s ease,
    transform .50s ease,
    visibility 0s linear .55s;

  will-change: max-height, opacity, transform;
}

/* Активная панель — раскрывается и "выплывает" вниз */
.exp-panel.is-active{
  max-height: 3000px;            /* запас, чтобы влез любой текст */
  overflow: visible;

  opacity: 1;
  transform: translateY(0);

  visibility: visible;
  pointer-events: auto;

  transition:
    max-height .35s ease,
    opacity .45s ease,
    transform .60s ease,
    visibility 0s;
}

/* На мобильных можно чуть меньше движение (по желанию) */
@media (max-width: 720px){
  .exp-panel{ transform: translateY(-8px); }
}

/* ===== TAB ANIMATION OVERRIDE (put at the very end) ===== */

/* контейнер: фиксируем визуально и не даём "вылезать" при анимации */
.experience-content{
  position: relative;
  overflow: hidden;
  transition: min-height .25s ease;
  will-change: min-height;
}

/* панель: стартует ВЫШЕ и опускается вниз (top -> down) */
.exp-panel{
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-16px);           /* ключевое: минус = сверху вниз */

  visibility: hidden;
  pointer-events: none;

  transition:
    max-height .60s ease,
    opacity .45s ease,
    transform .60s ease,
    visibility 0s linear .60s;

  will-change: max-height, opacity, transform;
}

/* активная панель */
.exp-panel.is-active{
  max-height: 3000px;
  overflow: visible;

  opacity: 1;
  transform: translateY(0);

  visibility: visible;
  pointer-events: auto;

  transition:
    max-height .70s ease,
    opacity .50s ease,
    transform .70s ease,
    visibility 0s;
}

/* пока JS держит высоту — не анимируем min-height, чтобы не было рывков */
.experience-content.is-animating{
  transition: none;
}

/* мобилка: чуть меньше смещение */
@media (max-width: 720px){
  .exp-panel{ transform: translateY(-10px); }
}

/* ===== TAB ANIMATION OVERRIDE (put at the very end) ===== */

/* Никакой анимации изменения высоты контейнера */
.experience-content{
  transition: none !important;
}

/* Панели: без “выплывания” (без transform/opacity transitions) */
.exp-panel{
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: none !important;
  visibility: hidden;
  pointer-events: none;
  transition: none !important;
  will-change: auto;
}

.exp-panel.is-active{
  max-height: 3000px;
  overflow: visible;
  opacity: 1;
  transform: none !important;
  visibility: visible;
  pointer-events: auto;
  transition: none !important;
}

/* Force tabs container to shrink/grow by content */
.experience-content{
  min-height: 0 !important; /* перебивает container.style.minHeight из app.js */
}

/* ============================================================
   Появление блоков при прокрутке
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity .7s cubic-bezier(.22,.68,.16,1),
    transform .7s cubic-bezier(.22,.68,.16,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* Если человек отключил анимации в системе — показываем сразу */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Карточка «обо мне»: было жёстко 560×585px, ломалось на телефоне */
.about-card{
  width: 100%;
  max-width: 585px;
  height: auto;
}

.about-subtitle{
  color: #33b8a8;
  font-weight: 600;
  margin: 15px 0 5px;
}

/* ============================================================
   Инфографика
   ============================================================ */
.info-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.info-card{
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.info-card:hover{
  transform: translateY(-3px);
  border-color: rgba(35, 213, 171, .45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.info-card img{
  display: block;
  width: 100%;
  height: auto;
}

.info-card figcaption{
  padding: 10px 14px 12px;
  font-size: 13px;
  line-height: 1.35;
  opacity: .72;
}

/* Файла ещё нет — вместо битой иконки показываем, что положить */
.info-card.is-missing{
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.info-card.is-missing img,
.info-card.is-missing figcaption{
  display: none;
}

.info-card.is-missing::after{
  content: "Положите файл " attr(data-expect);
  padding: 14px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  opacity: .45;
}

/* ============================================================
   Мобильная защита: ничего не должно быть шире экрана
   ============================================================ */html,
body{
  max-width: 100%;
  /* clip вместо hidden: не создаёт второй скролл-контейнер */
  overflow-x: clip;
}

.container{
  width: 100%;
}

.card{
  width: 100%;
}

@media (max-width: 720px){
  .header-row{ gap: 10px; }

  /* логотип больше не пытается уместиться в одну строку */
  .logo{
    white-space: normal;
    font-size: 13px;
    line-height: 1.25;
    letter-spacing: .03em;
  }

  .section-title{ font-size: 19px; }

  .info-grid{ grid-template-columns: 1fr; }

  .achievements-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .company-line{
    flex-direction: column;
    gap: 2px;
  }

  .card{ padding: 14px; }
}

@media (max-width: 480px){
  .edu-logo{
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }

  .hero-name span{ font-size: 18px !important; }

  ul{
    padding-left: 16px;
    font-size: 13.5px;
  }
}

/* ============================================================
   Инфографика внутри «Профессионального опыта»
   ============================================================ */
.exp-infographics{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.exp-infographics__title{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 10px;
}

.exp-infographics .info-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

@media (max-width: 880px){
  .exp-infographics .info-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .exp-infographics .info-grid{
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Графики роста (РГС, Экспобанк, Network, Агентство)
   ============================================================ */
.info-card--chart{
  padding: 14px 16px 10px;
  cursor: default;
  min-height: 232px;
}

.info-card--chart:hover{
  transform: none;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.chart-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.chart-label{
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
  line-height: 1.35;
  max-width: 62%;
}

.chart-value{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: #8ffbe6;
  white-space: nowrap;
}

.chart-value__unit{
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 11px;
  opacity: .6;
  margin-left: 4px;
}

.growth-chart{
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  margin: 2px 0 0;
}

/* столбики */
.bar{
  transform-box: fill-box;
  transform-origin: bottom center;
  transform: scaleY(0);
  transition: transform 1.5s cubic-bezier(.22, .75, .25, 1);
  transition-delay: calc(var(--i) * 70ms);
}

.is-drawn .bar{ transform: scaleY(1); }

/* линия тренда: рисуется поверх столбиков, с подсветкой */
.trend{
  fill: none;
  stroke: #9dfdec;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 3s cubic-bezier(.3, .7, .3, 1) .3s;
  filter: drop-shadow(0 0 6px rgba(140, 250, 230, .5));
}

.is-drawn .trend{ stroke-dashoffset: 0; }

/* наконечник: залитый треугольник, появляется в конце */
.arrow-head{
  fill: #9dfdec;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.5);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: 3.05s;
  filter: drop-shadow(0 0 6px rgba(140, 250, 230, .5));
}

.is-drawn .arrow-head{
  opacity: 1;
  transform: scale(1);
}

/* стартовое значение слева внизу */
.chart-foot{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.chart-foot__start{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255, 255, 255, .55);
  white-space: nowrap;
}

.chart-foot__start span{
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 10px;
  opacity: .75;
  margin-left: 3px;
}

.chart-foot__period{
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .35;
}

@media (prefers-reduced-motion: reduce){
  .bar,
  .trend,
  .arrow-head{
    transition: none !important;
  }
  .bar{ transform: scaleY(1); }
  .trend{ stroke-dashoffset: 0; }
  .arrow-head{ opacity: 1; transform: scale(1); }
}

/* Должности в опыте: крупнее и контрастнее */
.company-line strong{
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #33b8a8 !important;
  letter-spacing: .01em;
}

/* ============================================================
   Карточки-показатели: на всю высоту, крупная типографика
   ============================================================ */
.stat-card{
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  cursor: default;
  height: 100%;
  min-height: 100%;
}

.stat-card:hover{
  transform: none;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: none;
}

.stat-head{
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}

/* ---------- Щит ---------- */
.shield-hero{
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: -2px 0;
}

.shield-icon{
  font-size: 112px;
  line-height: 1;
  color: rgba(51, 184, 168, .16);
}

.shield-zero{
  position: absolute;
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: #33b8a8;
  text-shadow: 0 0 26px rgba(51, 184, 168, .45);
}

.shield-zero span{
  font-size: 22px;
  margin-left: 4px;
  opacity: .85;
}

.shield-risk{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.shield-risk__num{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: rgba(255, 122, 122, .8);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.shield-risk__cap{
  font-size: 10px;
  letter-spacing: .04em;
  opacity: .45;
  text-transform: uppercase;
}

.shield-chips{
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(51, 184, 168, .35);
  background: rgba(51, 184, 168, .08);
  color: #9dfdec;
}

/* ---------- Университет ---------- */
.uni-hero{
  display: flex;
  align-items: center;
  gap: 16px;
}

.uni-icon{
  font-size: 76px;
  line-height: 1;
  color: #33b8a8;
  filter: drop-shadow(0 0 20px rgba(51, 184, 168, .4));
}

.uni-main{ display: flex; flex-direction: column; gap: 3px; }

.uni-big{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: #33b8a8;
}

.uni-cap{ font-size: 11px; line-height: 1.3; opacity: .6; }

.uni-row2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.uni-mini{ display: flex; align-items: center; gap: 8px; }

.uni-mini__num{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: #33b8a8;
  white-space: nowrap;
}

.uni-mini__cap{ font-size: 10.5px; line-height: 1.2; opacity: .55; }

/* ---------- AI-орбита ---------- */
.ai-orbit{
  position: relative;
  width: 100%;
  height: 252px;
}

.ai-core{
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px dashed rgba(51, 184, 168, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #33b8a8;
  background: radial-gradient(circle, rgba(51, 184, 168, .12), transparent 70%);
  box-shadow: inset 0 0 26px rgba(51, 184, 168, .18), 0 0 30px rgba(51, 184, 168, .12);
}

.ai-node{
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.ai-node i{ font-size: 15px; color: #33b8a8; }

.ai-node span{
  font-size: 10.5px;
  line-height: 1.2;
  opacity: .82;
}

@media (max-width: 620px){
  .ai-orbit{
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .ai-core{
    position: static;
    transform: none;
    margin: 0 auto 6px;
  }
  .ai-node{
    position: static;
    transform: none;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 9px;
    text-align: left;
  }
}

/* ---------- SCRUM ---------- */
.scrum-hero{
  display: flex;
  align-items: center;
  gap: 14px;
}

.scrum-icon{
  font-size: 54px;
  line-height: 1;
  color: #33b8a8;
  opacity: .9;
  filter: drop-shadow(0 0 18px rgba(51, 184, 168, .35));
}

.scrum-numbers{ display: flex; flex-direction: column; gap: 2px; }

.scrum-big{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: #33b8a8;
}

.scrum-cap{ font-size: 11px; line-height: 1.25; opacity: .55; max-width: 150px; }

.scrum-rituals{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.ritual{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: .8;
}

.ritual i{ width: 14px; text-align: center; color: #33b8a8; }

/* ---------- Команда ---------- */
.team-hero{ display: flex; align-items: baseline; gap: 10px; }

.team-big{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  color: #33b8a8;
}

.team-cap{ font-size: 11px; opacity: .55; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.team-grid i{
  font-size: 15px;
  text-align: center;
  color: #33b8a8;
  opacity: .8;
}

.team-metrics{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  opacity: .65;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.team-num{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: rgba(255, 255, 255, .92);
}

/* ---------- AI-отдел (крупнее) ---------- */
.ai-layout{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.ai-core{
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px dashed rgba(51, 184, 168, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #33b8a8;
  box-shadow: inset 0 0 26px rgba(51, 184, 168, .18), 0 0 22px rgba(51, 184, 168, .12);
}

.ai-list{ display: flex; flex-direction: column; gap: 10px; }

.ai-item{
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.3;
}

.ai-item i{ flex: 0 0 18px; width: 18px; text-align: center; font-size: 14px; color: #33b8a8; }
.ai-item span{ opacity: .85; }


/* ============================================================
   Правки по макету (идут последними, поэтому перекрывают ранние)
   ============================================================ */
.shield-icon{ font-size: 96px; }
.shield-zero{ font-size: 34px; }
.shield-zero span{ font-size: 18px; margin-left: 3px; }
.shield-hero{ min-height: 100px; }

.ai-orbit{ height: 206px; }
.ai-core{
  width: 96px;
  height: 96px;
  font-size: 22px;
  top: 46%;
}
.ai-node{ width: 92px; }
.ai-node span{ font-size: 10.5px; }

.uni-icon{ font-size: 72px; }
.uni-list{ display: flex; flex-direction: column; gap: 9px; }
.uni-line{ display: flex; align-items: baseline; gap: 9px; }
.uni-line__num{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1;
  color: #33b8a8;
  min-width: 66px;
  white-space: nowrap;
}
.uni-line__num i{ font-size: 20px; }
.uni-line__cap{ font-size: 10.5px; line-height: 1.25; opacity: .55; }

.scrum-core{
  position: relative;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  display: grid;
  place-items: center;
}
.scrum-core i{
  position: absolute;
  font-size: 82px;
  line-height: 1;
  color: rgba(51, 184, 168, .26);
}
.scrum-core span{
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #33b8a8;
}

.scrum-rituals{ gap: 10px 18px; }
.ritual{ font-size: 13px; gap: 7px; }
.ritual i{ font-size: 15px; width: 16px; }

.team-metric__label{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  opacity: .7;
  line-height: 1.2;
}
.team-metric__label span{
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: .6;
  letter-spacing: 0;
}
.team-num--aet{
  font-size: 30px;
  color: #33b8a8;
  text-shadow: 0 0 18px rgba(51, 184, 168, .35);
}

/* --- выравнивание университета и мелочи --- */
.stat-card--uni{
  justify-content: flex-start;
  gap: 16px;
}
.stat-card--uni .uni-hero{
  flex: 1;
  align-items: center;
}

.scrum-core i{ color: rgba(51, 184, 168, .42); }
.scrum-core span{
  font-size: 13px;
  letter-spacing: .04em;
  color: #9dfdec;
}

.scrum-rituals{
  flex-wrap: nowrap;
  gap: 6px 9px;
}
.ritual{ font-size: 11px; gap: 5px; }
.ritual i{ font-size: 12px; width: 13px; }

.team-metric__label{ color: #33b8a8; }
.team-metric__label span{ color: #33b8a8; opacity: .55; }

/* --- финальная вычитка блоков --- */
.uni-line{ align-items: center; }
.uni-line__num{ display: flex; align-items: center; }
.uni-line__num i{ font-size: 22px; }

.stat-card--ai{ padding-top: 8px; padding-bottom: 8px; }

.scrum-hero{ justify-content: center; }
.scrum-core span{ font-size: 15px; letter-spacing: .03em; }
.scrum-rituals{ gap: 8px 10px; }
.ritual{ font-size: 13px; gap: 6px; }
.ritual i{ font-size: 14px; width: 15px; }

.team-metric__label{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #33b8a8;
}
.team-metric__label span{ display: none; }

/* --- последняя вычитка: scrum, университет, AI --- */
.scrum-core{ width: 90px; height: 90px; flex: 0 0 90px; }
.scrum-core i{ font-size: 90px; }
.scrum-core span{ font-size: 16px; }
.scrum-hero{ align-items: center; justify-content: center; }
.scrum-rituals{ justify-content: center; gap: 9px 11px; }
.ritual{ font-size: 13.5px; gap: 6px; }
.ritual i{ font-size: 14px; width: 15px; }

.uni-icon{ font-size: 86px; }
.uni-line__num{ font-size: 28px; min-width: 76px; line-height: 1; }
.uni-line__num i{ font-size: 26px; line-height: 1; display: block; }
.uni-line__cap{ font-size: 11px; }
.uni-line{ align-items: center; }

.ai-orbit{ height: 176px; }
.ai-core{ width: 92px; height: 92px; font-size: 21px; top: 47%; }
.ai-node span{ font-size: 10px; }

/* --- стрелка университета по центру колонки --- */
.uni-line__num--icon{ justify-content: center; }

/* --- цикл: линия графика перерисовывается каждые 3 секунды --- */
@keyframes trendLoop{
  0%   { stroke-dashoffset: 900; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 0; }
}

@keyframes arrowLoop{
  0%, 52%   { opacity: 0; transform: scale(.5); }
  64%, 100% { opacity: 1; transform: scale(1); }
}

.info-card--chart.is-drawn .trend{
  animation: trendLoop 3s cubic-bezier(.3, .7, .3, 1) 3.5s infinite;
}

.info-card--chart.is-drawn .arrow-head{
  animation: arrowLoop 3s ease 3.5s infinite;
}

/* --- цикл: блик на щите, шестерёнке и человечке --- */
@keyframes iconGlint{
  0%, 62%, 100% { filter: drop-shadow(0 0 8px rgba(51, 184, 168, .22)); }
  72%           { filter: drop-shadow(0 0 22px rgba(51, 184, 168, .9)); }
  82%           { filter: drop-shadow(0 0 8px rgba(51, 184, 168, .22)); }
}

.shield-icon,
.scrum-core i,
.uni-icon{
  animation: iconGlint 3s ease-in-out infinite;
}

/* --- цикл: случайный человек в команде подрастает --- */
@keyframes teamPulse{
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.75) rotate(-9deg); }
  60%  { transform: scale(1.75) rotate(9deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.team-grid i{ transition: color .3s ease; }

.team-grid i.is-pulse{
  animation: teamPulse .9s ease-in-out;
  color: #ccfff5;
}

@media (prefers-reduced-motion: reduce){
  .info-card--chart.is-drawn .trend,
  .info-card--chart.is-drawn .arrow-head,
  .shield-icon,
  .scrum-core i,
  .uni-icon,
  .team-grid i.is-pulse{
    animation: none !important;
  }
}


/* ============================================================
   Новые циклы: шестерня, волна AI, искры щита
   ============================================================ */

/* убираем прежний блик у щита и шестерни */
.shield-icon,
.scrum-core i{
  animation: none;
}

/* шестерня: плавный шаг на зуб */
.scrum-core i{
  transition: transform .55s cubic-bezier(.3, .8, .3, 1);
  will-change: transform;
}

/* щит: искры */
.shield-hero{ position: relative; }

.shield-spark{
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  transform: translate(-50%, -50%) scale(.3);
  font-size: 13px;
  line-height: 1;
  color: #d9fff8;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(140, 250, 230, .95);
}

.shield-spark.is-on{ animation: sparkTwinkle .75s ease-out; }

@keyframes sparkTwinkle{
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(0deg); }
  35%  { opacity: 1; transform: translate(-50%, -50%) scale(1.2) rotate(45deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.4) rotate(90deg); }
}

/* AI: волна от центра к подписям */
.ai-core::after{
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1.5px solid rgba(51, 184, 168, .55);
  pointer-events: none;
  animation: aiWave 3s ease-out infinite;
}

@keyframes aiWave{
  0%        { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .shield-spark.is-on,
  .ai-core::after{
    animation: none !important;
  }
}


/* ============================================================
   Искры строго внутри контура щита + мягкий блик университета
   ============================================================ */
.shield-glyph{
  position: relative;
  display: grid;
  place-items: center;
  width: 112px;
  height: 124px;
}

.shield-glyph .shield-icon{ font-size: 104px; }

.shield-spark{ font-size: 17px; }

/* человечек в университете: свечение мягче */
@keyframes uniGlint{
  0%, 62%, 100% { filter: drop-shadow(0 0 8px rgba(51, 184, 168, .18)); }
  72%           { filter: drop-shadow(0 0 13px rgba(51, 184, 168, .5)); }
  82%           { filter: drop-shadow(0 0 8px rgba(51, 184, 168, .18)); }
}

.uni-icon{ animation: uniGlint 3s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce){
  .uni-icon{ animation: none !important; }
}


/* ============================================================
   Контакты: кликабельные телефон и почта
   ============================================================ */
.contact-link{
  color: #33b8a8;
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 184, 168, .35);
  transition: color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.contact-link:hover{
  color: #4fd0bf;
  border-color: rgba(79, 208, 191, .7);
}

/* ============================================================
   Мобильные правки: AI-внедрения и вкладки опыта
   ============================================================ */
@media (max-width: 620px){
  .stat-card--ai .ai-orbit{
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 6px;
  }

  .stat-card--ai .ai-core{
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 84px;
    height: 84px;
    font-size: 19px;
    margin: 0 auto 10px;
  }

  .stat-card--ai .ai-core::after{ display: none; }

  .stat-card--ai .ai-node{
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 10px;
  }

  .stat-card--ai .ai-node span{
    font-size: 11.5px;
    line-height: 1.3;
  }
}

/* Вкладки мест работы — в одну строку с горизонтальной прокруткой */
@media (max-width: 720px){
  .experience-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .experience-tabs::-webkit-scrollbar{ display: none; }

  .experience-tabs .exp-tab{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


/* ============================================================
   Блоки профессионального опыта
   ============================================================ */
.exp-blocks{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.exp-block{
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 14px;
  padding: 14px 16px 16px;
  transition: border-color .3s ease, transform .3s ease;
}

.exp-block:hover{
  border-color: rgba(51, 184, 168, .35);
  transform: translateY(-2px);
}

.exp-block__num{
  font-family: "Expletus Sans", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
  color: #33b8a8;
  opacity: .6;
}

.exp-block__title{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin: 2px 0 10px;
  color: rgba(255, 255, 255, .95);
}

.exp-block__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.exp-block__list li{
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .82;
}

.exp-block__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #33b8a8;
  opacity: .8;
}

.exp-result{
  margin: 6px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(51, 184, 168, .25);
  background: linear-gradient(180deg, rgba(51, 184, 168, .10), rgba(51, 184, 168, .03));
}

.exp-result__title{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #33b8a8;
  opacity: .8;
  margin-bottom: 10px;
}

.exp-result__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}

.exp-result__list li{
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: .88;
}

.exp-result__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #33b8a8;
}

.exp-note{
  margin-top: 10px;
  font-size: 11.5px;
  font-style: italic;
  opacity: .5;
}

@media (max-width: 880px){
  .exp-blocks{ grid-template-columns: 1fr; }
  .exp-result__list{ grid-template-columns: 1fr; }
}

/* искры щита крупнее на 50% */
.shield-spark{
  font-size: 26px;
  text-shadow: 0 0 14px rgba(140, 250, 230, .95);
}


/* ============================================================
   Правки аудита: контраст, шкала заголовков, прогресс, спотлайт
   ============================================================ */

/* скрытый, но доступный заголовок */
.visually-hidden{
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* h2 вместо h3 не должен менять отступы */
.section-title{
  margin-top: 0;
  font-size: 22px;
  line-height: 1.25;
}

/* контраст второстепенного текста: было ниже 4,5:1 */
.stat-head{ opacity: .72; }
.chart-label{ opacity: .72; }
.chart-foot{ opacity: .6; }
.chart-foot__start{ color: rgba(255, 255, 255, .78); }
.uni-cap{ opacity: .72; }
.uni-line__cap{ opacity: .72; }
.scrum-cap{ opacity: .72; }
.team-cap{ opacity: .72; }
.shield-risk__cap{ opacity: .62; }
.exp-note{ opacity: .65; }
.section-caption{ opacity: .72; }
.team-metrics{ opacity: .82; }
.chart-value__unit{ opacity: .8; }

/* индикатор прокрутки */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, #33b8a8, #9dfdec);
  box-shadow: 0 0 12px rgba(51, 184, 168, .55);
  transition: width .08s linear;
  pointer-events: none;
}

/* спотлайт под курсором */
.info-card,
.exp-block{
  --mx: 50%;
  --my: 50%;
}

.info-card::after,
.exp-block::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(
    220px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .10),
    transparent 65%
  );
}

.info-card:hover::after,
.exp-block:hover::after{ opacity: 1; }

.exp-block{ position: relative; }

/* карточки без картинок не должны показывать старую заглушку */
.info-card.is-missing::after{ display: none; }


/* ============================================================
   Карьерный таймлайн
   ============================================================ */
.career-total{
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #33b8a8;
  opacity: .8;
  white-space: nowrap;
}

.career{
  display: flex;
  margin-top: 14px;
}

.career-node:nth-child(1){ --i: 0; }
.career-node:nth-child(2){ --i: 1; }
.career-node:nth-child(3){ --i: 2; }
.career-node:nth-child(4){ --i: 3; }

.career-node{
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 6px;
}

.career-years{
  font-family: "Expletus Sans", sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  color: #33b8a8;
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--i) * 110ms);
}

.career-axis{
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}

.career-line{
  height: 2px;
  flex: 1;
  background: rgba(51, 184, 168, .35);
  transform: scaleX(0);
  transition: transform .6s cubic-bezier(.3, .8, .3, 1);
  transition-delay: calc(var(--i) * 110ms + 80ms);
}

.career-line--left{ transform-origin: right center; }
.career-line--right{ transform-origin: left center; }
.career-line--none{ visibility: hidden; }

.career-dot{
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #33b8a8;
  box-shadow: 0 0 0 4px rgba(51, 184, 168, .14);
  transform: scale(0);
  transition: transform .45s cubic-bezier(.2, 1.5, .4, 1);
  transition-delay: calc(var(--i) * 110ms + 40ms);
}

.career-company{
  font-family: "Expletus Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .95);
  line-height: 1.25;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  transition-delay: calc(var(--i) * 110ms + 180ms);
}

.career-role{
  font-size: 11.5px;
  line-height: 1.3;
  opacity: 0;
  margin-top: 3px;
  transition: opacity .5s ease;
  transition-delay: calc(var(--i) * 110ms + 240ms);
}

.career-card.is-visible .career-years,
.career-card.is-visible .career-company,
.career-card.is-visible .career-role{
  opacity: .95;
  transform: none;
}

.career-card.is-visible .career-company{ opacity: 1; }
.career-card.is-visible .career-role{ opacity: .62; }

.career-card.is-visible .career-line{ transform: scaleX(1); }
.career-card.is-visible .career-dot{ transform: scale(1); }

@media (max-width: 720px){
  .career{
    flex-direction: column;
    gap: 14px;
    border-left: 2px solid rgba(51, 184, 168, .25);
    padding-left: 16px;
    margin-left: 4px;
  }

  .career-node{
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    position: relative;
  }

  .career-axis{ display: none; }

  .career-dot{
    position: absolute;
    left: -22px;
    top: 4px;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
  }

  .career-years{ margin-bottom: 4px; }
}

/* ============================================================
   Закреплённая навигация по блокам опыта
   ============================================================ */
.exp-nav{
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 10px;
  margin-bottom: 4px;
  background: linear-gradient(180deg, rgba(11, 18, 32, .92), rgba(11, 18, 32, .72));
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}

.exp-nav::-webkit-scrollbar{ display: none; }

.exp-nav__item{
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.exp-nav__item:hover{
  color: #fff;
  border-color: rgba(51, 184, 168, .45);
}

.exp-nav__item.is-current{
  color: #b9fff1;
  border-color: rgba(51, 184, 168, .75);
  background: rgba(51, 184, 168, .14);
}

@media (max-width: 720px){
  .exp-nav{ top: 64px; }
}

/* hidden должен побеждать display:flex у навигации */
.exp-nav[hidden]{ display: none; }


/* ============================================================
   Таймлайн как переключатель проектов
   ============================================================ */
.career-node{
  cursor: pointer;
  transition: transform .25s ease;
}

.career-node:hover{ transform: translateY(-2px); }

.career-node .career-company{ transition: color .25s ease, opacity .5s ease, transform .5s ease; }

.career-node:hover .career-company,
.career-node.active .career-company{ color: #9dfdec; }

.career-node:hover .career-dot,
.career-node.active .career-dot{
  box-shadow: 0 0 0 6px rgba(51, 184, 168, .22);
}

.career-node.active .career-years{ opacity: 1; }

.career-node:focus-visible{
  outline: 2px solid #33b8a8;
  outline-offset: 4px;
  border-radius: 8px;
}


/* город в таймлайне */
.career-place{
  font-size: 10.5px;
  line-height: 1.3;
  margin-top: 2px;
  color: #33b8a8;
  opacity: 0;
  transition: opacity .5s ease;
  transition-delay: calc(var(--i) * 110ms + 280ms);
}

.career-card.is-visible .career-place{ opacity: .75; }

.career-years{ font-size: 11.5px; line-height: 1.25; }


/* строка «город • период» в панели опыта */
.exp-meta{
  text-align: right;
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
  margin: 0 0 12px;
  letter-spacing: .01em;
}

@media (max-width: 560px){
  .exp-meta{ text-align: left; font-size: 12px; }
}


/* город в строке заголовка опыта */
.exp-meta{
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
  text-align: right;
  white-space: nowrap;
  margin: 0;
  letter-spacing: .01em;
}

@media (max-width: 720px){
  .exp-meta{
    font-size: 12.5px;
    white-space: normal;
    text-align: left;
    padding-top: 4px;
  }

  #experience .section-header-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* щит: уменьшаем блок, чтобы ряд совпадал по высоте с другими вкладками */
.shield-glyph{
  width: 96px;
  height: 100px;
}

.shield-glyph .shield-icon{ font-size: 84px; }

.shield-zero{ font-size: 28px; }
.shield-zero span{ font-size: 15px; }

.shield-hero{ min-height: 84px; }

.shield-risk{ gap: 1px; }
.shield-risk__num{ font-size: 15px; }
.shield-risk__cap{ font-size: 9.5px; }

.shield-chips{ gap: 6px; }
.chip{ font-size: 10.5px; padding: 3px 8px; }

.stat-card--shield{ gap: 8px; }


/* ============================================================
   Слайдер «было / стало» внутри карточек опыта
   ============================================================ */
.ba{
  overflow: hidden;
  border-radius: 10px;
}

.ba-track{
  display: flex;
  width: 200%;
  transition: transform .45s cubic-bezier(.3, .8, .3, 1);
  will-change: transform;
}

.ba-pane{
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding-right: 4px;
}

.ba-text{
  font-size: 12.5px;
  line-height: 1.5;
  opacity: .62;
  font-style: italic;
  border-left: 2px solid rgba(51, 184, 168, .35);
  padding-left: 10px;
}

.ba-nav{
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.ba-btn{
  font: inherit;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.ba-btn:hover{
  color: #fff;
  border-color: rgba(51, 184, 168, .45);
}

.ba-btn.is-active{
  color: #b9fff1;
  border-color: rgba(51, 184, 168, .7);
  background: rgba(51, 184, 168, .14);
}

.exp-block{ touch-action: pan-y; }


/* шапка карточки: номер + переключатели */
.exp-block__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.ba-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.ba-btn{
  font: inherit;
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 0 0 3px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: rgba(255, 255, 255, .38);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.ba-btn:hover{ color: rgba(255, 255, 255, .78); }

.ba-btn.is-active{
  color: #33b8a8;
  border-bottom-color: #33b8a8;
}

@media (max-width: 480px){
  .exp-block__head{ flex-direction: column; align-items: flex-start; gap: 4px; }
  .ba-btn{ font-size: 10px; }
}

/* шапка карточки: номер слева, переключатели по центру */
.exp-block__head{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 12px;
}

.exp-block__num{
  grid-column: 1;
  justify-self: start;
}

.ba-nav{
  grid-column: 2;
  justify-self: center;
}

/* убираем любую плашку вокруг кнопки: только цвет и подчёркивание */
.ba-btn{
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.ba-btn.is-active{
  background: none;
  box-shadow: none;
}

.ba-btn:focus{ outline: none; }

.ba-btn:focus-visible{
  outline: 2px solid rgba(51, 184, 168, .55);
  outline-offset: 4px;
}

@media (max-width: 480px){
  .exp-block__head{
    grid-template-columns: auto 1fr;
    row-gap: 6px;
  }
  .ba-nav{
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* активный проект в таймлайне: заметно темнее, чтобы отличался от белых надписей */
.career-node.active .career-company{
  color: #1f9c8d;
  font-weight: 700;
}

.career-node.active .career-years{
  color: #1f9c8d;
  opacity: 1;
}

.career-node.active .career-role{
  color: rgba(255, 255, 255, .55);
}

.career-node.active .career-dot{
  background: #1f9c8d;
  box-shadow: 0 0 0 6px rgba(31, 156, 141, .28);
}

/* у неактивных — чуть приглушаем, чтобы активный читался сильнее */
.career-node:not(.active) .career-company{
  color: rgba(255, 255, 255, .68);
}


/* активная роль не глохнет — вернуть обычную яркость */
.career-node.active .career-role{
  color: inherit;
  opacity: 1;
}

/* контакты-кнопки */
button.contact-link{
  font: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(51, 184, 168, .35);
  cursor: pointer;
}

.copy-toast{
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(15, 26, 47, .96);
  border: 1px solid rgba(51, 184, 168, .5);
  color: #b9fff1;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 500;
}

.copy-toast.is-visible{
  opacity: 1;
  transform: translate(-50%, 0);
}

/* сетка на фоне первого экрана и образования */
#page-about,
#page-edu{
  position: relative;
}

#page-about::before,
#page-edu::before{
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

#page-about > *,
#page-edu > *{
  position: relative;
  z-index: 1;
}

/* тумблер «только цифры» */
.panel-tools{
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.tool-toggle{
  font: inherit;
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.tool-toggle:hover{ color: #fff; border-color: rgba(51, 184, 168, .45); }

.tool-toggle.is-on{
  color: #b9fff1;
  border-color: rgba(51, 184, 168, .7);
  background: rgba(51, 184, 168, .14);
}

.numbers-only .exp-block__list li:not(.has-digits){ display: none; }

.numbers-only .ba .ba-pane--before{ display: none; }

.numbers-only .ba-track{ width: 100%; }

.numbers-only .ba-pane{ flex: 0 0 100%; width: 100%; }

/* страница ролей */
.role-tabs{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.role-tab{
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .7);
  cursor: pointer;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.role-tab strong{
  font-family: "Expletus Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.role-tab span{
  font-size: 10.5px;
  opacity: .6;
}

.role-tab:hover{ border-color: rgba(51, 184, 168, .45); color: #fff; }

.role-tab.is-active{
  border-color: rgba(51, 184, 168, .75);
  background: rgba(51, 184, 168, .12);
  color: #b9fff1;
}

.role-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role-card{
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .04);
  border-radius: 14px;
  padding: 14px 16px;
}

.role-card__head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.role-card__name{
  font-family: "Expletus Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #b9fff1;
}

.role-card__years{
  font-size: 10.5px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
}

.role-card__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.role-card__list li{
  position: relative;
  padding-left: 13px;
  font-size: 12.5px;
  line-height: 1.45;
  opacity: .82;
}

.role-card__list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #33b8a8;
  opacity: .8;
}

.role-card__empty{
  font-size: 12px;
  line-height: 1.45;
  opacity: .45;
  font-style: italic;
}

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


/* ============================================================
   Стабильный скроллбар: не прыгает между вкладками
   ============================================================ */
html{
  scrollbar-gutter: stable;
}

#main{
  min-height: calc(100vh - 86px);
}

/* сетка на оставшихся вкладках */
#page-exp,
#page-roles{
  position: relative;
}

#page-exp::before,
#page-roles::before{
  content: "";
  position: absolute;
  top: -40px;
  bottom: -40px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

#page-exp > *,
#page-roles > *{
  position: relative;
  z-index: 1;
}

/* ============================================================
   Живые карточки на всех вкладках (кроме личного фото)
   ============================================================ */
.card,
.role-card{
  position: relative;
  --mx: 50%;
  --my: 50%;
}

.card::after,
.role-card::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(
    260px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .085),
    transparent 65%
  );
}

.card:hover::after,
.role-card:hover::after{ opacity: 1; }

/* личное фото не участвует в спотлайте: у него нет класса .card */

/* ============================================================
   Шапка опыта: заголовок — тумблер — город
   ============================================================ */
.exp-header{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.exp-header > div:first-child{ justify-self: start; }
.exp-header .tool-toggle{ justify-self: center; }
.exp-header .exp-meta{ justify-self: end; text-align: right; }

@media (max-width: 860px){
  .exp-header{
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }

  .exp-header .tool-toggle{
    grid-column: 1 / -1;
    justify-self: start;
  }

  .exp-header .exp-meta{
    justify-self: start;
    text-align: left;
    grid-column: 1 / -1;
  }
}


/* ============================================================
   Живые карточки: подъём, подсветка рамки, свечение под курсором
   ============================================================ */
.card,
.role-card{
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.card:hover,
.role-card:hover{
  transform: translateY(-3px);
  border-color: rgba(51, 184, 168, .38);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.card::after,
.role-card::after{
  background: radial-gradient(
    300px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .12),
    transparent 62%
  );
}

/* галерея «Дополнительная информация»: карточку не подсвечиваем */
.card--gallery::after{ display: none; }

.card--gallery:hover{
  transform: none;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}

/* увеличиваются только сами картинки */
.achievement-card,
.video-card{
  transition: transform .3s cubic-bezier(.3, .8, .3, 1), box-shadow .3s ease;
}

.achievement-card:hover,
.video-card:hover{
  transform: scale(1.05);
  z-index: 2;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}

/* ============================================================
   Тонкий тёмно-зелёный скроллбар, один на страницу
   ============================================================ */
html{
  scrollbar-width: thin;
  scrollbar-color: #2f7d72 #0b1220;
}

::-webkit-scrollbar{
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track{
  background: #0b1220;
}

::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #2f7d72, #26685f);
  border-radius: 999px;
  border: 2px solid #0b1220;
}

::-webkit-scrollbar-thumb:hover{
  background: #3aa596;
}

::-webkit-scrollbar-corner{
  background: #0b1220;
}

/* ============================================================
   Свечение под курсором — тише и меньше
   ============================================================ */
.info-card::after,
.exp-block::after{
  background: radial-gradient(
    170px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .055),
    transparent 70%
  );
}

.card::after,
.role-card::after{
  background: radial-gradient(
    210px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .06),
    transparent 68%
  );
}

/* свечение ещё тише */
.info-card::after,
.exp-block::after{
  background: radial-gradient(
    140px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .04),
    transparent 72%
  );
}

.card::after,
.role-card::after{
  background: radial-gradient(
    170px circle at var(--mx) var(--my),
    rgba(157, 253, 236, .045),
    transparent 70%
  );
}

/* карточка «Профессиональный опыт» не подсвечивается — только блоки внутри */
.card--flat::after{ display: none; }

.card--flat:hover{
  transform: none;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .35);
}


/* ============================================================
   Полоса прокрутки: убираем резерв, оставляем стилизованный скролл
   ============================================================ */
html{
  scrollbar-gutter: auto;
}

#main{
  min-height: 0;
}

/* ============================================================
   Кнопки: закруглённые квадраты вместо пилюль
   ============================================================ */
.top-nav__link,
.side-menu__link,
.tool-toggle,
.exp-tab,
.badge{
  border-radius: 10px !important;
}

/* ============================================================
   Подписи инфографики — один размер
   ============================================================ */
.chart-label,
.stat-head{
  font-size: 10.5px;
  letter-spacing: .14em;
}

/* ============================================================
   Мобильный таймлайн: от свежего к раннему
   ============================================================ */
@media (max-width: 720px){
  .career{
    flex-direction: column-reverse;
  }
}


/* ============================================================
   «Только цифры»: распад и сборка
   ============================================================ */
.exp-block__list li{
  transition:
    opacity .32s ease,
    filter .32s ease,
    transform .32s ease;
}

.exp-block__list li:nth-child(1){ transition-delay: 0ms; }
.exp-block__list li:nth-child(2){ transition-delay: 22ms; }
.exp-block__list li:nth-child(3){ transition-delay: 44ms; }
.exp-block__list li:nth-child(4){ transition-delay: 66ms; }
.exp-block__list li:nth-child(5){ transition-delay: 88ms; }
.exp-block__list li:nth-child(6){ transition-delay: 110ms; }
.exp-block__list li:nth-child(n+7){ transition-delay: 130ms; }

body.is-dusting .exp-block__list li{
  opacity: 0;
  filter: blur(7px);
  transform: translateY(-10px) scale(.96);
}

body.numbers-on .exp-block__list li:not(.has-digits){
  display: none;
}

.digits-line{
  margin: 6px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255, 255, 255, .55);
  border-left: 2px solid rgba(51, 184, 168, .35);
  padding-left: 10px;
}

.tool-toggle:disabled{
  opacity: .55;
  cursor: default;
}

@media (prefers-reduced-motion: reduce){
  .exp-block__list li{
    transition: none !important;
  }
}


/* ============================================================
   Пыль: частицы, вылетающие из текста
   ============================================================ */
.dust{
  position: fixed;
  border-radius: 50%;
  background: #9dfdec;
  pointer-events: none;
  z-index: 400;
  opacity: .95;
  box-shadow: 0 0 6px rgba(157, 253, 236, .7);
  animation: dustFly .9s cubic-bezier(.25, .6, .35, 1) forwards;
}

@keyframes dustFly{
  0%{
    transform: translate(0, 0) scale(1);
    opacity: .95;
  }
  55%{
    opacity: .75;
  }
  100%{
    transform: translate(var(--dx), var(--dy)) scale(.35);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce){
  .dust{ display: none; }
}


/* холст для пыли */
.dust-canvas{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 400;
}

@media (prefers-reduced-motion: reduce){
  .dust-canvas{ display: none; }
}

/* ветер вправо: медленнее и тягучее */
.dust{
  animation-duration: 1.05s;
  animation-timing-function: cubic-bezier(.15, .55, .35, 1);
  background: #b9fff1;
}

@keyframes dustFly{
  0%{
    transform: translate(0, 0) scale(1);
    opacity: .95;
  }
  60%{
    opacity: .65;
  }
  100%{
    transform: translate(var(--dx), var(--dy)) scale(.4);
    opacity: 0;
  }
}

/* медленнее и тягучее */
.dust{
  animation-duration: 1.7s;
  animation-timing-function: cubic-bezier(.12, .5, .3, 1);
}

@keyframes dustFly{
  0%{
    transform: translate(0, 0) scale(1);
    opacity: .95;
  }
  55%{
    opacity: .62;
  }
  100%{
    transform: translate(var(--dx), var(--dy)) scale(.35);
    opacity: 0;
  }
}

/* ещё на 20% медленнее */
.dust{
  animation-duration: 2.05s;
}


/* заглушки-ковбои видны только в режиме «только цифры» */
.digits-line{
  display: none;
}

body.numbers-on .digits-line{
  display: block;
}

/* в режиме «только цифры» список скрыт целиком — остаются только заглушки */
body.numbers-on .exp-block__list{
  display: none;
}

body.numbers-on .digits-line{
  display: block;
}

/* старое правило фильтрации пунктов больше не нужно */
body.numbers-on .exp-block__list li:not(.has-digits){
  display: list-item;
}

/* щит: меньше воздух между 0 ₽ и строкой риска */
.shield-hero{ min-height: 72px; }
.stat-card--shield{ gap: 6px; }


/* ============================================================
   «Только цифры»: результат по проекту поднимается над блоками
   ============================================================ */
body.numbers-on .exp-panel.is-active{
  display: flex;
  flex-direction: column;
}

body.numbers-on .exp-panel.is-active .exp-infographics{
  order: -1;
  margin: 0 0 18px;
}

.exp-infographics.is-rising{
  animation: infoRise .55s cubic-bezier(.2, .7, .3, 1) both;
}

.exp-infographics.is-falling{
  animation: infoFall .5s ease both;
}

@keyframes infoRise{
  from{
    opacity: 0;
    transform: translateY(20px) scale(.985);
    filter: blur(5px);
  }
  to{
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes infoFall{
  from{
    opacity: 1;
    transform: none;
  }
  to{
    opacity: 0;
    transform: translateY(16px) scale(.985);
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce){
  .exp-infographics.is-rising,
  .exp-infographics.is-falling{
    animation: none;
  }
}

/* метка «Кейс» — лёгкая плашка */
.case-tag{
  display: inline-block;
  padding: 1px 7px;
  margin-right: 2px;
  border-radius: 5px;
  background: rgba(51, 184, 168, .16);
  border: 1px solid rgba(51, 184, 168, .26);
  color: #b9fff1;
  font-size: .93em;
  line-height: 1.35;
  letter-spacing: .02em;
}

/* «Кейс» занимает место маркера */



/* «Кейс» стоит на месте маркера, текст остаётся в общей колонке */



/* метка встаёт в начало текста, в общую колонку */



/* метка на своей строке, но в колонке текста */



/* Instagram: сноска при наведении */
.inst{
  position: relative;
  border-bottom: 1px dotted rgba(51, 184, 168, .55);
  cursor: help;
  white-space: nowrap;
}

.inst-star{
  color: #33b8a8;
  font-weight: 600;
}

.inst-tip{
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 260px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(12, 22, 38, .98);
  border: 1px solid rgba(51, 184, 168, .38);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  pointer-events: none;
  z-index: 60;
}

.inst:hover .inst-tip{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* на узких экранах подсказка не улетает за край */
@media (max-width: 520px){
  .inst-tip{
    max-width: 200px;
    left: -20px;
  }
}

/* счётчик посещений — только для владельца */
.visit-counter{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 600;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(12, 22, 38, .92);
  border: 1px solid rgba(51, 184, 168, .4);
  color: #b9fff1;
  font-size: 11.5px;
  letter-spacing: .02em;
  pointer-events: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .4);
}

@media (max-width: 520px){
  .visit-counter{ left: 10px; bottom: 10px; font-size: 11px; }
}


/* ============================================================
   Панель личной статистики
   ============================================================ */
.stats-panel{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 700;
  width: 330px;
  max-width: calc(100vw - 32px);
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: rgba(10, 18, 32, .97);
  border: 1px solid rgba(51, 184, 168, .38);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
}

.stats-panel__head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: "Expletus Sans", sans-serif;
  font-size: 13px;
  color: #b9fff1;
}

.stats-panel__close{
  background: none;
  border: none;
  color: rgba(255, 255, 255, .5);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.stats-panel__close:hover{ color: #fff; }

.stats-panel__row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0;
}

.stats-panel__row b{ color: #b9fff1; font-weight: 600; }

.stats-panel__row--ext{ opacity: .7; }

.stats-panel__table{
  width: 100%;
  margin: 10px 0 8px;
  border-collapse: collapse;
  font-size: 11.5px;
}

.stats-panel__table th{
  text-align: left;
  font-weight: 500;
  color: rgba(255, 255, 255, .45);
  padding: 4px 4px 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.stats-panel__table td{
  padding: 4px 4px 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.stats-panel__reset{
  width: 100%;
  margin-top: 4px;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .55);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.stats-panel__reset:hover{ color: #fff; border-color: rgba(51, 184, 168, .5); }
