/* style_main.css */

:root{
  --bg:#f3f5fa; /*бледная подсветка фона*/
  --lilac:#96a4eb; /*ярко сиреневый, как на эксель таблице*/
  --lilac-soft:#e9eefd; /*светло сиреневый*/
  --surface:#ffffff;
  --surface-2:#f0f3f7;
  --text:#0F172A;
  --purple:#26426E;  /*было - #26426E*/
  --purple-soft: #435c85;
  --purple-soft2: #53688c;
  --blue: #3a5c99;
  --line:#e5e9f0;
  --accent:#2563eb;
  --accent-dark:#1d4ed8;
  --accent-soft:#eaf2ff;
  --max:1180px;
  --dark:#101827;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit}
button{font:inherit}

.container{width:min(calc(100% - 60px),var(--max));margin:auto}

/* Бургер-кнопка скрыта на десктопе */
.burger{
  display:none;
  flex-direction:column;
  justify-content:space-between;
  width:26px;
  height:18px;
  background:none;
  border:none;
  cursor:pointer;
  padding:0;
  z-index:20;
}

.burger span{
  display:block;
  width:100%;
  height:2px;
  background:#111; /* подберите цвет под свой дизайн */
  border-radius:2px;
  transition:transform 0.3s ease, opacity 0.3s ease;
}

/* Анимация превращения в крестик при открытии */
.burger.active span:nth-child(1){
  transform:translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2){
  opacity:0;
}
.burger.active span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg);
}

/* ===== Header ===== */
.header{
  background:#fff;
  position:relative;
  z-index:10;
}

.header .container{
  height:76px;
  display:grid;
  grid-template-columns:auto 1fr auto; /* лого | nav | кнопки */
  align-items:center;
  gap:24px;
}

.logo{
  justify-self:start;
  font-size:26px;
  font-weight:900;
  letter-spacing:-.045em;
  color:var(--purple);
}

/* На десктопе обёртка «растворяется», nav и кнопки становятся ячейками grid */
.header-menu{ display:contents; }

.nav{
  justify-self:center;              /* ровно по центру свободного места */
  display:flex;
  align-items:center;
  gap:28px;
  color:var(--purple);
  font-size:14px;
  font-weight:700;
}
.nav a{
  display:inline-block;             /* чтобы работал transform */
  transition:.18s ease;
}
.nav a:hover{
  color:var(--text);
  transform:translateY(-1px);
}

.nav .nav-mobile-only{ display:none; }

.header-actions{
  justify-self:end;                 /* прижаты к правому краю */
  display:flex;
  align-items:center;
  gap:10px;
}

.burger span{
  display:block;
  width:24px;
  height:2px;
  border-radius:2px;
  background:var(--purple);
  transition:transform .25s ease, opacity .2s ease;
}
/* Анимация в крестик: смещение = высота (2px) + gap (5px) = 7px */
.burger.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2){ opacity:0; }
.burger.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }


.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid transparent;
  font-size:14px;
  font-weight:400;
  cursor:pointer;
  transition:.18s ease;
}
.btn-primary{  /*Войти*/
  color:white;
  background:var(--accent);
  box-shadow:0 7px 20px rgba(37,99,235,.20);
}
.btn-primary:hover{background:var(--accent-dark);transform:translateY(-1px)}

.btn-secondary{   /*Зарегистрироваться*/
  color:var(--text);
  background: var(--lilac-soft); /*фон второстепенной кнопки*/
}
.btn-secondary:hover{border-color:#cbd3df;background:#fbfcfe}
.btn-lg{min-height:52px;padding:0 23px;font-size:15px;border-radius:14px}  /*Попробовать*/

/* Generic */
section{padding:110px 0}

.eyebrow{
  margin-bottom:18px;
  color:var(--accent);
  font-size: clamp(11px, 0.52vw, 19px);
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}

h1,h2,h3,p{margin-top:0; }
h1{
  font-weight:700;
  word-spacing:0.1em;
  max-width:720px;
  margin-bottom:24px;
  font-size:clamp(42px,5.2vw,66px);
  line-height:1.02;
  letter-spacing:-.055em;
}
h2{
  font-weight:600;
  margin-bottom:20px;
  font-size:clamp(36px,4vw,52px);
  line-height:1.06;
  letter-spacing:-.045em;
}

.h2_copy{
  display: block; /* Чтобы элемент вел себя как заголовок и переносил строку */
  font-weight:600;
  margin-bottom:20px;
  font-size:clamp(36px,4vw,52px);
  line-height:1.06;
  letter-spacing:-.045em;
}

h3{
  font-weight:500;
  margin-bottom:16px;
  font-size:clamp(30px,3vw,44px);
  line-height:1.06;
  letter-spacing:-.045em;
  color: var(--text);
}

h4{
  font-weight:500;
  margin-top:1px;
  margin-bottom:16px;
  font-size:clamp(24px,2.1vw,34px);
  line-height:1.06;
  letter-spacing:-.045em;
  color: var(--text);
}

h3.purple{color:var(--purple)}

.lead {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.6;

}
.lead2 {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 18px;
}
.lead3 {
  font-weight: 400;
  color: var(--purple);
  font-size: clamp(16px, 1.33vw, 19px);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 15px;
}
.lead4 {
  font-weight: 500;
  color: var(--purple-soft);
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 10px;
}

.sub {
  font-weight: 400;
  color: var(--blue);
  font-size: clamp(17px, 1.35vw, 20px);
  margin-bottom: 18px;
  line-height: 1.5;
}

.team p {
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--purple);
  text-align: justify;
}


/* Hero */
.hero{
  background: linear-gradient(to top, var(--bg) 0%, #ffffff 60%, #ffffff 100%); /*1st =#f6f8fb  2-nd =f4f6fb*/
  padding:72px 0 95px;
  overflow:hidden;
  position:relative;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  align-items:stretch;
  gap: 0px;  /*расстояние между колонками*/
}
.hero-fade{   /*добавляет доп слой под левы грид, чтобы картинка под него уходила*/
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:55%; /* примерно ширина левой колонки под grid-template-columns:1.1fr 0.9fr */
  background: linear-gradient(to top, var(--bg) 0%, #ffffff 60%, #ffffff 100%);
  opacity:0.8; /* ← крутите это число 0–1, чтобы регулировать прозрачность */
  z-index:2;
  pointer-events:none;
}
.hero-copy{
  display:flex;
  flex-direction: column;
  align-items: flex-start;
  position:relative;
  z-index:3; /* текст выше подложки */
}
.hero-actions{
display:flex;
flex-wrap:nowrap;
gap:11px;
margin:31px 0 30px;
}

.hero-visual{
  position:relative;
  z-index:1; /* картинка ниже подложки — обязательно! */
  margin: 0; /* сверху, справа, снизу, слева */
}
.hero-visual span{
  position:absolute;
  inset:0;
  display:flex;             /* ← добавлено */
  justify-content:flex-end; /* ← добавлено: картинка прижата к правому краю */
}
.hero-visual img{
  width:auto;           /* ← добавлено: пропорции сохраняются */
  display:block;        /* ← добавлено: убирает зазор снизу */
  margin-right:40px; /* ← отступ справа у картинки */
}


/* Proof  Обработает весь список*/
.proof{
  padding:40px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:white;
}

.proof-grid{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
}

.proof-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;   /* текст к правому краю карточки */
  justify-self:center;    /* карточка по центру своей ячейки */
}

.proof-title{
  font-size:30px;
  font-weight:800;
  letter-spacing:-.03em;
  line-height:1.1;
  color:inherit;
}

.proof-text{
  font-size:16px;
  font-weight:500;
  max-width:260px;
  line-height:1.35;
}

.proof-arrow{
  font-size:28px;
  line-height:1;
  color:var(--accent);
  transform:translateY(-2px);
  user-select:none;
  align-items:flex-start;
}

/* ===== Быстрый старт>===== */
.paste-block{background: var(--bg);}

/* Две колонки: слева текст, справа поле */
.paste-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: stretch;
}

.paste-copy{
  text-align: left;
}

/* Строка: текст + кнопка выбора файла рядом */
.paste-file-row{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: calc((clamp(16px, 1.5vw, 22px) * 1.3 - 44px) / 2);
}
.paste-file-row .lead2{
  margin: 0;
}

/* Нативный input скрыт, но доступен с клавиатуры */
.paste-file-input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.paste-file-input:focus-visible + label{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Правая колонка */
.paste-wrap{
  position: relative;           /* опора для блока ошибки */
  width: 100%;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}

/* Строка над полем: «Строк: 2, ячеек: 2.» + «Очистить» справа от текста.
   Высота = высота надписи .eyebrow слева (шрифт × 1.55 + отступ 18px),
   поэтому само поле начинается на уровне заголовка h2.
   Место занято всегда, даже когда строка скрыта, поэтому ничего не прыгает */
.paste-preview{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  height: calc(clamp(11px, 1.03vw, 17px) * 1.55 + 32px);
  padding-bottom: 6px;
  text-align: left;
}
.paste-preview[hidden]{
  display: flex;                /* перебиваем display:none от атрибута hidden */
  visibility: hidden;
}
.paste-summary{
  margin: 0;
  min-width: 0;
  font-size: 14px;
  color: var(--purple-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;      /* длинное имя файла обрежется */
}
.paste-preview .btn{
  flex: 0 0 auto;
  margin: 0;
  min-height: 28px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 8px;
}

.paste-zone{
  width: 100%;
  box-sizing: border-box;
  flex: 1 1 auto;               /* занимает всю оставшуюся высоту колонки */
  min-height: 260px;
  padding: 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  border: 2px dashed var(--lilac);
  border-radius: 12px;
  background: #fff;
  resize: none;
  white-space: pre;
  overflow: auto;
  outline: none;
  transition: border-color .18s ease;
}
.paste-zone:focus{
  border-color: var(--accent);
}
.paste-zone::placeholder{
  white-space: pre-line;
}

.paste-error{
  position: absolute;           /* вне потока: больше не отнимает высоту у поля */
  left: 0;
  right: 0;
  top: 100%;                    /* сразу под низом колонки */
  margin-top: 6px;
  color: #c0392b;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}

/* Кнопка «Загрузить» по центру под обеими колонками */
.paste-upload{
  display: block;
  margin: 40px auto 0;          /* было 30px: запас места под сообщение об ошибке */
}
.paste-upload:disabled{
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.paste-zone-over{
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
}



/* Problem */
.problem{
background:#fff;
position:relative;
padding-bottom:150px; /* место под надпись, чтобы не перекрывала контент */
}

.problem-grid{
  display:grid;
  grid-template-columns:1.05fr 0.95fr;
  gap: 30px;
  align-items:center;
}

 /*шрифты*/
.problem ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.problem li {
  font-weight: 400;

  color: var(--purple-soft);

  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.6;
  max-width:560px;
  letter-spacing: -0.01em;
  margin-bottom: 1em;
}

.problem li b {color: var(--purple); font-weight: 600}         /* жирный заголовок */

/*======  Горизонтальная надпись  ====== */

.problem-highlight{
  /*text-transform: uppercase;*/
  margin-top:70px;
  padding:20px 20px;
  background:var(--lilac-soft);
  color:#1749a6;
  font-size:clamp(21px, 1.9vw, 28px);
  font-weight:700;
  text-align:center;
}

.problem .problem-highlight{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
}

/* =============Chaos *================= */
.chaos{
  position:relative;
  min-height:330px;
  display:grid;
  place-items:center;
  padding:30px 10px;
}

/* Окно приложения */
.chaos-card.mail-app{
  transform:rotate(2deg);
  width:min(100%,425px);
  background:#ffffff;
  border-radius:12px;
  overflow:hidden;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI","Inter", system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
  color:#1d1d1f;
  box-shadow:
    0 0 0 0.5px rgba(0,0,0,.14),
    0 1px 3px rgba(0,0,0,.08),
    0 24px 60px -12px rgba(0,0,0,.28);
}

/* ===== Заголовок окна (светофор) ===== */
.app-titlebar{
  display:flex;
  align-items:center;
  height:38px;
  padding:0 12px;
  background:#e9e9ea;
  border-bottom:0.5px solid rgba(0,0,0,.1);
}

.app-dots{
  display:flex;
  gap:8px;
}

.dot{
  width:12px;
  height:12px;
  border-radius:50%;
  box-shadow:inset 0 0 0 0.5px rgba(0,0,0,.15);
}
.dot-red    { background:#ff5f57; }
.dot-yellow { background:#febc2e; }
.dot-green  { background:#28c840; }

.app-title{
  flex:1;
  text-align:center;
  font-size:12.5px;
  font-weight:600;
  color:#3a3a3c;
  letter-spacing:-.005em;
  margin-left:-48px; /* компенсация ширины светофора — центрируем по окну */
}

.app-spacer{ width:48px; }

/* ===== Тулбар ===== */
.app-toolbar{
  display:flex;
  align-items:center;
  gap:6px;
  height:36px;
  padding:0 12px;
  background:#f6f6f7;
  border-bottom:0.5px solid rgba(0,0,0,.08);
}



/* ===== Тело окна ===== */
.app-body{
  display:grid;
  grid-template-columns:110px 1fr;
  min-height:220px;
}
/* Сайдбар */
.app-sidebar{
  background:#f6f6f7;
  border-right:0.5px solid rgba(0,0,0,.08);
  padding:8px 6px;
  font-size:12.5px;
}
.side-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:5px 8px;
  border-radius:5px;
  color:#3a3a3c;
  letter-spacing:-.005em;
  cursor:default;
}
.side-item.active{
  background:#d8d8dc;
  color:#1d1d1f;
  font-weight:600;
}
.badge{
  display:inline-grid;
  place-items:center;
  min-width:16px;
  height:16px;
  padding:0 5px;
  border-radius:8px;
  background:#86868b;
  color:#fff;
  font-size:10px;
  font-weight:600;
}
.side-item.active .badge{ background:#2563eb; }
/* Область письма */
.app-mail{
  background:#ffffff;
  display:flex;
  flex-direction:column;
  min-width:0;
}
/* Шапка письма */
.mail-header{
  display:flex;
  align-items:center;
  gap:11px;
  padding:13px 15px;
  border-bottom:0.5px solid rgba(0,0,0,.08);
}
.mail-avatar{
  width:36px; height:36px;
  border-radius:50%;
  background:linear-gradient(180deg,#5b9cf6,#2563eb);
  color:#fff;
  font-size:13px;
  font-weight:600;
  display:grid;
  place-items:center;
  flex-shrink:0;
  letter-spacing:-.01em;
}
.mail-from{ flex:1; min-width:0; }
.mail-name{
  font-size:13.5px;
  font-weight:600;
  color:#1d1d1f;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mail-addr{
  font-size:11.5px;
  color:#86868b;
  letter-spacing:-.005em;
}

.mail-time{
  font-size:11.5px;
  color:#86868b;
  flex-shrink:0;
  letter-spacing:-.005em;
}
/* Тема */
.mail-subject{
  padding:14px 15px 2px;
  font-size:14.5px;
  font-weight:600;
  color:#1d1d1f;
  letter-spacing:-.015em;
  line-height:1.3;
}
/* Тело */
.mail-body{
  padding:6px 15px 16px;
  font-size:13px;
  color:#3a3a3c;
  line-height:1.55;
  letter-spacing:-.005em;
}
/*====== конец фрагмента chaos =========*/


/*Work*/
.work{
  text-align:center;
  overflow:hidden;
  position:relative;
}

/*Circle*/
.scheme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 70px 0 80px;
}
.circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid #107C41;
  background: transparent;          /* прозрачные */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.scheme-arrow {
  font-size: 26px;
  color: #94a0b2;
  flex-shrink: 0;
}
/* Текст */
.circle span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  line-height: 1.25;

  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  margin-top: 20px;
}

    /* Средний круг — акцентный */
.circle.primary {
  position: relative;
  border: none;
  background: transparent;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVG-подшипник */
.circle.primary .bearing-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 8s linear infinite;
  /*  animation: spin 10s cubic-bezier(0.5, 1.5, 0.5, 1) infinite; */
}

/* Текст поверх и не крутится */
.circle.primary span {
  position: relative;
  z-index: 2;
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-dark);
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 0px;
  letter-spacing:-.045em;
  color: var(--accent-dark)
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/*конец кругов*/

.metric{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.metric strong{font-weight:700;font-size:17px}
.metric span{font-size:15px; font-weight:500;}

.cta-row {
  display: flex;
  justify-content: center;   /* вся группа по центру */
  align-items: center;
  gap: 36px;                 /* расстояние между метрикой и кнопкой */
  flex-wrap: wrap;
}
.cta-row .metric {text-align: right}

/*Answer   Что внутри*/

.dark-section{
  padding-top: 90px;
  padding-bottom: 120px;
  margin-bottom: 82px;
  color:white;
  background:var(--dark);
  position:relative;
  overflow:hidden;
}

.dark-section .eyebrow{color:#7da7ff}

.answer{
  text-align:center;
  overflow:hidden;
  position:relative;
}

.answer-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 55px;
}


.answer-cell{
  position: relative;
  padding: 20px 20px 5px;
  border-radius: 200px;

  min-height: 130px;
  background: rgba(37, 99, 235, .06);
  isolation: isolate;
  transition: transform .25s ease;
}

/* свечение — точно как твой box-shadow, но на псевдоэлементе */
.answer-cell::before{
  content:"";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 4px dotted var(--line);
  box-shadow:
    0 0 52px rgba(96, 165, 250, .85),
    0 0 95px rgba(37, 99, 235, .85),
    inset 0 0 25px rgba(37, 99, 235, .28);
  pointer-events: none;
  z-index: -1;
  animation: glowPulse 8s ease-in-out infinite;

}

@keyframes glowPulse{
  0%, 100%{ opacity: .07; }
  50%     { opacity: 1;   }
}

.answer h3{font-size: 24px; font-weight: 600; color: var(--white); margin-bottom:10px; }
.answer p{font-size: 17px; font-weight: 400; color: var(--white) }


/* Result */
.result{
  text-align:center;

  overflow:hidden;
  position:relative;
}

.gradient-container{
  margin-top:50px;
  background: radial-gradient(ellipse 140% 110% at 70% 0%, var(--lilac-soft) 50%, var(--lilac) 100%);
  padding:50px 60px 0px;
}


/* ============ ОБЩЕЕ для всех таблиц-эксель ============ */
.datatable{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  table-layout:fixed;
  font-size: clamp(11px, 1.2vw, 15px);
}

.datatable th,
.datatable td{
  padding: 0.35em;
  border-right:1px solid #e4e8ee;
  border-bottom:1px solid #e4e8ee;
  vertical-align:top;
  text-align:left;
  white-space:pre-wrap;          /* пробелы в обозначениях сохраняются, но перенос разрешён */
  word-break:break-word;
  overflow-wrap:anywhere;
}

.datatable .excel-head{
  background:#f7f8fa;
  color:#687386;
  font-weight:800;
  vertical-align:middle;
  white-space:nowrap;
}

.datatable td.merged{
  background:#fff;
  vertical-align:middle;
  text-align:left;
  white-space:normal;            /* схлопывает пробелы-отступы из HTML */
}

/* ============ Таблица №1 — 5 колонок ============ */
.excel{
  min-width: 580px;              /* если контейнер уже — появится прокрутка */
}
.excel th:nth-child(1){ width: 140px; }
.excel th:nth-child(2){ width: 100px; }
.excel th:nth-child(3){ width: 200px; }  /* Аналоги */
.excel th:nth-child(4){ width: 80px;  }
.excel th:nth-child(5){ width: 80px;  }

/* ============ Таблица №2 — 4 колонки ============ */
.excel-2{
  min-width: 480px;
}
.excel-2 th:nth-child(1){ width: 120px; }
.excel-2 th:nth-child(2){ width: 200px; }  /* Расшифровка */
.excel-2 th:nth-child(3){ width: 200px; }  /* Аналоги */
.excel-2 th:nth-child(4){ width: 200px; }




/* ============ Прокрутка таблиц ============ */
.excel-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  background:
    linear-gradient(to right, #fff 30%, transparent),
    linear-gradient(to left, #fff 30%, transparent) 100% 0,
    linear-gradient(to right, rgba(0,0,0,.12), transparent),
    linear-gradient(to left, rgba(0,0,0,.12), transparent) 100% 0;
  background-repeat:no-repeat;
  background-size:40px 100%, 40px 100%, 14px 100%, 14px 100%;
  background-attachment:local, local, scroll, scroll;
}



/* Product mockup - эксель таблица результат */
.mockup{
  position:relative;
  background:#fff;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 110%);
  border:1px solid rgba(229,233,240,.9);
  border-radius:7px;
  overflow:hidden;
  margin-top: 40px;
}

.browser-bar{
  height: clamp(25px, 4.9vh, 35px);
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 16px;
  background: rgba(0, 128, 0, 0.3);
  border-bottom:1px solid var(--line);
  opacity: 0.6;
}

.tool-btn{
  width:26px;
  height:22px;
  display:grid;
  place-items:center;
  font-size:15px;
  border-radius:5px;
  cursor:default;
  color:#3a3a3c;
  opacity: 0.7;
}

.tool-sep{
  width:1px;
  height:16px;
  background:rgba(0,0,0,.12);
  margin:0 4px;
}


/*  =========  Baza база  ==========  */

.baza{
  background: linear-gradient(to top, var(--bg) 0%, #ffffff 50%, #ffffff 100%);
  text-align:center;
  padding:72px 0;
  overflow:hidden;
  position:relative;
}
.diagram{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:70px;
  margin-bottom:70px;
}
.node{    /*Ячейки*/
  padding:10px 15px;
  border:2px solid #96a4eb;
  background:white;
  border-radius:13px;
  font-size:15px;
  font-weight:500;
  box-shadow:0 8px 25px rgba(15,23,42,.05);
  text-align: center;
}
.node.primary{background:var(--accent);color:white;border-color:var(--accent)} /*ячейка pxpert*/
.diagram-arrow{color:#94a0b2;font-size:20px}

.node.baza{border:4px solid var(--accent);}



.for-whom {
  background: white;
  text-align: center;
}

.for-whom .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.for-whom .card {
  background: #fff;
  border-top:1px solid var(--purple);
  border-bottom:1px solid var(--purple);
  border-right:3px solid var(--purple);
  border-left:1px solid var(--purple);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 10px 5px 5px 5px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.for-whom .icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.for-whom .card h3 {
font-size: 22px;
font-weight: 600;
color: var(--purple);
}

.for-whom .card ul {
  font-size: 16px;
  font-weight: 400;
  color: var(--text)
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
  text-align: left;
}

.for-whom .card li {
  margin-bottom: 6px;
}


/* Compare */
.compare{
  padding:72px 0;
  text-align:center;
}
.compare-grid{
  margin-top: 60px;
  display:grid;
  grid-template-columns:1fr 1fr;   /* обе колонки одинаковые */
  gap:60px;                        /* расстояние между колонками, подберите под макет */
  align-items:start;               /* колонки не растягиваются по высоте друг под друга */
}
.compare-col{
  display:flex;
  flex-direction:column;
  align-items:flex-start;          /* весь контент внутри колонки прижат влево */
  text-align:left;                 /* на случай текста с обёрткой в несколько строк */
}
.compare-icon{
  align-self:center;
  text-align:center;
}

/* Solutions */
.solutions{
 background: linear-gradient(to bottom, var(--bg) 0%, #ffffff 60%, #ffffff 100%);
}

.solutions-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 55px;
}

.solution{
  padding: 26px 20px 5px;
  background:var(--lilac-soft);
  border-radius: 15px;
  min-height: 150px;
}

.solution h3{ font-size: 22px; font-weight: 600; color: var(--purple); text-align: center;}
.solution p{ font-size: 16px; font-weight: 400; color: var(--text)}



.solution-note{
  margin: 30px 0;
  color: var(--blue);
  font-size: 19px;
  font-weight: 600;
  max-width: 70ch;
  padding-left:20px;
  border-left:3px solid var(--accent);
  line-height:1.35;
}


.knowledge-base{
  background: #ffffff;

  overflow: hidden;
  position: relative;
}

.kb-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 48px;
}

.kb-left{
  text-align: left;
}
.kb-left .lead{
  max-width: 65ch;
  margin: 0;
}

/* Контейнер ссылок — колонка */
.kb-links{
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* ссылки прижаты влево, не растягиваются */
  gap: 20px;                 /* отступ между ссылками — один на всех */
  margin-top: 40px;
}

/* Сама ссылка */
.kb-link{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #0b3b6f;                 /* подставь свой primary */
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, color .2s ease;
}

.kb-link:hover{
  transform: translateY(-4px);    /* поднимается при наведении */
  color: #0a2a4f;
}

.kb-link__arrow{
  transition: transform .2s ease;
}
.kb-link:hover .kb-link__arrow{
  transform: translateX(4px);
}


/*О нас*/
.team{background: var(--accent-soft); padding: 60px 0 60px}


/* Footer */
footer{padding:45px 0;background:#fff;border-top:1px solid var(--line)}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:50px}
.footer-logo{font-size:22px;font-weight:900;margin-bottom:8px;letter-spacing:-.045em;color: var(--purple)}
.footer-desc{color:var(--text);font-size:13px;max-width:290px}
.footer-links{display:flex;flex-direction:column;gap:10px;font-size:14px;width: max-content;color:var(--text)}
.footer-contact{font-size:13px}
.footer-bottom{margin-top:35px;margin-bottom:-20px; padding-top:20px;border-top:1px solid var(--line);color:#98a1af;font-size:12px}

/* ======================================== */
/* ============ Планшет ≤950px ============ */
@media (max-width: 950px){
  .problem-grid{grid-template-columns:1fr;gap:45px}
  .solutions-grid,.answer-grid{grid-template-columns:1fr 1fr}

  .hero-visual{
    position:absolute;
    inset:0;
    margin: 0px;
  }
  .hero-copy{z-index:2;}
  .hero-actions .btn{
    flex-shrink:1;
    min-width:0;
    padding:0 12px;
    font-size:14px;
  }
}

/* ============ Мобильный ≤650px ============ */
/* ===== Мобильный ===== */
@media (max-width:650px){
  .header .container{
    grid-template-columns:1fr auto;   /* лого слева, бургер справа */
  }

  .burger{ display:flex; justify-self:end; }

  /* ВАЖНО: переопределяем display:contents */
  .header-menu{
    display:flex;
    flex-direction:column;
    gap:10px;
    position:absolute;
    top:100%;                          /* сразу под шапкой */
    left:0;              /* было left:0 */
    right:auto;
    min-width:200px;        /* чтобы не получилось слишком узко */
    max-width:100%;         /* и не вылезало за экран */
    padding:16px;
    background:rgba(255,255,255,.65);
    -webkit-backdrop-filter:blur(5px);
    backdrop-filter:blur(7px);
    box-shadow:0 8px 16px rgba(0,0,0,.08);

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);
    transition:opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .header-menu.active{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }

  .nav{
    flex-direction:column;
    align-items:stretch;
    gap:0;
    justify-self:stretch;
  }
  .nav a{
    padding:14px 0;
    border-bottom:1px solid var(--line);
  }
  .nav a:hover{ transform:none; }
  .nav a:last-child{ border-bottom:none; }

  .nav .nav-mobile-only{ display:block; }  /* показываем в меню */
  .header-actions{ display:none; }         /* настоящие кнопки прячем */


/* ==========   Burger  end   ===========*/

  /* Общее */
  .container{width:min(calc(100% - 28px),var(--max))}
  section{padding:55px 0}
  .header{height:68px}

  h1{font-size:43px}
  h2{font-size:36px}

  /* Hero — приоритетная логика */
  .hero{ padding:45px 0 65px; min-height:420px; }
  .hero-grid{ position:relative;grid-template-columns:1fr;}


  .hero-visual span{
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .hero-visual img{
    width:auto;
    height:120%;
    max-height:none;
    max-width:none;
    opacity:.2;
    margin-right:0px; /* ← отступ справа у картинки */
  }

  .hero-copy{
    max-width:100%;
    padding-right:0;
  }

  .hero-actions .btn{
    flex-shrink:1;
    min-width:0;
    padding:0 12px;
    font-size:14px;
  }

  .hero-fade{
    opacity:0;
  }

  .proof{padding:44px 0}
  .proof-grid{
    grid-template-columns:1fr;
    gap:22px;
  }
  .proof-arrow{
    transform:rotate(90deg);
    justify-self:center;
    margin-left:4px;
  }
  .proof-title{font-size:22px}
  .proof-text{font-size:15px;max-width:none}


  .problem-grid{grid-template-columns:1fr;gap:0px}
  .diagram{max-width:100%;margin-top:80px}

  /*прокрутка таблицы*/
  .excel-scroll{ overflow-x:auto;-webkit-overflow-scrolling:touch;}

  .gradient-container{padding:30px 15px 0px}

  .compare-grid{grid-template-columns:1fr;gap:45px}
  .footer-grid{grid-template-columns:1fr;gap:25px}

  /*Circle*/
  .scheme {
    flex-direction: column; gap: 0px; margin: 10px 0 30px}   /* всё в колонку */

  .scheme-arrow {
    transform: rotate(90deg); /* стрелка вниз */
    font-size: 22px;
    margin: 4px 0;
  }
  .circle {width: 130px;height: 130px}
  .circle span {font-size: 15px;font-weight: 600}  /* Текст в кружках */
  .circle.primary {width: 160px; height: 160px}  /*размер главного круга*/
  .circle.primary span {font-size: 20px}  /* Текст главного круга */
  /*End Circle*/


  /* Прочее */
  .solutions-grid,.answer-grid{grid-template-columns:1fr}

  .paste-grid{
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .paste-zone{
    min-height: 200px;
  }

  .kb-grid{
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .kb-right:empty{
    display: none;
  }
}
