@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

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

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

  --bg:#ffffff;
  --on-dark:#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:"Manrope", "Segoe UI", 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;
}

.page-main--home{
  padding-top:0;
}
@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 search ===== */
.header-search{
  width:100%;
  min-width:0;
}

.header-search__label{
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

.header-search__box{
  width:100%;
  height:46px;

  display:flex;
  align-items:center;
  gap:10px;

  padding:0 8px 0 14px;
  border-radius:999px;

  background: rgba(255,255,255,.72);
  border: 1px solid rgba(25, 42, 77, 0.10);

  box-shadow:
    0 14px 30px rgba(25,42,77,.08),
    inset 0 1px 0 rgba(255,255,255,.70);

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

.header-search__box:focus-within{
  border-color: rgba(69,104,243,.45);
  box-shadow: var(--ring), 0 16px 34px rgba(69,104,243,.10);
  background: rgba(255,255,255,.86);
}

.header-search__icon{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: rgba(25,42,77,.55);
}

.header-search__input{
  flex:1 1 auto;
  min-width:0;

  border:none;
  outline:none;
  background:transparent;

  font-size:14px;
  font-weight:700;
  color: var(--ink);

  padding:0;
}

.header-search__input::placeholder{
  color: rgba(25,42,77,.45);
  font-weight:700;
}

.header-search__btn{
  flex:0 0 auto;
  flex-shrink:0;
  width:36px;
  height:36px;
  border-radius:999px;

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

  padding:0;
  align-self:center;
  line-height:0;

  border:1px solid rgba(69,104,243,.18);
  background: rgba(69,104,243,.10);
  color: var(--accent-600);
  cursor:pointer;
  box-shadow:none;

  transition:
    background .16s ease,
    border-color .16s ease,
    transform .12s ease;
}

.header-search__btn:hover,
.header-search__btn:focus-visible{
  outline:none;
  transform: translateY(-1px);
  background: rgba(69,104,243,.16);
  border-color: rgba(69,104,243,.28);
}

.header-search__btn:active{
  transform:none;
}

/* ===== Header cart ===== */
.cart-btn{
  position:relative;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.96);
  box-shadow:0 12px 28px rgba(69,104,243,.14);

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

  text-decoration:none;
  color: rgba(25,42,77,.75);

  flex:0 0 auto;

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

.cart-btn:hover,
.cart-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;
}

.cart-ic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.cart-badge{
  position:absolute;
  top:6px;
  right:6px;

  min-width:18px;
  height:18px;
  padding:0 6px;
  border-radius:999px;

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

  font-size:11px;
  font-weight:900;
  line-height:1;
  color:#fff;

  background: var(--accent);
  box-shadow:0 0 0 3px rgba(255,255,255,.95), 0 10px 22px rgba(69,104,243,.22);
}

.cart-badge[hidden]{ display:none; }

.header-auth{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  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-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;
}

.public-icon{
  display:block;
  flex-shrink:0;
  color:inherit;
}

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

.hero-cta__icon.public-icon{
  filter:none;
}

.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-start;
  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(--on-dark);
  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(--on-dark);
  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(--on-dark);
  box-shadow:0 6px 16px rgba(69,104,243,.3);
  transform:none;
}

.side-nav__link--disabled{
  opacity:.45;
  pointer-events:none;
  cursor:default;
}

/* ===== ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ В ХЕДЕРЕ ===== */
.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;
  flex-wrap:wrap;
  gap:10px;
  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:auto;
  flex:0 0 auto;
  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);
}

.lang-btn.is-active,
.lang-btn[disabled]{
  cursor:default;
  opacity:.72;
  box-shadow:none;
  transform:none;
}

.mobile-menu__lang{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

@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) }

.auth-toggle{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:6px;
}

.auth-toggle__option{
  display:inline-flex;
  align-items:center;
  position:relative;
  cursor:pointer;
}

.auth-toggle__option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.auth-toggle__label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 16px;
  border-radius:12px;
  background:#f7f8fb;
  border:1px solid rgba(25,42,77,.08);
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  transition:transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.auth-toggle__option:hover .auth-toggle__label{
  border-color:rgba(25,42,77,.2);
  transform:translateY(-1px);
}

.auth-toggle__option input:focus-visible + .auth-toggle__label{
  box-shadow:var(--ring);
}

.auth-toggle__option input:checked + .auth-toggle__label{
  background:var(--accent);
  border-color:transparent;
  color:#fff;
  box-shadow:var(--ring);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
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{
  -webkit-appearance:none;
  -moz-appearance:none;
  appearance:none;
  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;
}

input[type="date"]{
  background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23192a4d' d='M7 2a1 1 0 0 1 1 1v1h8V3a1 1 0 1 1 2 0v1h1.5A2.5 2.5 0 0 1 22 6.5v13A2.5 2.5 0 0 1 19.5 22h-15A2.5 2.5 0 0 1 2 19.5v-13A2.5 2.5 0 0 1 4.5 4H6V3a1 1 0 0 1 1-1Zm12.5 8h-15v9.5a.5.5 0 0 0 .5.5h14a.5.5 0 0 0 .5-.5V10ZM6 6H4.5a.5.5 0 0 0-.5.5V8h16V6.5a.5.5 0 0 0-.5-.5H18v1a1 1 0 1 1-2 0V6H8v1a1 1 0 1 1-2 0V6Z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:16px;
  padding-right:42px;
  cursor:pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator{
  opacity:0;
  cursor:pointer;
}

/* ====== SUGGEST ====== */
.suggest-field{
  position:relative;
}

.suggest-list{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:50;
  display:none;
  max-height:240px;
  overflow:auto;
  padding:6px;
  border-radius:14px;
  background:var(--card);
  border:1px solid rgba(25,42,77,.08);
  box-shadow:0 16px 36px rgba(15,23,42,.16);
}

.suggest-list.is-open{
  display:block;
}

.suggest-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font-size:15px;
  text-align:left;
  cursor:pointer;
  transition:background .2s, color .2s, transform .12s;
}

.suggest-item__value{
  font-weight:600;
}

.suggest-item__meta{
  font-size:12px;
  color:rgba(25,42,77,.6);
}

.suggest-item:hover,
.suggest-item:focus-visible{
  background:rgba(69,104,243,.08);
  outline:none;
}

.suggest-item:active{
  transform:translateY(1px);
}

.suggest-list::-webkit-scrollbar{ width:10px }
.suggest-list::-webkit-scrollbar-thumb{ background:var(--scroll-thumb); border-radius:999px }
.suggest-list::-webkit-scrollbar-thumb:hover{ background:var(--scroll-thumb-hover) }
.suggest-list::-webkit-scrollbar-track{ background:transparent }

/* ====== РЯДЫ ====== */
.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(--on-dark); 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;
}

.row-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
}

.row-part-link{
  appearance:none;
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
  margin:0;
  color:var(--accent-600);
  font:inherit;
  font-weight:800;
  cursor:pointer;
  text-decoration:underline;
  text-underline-offset:3px;
}

.row-part-text{
  font-weight:800;
  color:var(--ink);
}

.row-rating{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-weight:800;
  color:var(--ink);
}

.row-rating__star{
  color:#f59e0b;
  font-size:14px;
  line-height:1;
}

.row-rating__value{
  font-variant-numeric: tabular-nums;
}

.row-part-link:hover,
.row-part-link:focus-visible{
  text-decoration:none;
  outline:none;
}

.row-part-link:focus-visible{
  box-shadow: 0 0 0 3px rgba(69,104,243,.22);
  border-radius: 8px;
}

/* ====== INLINE OFFERS (accordion under table row) ====== */
.offers-row td{
  padding:0 !important;
  border-bottom:none !important;
  background:transparent !important;
  white-space:normal !important;
}

.offers-inline{
  margin:10px 0 14px;
  padding:14px 14px 12px;
  border-radius:14px;
  border:1px solid rgba(25,42,77,.06);
  background:var(--card);
  box-shadow:0 12px 28px rgba(25,42,77,0.04);
}

.offers-inline__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.offers-inline__title{
  font-weight:800;
  color:var(--ink);
  font-size:15px;
  letter-spacing:-0.01em;
}

.offers-inline__list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.offer-line{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(25,42,77,.06);
  background: rgba(25,42,77,.02);
}

.offer-line.is-current{
  border-color: rgba(69,104,243,.35);
  background: rgba(69,104,243,.06);
}

.offer-line__info{
  min-width: 0;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.offer-line__price{
  font-weight:900;
  color:var(--ink);
  font-size:15px;
  letter-spacing:-0.01em;
  white-space:nowrap;
}

.offer-line__curr{
  margin-left:4px;
  font-size:12px;
  font-weight:800;
  color:rgba(25,42,77,.55);
  text-transform:uppercase;
}

.offer-line__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:0;
}

.offer-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(25,42,77,.06);
  background: rgba(255,255,255,.7);
  color: rgba(25,42,77,.82);
  font-size:12px;
  font-weight:700;
}

.offer-badge__k{
  opacity:.7;
  font-weight:800;
}

.offer-badge--ok{
  border-color: rgba(51,177,122,.25);
  background: rgba(51,177,122,.10);
  color: rgba(20,110,74,.95);
}

.offer-badge--reserve{
  border-color: rgba(251,191,36,.30);
  background: rgba(251,191,36,.12);
  color: rgba(120,84,0,.95);
}

.offer-badge--bad{
  border-color: rgba(239,107,107,.30);
  background: rgba(239,107,107,.10);
  color: rgba(160,38,38,.95);
}

.offer-line__updated{
  color: rgba(25,42,77,.55);
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
}

.offer-line__choose{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:12px;
  border:1px solid rgba(69,104,243,.35);
  background: rgba(69,104,243,.06);
  color: var(--accent-600);
  font-weight:800;
  cursor:pointer;
  box-shadow:none;
  transition:
    background .2s,
    border-color .2s,
    color .2s,
    transform .15s,
    box-shadow .15s;
}

.offer-line__choose:hover,
.offer-line__choose:focus-visible{
  background: var(--accent);
  border-color: var(--accent);
  color:#fff;
  transform: translateY(-1px);
  box-shadow:0 10px 24px rgba(69,104,243,.16);
  outline:none;
}

.offer-line__choose[disabled],
.offer-line__choose[aria-disabled="true"]{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  box-shadow:none;
}

@media (max-width:720px){
  .offer-line{
    grid-template-columns: 1fr;
  }
  .offer-line__choose{
    width:100%;
  }
  .offer-line__updated{
    white-space:normal;
  }
}

.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[disabled],
.hero-cta[aria-disabled="true"],
.cta-row button[disabled]{
  background:#f2f3f7;
  border-color:rgba(25,42,77,.12);
  color:rgba(25,42,77,.45);
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
  pointer-events:none;
}

.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-clickable td{ cursor:pointer }

/* ==== Цветные строки по статусу наличия ==== */
/* Есть в наличии — зелёный */
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(--on-dark); 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;
}

/* ====== СТАТИСТИКА ПОД ХЕДЕРОМ ====== */
.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(--on-dark);
  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-arrow-icon.public-icon{
  filter:none;
}

.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:495px;
  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-arrow-icon.public-icon{
  transition:
    color .25s ease,
    transform .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(--on-dark);
}

.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.public-icon{
  filter:none;
}

.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;
  color:var(--ink);
  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-icon.public-icon{
  transition:
    color .2s ease,
    transform .2s ease;
}

.cases-arrow:hover,
.cases-arrow:focus-visible{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
  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-arrow:hover .cases-arrow-icon.public-icon,
.cases-arrow:focus-visible .cases-arrow-icon.public-icon{
  filter:none;
}

.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(--on-dark);
  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;
  color:#fff;
  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__arrow-icon.public-icon{
  filter:none;
}

.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;
}

.results-actions{
  flex-wrap:wrap;
  margin-top:12px;
  margin-bottom:8px;
}

.results-actions > a,
.results-actions > button{
  white-space:nowrap;
}

.shipping-calc{
  margin:14px 0 16px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(25,42,77,.12);
  background:linear-gradient(180deg, rgba(69,104,243,.06), rgba(69,104,243,.02));
}

.shipping-calc__head h4{
  margin:0;
  font-size:16px;
  font-weight:800;
  letter-spacing:.01em;
}

.shipping-calc__head p{
  margin:6px 0 0;
  color:rgba(25,42,77,.66);
  font-size:13px;
}

.shipping-calc__form{
  margin-top:12px;
  display:grid;
  gap:10px 12px;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  align-items:end;
}

.shipping-calc__field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.shipping-calc__field.is-hidden-by-incoterm{
  display:none;
}

.shipping-calc__field--wide{
  grid-column:1 / -1;
}

.shipping-calc__incoterm-hint{
  grid-column:1 / -1;
  font-size:12px;
  line-height:1.45;
  color:rgba(25,42,77,.72);
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(25,42,77,.10);
  background:rgba(255,255,255,.72);
}

.shipping-calc__field span{
  font-size:12px;
  font-weight:700;
  color:rgba(25,42,77,.72);
}

.shipping-calc__field input,
.shipping-calc__field select{
  height:38px;
  border-radius:10px;
  border:1px solid rgba(25,42,77,.14);
  background:#fff;
  color:var(--ink);
  padding:0 10px;
  font-size:14px;
  font-weight:600;
  outline:none;
}

.shipping-calc__field input:focus-visible,
.shipping-calc__field select:focus-visible{
  border-color:rgba(69,104,243,.55);
  box-shadow:0 0 0 3px rgba(69,104,243,.14);
}

.shipping-calc__actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-start;
}

.shipping-calc__actions .hero-cta{
  min-height:38px;
  border-radius:10px;
  padding:8px 14px;
  font-size:13px;
  letter-spacing:.01em;
}

.shipping-calc__output{
  margin-top:12px;
  border-radius:12px;
  border:1px solid rgba(25,42,77,.1);
  background:#fff;
  padding:10px 12px;
}

.shipping-calc__output.is-error{
  border-color:rgba(239,107,107,.35);
  background:rgba(239,107,107,.06);
}

.shipping-calc__message{
  font-size:13px;
  color:rgba(25,42,77,.8);
}

.shipping-calc__output.is-error .shipping-calc__message{
  color:var(--err);
}

.shipping-calc__summary{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
}

.shipping-calc__metric{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:8px;
  border-radius:10px;
  background:#f7f8fc;
}

.shipping-calc__metric small{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:rgba(25,42,77,.6);
}

.shipping-calc__metric strong{
  font-size:14px;
  font-weight:800;
  color:var(--ink);
}

.shipping-calc__rate{
  margin-top:10px;
  font-size:13px;
  color:rgba(25,42,77,.76);
}

.shipping-calc__details{
  margin-top:8px;
}

.shipping-calc__details summary{
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  color:var(--accent-700);
}

.shipping-calc__breakdown-grid{
  margin-top:8px;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:8px;
}

.shipping-calc__breakdown-grid > div{
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:12px;
  border-radius:8px;
  padding:7px 8px;
  background:#f7f8fc;
  color:rgba(25,42,77,.74);
}

.shipping-calc__breakdown-grid > div strong{
  color:var(--ink);
}

/* ====== 404 PAGE ====== */
.not-found-hero{
  margin:0 -14px 56px;
}

.not-found-inner{
  padding-top:24px;
}

.hero-calc-bg--404{
  padding:96px 32px 52px;
}

.not-found-card{
  max-width:720px;
  margin:0 auto;
  text-align:left;
}

.not-found-card .hero-title{
  width:auto;
}

.not-found-card .hero-subtitle{
  max-width:640px;
}

.not-found-code{
  margin:0 0 12px;
  font-size:clamp(56px, 11vw, 130px);
  font-weight:800;
  letter-spacing:-.04em;
  line-height:.95;
  color:var(--accent);
}

.not-found-list{
  margin:16px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
  color:rgba(25,42,77,.78);
  font-size:14px;
}

.not-found-list li{
  position:relative;
  padding-left:18px;
}

.not-found-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.6em;
  width:6px;
  height:6px;
  border-radius:999px;
  background:rgba(69,104,243,.6);
}

@media (max-width:765px){
  .cta-row{
    flex-direction: column;
    align-items: stretch;
  }

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

  .results-actions > a,
  .results-actions > button{
    white-space: normal;
  }

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

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

  .shipping-calc__breakdown-grid{
    grid-template-columns:1fr;
  }
}

/* на телефонах панель на всю ширину */
@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;
  }

  .hero-calc-bg--404 {
    padding: 120px 24px 36px;
  }

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

  .shipping-calc{
    padding:12px;
  }

  .shipping-calc__form{
    grid-template-columns:1fr;
  }

  .shipping-calc__actions{
    justify-content:stretch;
  }

  .shipping-calc__actions .hero-cta{
    width:100%;
  }

  .shipping-calc__summary{
    grid-template-columns:1fr;
  }
}

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

.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;
  width:auto;
  height:56px;
  max-width:100%;
  aspect-ratio:281.51 / 87.59;
  object-fit:contain;
  flex:0 0 auto;
  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(--footer-ink);
}

.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(--footer-ink);
  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-main--home{
    padding-top:var(--header-h);
  }

  .page-topbar{
    display:none;
  }

  .header-auth{
    display:flex;
  }

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

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

  .header-search{
    order:2;
    flex: 1 1 320px;
    max-width: 640px;
    min-width: 0;
  }

  .header-search__box{
    height:44px;
  }

  .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: 24px;
    padding: 20px 22px 18px;
    border-radius:24px 0 24px 24px;
    clip-path:polygon(
      0 0,
      97% 0,
      68% 100%,
      0 100%
    );
  }

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

  .hero-calc-bg{
    padding:212px 24px 38px;
  }
}

@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 {
    max-width: 100%;
    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: 20px;
    padding: 17px 16px 16px;
    border-radius: 18px 0 18px 18px;
    clip-path: polygon(
      0 0,
      99% 0,
      74% 100%,
      0 100%
    );
  }

  .hero-calc-bg{
    padding:176px 12px 34px;
  }
}

@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: 100%;
  }
}

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

@media (max-width:630px) {
  .hero-calc-bg {
    padding: 186px 10px 34px;
  }
}

@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{
    left: 2px;
    right: 2px;
    top: 16px;
    padding: 16px 14px 14px;
    border-radius: 16px;
  }

  .hero-calc-bg{
    padding:166px 8px 28px;
  }

  .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;
  }
}

.page-auth{ overflow-x:hidden !important; overflow-y:hidden !important; }

/* =========================================================
   AUTH
========================================================= */

.page-auth .page-main{
  padding: 0 !important;
  overflow: visible !important;
}

/* =========================================================
   SHELL
========================================================= */
.calc-shell.auth-shell{
  --auth-ink: var(--ink, #192a4d);
  --auth-muted: rgba(25,42,77,.72);
  --auth-muted-2: rgba(25,42,77,.56);
  --auth-line: rgba(25,42,77,.12);

  --auth-accent: var(--accent, #4568f3);
  --auth-accent-2: #38bdf8;
  --auth-accent-3: #a855f7;

  --auth-card: rgba(255,255,255,.92);
  --auth-card-2: rgba(255,255,255,.98);

  --auth-radius-lg: 22px;
  --auth-radius-md: 16px;
  --auth-shadow-lg: 0 26px 70px rgba(15,23,42,.14);
  --auth-shadow-md: 0 14px 34px rgba(15,23,42,.10);

  --auth-ring: 0 0 0 4px rgba(69,104,243,.16);

  --auth-info-ic: url("../media/images/svg/icon_info.svg");
  --auth-info-dot: 27px;
  --auth-info-glyph: 22px;

  --auth-dot-ring: rgba(69,104,243,.26);
  --auth-dot-fill: rgba(69,104,243,.10);
  --auth-dot-shadow: 0 10px 22px rgba(69,104,243,.14);
  --auth-dot-ink: rgba(25,42,77,.86);

  --site-header-h: 84px;
  --auth-lift: -10px;

  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(26px, 5vh, 62px) 0;

  min-height: calc(100svh - var(--site-header-h));
  display: flex;
  align-items: center;
}

/* фон */
.calc-shell.auth-shell::before{
  content:"";
  position:absolute;
  inset:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background:
    radial-gradient(120% 140% at 18% 18%, rgba(69,104,243,.18), transparent 58%),
    radial-gradient(120% 140% at 84% 82%, rgba(168,85,247,.13), transparent 60%),
    linear-gradient(135deg,#f4f7ff 0%,#eef6ff 40%,#eafcff 72%,#fff4f7 100%);
  z-index:-2;
}

/* сетка */
.calc-shell.auth-shell::after{
  content:"";
  position:absolute;
  inset:0;
  left:50%;
  width:100vw;
  transform:translateX(-50%);
  background-image:
    linear-gradient(to right, rgba(25,42,77,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(25,42,77,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(72% 68% at 50% 38%, #000 0%, transparent 70%);
  opacity: .55;
  z-index:-1;
}

/* =========================================================
   LAYOUT
========================================================= */
.calc-shell.auth-shell .calc-shell-inner{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 26px;

  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 520px);
  gap: clamp(18px, 4vw, 56px);
  align-items: center;

  transform: translateY(var(--auth-lift));
}

.calc-shell.auth-shell .calc-shell-inner > *{ min-width: 0; }

/* =========================================================
   LEFT: COPY
========================================================= */
.calc-shell.auth-shell .calc-shell-copy{
  position: relative;
  max-width: 680px;

  padding: 22px;
  border-radius: 26px;

  background: rgba(255,255,255,.34);
  border: 1px solid rgba(25,42,77,.08);
  box-shadow: 0 22px 60px rgba(15,23,42,.08);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.calc-shell.auth-shell .calc-shell-copy::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius: 32px;
  background:
    radial-gradient(120% 120% at 25% 20%, rgba(69,104,243,.18), transparent 55%),
    radial-gradient(120% 120% at 85% 80%, rgba(168,85,247,.14), transparent 58%);
  filter: blur(6px);
  opacity: .55;
  z-index: -1;
}

.calc-shell.auth-shell .calc-shell-title{
  margin: 0 0 12px;
  color: rgba(25,42,77,.98);

  font-size: clamp(48px, 3.35vw, 56px);
  font-weight: 980;
  letter-spacing: -0.055em;
  line-height: 0.98;

  display: inline-block;
  position: relative;
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
  max-width: 100%;
}

html[lang^="en"] .calc-shell.auth-shell .calc-shell-title{
  font-size: clamp(46px, 4.05vw, 76px);
  letter-spacing: -0.045em;
}

.calc-shell.auth-shell .calc-shell-title::after{
  content:"";
  position:absolute;
  left: 2px;
  bottom: -20px;
  width: 112px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(69,104,243,1),
    rgba(56,189,248,.85),
    rgba(168,85,247,.70)
  );
  box-shadow: 0 14px 34px rgba(69,104,243,.14);
  opacity: .92;
}

.calc-shell.auth-shell .calc-shell-text{
  margin: 16px 0 12px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--auth-muted);
}

/* =========================================================
   HINT CHIP
========================================================= */
.calc-shell.auth-shell :where(.calc-shell-copy .calc-shell-hint, .main_block > .calc-shell-hint){
  margin: 0;
  max-width: 62ch;

  position: relative;
  display: inline-flex;
  align-items: center;

  border-radius: 14px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(25,42,77,.10);

  font-size: 14px;
  line-height: 1.55;
  color: var(--auth-muted-2);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  padding: 10px 12px 10px calc(12px + var(--auth-info-dot) + 12px);
}

.calc-shell.auth-shell :where(.calc-shell-copy .calc-shell-hint, .main_block > .calc-shell-hint)::before{
  content:"";
  position:absolute;
  left: 12px;
  top: 50%;
  width: var(--auth-info-dot);
  height: var(--auth-info-dot);
  transform: translateY(-50%);
  border-radius: 999px;

  background:
    radial-gradient(120% 120% at 30% 25%, rgba(255,255,255,.85), transparent 58%),
    radial-gradient(140% 140% at 70% 75%, rgba(56,189,248,.18), transparent 60%),
    var(--auth-dot-fill);

  border: 1px solid var(--auth-dot-ring);
  box-shadow: var(--auth-dot-shadow), inset 0 1px 0 rgba(255,255,255,.72);
}

.calc-shell.auth-shell :where(.calc-shell-copy .calc-shell-hint, .main_block > .calc-shell-hint)::after{
  content:"";
  position:absolute;
  left: 13px;
  top: 50%;
  width: var(--auth-info-dot);
  height: var(--auth-info-dot);
  transform: translateY(-48%) translateY(-0.2px);
  opacity: .98;

  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--auth-info-glyph) var(--auth-info-glyph);
  background-image: var(--auth-info-ic);
  pointer-events: none;
}

@supports (-webkit-mask-image: url("")){
  .calc-shell.auth-shell :where(.calc-shell-copy .calc-shell-hint, .main_block > .calc-shell-hint)::after{
    background-image: none;
    background-color: var(--auth-dot-ink);

    -webkit-mask-image: var(--auth-info-ic);
    mask-image: var(--auth-info-ic);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: var(--auth-info-glyph) var(--auth-info-glyph);
    mask-size: var(--auth-info-glyph) var(--auth-info-glyph);

    filter: drop-shadow(0 1px 0 rgba(255,255,255,.35));
  }
}

/* =========================================================
   RIGHT: FORM CARD
========================================================= */
.calc-shell.auth-shell .main_block{
  width: 100%;
  justify-self: end;

  background: var(--auth-card);
  border: 1px solid rgba(25,42,77,.10);
  border-radius: var(--auth-radius-lg);
  box-shadow: var(--auth-shadow-lg);

  padding: 22px 22px 18px;
  position: relative;
  overflow: hidden;
}

.calc-shell.auth-shell .main_block::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height: 5px;
  background: linear-gradient(90deg,
    rgba(69,104,243,1),
    rgba(56,189,248,.86),
    rgba(168,85,247,.76)
  );
}

.calc-shell.auth-shell .main_block::after{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  border-radius: inherit;
  background:
    radial-gradient(120% 140% at 10% 0%, rgba(69,104,243,.08), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(168,85,247,.06), transparent 60%);
  opacity: .9;
}

.calc-shell.auth-shell .auth-card-head{
  position: relative;
  z-index: 1;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 10px 0 16px;
}

.calc-shell.auth-shell .auth-card-head > h1{
  margin: 0;
  color: rgba(25,42,77,.96);
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.02em;
  line-height: 1.12;
}

html[lang^="en"] .calc-shell.auth-shell .auth-card-head > h1{ letter-spacing: -.01em; }

/* =========================================================
   BUTTONS
========================================================= */
.calc-shell.auth-shell .auth-pill-link{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 9px 14px;
  min-height: 38px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: .01em;

  color: rgba(69,104,243,1);
  background: linear-gradient(90deg, rgba(69,104,243,.10), rgba(56,189,248,.10));
  border: 1px solid rgba(69,104,243,.20);

  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  will-change: transform;
  overflow: hidden;

  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.calc-shell.auth-shell .auth-pill-link::before{
  content:"";
  position:absolute;
  inset:0;
  transform: translateX(-120%);
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(255,255,255,.55) 45%,
    transparent 70%
  );
  opacity: .75;
  transition: transform .55s ease;
}

.calc-shell.auth-shell .auth-pill-link::after{
  content:"→";
  position: relative;
  z-index: 1;
  opacity: .72;
  transition: transform .18s ease, opacity .18s ease;
}

.calc-shell.auth-shell .auth-pill-link > *{ position: relative; z-index: 1; }

.calc-shell.auth-shell .auth-pill-link:hover{
  transform: translateY(-1px);
  border-color: rgba(69,104,243,.34);
  box-shadow: 0 14px 30px rgba(15,23,42,.10);
  filter: brightness(1.02);
}
.calc-shell.auth-shell .auth-pill-link:hover::before{ transform: translateX(120%); }
.calc-shell.auth-shell .auth-pill-link:hover::after{ transform: translateX(3px); opacity: 1; }
.calc-shell.auth-shell .auth-pill-link:focus-visible{
  outline: none;
  box-shadow: var(--auth-ring), 0 14px 30px rgba(15,23,42,.10);
}

.calc-shell.auth-shell .auth-card-head .auth-pill-link{
  margin-left: auto;
  white-space: nowrap;
}

/* =========================================================
   FORM
========================================================= */
.calc-shell.auth-shell .main_block form{
  position: relative;
  z-index: 1;

  display:flex;
  flex-direction:column;
  gap: 12px;
  margin: 0;
}

.calc-shell.auth-shell .main_block form :where(div > label){
  display:block;
  margin: 0 0 7px;

  color: rgba(25,42,77,.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.calc-shell.auth-shell .main_block :is(
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  select,
  textarea
){
  width: 100%;
  border: 1px solid rgba(25,42,77,.14) !important;
  background: var(--auth-card-2) !important;

  border-radius: 14px;
  padding: 13px 14px;

  font-size: 16px;
  color: rgba(25,42,77,.95);

  box-shadow: inset 0 1px 0 rgba(255,255,255,.92);
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease, background .18s ease;
  margin-bottom: 2px;
}

.calc-shell.auth-shell .main_block :is(input, select, textarea)::placeholder{
  color: rgba(25,42,77,.40);
}
.calc-shell.auth-shell .main_block :is(input, select, textarea):hover{
  border-color: rgba(69,104,243,.26) !important;
}
.calc-shell.auth-shell .main_block :is(input, select, textarea):focus{
  outline:none;
  background:#fff !important;
  border-color: rgba(69,104,243,.62) !important;
  box-shadow: var(--auth-ring), 0 14px 34px rgba(15,23,42,.10);
  transform: translateY(-1px);
}

.calc-shell.auth-shell .main_block form > label{
  display:flex;
  align-items:center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 14px;

  background: rgba(69,104,243,.05);
  border: 1px solid rgba(69,104,243,.16);

  color: rgba(25,42,77,.82);
  font-weight: 850;
  text-transform: none;

  position: relative;
  z-index: 1;

  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}

.calc-shell.auth-shell .main_block form > label:hover{
  border-color: rgba(69,104,243,.26);
  background: rgba(69,104,243,.07);
  transform: translateY(-1px);
}

.calc-shell.auth-shell .main_block form > label input[type="checkbox"]{
  width: 18px;
  height: 18px;
  accent-color: var(--auth-accent);
  cursor: pointer;
  transform: translateY(.5px);
}

.calc-shell.auth-shell .main_block :is(button[type="submit"], .hero-cta.infra-cta){
  width: 100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding: 14px 16px !important;
  border-radius: 16px !important;

  font-size: 16px !important;
  font-weight: 950 !important;
  letter-spacing: .02em;

  border: 0 !important;
  color: #fff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.14);

  background: linear-gradient(90deg, rgba(69,104,243,1), rgba(56,189,248,.86)) !important;
  box-shadow: 0 18px 44px rgba(69,104,243,.24) !important;

  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  z-index: 1;
}

.calc-shell.auth-shell .main_block :is(button[type="submit"], .hero-cta.infra-cta):is(:hover,:focus-visible){
  transform: translateY(-1px);
  box-shadow: 0 22px 56px rgba(69,104,243,.30) !important;
  filter: brightness(1.02);
  outline: none;
}

.calc-shell.auth-shell .main_block .alert{
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  border-radius: 14px;
  font-size: 13px;
}

/* =========================================================
   FOOT HINT
========================================================= */
.calc-shell.auth-shell .main_block > .calc-shell-hint{
  display: flex;
  width: 100%;
  max-width: none;
  box-sizing: border-box;

  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;

  font-size: 13px;
  line-height: 1.45;

  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}

.calc-shell.auth-shell .main_block > .calc-shell-hint:hover{
  border-color: rgba(69,104,243,.18);
  background: rgba(255,255,255,.64);
  transform: translateY(-1px);
}

/* =========================================================
   TOGGLE
========================================================= */
.calc-shell.auth-shell .auth-step-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 10px;
  padding: 7px 12px 7px 10px;

  border-radius: 999px;
  background: rgba(69,104,243,.08);
  border: 1px solid rgba(69,104,243,.18);

  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;

  color: rgba(25,42,77,.76);
}

.calc-shell.auth-shell .auth-step-kicker::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(69,104,243,1), rgba(56,189,248,.9));
  box-shadow: 0 6px 14px rgba(69,104,243,.25);
}

.calc-shell.auth-shell .auth-toggle{
  gap: 12px;
  margin-top: 8px;
}

.calc-shell.auth-shell .auth-toggle__label{
  padding: 10px 18px;
  border-radius: 14px;

  background: rgba(255,255,255,.86);
  border: 1px solid rgba(25,42,77,.14);

  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;

  box-shadow: 0 10px 24px rgba(15,23,42,.06);

  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.calc-shell.auth-shell .auth-toggle__label::before{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(69,104,243,1), rgba(56,189,248,.86));
  opacity: 0;
  z-index: -1;
}

.calc-shell.auth-shell .auth-toggle__option:hover .auth-toggle__label{
  border-color: rgba(69,104,243,.28);
  background: rgba(255,255,255,.96);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
  transform: translateY(-1px);
}

.calc-shell.auth-shell .auth-toggle__option input:checked + .auth-toggle__label{
  color:#fff;
  background: transparent;
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(69,104,243,.22);
  transform: translateY(-1px);
}

.calc-shell.auth-shell .auth-toggle__option input:checked + .auth-toggle__label::before{
  opacity: 1;
  inset: -1px;
}

.calc-shell.auth-shell .auth-toggle__option input:focus-visible + .auth-toggle__label{
  outline: none;
  box-shadow: var(--auth-ring), 0 14px 34px rgba(15,23,42,.10);
}

.calc-shell.auth-shell .cta-row{
  margin-top: 14px;
  gap: 12px;
}
.calc-shell.auth-shell .cta-row .hero-cta{
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 950;
}
.calc-shell.auth-shell .cta-row .hero-cta[disabled]{
  background: rgba(25,42,77,.04) !important;
  border-color: rgba(25,42,77,.12) !important;
  color: rgba(25,42,77,.48) !important;
  opacity: 1;
}

.site-footer.auth-shell{ margin-top: 0 !important; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .calc-shell.auth-shell{
    padding: 24px 0 32px;
    align-items: flex-start;
    --auth-lift: 0px;
  }

  .calc-shell.auth-shell .calc-shell-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 85px 16px 0;
    align-items: stretch;
  }

  .calc-shell.auth-shell .calc-shell-copy{
    padding: 18px 16px;
    border-radius: 22px;
  }

  .calc-shell.auth-shell .calc-shell-title{
    font-size: clamp(38px, 9vw, 58px);
  }

  .calc-shell.auth-shell .calc-shell-title::after{
    width: 96px;
    height: 6px;
    bottom: -14px;
  }

  .calc-shell.auth-shell .main_block{
    justify-self: stretch;
    padding: 20px 16px 16px;
    border-radius: 20px;
  }

  .calc-shell.auth-shell .auth-card-head{
    margin: 8px 0 14px;
  }
}

@media (max-width: 520px){
  .calc-shell.auth-shell .auth-card-head{
    flex-direction: column;
    align-items: stretch;
  }

  .calc-shell.auth-shell .auth-card-head .auth-pill-link{
    width: 100%;
  }

  .calc-shell.auth-shell .main_block > .calc-shell-hint{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;

    align-items: start;
    justify-items: stretch;

    padding: 12px 12px 12px calc(12px + var(--auth-info-dot) + 12px);
    line-height: 1.35;
  }

  .calc-shell.auth-shell .main_block > .calc-shell-hint::before,
  .calc-shell.auth-shell .main_block > .calc-shell-hint::after{
    top: 16px;
    transform: none;
  }

  .calc-shell.auth-shell .main_block > .calc-shell-hint .auth-pill-link{
    width: 100%;
    min-height: 42px;
    font-size: 14px;
  }
}

@media (max-height: 740px){
  .calc-shell.auth-shell{
    min-height: auto;
    padding: 18px 0 24px;
    align-items: flex-start;
    --auth-lift: 0px;
  }
}

/* =========================================================
   UNIVERSAL FILE UPLOADER
========================================================= */
input[type="file"]{
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  border: 1px dashed rgba(25,42,77,.14);
  color: var(--ink, #192a4d);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(25,42,77,.06), inset 0 1px 0 rgba(255,255,255,.70);
}

/* ---------- enhanced uploader ---------- */
.uploader{
  --up-ink: var(--ink, #192a4d);
  --up-muted: rgba(25,42,77,.64);
  --up-border: rgba(25,42,77,.14);
  --up-accent: var(--accent, #4568f3);
  --up-bg: rgba(255,255,255,.72);
  --up-bgH: rgba(255,255,255,.90);
  --up-ring: var(--ring, 0 0 0 4px rgba(69,104,243,.18));
  width: 100%;
}

.uploader__drop{
  position: relative;
  width: 100%;
  min-height: 78px;
  padding: 14px 16px;
  border-radius: 18px;

  background: var(--up-bg);
  border: 1px dashed var(--up-border);

  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  row-gap: 10px;

  overflow: hidden;
  transform: translateZ(0);

  box-shadow: 0 10px 26px rgba(25,42,77,.06),
              inset 0 1px 0 rgba(255,255,255,.70);

  backdrop-filter: blur(12px) saturate(155%);
  -webkit-backdrop-filter: blur(12px) saturate(155%);

  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease;

  cursor: pointer;
}

.uploader__drop::before{
  content:"";
  position:absolute;
  left:0; right:0; top:0;
  height:3px;
  background: linear-gradient(90deg, rgba(69,104,243,.75), rgba(33,38,71,.28));
  opacity: .92;
  pointer-events:none;
}

.uploader__drop::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(520px 220px at 18% 0%, rgba(69,104,243,.14), transparent 60%),
    radial-gradient(520px 220px at 90% 120%, rgba(33,38,71,.10), transparent 60%);
  opacity:.55;
  pointer-events:none;
}

.uploader__drop:hover{
  border-color: rgba(69,104,243,.22);
  background: var(--up-bgH);
  transform: translateY(-1px);
}

.uploader__drop:focus-within{
  outline: none;
  border-color: rgba(69,104,243,.55);
  background: #fff;
  box-shadow: var(--up-ring), 0 16px 36px rgba(25,42,77,.10);
  transform: none;
}

.uploader__left{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 1 1 260px;
  min-width:0;
  z-index:1;
}

.uploader__icon{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: linear-gradient(135deg, rgba(69,104,243,1), rgba(69,104,243,.55));
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 14px 26px rgba(69,104,243,.22);

  position: relative;
  overflow:hidden;
}

.uploader__icon::after{
  content:"";
  width: 18px;
  height: 18px;
  display:block;
  background-repeat:no-repeat;
  background-position:center;
  background-size:18px 18px;
  opacity:.95;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3v10' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M8 7l4-4 4 4' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 14v5a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-5' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.uploader__text{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.uploader__title{
  margin:0;
  font-size: 13px;
  font-weight: 850;
  color: rgba(25,42,77,.92);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploader__meta{
  margin:0;
  font-size: 11px;
  font-weight: 750;
  color: var(--up-muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uploader__right{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap:10px;
  z-index:3;
}

/* clear button */
.uploader__clear{
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;

  border: 1px solid rgba(25,42,77,.12);
  background: rgba(255,255,255,.90);
  color: rgba(25,42,77,.80);

  font: inherit;
  font-size: 12px;
  font-weight: 900;

  cursor:pointer;
  position: relative;
  z-index: 4;

  box-shadow: 0 10px 20px rgba(25,42,77,.05),
              inset 0 1px 0 rgba(255,255,255,.75);

  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.uploader__clear:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.98);
  border-color: rgba(69,104,243,.22);
  box-shadow: 0 14px 28px rgba(25,42,77,.08),
              inset 0 1px 0 rgba(255,255,255,.80);
}

/* ВАЖНО: только внутри uploader делаем overlay кликабельным */
.uploader__native{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  z-index:2;
}

/* ===== DRAGOVER: меняем саму карточку (без накладок) ===== */
@keyframes upBar { from { background-position: 0% 0; } to { background-position: 200% 0; } }
@keyframes upPulse { 0%,100% { box-shadow: 0 18px 44px rgba(25,42,77,.10); } 50% { box-shadow: 0 22px 54px rgba(25,42,77,.14); } }

.uploader.is-dragover .uploader__drop{
  border-width: 2px;
  border-style: dashed;
  border-color: rgba(69,104,243,.92);
  background: rgba(255,255,255,.96);
  animation: upPulse 1.15s ease-in-out infinite;
  transform: none;
}
.uploader.is-dragover .uploader__drop::before{
  height: 4px;
  opacity: 1;
  background: linear-gradient(90deg, rgba(69,104,243,1), rgba(168,85,247,.75), rgba(69,104,243,1));
  background-size: 200% 100%;
  animation: upBar 1.1s linear infinite;
}
.uploader.is-dragover .uploader__drop::after{ opacity: .80; }

.uploader.is-dragtext .uploader__title{ font-weight: 900; }
.uploader.is-dragtext .uploader__meta{ color: rgba(25,42,77,.78); }

/* disabled */
.uploader.is-disabled .uploader__drop{
  opacity: .65;
  filter: grayscale(.12);
  transform: none;
  cursor: default;
}
.uploader.is-disabled .uploader__native{
  pointer-events:none;
  cursor:not-allowed;
}
.uploader.is-disabled .uploader__clear{
  cursor:not-allowed;
}

/* responsive */
@media (max-width: 820px){
  .uploader__meta{ display:none; }
}
@media (max-width: 520px){
  .uploader__right{
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
  .uploader__clear{ height: 40px; }
}

.calc-shell.auth-shell .form-step[data-step="password"] .cta-row{
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  gap: 12px;
  align-items: stretch;
}

.calc-shell.auth-shell .form-step[data-step="password"] .cta-row > .hero-cta{
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
}

.calc-shell.auth-shell .form-step[data-step="password"] .cta-row > button[type="submit"]{
  padding: 10px 16px !important;
  border-radius: 14px !important;
  margin-top: 0;
}

@media (max-width: 720px){
  .calc-shell.auth-shell .form-step[data-step="password"] .cta-row{
    grid-template-columns: 1fr;
  }
}
