/* ONLY kopt-* classes. No :root. No global selectors. */

/* ===== Layout ===== */
.kopt-hero{
  margin:30px auto;
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
  width: 80%;       /* Блок занимает 80% ширины */
    margin-left: auto;  /* Авто-отступ слева */
    margin-right: auto; /* Авто-отступ справа */
  border:1px solid rgba(15,23,42,.12);
  border-radius:26px;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.86));
  box-shadow:0 18px 55px rgba(2,6,23,.10);

  position:relative;
  overflow:hidden;

  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}


.kopt-hero:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 240px at 80% 10%, rgba(37,211,102,.14), transparent 65%),
    radial-gradient(620px 260px at 16% 0%, rgba(22,163,74,.10), transparent 70%);
  pointer-events:none;
  opacity:.9;
}
.kopt-hero > *{position:relative;}

.kopt-hero__left,
.kopt-hero__right{min-width:0;padding: 36px;}

/* Sticky right column (desktop) */
@media (min-width:981px){
  .kopt-hero__right{
    position:sticky;
    top:18px;
    align-self:start;
  }
}

/* ===== Badge ===== */
.kopt-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(11,74,162,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.74));
  box-shadow:0 10px 18px rgba(2,6,23,.06);
  color:#475569;
  font-size:12px;
  font-weight:950;
  width:fit-content;
}
.kopt-dot{
  width:9px;height:9px;border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 6px rgba(22,163,74,.14);
}

/* ===== Typography ===== */
.kopt-title{
  margin:10px 0 0;
  font-size:36px;
  line-height:1.08;
  letter-spacing:-.4px;
  font-weight:900;
  color:#0b1220;
}
.kopt-passport{
  margin-top:6px;
  font-size:15px;
  color:#64748b;
  font-weight:400;
}
.kopt-sub{
  margin-top:10px;
  color:#334155;
  max-width:760px;
  line-height:1.45;
  font-size:15px;
}
.kopt-sub b{font-weight:950;color:#0f172a;}

/* ===== Shared hover-lift ===== */
.kopt-trustbox,
.kopt-kpi,
.kopt-box{
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

/* ===== Trust ===== */
.kopt-trust{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.kopt-trustbox{
  flex:1;
  min-width:260px;
  display:flex;
  gap:12px;
  align-items:center;

  padding:12px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.88);
  box-shadow:0 10px 22px rgba(2,6,23,.05);
}
.kopt-mark{
  width:44px;height:44px;border-radius:14px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
  display:grid;place-items:center;
  box-shadow:0 10px 18px rgba(2,6,23,.06);
  font-weight:950;
  color:#0f172a;
  flex:0 0 auto;
}
.kopt-trustbox b{display:block;font-size:13px;}
.kopt-trustbox span{display:block;margin-top:2px;color:#64748b;font-size:12px;line-height:1.35;}
.kopt-trustbox:hover{
  transform:translateY(-2px);
  border-color:rgba(15,23,42,.14);
  box-shadow:0 18px 38px rgba(2,6,23,.12), 0 0 0 10px rgba(22,163,74,.05);
}

/* ===== KPIs ===== */
.kopt-kpis{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.kopt-kpi{
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(15,23,42,.06);
  background:rgba(255,255,255,.86);
  box-shadow:0 10px 22px rgba(2,6,23,.05);
}
.kopt-kpi b{display:block;font-size:14px;}
.kopt-kpi span{display:block;margin-top:4px;color:#64748b;font-size:12px;}
.kopt-kpi:hover{
  transform:translateY(-2px);
  border-color:rgba(15,23,42,.14);
  box-shadow:0 18px 38px rgba(2,6,23,.12), 0 0 0 10px rgba(22,163,74,.05);
}

/* ===== Boxes ===== */
.kopt-box{
  padding:12px;
  background:rgba(255,255,255,.88);
}
.kopt-box--mt{margin-top:12px;}
.kopt-box h3{margin:0 0 8px;font-size:18px;font-weight:950;padding-bottom:12px;border-bottom:2px solid #ebebeb;}
.kopt-box:hover{
  transform:translateY(-2px);
  border-color:rgba(15,23,42,.14);
  box-shadow:0 18px 38px rgba(2,6,23,.12), 0 0 0 10px rgba(22,163,74,.05);
}

/* ===== Table (SmartBuy blue header) ===== */
.kopt-table{
  width:100%;
  border-collapse:separate;
  overflow:hidden;
  background:#fff;
}
.kopt-table th,
.kopt-table td{
  padding:12px;
  font-size:16px;
  text-align:left;
  border-bottom:1px solid rgba(15,23,42,.06);
}
.kopt-table thead th{
  background:linear-gradient(180deg, #0b4aa2, #093f88);
  color:#fff;
  font-weight:950;
  font-size:16px;
  letter-spacing:.2px;
  border-bottom:1px solid rgba(255,255,255,.18);
}
.kopt-table thead th:first-child{border-right:1px solid rgba(255,255,255,.18);}
.kopt-table tbody tr:nth-child(odd) td{background:rgba(15,23,42,.015);}
.kopt-table tbody tr{transition:background .14s ease;}
.kopt-table tbody tr:hover td{background:rgba(11,74,162,.06);}
.kopt-table tr:last-child td{border-bottom:none;}
.kopt-table td:first-child{width:32%;}

/* ===== Right column ===== */
.kopt-cta{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.kopt-fine{
  font-size:12px;
  color:#64748b;
  margin-top:0;
	    display: flex;
    justify-content: space-around;
}

/* ===== Chips & pills ===== */
.kopt-row{
      display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    flex-direction: column;
}
.kopt-pill,
.kopt-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  background:rgba(255,255,255,.86);
  color:#475569;
  font-size:14px;
	font-weight: 500;
  white-space:nowrap;
  transition:background .14s ease, transform .14s ease;
}
.kopt-pill:hover,
.kopt-chip:hover{
  background:rgba(11,74,162,.04);
  transform:translateY(-1px);
}

/* =========================================================
   CTA: “Главный инструмент” + МАЯК (переливание самой кнопки)
   ========================================================= */

.kopt-calcBtn{
  display:flex;
  align-items:center;
  gap:14px;

  padding:40px 18px;
  border-radius:22px;
  min-height:92px;

  text-decoration:none;
  user-select:none;
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(620px 260px at 18% 0%, rgba(11,74,162,.20), transparent 62%),
    radial-gradient(620px 260px at 92% 100%, rgba(22,163,74,.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,249,255,.92));

  /* важно для переливания */
  background-size:180% 180%, 180% 180%, 100% 100%;
  background-position:0% 0%, 100% 100%, 0% 0%;

  border:1.5px solid rgba(11,74,162,.26);
  box-shadow:0 18px 40px rgba(2,6,23,.14);

  will-change:transform, box-shadow, filter, background-position;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;

  /* МАЯК: мягкое переливание + подсветка */
  animation:koptBtnBeacon 3.6s ease-in-out infinite;
}

/* top-right label */
.kopt-calcBtn__badge {
  position:absolute;
  top:10px;
  right:12px;
  text-transform: uppercase;
  font-size:11px;
  font-weight:950;
  letter-spacing:.55px;

  color:rgba(255,255,255,.96);
  background:linear-gradient(180deg, #0b4aa2, #093f88);
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  padding:6px 10px;

  box-shadow:0 10px 20px rgba(2,6,23,.14);
}

/* “луч” по кнопке (редкий) */
.kopt-calcBtn:after{
  content:"";
  position:absolute;
  top:-55%;
  left:-120%;
  width:55%;
  height:240%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.30), transparent);
  transform:rotate(12deg);
  opacity:0;
  pointer-events:none;
  animation:koptShimmerSoft 8.5s ease-in-out infinite;
}

/* МАЯК — ключевые кадры */
@keyframes koptBtnBeacon{
  0%{
    background-position:0% 0%, 100% 100%, 0% 0%;
    box-shadow:0 18px 40px rgba(2,6,23,.14);
    filter:saturate(1);
  }
  45%{
    background-position:60% 25%, 40% 75%, 0% 0%;
    box-shadow:
      0 22px 48px rgba(2,6,23,.16),
      0 0 0 10px rgba(11,74,162,.07),
      0 0 0 22px rgba(22,163,74,.04);
    filter:saturate(1.03);
  }
  100%{
    background-position:0% 0%, 100% 100%, 0% 0%;
    box-shadow:0 18px 40px rgba(2,6,23,.14);
    filter:saturate(1);
  }
}

@keyframes koptShimmerSoft{
  0%   { left:-120%; opacity:0; }
  68%  { left:-120%; opacity:0; }
  75%  { opacity:.35; }
  92%  { opacity:.25; }
  100% { left:140%; opacity:0; }
}

.kopt-calcBtn__icon{
  position:relative;
  flex:0 0 auto;

  width:64px;
  height:64px;
  border-radius:18px;

  background:
    radial-gradient(60px 60px at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,.35)),
    linear-gradient(180deg, rgba(11,74,162,.12), rgba(11,74,162,.06));

  border:1px solid rgba(11,74,162,.18);
  box-shadow:0 14px 26px rgba(2,6,23,.10);

  display:grid;
  place-items:center;
}

.kopt-calcSvg{
  width:54px;
  height:54px;
  display:block;
  filter:drop-shadow(0 10px 18px rgba(2,6,23,.12));
  transition:transform .18s ease, filter .18s ease;
}

.kopt-calcBtn__text{position:relative; min-width:0;}
.kopt-calcBtn__title{
  display:block;
  font-weight:950;
  font-size:18px;
  color:#0b1220;
  letter-spacing:-.3px;
  line-height:1.1;
}
.kopt-calcBtn__sub{
  display:block;
  margin-top:5px;
  font-size:13px;
  font-weight:850;
  color:#475569;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* right “0–3 мин” badge — заметнее + микро-движение */
.kopt-calcBadge{
  position:relative;
  margin-left:auto;

  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:9px 12px;
  border-radius:999px;

  font-size:12px;
  font-weight:950;
  color:#0b4aa2;

  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,247,255,.90));
  border:1px solid rgba(11,74,162,.20);
  box-shadow:0 10px 18px rgba(2,6,23,.08);

  transform:translateY(0);
  animation:koptBadgeNudge 4.8s ease-in-out infinite;
}
@keyframes koptBadgeNudge{
  0%{ transform:translateY(0); }
  82%{ transform:translateY(0); }
  88%{ transform:translateY(-2px); }
  94%{ transform:translateY(0); }
  100%{ transform:translateY(0); }
}

.kopt-calcBadge__dot{
  width:9px;height:9px;border-radius:50%;
  background:#16a34a;
  box-shadow:0 0 0 0 rgba(22,163,74,.22);
  animation:koptDotPulse 1.85s ease-out infinite;
}
@keyframes koptDotPulse{
  0%{ box-shadow:0 0 0 0 rgba(22,163,74,.22); }
  70%{ box-shadow:0 0 0 10px rgba(22,163,74,0); }
  100%{ box-shadow:0 0 0 0 rgba(22,163,74,0); }
}

.kopt-calcBtn__arrow{
  position:relative;
  margin-left:57px;
  font-weight:950;
  color:#0b4aa2;
  opacity:1;
  transform:translateX(0);
  transition:transform .18s ease;
  font-size:18px;
}

/* Hover: чуть сильнее, но без “орущих” эффектов */
.kopt-calcBtn:hover{
  transform:translateY(-5px);
  border-color:rgba(11,74,162,.34);
  box-shadow:0 22px 48px rgba(2,6,23,.16);
  filter:saturate(1.04);
}
.kopt-calcBtn:hover .kopt-calcSvg{
  transform:translateY(-1px) scale(1.02);
  filter:drop-shadow(0 14px 22px rgba(2,6,23,.14));
}
.kopt-calcBtn:hover .kopt-calcBtn__arrow{
  transform:translateX(6px);
}

.kopt-calcBtn:focus-visible{
  outline:none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.95),
    0 0 0 7px rgba(11,74,162,.22),
    0 22px 48px rgba(2,6,23,.16);
}

/* ===== Mobile ===== */
@media (max-width:980px){
  .kopt-hero{
    grid-template-columns:1fr;
    padding:16px;
  }
  .kopt-title{font-size:30px;}
  .kopt-kpis{grid-template-columns:1fr;}

  .kopt-calcBtn{
    padding:16px 14px;
    min-height:86px;
  }
  .kopt-calcBtn__icon{width:58px;height:58px;border-radius:16px;}
  .kopt-calcSvg{width:50px;height:50px;}

  .kopt-calcBtn:before{
    top:8px;
    right:10px;
    font-size:10px;
    padding:5px 9px;
  }

  .kopt-calcBadge{padding:8px 10px;}
}

/* ===== Reduce motion ===== */
@media (prefers-reduced-motion: reduce){
  .kopt-calcBtn,
  .kopt-calcSvg,
  .kopt-calcBtn__arrow,
  .kopt-calcBadge,
  .kopt-calcBadge__dot{
    transition:none !important;
    animation:none !important;
  }
  .kopt-calcBtn:after{animation:none !important;}
}

/* Disable hover-lift on touch */
@media (hover:none){
  .kopt-trustbox:hover,
  .kopt-kpi:hover,
  .kopt-box:hover,
  .kopt-pill:hover,
  .kopt-chip:hover{
    transform:none;
  }
  .kopt-calcBtn:hover{transform:none;filter:none;}
  .kopt-calcBtn:hover .kopt-calcSvg{transform:none;}
  .kopt-calcBtn:hover .kopt-calcBtn__arrow{transform:none;}
}