/* ====== ПАЛИТРА (общая) ====== */
:root{
  --accent:#4568f3;       /* основной акцент (синие кнопки) */
  --accent-600:#212647;   /* hover для синих кнопок */
  --accent-700:#2744b0;   /* active (не используется на белых) */

  --ink:#192a4d;          /* основной текст */
  --muted:#212647;        /* вторичный текст/бордеры по рефу */

  --bg:#ffffff;
  --card:#fff;
  --card-2:#ffffff;

  --footer-bg:#212647;      /* фон футера */
  --footer-ink:#ffffff;     /* заголовки, логотип */
  --footer-muted:#dddfe7;   /* текст и ссылки */

  --ok:#33b17a;
  --err:#ef6b6b;
  --info:#c9c1bb;

  --radius:14px;
  --shadow:0 12px 28px rgba(25,42,77,0.06);
  --ring:0 0 0 3px rgba(69,104,243,0.12);

  /* скролл-стили */
  --scroll-size:12px;
  --scroll-thumb: linear-gradient(180deg, rgba(69,104,243,.45), rgba(69,104,243,.25));
  --scroll-thumb-hover: linear-gradient(180deg, rgba(69,104,243,.65), rgba(69,104,243,.40));
  --scroll-track: rgba(0,0,0,.04);

  --page-scroll-size:16px;   /* ширина системного скролла */
  --container:1600px;        /* макс-ширина контента */
  --header-h:72px;           /* высота фикс-хедера */
  --sidebar-w:256px;
}

/* ====== БАЗА ====== */
*{ box-sizing:border-box }

html{
  min-height:100%;
  background:var(--bg);
  background-image:none; 
  background-repeat:no-repeat;
  scrollbar-color: rgba(69,104,243,.45) transparent;
  scrollbar-width:auto;
}

body{
  min-height:100vh;
  margin:0;
  color:var(--ink);
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height:1.55;
  padding:0;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: rgba(69,104,243,.45) transparent;
  scrollbar-width:auto;
  background:var(--bg);
}
.app-shell{
  display:grid;
  grid-template-columns: minmax(220px, var(--sidebar-w)) minmax(0,1fr);
  min-height:100vh;
}

.page-main{
  padding:24px 14px 28px;
  overflow:hidden;
}
@supports not (scrollbar-gutter: stable){ html{ overflow-y:scroll } }

/* webkit-скролл */
html::-webkit-scrollbar,
body::-webkit-scrollbar{ width:var(--page-scroll-size) }
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb{
  background:var(--bg);
  border-radius:999px;
  border:3px solid transparent;
  background-clip:padding-box;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.03);
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover{ background:var(--scroll-thumb-hover) }
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track{ background:var(--scroll-track); border-radius:999px }
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner{ background:transparent }

/* ====== HEADER (фиксированный) ====== */
.site-header{
  position:sticky;
  top:0;
  align-self:flex-start;
  z-index:2000;

  min-height:100vh;
  background:
    radial-gradient(circle at 0 0, rgba(69,104,243,.14), transparent 60%),
    var(--bg);
  border-right:1px solid rgba(25,42,77,.06);

  padding:24px 18px;
  display:flex;
}
.header-inner{
  max-width:100%;
  margin:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  width:100%;
}
.brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  padding:0;
  border-radius:0;
}

.brand-logo{
  display:block;
  height:60px;
  max-width:100%;
  transition:
    transform .18s ease,
    filter .18s ease,
    opacity .18s ease;
  will-change:transform, filter;
}

.brand:hover .brand-logo,
.brand:focus-visible .brand-logo{
  transform:translateY(-1px) scale(1.02);
  filter:drop-shadow(0 10px 26px rgba(15,23,42,.35));
  opacity:1;
}

.brand:focus-visible{
  outline:none;
}

.header-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  width:100%;
}

.header-auth{
  display:none;
  align-items:center;
  gap:8px;
}

.mobile-menu__actions{
  margin-top:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.mobile-menu__actions .header-cta,
.mobile-menu__actions .lang-btn{
  width:100%;
}

.header-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  width:100%;
  border-radius:12px;
  text-decoration:none;
  background:var(--accent);
  color:var(--bg);
  padding:8px 18px;
  border:1px solid var(--accent);
  font-weight:800;
  box-shadow:0 6px 16px rgba(69,104,243,.12);
  transition:opacity .18s, transform .18s, visibility .18s,
             background .18s, border-color .18s;
  opacity:0;
  transform:translateY(-6px);
  visibility:hidden;
  pointer-events:none;
}
.site-header.show-shortcut .header-chip{
  opacity:1;
  transform:none;
  visibility:visible;
  pointer-events:auto;
}
.header-chip:hover,
.header-chip:focus-visible{
  background:var(--accent-600);
  border-color:var(--accent-600);
  outline:none;
}

/* ===== белая кнопка «Обратный звонок» ===== */
.header-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:10px 18px;
  border-radius:12px;
  background:var(--bg);
  color:var(--ink);
  border:1px solid rgba(33,38,71,.14);
  font-size:17px;
  font-weight:600;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(25,42,77,.06);
  transition:transform .12s, box-shadow .18s,
             border-color .18s, background .18s, color .18s;
}
.header-cta:hover,
.header-cta:focus-visible{
  border-color:var(--accent-600);
  transform:translateY(-1px);
  outline:none;
}
.header-cta:active{
  transform:none;
  box-shadow:0 6px 18px rgba(25,42,77,.10);
}

.hero-cta__arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.hero-cta__icon{
  width:26px;
  height:26px;
  display:block;
  filter:invert(1);
}

.hero-cta:hover .hero-cta__icon,
.hero-cta:focus-visible .hero-cta__icon{
  animation:card-arrow-slide .6s ease-out 1s 1 forwards;
}

/* якорь не прячется под шапкой */
#calc_anchor{ scroll-margin-top: calc(var(--header-h) + 16px) }

/* ===== ВЕРХНЯЯ ПЛАНКА С КНОПКАМИ АВТОРИЗАЦИИ ===== */

.page-topbar{
  margin:0 -14px 0;
  padding:16px 28px 12px;
  background:var(--bg);

  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-height:var(--header-h);
}

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

/* маленькие кнопки по стилю как hero-cta / header-cta */

.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:8px 16px;
  border-radius:12px;
  font-size:13px;
  font-weight:700;
  line-height:1;
  text-decoration:none;

  cursor:pointer;
  border:1px solid transparent;
  box-shadow:0 4px 14px rgba(69,104,243,.12);
  transition:
    background .18s,
    border-color .18s,
    color .18s,
    transform .18s,
    box-shadow .18s;
}

/* синяя – как «К расчёту» */

.auth-btn--primary{
  background:var(--accent);
  color:var(--bg);
  border-color:var(--accent);
}

.auth-btn--primary:hover,
.auth-btn--primary:focus-visible{
  background:var(--accent-600);
  border-color:var(--accent-600);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(69,104,243,.2);
  outline:none;
}

.auth-btn--primary:active{
  background:var(--accent-700);
  transform:none;
  box-shadow:0 4px 12px rgba(69,104,243,.18);
}

/* белая с синей обводкой – как «Обратный звонок», только меньше */

.auth-btn--ghost{
  background:var(--bg);
  color:var(--ink);
  border-color:rgba(69,104,243,.45);
  box-shadow:none;
}

.auth-btn--ghost:hover,
.auth-btn--ghost:focus-visible{
  background:#f6f7ff;
  border-color:var(--accent-600);
  transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(69,104,243,.16);
  outline:none;
}

.auth-btn--ghost:active{
  transform:none;
  box-shadow:0 4px 12px rgba(69,104,243,.14);
}

/* адаптив – на мобилке чуть компактнее */

@media (max-width:900px){
  .page-topbar{
    padding:12px 16px 4px;
    min-height:auto;
  }

  .auth-btn{
    padding:6px 12px;
    font-size:12px;
  }
}

/* ====== САЙДБАР-НАВИГАЦИЯ ====== */

.side-nav{
  margin-top:28px;
  width:100%;
}

.side-nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.side-nav__link{
  display:flex;
  align-items:center;
  width:100%;
  min-height:40px;

  padding:10px 18px 10px 20px;
  border-radius:14px;
  text-decoration:none;

  font-size:13px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;

  color:var(--muted);
  background:transparent;
  transition:
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease,
    transform .12s ease;
}

.side-nav__link:hover,
.side-nav__link:focus-visible{
  background:rgba(69,104,243,.06);
  color:var(--ink);
  outline:none;
}

/* Активный пункт – как в примере: синяя «плашка» */
.side-nav__link--active{
  position:relative;
  margin-left:-18px;
  padding-left:38px;
  border-radius:0 16px 16px 0;

  background:var(--accent);
  color:var(--bg);
  box-shadow:0 4px 12px rgba(69,104,243,.25);
  transform:none;
}

.side-nav__link--active:hover,
.side-nav__link--active:focus-visible{
  background:var(--accent);
  color:var(--bg);
  box-shadow:0 6px 16px rgba(69,104,243,.3);
  transform:none;
}

/* ===== ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ В ХЕДЕРЕ ===== */
.header-lang{
  margin-top:auto;
  padding-top:20px;
  border-top:1px solid rgba(25,42,77,.08);

  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
}

.lang-btn{
  background:rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.06);
  padding:9px 16px;
  margin:0;
  min-width:0;
  height:auto;

  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  width:100%;
  border-radius:999px;
  box-shadow:0 14px 34px rgba(69,104,243,.16);

  cursor:pointer;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.lang-flag-img{
  display:block;
  width:18px;
  height:13px;
  border-radius:3px;
  overflow:hidden;
  flex-shrink:0;
  object-fit:cover;
  transform:translateY(0.5px);
}

.lang-text{
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
  line-height:1;
}

/* ховер-анимация */
.lang-btn:hover,
.lang-btn:focus-visible{
  background:#f6f7ff;
  border-color:rgba(69,104,243,.35);
  box-shadow:0 18px 40px rgba(69,104,243,.22);
  transform:translateY(-1px);
  outline:none;
}

.lang-btn:active{
  transform:translateY(0) scale(.97);
  box-shadow:0 10px 24px rgba(15,23,42,.18);
}

@media (max-width:720px){
  .header-lang{
    margin-top:16px;
    padding-top:14px;
  }

  .lang-btn{
    padding:6px 12px;
    box-shadow:0 10px 26px rgba(69,104,243,.16);
  }

  .lang-flag-img{
    width:16px;
    height:12px;
  }

  .lang-text{
    font-size:12px;
    letter-spacing:.16em;
  }
}

/* ===== БЛОК КАЛЬКУЛЯТОРА ПОД ХЕРОМ ===== */

.calc-shell{
  position:relative;
  margin:0 -14px 64px;
  padding:48px 0 56px;

  background:#f4f5f7;
  background-image:
    radial-gradient(160% 220% at 0% 0%, rgba(69,104,243,.16), transparent 55%);
}

.calc-shell-inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;

  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
  gap:32px;
  align-items:stretch;
}

.calc-shell-copy{
  align-self:center;
  max-width:420px;
}

.calc-shell-title{
  margin:0 0 16px;
  font-size:clamp(26px, 3.2vw, 34px);
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ink);
}

.calc-shell-text{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.8;
  color:rgba(25,42,77,.82);
}

.calc-shell-hint{
  margin:0;
  font-size:13px;
  color:rgba(25,42,77,.7);
}

/* сама карточка расчёта внутри серого фона */
.calc-shell .main_block{
  margin:0;
  box-shadow:0 18px 42px rgba(15,23,42,.18);
  border-radius:22px;
}

/* адаптив */
@media (max-width:900px){
  .calc-shell{
    margin:0 -14px 40px;
    padding:32px 0 40px;
  }

  .calc-shell-inner{
    padding:0 16px;
    grid-template-columns:1fr;
    gap:24px;
  }

  .calc-shell-copy{
    max-width:none;
  }
}


/* ====== КАРТОЧКА ====== */
.main_block{
  max-width:var(--container);
  margin:18px auto;
  padding:28px;
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(25,42,77,.04);
}
#multi_block{ background:var(--card) }
.main_block h1{
  margin:0 0 18px; font-size:clamp(22px,3.5vw,30px);
  font-weight:800; letter-spacing:-.01em; color:var(--ink);
}

/* ====== ФОРМА / ПОЛЯ ====== */
form{ display:flex; flex-direction:column; gap:14px }
label{ font-weight:600; color:var(--ink) }

input[type="text"], input[type="number"], select, textarea{
  appearance:none; width:100%; padding:12px 14px; border-radius:12px;
  border:1px dashed rgba(25,42,77,.06); background:var(--card-2); color:var(--ink);
  font-size:16px; transition:border-color .2s, box-shadow .2s, background .2s;
}
input::placeholder, textarea::placeholder{ color:rgba(25,42,77,.35) }
input:focus, select:focus, textarea:focus{
  outline:none; border-color:rgba(69,104,243,.6); box-shadow:var(--ring); background:var(--bg);
}

/* textarea с тонким скроллом */
#rows_container textarea{
  min-height:160px; margin:8px 0; padding:14px 18px; resize:none; overflow:auto;
  scrollbar-gutter:stable; scrollbar-color: rgba(69,104,243,.45) transparent; scrollbar-width:thin;
}
#rows_container textarea::-webkit-scrollbar{ width:10px }
#rows_container textarea::-webkit-scrollbar-thumb{ background:var(--scroll-thumb); border-radius:999px }
#rows_container textarea::-webkit-scrollbar-thumb:hover{ background:var(--scroll-thumb-hover) }
#rows_container textarea::-webkit-scrollbar-track{ background:transparent }

select{
  background-image:url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23192a4d' d='M1 1l5 6 5-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center; background-size:12px;
  padding-right:34px; cursor:pointer;
}

/* ====== РЯДЫ ====== */
.row{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  background:var(--card-2); border:1px dashed rgba(25,42,77,.06);
  padding:12px; border-radius:12px;
}
.row input, .row select{ flex:1 1 160px; min-width:140px }

/* ====== КНОПКИ ====== */
button{
  align-self:flex-start; background:var(--accent); color:var(--bg); font-weight:800;
 padding:12px 20px; cursor:pointer;
  transition:transform .15s, background .15s, box-shadow .15s;
  box-shadow:0 6px 20px rgba(69,104,243,.16);
  padding: 8px 16px;
  border-radius:12px;
}

/* вторичные */
#add_row{
  background:transparent; color:var(--ink);
  border:1px solid rgba(25,42,77,.08); box-shadow:none;
}
#add_row:hover{ background:#f2f3f7; border-color:rgba(69,104,243,.12); box-shadow:var(--ring) }
.remove_row{
  background:transparent; color:var(--err);
  border:1px solid rgba(239,107,107,.4); padding:10px 14px; border-radius:12px; box-shadow:none;
}
.remove_row:hover{ background:rgba(239,107,107,.06); border-color:var(--err) }

.hero-cta,
.cta-row button,
.row-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  background:transparent;
  color:var(--accent-600);
  font-weight:700;
  padding:8px 16px;
  border-radius:12px;
  border:1px solid rgba(69,104,243,.35);
  cursor:pointer;
  text-decoration:none;

  box-shadow:none;
  transition:
    background .2s,
    border-color .2s,
    transform .15s,
    box-shadow .15s;
}

.hero-cta:hover,
.hero-cta:focus-visible,
.cta-row button:hover,
.cta-row button:focus-visible,
.row-action:hover,
.row-action:focus-visible{
  background:#4568f3;
  border-color:#4568f3;
  color:#fff;
  transform:translateY(-1px);
  box-shadow:0 8px 20px rgba(69,104,243,.18);
  outline:none;
}

.hero-cta.infra-cta{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
  box-shadow:0 6px 20px rgba(69,104,243,.16);
}

.hero-cta.infra-cta:hover,
.hero-cta.infra-cta:focus-visible{
  background:var(--accent-600);
  border-color:var(--accent-600);
  color:#fff;
  box-shadow:0 8px 20px rgba(69,104,243,.18);
}

.hero-cta:active,
.cta-row button:active,
.row-action:active{
  background:var(--accent-700);
  transform:none;
  box-shadow:0 4px 14px rgba(69,104,243,.18);
}

/* ====== АЛЕРТЫ ====== */
#multi_result{ margin-top:18px }
.alert{
  padding:12px 14px; border-radius:12px; border:1px solid; background:var(--bg); margin:8px 0;
  color:var(--ink); box-shadow:0 6px 18px rgba(25,42,77,.03);
}
.alert--error{ color:var(--err); border-color:rgba(239,107,107,.25); background:rgba(239,107,107,.04) }
.alert--success{ color:var(--ok); border-color:rgba(51,177,122,.25); background:rgba(51,177,122,.04) }
.alert--info{ color:var(--muted); border-color:rgba(25,42,77,.06); background:#f7f8fa }
.alert--info::before{
  content:""; display:inline-block; width:14px; height:14px; margin-right:10px; vertical-align:-2px;
  border-radius:50%; border:2px solid rgba(25,42,77,.08); border-top-color:var(--accent);
  animation:spin 1s linear infinite;
}

/* ====== ТАБЛИЦА ====== */
.table-wrap{
  position:relative; overflow-x:auto; overflow-y:visible; margin-bottom:16px;
  border-radius:12px; border:1px solid rgba(25,42,77,.06); background:var(--card-2);
  scrollbar-color: rgba(69,104,243,.45) transparent; scrollbar-width:thin;
}
.table-wrap::-webkit-scrollbar{ height:10px }
.table-wrap::-webkit-scrollbar-thumb{
  background:var(--scroll-thumb); border-radius:999px; border:2px solid transparent; background-clip:padding-box;
}
.table-wrap::-webkit-scrollbar-thumb:hover{ background:var(--scroll-thumb-hover) }
.table-wrap::-webkit-scrollbar-track{ background:transparent }

table{
  border-collapse:separate; border-spacing:0; background:var(--card-2); color:var(--ink);
  width:max-content; min-width:100%;
}
th,td{
  padding:12px 10px; text-align:center; font-size:15px; border-bottom:1px solid rgba(25,42,77,.04);
  white-space:nowrap; color:var(--ink);
}
th{ position:sticky; top:0; z-index:2; background:var(--card-2); border-bottom-color:transparent }
tbody tr:nth-child(even) td{ background:#f9fafb }
tbody tr:hover td{ background:#f4f5f7 }

/* ==== Цветные строки по статусу наличия ==== */
/* Есть в наличии — зелёный */
tbody tr.row-available td{
  background: #e6f7ec;              /* мягкий зелёный фон */
}
tbody tr.row-available:hover td{
  background: #d2f0df;              /* чуть более насыщенный при hover */
}

/* Нет в наличии — красный */
tbody tr.row-unavailable td{
  background: #ffe5e5;              /* нежный красный фон */
}
tbody tr.row-unavailable:hover td{
  background: #ffd4d4;              /* сильнее подчёркиваем отсутствие */
}

/* В резерве — оранжевый */
tbody tr.row-reserve td{
  background: #fff4e0;              /* тёплый оранжево-жёлтый */
}
tbody tr.row-reserve:hover td{
  background: #ffe8c2;              /* более выразительный hover */
}



#multi_form button[type="submit"],
#file_multi_quote button[type="submit"]{
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 16px;
  min-width: 190px;
}

@media (max-width:720px){
  #multi_form button[type="submit"],
  #file_multi_quote button[type="submit"]{
    width: 100%;
  }
}

@media (max-width:720px){
  :root{ --header-h:62px }
  .main_block{ padding:20px }
  .row{ flex-direction:column; align-items:stretch }

  .main_block button{
    width:100%;
    align-self:stretch;
  }

  .action-cell .row-action{
    width:auto;
    align-self:center;
    flex:0 0 auto;
  }

  th,td{
    padding:10px 8px;
    font-size:14px;
  }
}

/* ====== АНИМАЦИИ ====== */
.site-header{
  opacity:0;
  transform:translateY(8px) scale(.98);
  animation:fadeUp .55s ease-out both;
  animation-delay:.04s;
}

.reveal-on-scroll{
  opacity:0;
  transform:translateY(18px) scale(.985);
  filter:blur(4px);
  transition:
    opacity .55s ease-out,
    transform .55s ease-out,
    filter .55s ease-out;
}

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

.anim-pop{ animation:popIn .45s cubic-bezier(.2,.8,.2,1) both; transform-origin:top center }
.anim-fade{ animation:fadeIn .28s ease-out both }
.row-appear{ animation:rowIn .28s ease-out both }
.cta-appear{ animation:fadeUp .38s ease-out both }

@keyframes fadeUp{ from{opacity:0;transform:translateY(8px) scale(.98);filter:blur(3px)} to{opacity:1;transform:none;filter:none} }
@keyframes popIn{ from{opacity:0;transform:translateY(8px) scale(.98)} to{opacity:1;transform:none} }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }

/* ====== Пастельные цвета строк в поиске ====== */
tbody tr.row-available td{
  background: rgba(34, 197, 94, 0.20);
}
tbody tr.row-available:hover td{
  background: rgba(34, 197, 94, 0.32);
}
tbody tr.row-unavailable td{
  background: rgba(239, 68, 68, 0.18);
}
tbody tr.row-unavailable:hover td{
  background: rgba(239, 68, 68, 0.28);
}
tbody tr.row-reserve td{
  background: rgba(251, 191, 36, 0.22);
}
tbody tr.row-reserve:hover td{
  background: rgba(251, 191, 36, 0.32);
}
tbody tr.row-unknown td{
  background: rgba(148, 163, 184, 0.16);
}
tbody tr.row-unknown:hover td{
  background: rgba(148, 163, 184, 0.24);
}
@keyframes rowIn{ from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
@keyframes spin{ to{ transform:rotate(360deg) } }

/* ====== ФАЙЛ-ЗАГРУЗКА ====== */
.file-upload-form{
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
  opacity:0; transform:translateY(8px) scale(.98);
  animation:fadeUp .55s ease-out both; animation-delay:.12s;
}
.file-input-hidden{ display:none }
.file-input-label{
  display:inline-flex; align-items:center; padding:8px 16px; border-radius:12px;
  background:var(--accent); color:var(--bg); font-weight:700; cursor:pointer;
  user-select:none; transition:background .2s, transform .15s, box-shadow .15s;
}
.file-input-label:hover{ background:var(--accent-600); transform:translateY(-1px); box-shadow:0 6px 20px rgba(69,104,243,.18) }
.file-input-label:active{ background:var(--accent-700); transform:none }
.file-name{ font-size:14px; margin-left:8px; color:var(--muted) }

.title-row{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:12px; margin-bottom:18px;
}

/* ===== HERO C КАЛЬКУЛЯТОРОМ СПРАВА (как на макете) ===== */

.hero--with-calc{
  margin:0 -14px 56px;
  background:var(--bg);
}

.hero-inner--with-calc{
  max-width:var(--container);
  margin:0 auto;
  padding:32px 40px 32px;
  display:flex;
  flex-direction:column;
  gap:32px;
  align-items:stretch;
  position:relative;
}

.hero-panel{
  position:absolute;
  z-index:3;
  display:flex;
  flex-direction:column;

  left:40px;
  right:40px;
  top:31px;

  padding:26px 30px 22px;
  border-radius:28px 0 28px 28px;
  background:var(--bg);

  clip-path:polygon(
    0 0, 
    96% 0,
    58% 100%,
    0 100%
  );
}


.hero-title{
  margin:0 0 12px;
  font-size:clamp(36px, 4.2vw, 52px);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.05;
  color:var(--ink);
  width: 570px;
}

.hero-subtitle{
  margin:0;
  max-width:520px;
  font-size:15px;
  line-height:1.8;
  color:rgba(25,42,77,.82);
}

/* плашка с градиентом и формой */
.hero-calc-shell{
  width:100%;
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  margin-top:0;
  position:relative;
  z-index:1;
}

.hero-calc-bg{
  position:relative;
  width:100%;
  padding:230px 32px 42px;
  border-radius:40px;
  background:
    radial-gradient(140% 200% at 0% 0%, rgba(69,104,243,.18), transparent 55%),
    linear-gradient(135deg,#ffe0f4 0%,#e4efff 40%,#d7f4ff 70%,#ffe6f1 100%);
  box-shadow:0 26px 70px rgba(15,23,42,.12);
}

/* лёгкая диагональ, чтобы было похоже на трапецию */
.hero-calc-bg::before{
  content:"";
  position:absolute;
  inset:-40% -20% auto 40%;
  background:rgba(255,255,255,.4);
  transform:skewX(-24deg);
  opacity:.45;
  pointer-events:none;
}

/* сама карточка с формой внутри градиента */
.hero-calc-bg .main_block{
  margin:0;
  max-width:none;
  padding:22px 24px 26px;
  border-radius:20px;
  background:rgba(255,255,255,.96);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 14px 34px rgba(15,23,42,.16);
}

.hero-calc-bg .main_block h1{
  margin:0 0 10px;
  font-size:clamp(22px, 2.4vw, 28px);
  letter-spacing:-.02em;
}

.hero-calc-bg .title-row{
  margin-bottom:12px;
}

.hero-calc-bg .file-upload-form{
  margin-bottom:0;
}

.hero-calc-bg #rows_container textarea{
  min-height:220px;
}

.hero-calc-bg form button[type="submit"]{
  margin-top:8px;
}

.hero-subtitle{
  margin:0;
  max-width:520px;
  font-size:15px;
  line-height:1.8;
  color:rgba(25,42,77,.82);
}

/* ====== СТАТИСТИКА ПОД ХЕДЕРОМ ====== */
.stats-section{
  max-width:var(--container);
  margin:40px auto 24px;
  padding:0 24px;
  border:none;
  box-shadow:none;
}

.stats-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:64px;
}

.stat-item{
  flex:1 1 0;
  text-align:center;
}

.stat-value{
  font-size:90px;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--ink);
  line-height:1.05;
}

.stat-label{
  margin-top:12px;
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:var(--accent);
}

/* ===== ОБЁРТКА С ВКЛАДКОЙ ДЛЯ БЛОКА "ВАША СТРАТЕГИЯ" ===== */

.strategy-shell{
  position:relative;
  margin:72px -14px 72px;
  padding:96px 0 120px;
  background:#f4f5f7;
  overflow:hidden;
}

.strategy-shell::before,
.strategy-shell::after{
  content:"";
  position:absolute;
  background:var(--bg);
  border-radius:120px;
  box-shadow:0 26px 70px rgba(15,23,42,.06);
  z-index:0;
}

.strategy-shell::before{
  top:-150px;
  right:-260px;
  width:880px;
  height:280px;
  transform:rotate(10deg);
  border-bottom-left-radius:220px;
}

.strategy-shell::after{
  bottom:-260px;
  left:-230px;
  width:880px;
  height:320px;
  transform:rotate(-14deg);
  border-top-right-radius:220px;
}

.strategy-shell > *{
  position:relative;
  z-index:1;
}

.strategy-shell .split-heading{
  max-width:var(--container);
  margin:0 auto 40px;
  padding:0 24px;
}

.strategy-shell .strategy-section{
  max-width:var(--container);
  margin:0 auto 40px;
  padding:0 24px;
}

/* ===== СЕКЦИЯ «ВАША СТРАТЕГИЯ» ===== */

.strategy-section{
  max-width:var(--container);
  margin:8px auto 64px;
  padding:0 24px;
}

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

/* ===== КАРТОЧКА ===== */

.strategy-card{
  position:relative;
  display:block;
  border-radius:32px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 18px 50px rgba(15,23,42,.25);
  transform:translateZ(0);
  transition:
    transform .4s cubic-bezier(.21,.83,.26,1),
    box-shadow .4s cubic-bezier(.21,.83,.26,1);
}

.strategy-card:hover{
  transform:translateY(-6px);
  box-shadow:0 26px 70px rgba(15,23,42,.32);
}

/* картинка */

.strategy-card__media{
  position:relative;
  width:100%;
  height:100%;
}

.strategy-card__media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}


.strategy-card__overlay{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  pointer-events:none;
  padding:0;
}

/* ===== BUBBLE ===== */

.strategy-card__bubble{
  position:relative;
  align-self:flex-start;
  margin:0;
  max-width:clamp(520px, 70%, 760px);
  padding:16px 28px 20px;
  border-radius:26px;
  background:linear-gradient(
    135deg,
    var(--bg) 0%,
    #f7f8ff 45%,
    #eef2ff 100%
  );
  box-shadow:0 18px 40px rgba(15,23,42,.28);
  border:1px solid rgba(15,23,42,.05);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  overflow:hidden;
  opacity:0;
  transform:translateY(8px) scale(.97);
  filter:blur(3px);
  transform-origin:left top;
  transition:
    opacity .45s cubic-bezier(.21,.83,.26,1),
    transform .45s cubic-bezier(.21,.83,.26,1),
    filter .45s cubic-bezier(.21,.83,.26,1);
}

.strategy-card__bubble::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 -1px 0 rgba(15,23,42,.06);
  background:radial-gradient(
    130% 190% at 0% 0%,
    rgba(255,255,255,.9) 0,
    transparent 60%
  );
  pointer-events:none;
}

.strategy-card__bubble-text{
  margin:0;
  font-size:18px;
  line-height:1.75;
  color:#141b36;
  letter-spacing:0.01em;
  opacity:0;
  transform:translateY(3px);
  transition:
    opacity .35s ease-out .08s,
    transform .35s ease-out .08s;
}

.strategy-card:hover .strategy-card__bubble{
  opacity:1;
  transform:translateY(0) scale(1);
  filter:blur(0);
}

.strategy-card:hover .strategy-card__bubble-text{
  opacity:1;
  transform:translateY(0);
}

/* ===== НИЗ КАРТОЧКИ ===== */

.strategy-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:auto;
  padding:0 34px 30px;
}

.strategy-card__title{
  margin:0;
  font-size:32px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--bg);
  text-shadow:0 8px 30px rgba(0,0,0,.55);
}

.strategy-card__arrow{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .25s ease-out, transform .25s ease-out;
}

.strategy-arrow-icon{
  width:40px;
  height:40px;
  display:block;
  filter:invert(1);
}

.strategy-card:hover .strategy-card__arrow{
  opacity:1;
  transform:translateY(0);
}

.strategy-card:hover .strategy-arrow-icon{
  animation:card-arrow-slide .6s ease-out 1s 1 forwards;
}


@media (max-width:1024px){
  .strategy-shell{
    margin:64px -14px 64px;
    padding:80px 0 96px;
  }

  .strategy-shell::before{
    top:-170px;
    right:-260px;
    width:680px;
    height:260px;
  }

  .strategy-shell::after{
    bottom:-240px;
    left:-260px;
    width:720px;
    height:280px;
  }

  .strategy-shell .split-heading{
    margin-bottom:32px;
  }
}

@media (max-width:720px){
  .strategy-shell{
    margin:40px -14px 40px;
    padding:64px 0 80px;
  }

  .strategy-shell::before{
    top:-190px;
    right:-260px;
    width:520px;
    height:240px;
  }

  .strategy-shell::after{
    bottom:-220px;
    left:-260px;
    width:560px;
    height:260px;
  }

  .strategy-shell .split-heading{
    padding:0 16px;
    margin-bottom:24px;
  }

  .strategy-shell .strategy-section{
    padding:0 16px;
  }
}

/* ===== ИНФРАСТРУКТУРА: СЕРЫЕ КАРТОЧКИ НА БЕЛОМ ФОНЕ ===== */

.infra-section{
  max-width:var(--container);
  margin:72px auto 56px;
  padding:0 24px;
}

.infra-inner{
  display:flex;
  flex-direction:column;
  gap:22px;
}

/* шапка: заголовок + кнопка */
.infra-header{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:24px;
}

.infra-header-text{
  max-width:720px;
}

.infra-kicker{
  margin:0 0 6px;
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.16em;
  color:rgba(25,42,77,.65);
}

.infra-title{
  margin:0;
  font-size:clamp(30px, 4vw, 48px);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.1;
  color:var(--ink);
}

.infra-cta{
  margin-top:24px;
  white-space:nowrap;
}


.infra-main-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  grid-auto-rows:minmax(230px, auto);
  gap:24px;
  align-items:stretch;
}

.infra-side{
  display:contents;
}


.infra-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;

  padding:26px 30px 28px;
  border-radius:26px;
  background:#f4f5f7;
  border:1px solid rgba(25,42,77,.04);
  box-shadow:0 12px 28px rgba(15,23,42,.04);

  text-decoration:none;
  color:var(--ink);
  overflow:hidden;
  transition:
    box-shadow .22s ease,
    transform .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.infra-card--wide{
  padding:30px 32px 26px;
  display:flex;
  flex-direction:column;
  grid-row:span 2;
}

.infra-card--secondary{
  padding:32px 36px 32px;
  min-height:230px;
  justify-content:space-between;
}

.infra-card:hover{
  background:#eef0f7;
  border-color:rgba(69,104,243,.20);
  box-shadow:0 18px 40px rgba(15,23,42,.12);
  transform:translateY(-3px);
}

.infra-card-title{
  margin:0 0 10px;
  font-size:24px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
}

.infra-card-text{
  margin:0;
  font-size:14px;
  line-height:1.75;
  color:rgba(25,42,77,.78);
  max-width:520px;
}

.infra-card-media{
  margin-top:12px;
  max-width:520px;
  margin-bottom:10px;
}

.infra-card-media img{
  display:block;
  width:100%;
  height:auto;
  border-radius:18px;
  box-shadow:0 18px 40px rgba(15,23,42,.10);
  pointer-events:none;
}

.infra-card-text--wide{
  margin-top:auto;
  padding-top:22px;
  font-size:14px;
  line-height:1.7;
}


.infra-card--with-arrow{
  padding-right:96px;
}

.infra-card-arrow{
  position:absolute;
  top:0;
  right:0;
  width:84px;
  height:72px;
  border-radius:0 28px 0 40px;
  background:#f9fafe;
  border-left:1px solid rgba(25,42,77,.04);
  border-bottom:1px solid rgba(25,42,77,.04);

  display:flex;
  align-items:center;
  justify-content:center;

  box-shadow:none;
  opacity:1;
  transform:none;
  pointer-events:none;
  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.infra-card-arrow-icon{
  width:26px;
  height:26px;
  display:block;
}

/* ховер – подсвечиваем вкладку и анимируем стрелку */

.infra-card--with-arrow:hover .infra-card-arrow{
  background:var(--bg);
  border-color:rgba(69,104,243,.28);
  box-shadow:0 14px 32px rgba(15,23,42,.12);
}

.infra-card--with-arrow:hover .infra-card-arrow-icon{
  animation:card-arrow-slide .6s ease-out .2s 1 forwards;
}

/* Нижняя сетка 2×2 */

.infra-secondary-grid{
  margin-top:28px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:24px;
}

/* Сетка 2x2 для четырёх карточек */

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

/* Карточки 2×2 – как раньше */

.infra-quad-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:space-between;

  padding:32px 36px;
  border-radius:26px;
  background:#f4f5f7;
  border:1px solid rgba(25,42,77,.04);
  box-shadow:0 14px 34px rgba(15,23,42,.04);

  color:var(--ink);
  text-decoration:none;
  min-height:230px;

  transition:
    background .22s ease,
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease;
}

.infra-quad-card.infra-card--with-arrow{
  padding-right:96px;
}

.infra-quad-card .infra-card-arrow{
  width:78px;
  height:64px;
  border-radius:0 26px 0 38px;
}

.infra-quad-card:hover{
  background:#eef0f7;
  border-color:rgba(69,104,243,.24);
  box-shadow:0 22px 50px rgba(15,23,42,.12);
  transform:translateY(-3px);
}

.infra-quad-title{
  margin:0;
  font-size:22px;
  line-height:1.3;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
}

.infra-quad-text{
  margin:28px 0 0;
  font-size:14px;
  line-height:1.7;
  color:rgba(25,42,77,.78);
  max-width:460px;
}

/* Адаптив */

@media (max-width:1100px){
  .infra-section{
    margin:56px auto 40px;
    padding:0 20px;
  }

  .infra-header{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .infra-main-grid{
    grid-template-columns:1fr;
    grid-auto-rows:auto;
  }

  .infra-card--wide{
    grid-row:auto;
  }

  .infra-side{
    display:flex;
    flex-direction:column;
    gap:24px;
  }

  .infra-cta{
    align-self:flex-start;
  }
}

@media (max-width:960px){
  .infra-quad-grid{
    grid-template-columns:1fr;
  }

  .infra-quad-card{
    min-height:auto;
    padding:24px 22px;
    border-radius:22px;
  }
}

@media (max-width:720px){
  .infra-section{
    margin:40px auto 32px;
    padding:0 16px;
  }

  .infra-main-grid{
    gap:20px;
  }

  .infra-secondary-grid{
    grid-template-columns:1fr;
  }

  .infra-card{
    padding:22px 20px 24px;
    border-radius:24px;
  }

  .infra-card--with-arrow{
    padding-right:80px;
  }

  .infra-card-arrow{
    width:70px;
    height:58px;
  }
}

/* ====== ОТРАСЛЕВЫЕ КАРТОЧКИ ====== */
.split-heading{
  max-width:var(--container);
  margin:64px auto;
  padding:0 24px;
  font-size:clamp(30px, 4vw, 48px);
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.1;
  color:var(--ink);
}

.split-heading__accent{
  color:var(--accent);
}

.industries-section{
  max-width:var(--container);
  margin:24px auto 40px;
  padding:0 24px;
}

.industries-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:22px;
}

.industry-card{
  position:relative;
  display:flex;
  flex-direction:column;
  padding:32px 40px 30px;
  min-height:370px;
  border-radius:26px;
  background:var(--bg);
  border:1px solid rgba(25,42,77,.06);
  box-shadow:0 10px 30px rgba(15,23,42,.04);
  color:var(--ink);
  text-decoration:none;
  overflow:hidden;
  transition:
    background .38s ease,
    border-color .38s ease,
    box-shadow .38s ease,
    transform .38s ease;
}

.industry-card:hover{
  background:#5C7CFA;
  border-color:#5C7CFA;
  box-shadow:0 20px 45px rgba(33,82,255,.35);
  transform:translateY(-4px);
}

.industry-icon{
  font-size:0;
  margin-top:4px;
  margin-bottom:32px;
}

.industry-icon img{
  width:40px;
  height:40px;
  display:block;
  transition:filter .32s ease;
}

.industry-bottom{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:32px;
  padding-right:8px;
  transition:align-items .2s ease;
}

.industry-content{
  max-width:520px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  transform:translateY(0);
  transition:transform .4s cubic-bezier(.21,.83,.26,1);
}

.industry-title{
  margin:0;
  font-size:30px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.02em;
  color:var(--ink);
}

.industry-desc{
  margin:12px 0 0;
  font-size:17px;
  line-height:1.7;
  color:rgba(25,42,77,.78);

  max-height:0;
  opacity:0;
  overflow:hidden;
  transform:translateY(8px);
  transition:
    opacity .35s ease,
    max-height .35s ease,
    transform .35s ease;
}

.industry-arrow{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:transform .35s ease;
}

.industry-arrow-icon{
  width:40px;
  height:40px;
  display:block;
  transition:filter .25s ease;
}

.industry-card:hover .industry-content{
  transform:translateY(-4px);
}

.industry-card:hover .industry-desc{
  max-height:450px;
  opacity:1;
  transform:translateY(0);
  transition-delay:.05s;
}

.industry-card:hover .industry-bottom{
  align-items:stretch;
}

.industry-card:hover .industry-arrow{
  align-self:stretch;
}

.industry-card:hover .industry-title{
  color:var(--bg);
}

.industry-card:hover .industry-desc{
  color:rgba(255,255,255,.9);
}

.industry-card:hover .industry-icon img,
.industry-card:hover .industry-arrow-icon{
  filter:invert(1);
}

.industry-card:hover .industry-arrow-icon{
  animation:card-arrow-slide .6s ease-out 1s 1 forwards;
}

@keyframes card-arrow-slide{
  0%{
    transform:translateX(0);
    opacity:1;
  }
  45%{
    transform:translateX(10px);
    opacity:0;
  }
  55%{
    transform:translateX(-10px);
    opacity:0;
  }
  100%{
    transform:translateX(0);
    opacity:1;
  }
}

@media (max-width:1370px){
  .stat-value{
    font-size:64px;
  }

  .stat-label{
    font-size:12px;
    letter-spacing:.14em;
  }
}

@media (max-width:1300px){
  .industries-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:720px){
  .industries-section{
    padding:0 16px;
  }
  .industries-grid{
    grid-template-columns:1fr;
  }
  .industry-card{
    min-height:240px;
    padding:24px 22px 26px;
  }
}

/* ====== КАРУСЕЛЬ КЕЙСОВ (See what's possible) ====== */

.cases-shell{
  position:relative;
  margin:80px -14px 40px;
  padding:72px 0 80px;
  background:transparent;
  overflow:visible;
}

.cases-inner{
  max-width:none;
  margin:0;
  padding:0;
}

/* Шапка живёт в контейнере, как остальные блоки */
.cases-header{
  max-width:var(--container);
  margin:0 auto 32px;
  padding:0 24px;

  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:40px;
}

.cases-header-main{
  flex:1 1 auto;
  max-width:720px;
}

.cases-title{
  margin:0;
  font-size:clamp(30px, 4vw, 44px);
  font-weight:800;
  letter-spacing:-.03em;
  color:var(--ink);
}

.cases-title__accent{
  color:var(--accent);
}

.cases-subtitle{
  margin:14px 0 0;
  font-size:15px;
  line-height:1.8;
  color:rgba(25,42,77,.78);
  max-width:560px;
}

.cases-controls{
  display:flex;
  align-items:center;
  gap:12px;
}

.cases-arrow{
  width:64px;
  height:46px;
  border-radius:14px;
  border:1.5px solid var(--accent);
  background:var(--bg);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(15,23,42,.10);
  transition:
    background .2s ease,
    border-color .2s ease,
    transform .15s ease,
    box-shadow .2s ease,
    opacity .2s ease;
}

.cases-arrow-icon{
  width:36px;
  height:36px;
  display:block;
  transition:filter .2s ease;
}

.cases-arrow:hover,
.cases-arrow:focus-visible{
  background:var(--accent);
  border-color:var(--accent);
  transform:translateY(-1px);
  box-shadow:0 14px 30px rgba(69,104,243,.35);
  outline:none;
}

.cases-arrow:hover .cases-arrow-icon,
.cases-arrow:focus-visible .cases-arrow-icon{
  filter:brightness(0) invert(1);
}

.cases-viewport{
  position:relative;
  overflow:hidden;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  outline:none;
}

.cases-track{
  display:flex;
  align-items:stretch;
  gap:24px;
  padding-inline:13%;
  will-change:transform;
}


.cases-card{
  position:relative;
  flex:0 0 calc(100% - 26%);
  max-width:calc(100% - 26%);
  min-height:480px;
  border-radius:34px;
  overflow:hidden;
  cursor:pointer;
  text-decoration:none;
  background:#020617;
  color:var(--card);
  isolation:isolate;
  transform:scale(.97);
  opacity:.9;
  transition:
    transform .35s cubic-bezier(.21,.83,.26,1),
    box-shadow .35s cubic-bezier(.21,.83,.26,1),
    opacity .25s ease;
}

.cases-card.is-active{
  transform:scale(1);
  opacity:1;
}

.cases-card.is-active:hover{
  transform:scale(1.02) translateY(-2px);
}

/* разные фоны */

.cases-card--primary{
  background:radial-gradient(140% 180% at 0% 0%, #6476ff 0, #1f2937 42%, #020617 100%);
}

.cases-card--blue{
  background:radial-gradient(130% 190% at 0% 0%, #38bdf8 0, #0369a1 40%, #020617 100%);
}

.cases-card--purple{
  background:radial-gradient(140% 190% at 0% 0%, #a855f7 0, #4c1d95 42%, #020617 100%);
}

.cases-card::before{
  content:"";
  position:absolute;
  inset:-40%;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:14px 14px, 20px 20px;
  opacity:.55;
  mix-blend-mode:soft-light;
  pointer-events:none;
}

.cases-card__media{
  position:absolute;
  inset:0;
  padding:0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  pointer-events:none;
}

.cases-card__brand{
  position:absolute;
  left:26px;
  bottom:22px;
  font-size:32px;
  font-weight:800;
  letter-spacing:-.03em;
  text-shadow:0 10px 30px rgba(0,0,0,.6);
}

.cases-card__arrow{
  position:absolute;
  right:26px;
  bottom:22px;
  width:46px;
  height:46px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(15,23,42,.95);
  box-shadow:0 0 0 0 rgba(15,23,42,0);
  opacity:0;
  transform:translateX(10px) translateY(4px);
  pointer-events:none;
  transition:
    opacity .28s ease-out,
    transform .28s ease-out,
    background .22s ease-out,
    box-shadow .28s ease-out;
}

.cases-card__arrow-icon{
  width:26px;
  height:26px;
  display:block;
  filter:invert(1);
}

.cases-card:hover .cases-card__arrow,
.cases-card:focus-visible .cases-card__arrow{
  opacity:1;
  transform:translateX(0) translateY(0);
  background:var(--accent);
  box-shadow:0 14px 40px rgba(15,23,42,.65);
}

.cases-card:hover .cases-card__arrow-icon,
.cases-card:focus-visible .cases-card__arrow-icon{
  animation:card-arrow-slide .6s ease-out 1s 1 forwards;
}

/* BUBBLE с описанием */

.cases-card__body{
  position:absolute;
  left:8px;
  right:110px;
  top:16px;
  max-width:420px;
  padding:18px 24px 20px;
  border-radius:24px;
  background:rgba(255,255,255,.98);
  color:#141b36;
  box-shadow:0 18px 40px rgba(15,23,42,.28);
  border:1px solid rgba(15,23,42,.08);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  display:flex;
  flex-direction:column;
  gap:6px;
  opacity:0;
  filter:blur(3px);
  transform:translateY(12px) scale(.97);
  transform-origin:left top;
  pointer-events:none;
  transition:
    opacity .38s cubic-bezier(.21,.83,.26,1),
    transform .38s cubic-bezier(.21,.83,.26,1),
    filter .38s cubic-bezier(.21,.83,.26,1);
}

.cases-card__desc{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:#374151;
}

.cases-card:hover .cases-card__body,
.cases-card:focus-visible .cases-card__body{
  opacity:1;
  filter:blur(0);
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

/* точки-пейджер */

.cases-dots{
  max-width:var(--container);
  margin:22px auto 0;
  padding:0 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.cases-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:none;
  padding:0;
  background:rgba(15,23,42,.3);
  cursor:pointer;
  transition:
    width .25s ease,
    background .25s ease,
    transform .15s ease,
    opacity .25s ease;
}

.cases-dot.is-active{
  width:22px;
  background:var(--accent);
}

.cases-dot:hover,
.cases-dot:focus-visible{
  transform:translateY(-1px);
  opacity:.9;
  outline:none;
}

/* адаптив */

@media (max-width:1100px){
  .cases-shell{
    margin:56px -14px 32px;
    padding:56px 0 64px;
  }

  .cases-header{
    margin-bottom:24px;
    padding:0 20px;
  }

  .cases-track{
    padding-inline:10%;
  }

  .cases-card{
    min-height:400px;
  }
}

@media (max-width:720px){
  .cases-shell{
    margin:40px -14px 28px;
    padding:44px 0 52px;
  }

  .cases-header{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
    padding:0 16px;
  }

  .cases-title{
    font-size:clamp(26px, 7vw, 32px);
  }

  .cases-subtitle{
    font-size:14px;
    line-height:1.7;
    max-width:none;
  }

  .cases-track{
    padding-inline:6%;
  }

  .cases-card{
    border-radius:24px;
    min-height:320px;
  }

  .cases-card__body{
    left:18px;
    right:70px;
    top:18px;
    border-radius:22px;
  }

  .cases-card__brand{
    font-size:26px;
    left:20px;
    bottom:18px;
  }

  .cases-card__arrow{
    right:20px;
    bottom:18px;
    width:40px;
    height:40px;
  }
}

/* ===== БУРГЕР И МОБИЛЬНОЕ МЕНЮ ===== */

.header-burger{
  margin-top: 0;
  width:46px;
  height:46px;
  margin-left:0;  

  display:none;
  align-items:center;
  justify-content:center;

  border:none;
  background:var(--bg);
  border-radius:999px;
  cursor:pointer;
  line-height:0;
  padding:0;

  box-shadow:0 8px 20px rgba(25,42,77,.12);
  transition:
    background .18s ease,
    transform .12s ease,
    box-shadow .18s ease;
}

.header-burger__icon{
  display:block;
  width:24px;
  height:24px;
  transform:translateY(1px);
}

.header-burger:hover,
.header-burger:focus-visible{
  background:#f4f5ff;
  transform:translateY(-1px);
  box-shadow:0 10px 26px rgba(25,42,77,.18);
  outline:none;
}

/* когда меню открыто — блокируем скролл страницы */
body.no-scroll{
  overflow:hidden;
}

/* Оверлей бургер-меню */
.mobile-menu{
  position:fixed;
  inset:0;
  z-index:2500;
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  pointer-events:none;
  opacity:0;
  transition:opacity .25s ease-out;
}

/* на больших экранах бургер-меню вообще не выводим */
@media (min-width:1361px){
  .mobile-menu{
    display:none;
  }
}

.mobile-menu__panel{
  position:relative;
  width:min(420px, 100%);
  max-width:100%;
  height:100%;
  background:var(--bg);

  border-radius:0 24px 24px 0;
  padding:18px 20px 22px;

  transform:translateX(-32px);
  display:flex;
  flex-direction:column;
  gap:12px;
  transition:transform .28s cubic-bezier(.21,.83,.26,1);
  order:1;
}

.mobile-menu__overlay{
  flex:1 1 auto;
  background:rgba(15,23,42,.45);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);

  order:2;
}

.mobile-menu__back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(25,42,77,.08);
  background:#f4f5f7;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .12s ease,
    box-shadow .18s ease;
}

.mobile-menu__back-icon{
  width:22px;
  height:22px;
  flex-shrink:0;
}

.mobile-menu__back:hover,
.mobile-menu__back:focus-visible{
  background:#eef0ff;
  border-color:rgba(69,104,243,.35);
  transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(15,23,42,.16);
  outline:none;
}

.mobile-menu__nav{
  margin-top:8px;
  overflow:auto;
  padding-right:4px;
}

/* приятный скролл внутри панели */
.mobile-menu__nav::-webkit-scrollbar{
  width:8px;
}
.mobile-menu__nav::-webkit-scrollbar-thumb{
  background:var(--scroll-thumb);
  border-radius:999px;
}
.mobile-menu__nav::-webkit-scrollbar-thumb:hover{
  background:var(--scroll-thumb-hover);
}

/* состояние "открыто" */
.mobile-menu.is-open{
  opacity:1;
  pointer-events:auto;
}

.mobile-menu.is-open .mobile-menu__panel{
  transform:translateX(0);
}

.cta-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin-top:10px;
}

/* при 500px и меньше — в колонку */
@media (max-width:500px){
  .cta-row{
    flex-direction: column;
    align-items: stretch;
  }

  .cta-row > a,
  .cta-row button{
    width: 100%;
  }
}

/* на телефонах панель на всю ширину */
@media (max-width:720px){
  .mobile-menu{
    justify-content:stretch;
  }

  .mobile-menu__panel{
    width:100%;
    max-width:none;
    border-radius:0;
    box-shadow:0 20px 50px rgba(15,23,42,.65);
  }

  .hero-calc-bg {
    padding: 165px 32px 42px;
  }

  .header-burger {
    margin-top: 1px;
  }
}

/* ====== ПОДВАЛ ====== */

.site-footer{
  margin-top:56px;
  background:var(--footer-bg);
  color:var(--footer-ink);
  padding:50px 64px;
  margin-left:-14px;
  margin-right:-14px;
  margin-bottom:-28px;
}

.footer-inner{
  max-width:var(--container);
  margin:0 auto;
}

.footer-main{
  display:grid;
  grid-template-columns:minmax(260px, 1.4fr) minmax(0, 2.6fr);
  gap:40px 72px;
  align-items:flex-start;
}

/* Левая колонка */

.footer-logo{
  margin-bottom:18px;
  display:inline-flex;
  align-items:center;
}

.footer-text{
  margin:0 0 22px;
  max-width:500px;
  font-size:16px;
  line-height:1.75;
  color:var(--footer-muted);
}

.footer-logo-img{
  display:block;
  height:56px;
  max-width:100%;
  filter:drop-shadow(0 10px 26px rgba(0,0,0,.55));
}

.footer-contact{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:18px;
}

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

.footer-title{
  margin:0 0 14px;
  font-style:normal;
  font-weight:600;
  text-transform:uppercase;
  font-size:15px;
  color: var(--bg);
}

.footer-nav{
  display:grid;
  grid-template-columns:repeat(3, minmax(160px, 1fr));
  gap:32px 56px;
}

.footer-list{
  list-style:none;
  margin:0;
  padding:0;
}

.footer-list li + li{
  margin-top:6px;
}

.footer-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size:16px;
  line-height:1.8;
  color:var(--footer-muted);
  text-decoration:none;
  transition:color .16s ease, opacity .16s ease;
}

.footer-link:hover,
.footer-link:focus-visible{
  color:var(--bg);
  opacity:0.95;
  outline:none;
}

.footer-icon{
  display:block;
  flex-shrink:0;
}

.footer-icon--contact{
  width:24px;
  height:24px;
  text-align: center;
}

.footer-icon--social{
  width:40px;
  height:40px;
}

.footer-bottom{
  padding-top:18px;
}

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

@media (max-width:1024px){
  .footer-main{
    grid-template-columns:1fr;
    gap:32px;
  }
  .footer-nav{
    grid-template-columns:repeat(2, minmax(160px, 1fr));
    gap:24px 40px;
  }
}

@media (max-width:640px){
  .site-footer{
    padding:36px 16px 20px;
    margin-top:40px;
  }
  .footer-nav{
    grid-template-columns:1fr;
  }
  .footer-social{
    flex-wrap:wrap;
  }
  .footer-logo-img{
    height:42px;
  }
}

@media (max-width:720px){
  .brand-logo{
    height:44px;
  }
  .cases-card__body {
    top: 0;
    left: -1px;
  }
  .cases-card__brand {
    font-size: 21px;
  }
}

@media (max-width:1360px){
  .header-burger{
    display:inline-flex;
    margin-top: 5px;
    order:0;
    margin-right:12px;
  }

  .app-shell{
    grid-template-columns: minmax(0,1fr);
  }

  .site-header{
    position:fixed;
    inset:0 0 auto 0;
    min-height:var(--header-h);
    height:auto;
    border-right:none;
    border-bottom:1px solid rgba(25,42,77,.06);
    padding:16px 15px;
  }

  .header-inner{
    max-width:var(--container);
    margin:0 auto;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  .side-nav{
    display:none;
  }

  .header-actions{
    flex-direction:row;
    align-items:center;
    justify-content:flex-end;
    width:auto;
    gap:10px;
  }

  .header-cta{
    width:auto;
  }

  .header-lang{
    width:auto;
    margin-top:0;
    padding-top:0;
    border-top:none;
  }

  .lang-btn{
    width:auto;
    padding:12px;
    box-shadow:0 10px 26px rgba(69,104,243,.16);
  }

  .page-main{
    padding-top:calc(var(--header-h) + 24px);
  }

  .page-topbar{
    display:none;
  }

  .header-chip{
    display:none;
  }

  .header-auth{
    display:flex;
  }

  .site-header .header-cta,
  .site-header .header-lang{
    display:none;
  }

  .brand{
    flex-shrink:0;
    order:1;
  }

  .header-actions{
    order:2;
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:8px;
    width:auto;
  }
}

/* Чуть уменьшаем типографику на экранах уже 1546px */
@media (max-width:1546px){
  body{
    font-size:14px;
  }

  /* hero */
  .hero-title{
    font-size:clamp(21px, 3.2vw, 44px);
  }
  .hero-subtitle{
    font-size:14px;
  }

  /* заголовки секций */
  .split-heading,
  .infra-title,
  .cases-title{
    font-size:clamp(28px, 3vw, 40px);
  }

  /* калькулятор */
  .main_block h1{
    font-size:clamp(20px, 2.4vw, 26px);
  }

  /* статистика */
  .stat-value{
    font-size:72px;
  }

  /* отраслевые карточки */
  .industry-title{
    font-size:26px;
  }
  .industry-desc{
    font-size:15px;
  }

  /* инфра-карточки */
  .infra-card-title{
    font-size:22px;
  }
  .infra-card-text,
  .infra-quad-text{
    font-size:13px;
  }

  /* футер */
  .footer-text,
  .footer-link,
  .footer-copy{
    font-size:14px;
  }
}

@media (max-width:1510px){
  .infra-quad-card{
    padding:26px 26px;
  }

  .infra-quad-card.infra-card--with-arrow{
    padding-right:80px;
  }

  .infra-quad-card .infra-card-arrow{
    width:70px;
    height:60px;
  }

  .infra-quad-title{
    font-size:20px;
  }
}

@media (max-width:1420px){
  .industry-card{
    padding:28px 28px 26px;
  }

  .industry-bottom{
    padding-right:4px; 
    gap:24px; 
  }

  .industry-arrow-icon{
    width:32px;
    height:32px;
  }

  .industry-title{
    font-size:24px;
  }
}

/* ===== Адаптация при ширине 1400px и меньше ===== */
@media (max-width:1400px){

  .strategy-card__bubble{
    max-width:clamp(460px, 60%, 640px);
    padding:14px 22px 18px;
  }

  .strategy-card__bubble-text{
    font-size:13px;
    line-height:1.6;
  }

  .strategy-shell::before {
    top: -174px;
    right: -260px;
    width: 710px;
  }

  .strategy-shell::after{
    bottom: -220px;
    left: -220px;
    width: 760px;
    height: 260px;
  }

  .infra-card--wide .infra-card-media{
    max-width:360px;
  }

  .infra-card--wide .infra-card-media img{
    width:100%;
  }
}

@media (max-width:1140px){
  .stat-value {
    font-size: 64px;
  }
}

@media (max-width:1060px){
  .site-footer{
    padding:40px 32px 26px;
    margin-top:40px;
  }

  .footer-main{
    grid-template-columns:1fr;
    gap:32px;
  }

  .footer-text{
    max-width:none;
  }

  .footer-contact{
    flex-direction:row;
    flex-wrap:wrap;
    gap:10px 18px;
  }

  .footer-social{
    margin-top:6px;
    gap:14px;
  }

  .footer-nav{
    grid-template-columns:repeat(2, minmax(160px, 1fr));
    gap:24px 32px;
  }

  .footer-title{
    font-size:14px;
  }

  .footer-link{
    font-size:14px;
    line-height:1.6;
  }

  .footer-copy{
    font-size:13px;
  }
}

@media (max-width:1045px){
  .hero-inner--with-calc{
    padding: 32px 2px 32px;
  }

  .hero-panel{
    left: 0;
    right: 18px;
    top: 32px;

    padding: 22px 24px 20px;
    border-radius: 26px 0 26px 26px;

    clip-path: polygon(
      0 0,
      97% 0,
      60% 100%,
      0 100%
    );
  }

  .hero-title{
    max-width: 480px;
  }
}

@media (max-width:1015px){
  .stat-value {
    font-size: 58px;
  }
}

@media (max-width:918px){
  .stats-inner {
    flex-direction: column;
    align-items: center;
  }
  .stat-value {
    font-size: 68px;
  }
  .stats-section {
    padding: 0;
  }
  .strategy-card__bubble-text {
    font-size: 12px;
  }
  .strategy-card__title {
    font-size: 24px;
  }
}

@media (max-width:835px){
  .hero-subtitle {
    width: 320px;
    font-size: 12px;
  }
}

@media (max-width:815px){
  .cases-card__desc {
    font-size: 12px;
  }
}

@media (max-width: 800px) {
  .strategy-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .strategy-card__bubble{
    max-width: 100%;
  }
}

@media (max-width:580px){
  .hero-panel{
    left: 0;
    right: 10px;
    top: 32px;

    padding: 20px 18px 18px;
    border-radius: 24px 0 24px 24px;

    clip-path: polygon(
      0 0,
      96% 0,
      86% 100%,
      0 100%
    );
  }
}

@media (max-width:720px){

  .mobile-menu__panel{
    padding: 22px 22px 26px;
  }

  .mobile-menu__back{
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 999px;
  }

  .mobile-menu__actions{
    margin-top: 20px;
    gap: 12px;
  }

  .mobile-menu__actions .header-cta{
    padding: 14px 20px;
    font-size: 18px;
    border-radius: 16px;
  }

  .mobile-menu__actions .lang-btn{
    padding: 12px 18px;
    border-radius: 999px;
  }

  .mobile-menu__actions .lang-text{
    font-size: 14px;
    letter-spacing: .18em;
  }

  .mobile-menu__nav{
    margin-top: 16px;
  }

  .mobile-menu__nav .side-nav__list{
    gap: 6px;
  }

  .mobile-menu__nav .side-nav__link{
    font-size: 15px;
    min-height: 48px;
    padding: 12px 22px 12px 24px;
  }

  .mobile-menu__nav .side-nav__link--active{
    margin-left: -24px;
    padding-left: 48px;
    min-height: 52px;
    border-radius: 0 20px 20px 0;
  }
}


@media (max-width:683px) {
  .cases-track{
    padding-inline:16px;
    gap:16px;
  }

  .cases-card{
    flex:0 0 100%;
    max-width:100%;
  }

  .cases-card__brand{
    font-size:20px;

    left:20px;
    right:80px;
  }
}


@media (max-width:563px) {
  .hero-title {
    max-width: 285px;
  }
}

@media (max-width:560px) {
  .hero-title {
    max-width: 285px;
  }
}

@media (max-width:630px) {
  .hero-calc-bg {
    padding: 165px 6px 42px;
  }
}

@media (max-width:615px){
  .site-footer{
    padding:24px 14px 16px;
    margin-top:32px;
  }

  .footer-main{
    gap:24px;
  }

  .footer-logo-img{
    height:38px;
  }

  .footer-text{
    font-size:14px;
    line-height:1.6;
  }

  .footer-contact{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .footer-social{
    margin-top:8px;
    gap:12px;
  }

  .footer-icon--social{
    width:32px;
    height:32px;
  }

  .footer-nav{
    grid-template-columns:1fr;
    gap:18px;
  }

  .footer-title{
    font-size:13px;
    margin-bottom:6px;
  }

  .footer-link{
    font-size:14px;
    line-height:1.5;
  }

  .footer-list li + li{
    margin-top:4px;
  }

  .footer-bottom{
    padding-top:14px;
  }

  .footer-copy{
    font-size:12px;
  }
}

@media (max-width:480px){
  .auth-btn {
    padding: 6px 6px;
  }
}

@media (max-width:445px){
  .brand-logo {
    height: 36px;
  }
  .cases-card__brand {
    font-size: 18px;
  }
}

@media (max-width:415px){
  .header-burger {
    margin-left: 0;
  }
  .brand-logo {
    height: 24px;
  }
}

@media (max-width:400px){
  .hero-panel{
    clip-path: none;
    left: 2px;
    right: 2px;
    top: 33px;
    padding: 20px 18px 18px;
    border-radius: 24px 24px 24px 24px;
  }

  .strategy-card__title {
    font-size: 20px;
  }

  .industry-title {
    font-size: 18px;
  }
}

@media (max-width:325px){
  .industry-title {
    font-size: 14px;
  }
}

@media (max-width: 425px) {
  .strategy-section{
    padding: 0 16px;
  }

  .strategy-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .strategy-card__title{
    font-size: 26px;
  }

  .strategy-card__footer{
    padding: 0 22px 22px;
  }
}
