:root {
  --navin-primary: #00c853;
  --navin-primary-dark: #00a445;

  --navin-bg: #f8fafc;
  --navin-card: #ffffff;
  --navin-text: #1e293b;
  --navin-text-light: #64748b;

  --navin-radius: 20px;
  --navin-border: #e2e8f0;
  --navin-ring: rgba(0, 200, 83, .22);
  --navin-shadow: 0 18px 40px -18px rgba(15, 23, 42, .18);
}

/* Обгортка для десктопа */
.navin-main-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  margin: 20px auto;
  align-items: flex-start;

  padding: 14px;
  border-radius: 26px;
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(0,200,83,.06), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(2,132,199,.05), transparent 60%);
}

.navin-app {
  flex: 1.1;
  background: var(--navin-card);
  border-radius: var(--navin-radius);
  padding: 30px;
  border: 1px solid var(--navin-border);
  box-shadow: var(--navin-shadow);
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--navin-text);
}

/* Права колонка */
.navin-info-sidebar {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 901px){
  .navin-info-sidebar{ position: sticky; top: 18px; }
}

.navin-info-card {
  position: relative;
  background: #fff;
  padding: 18px 18px 18px 18px;
  border-radius: var(--navin-radius);
  border: 1px solid #eef2f6;
  box-shadow: 0 14px 34px -28px rgba(2,6,23,.35);

  font-size: 14px;
  line-height: 1.6;
  color: var(--navin-text);
}

.navin-info-card h3 { margin: 0 0 10px; font-size: 18px; }
.navin-info-card h4 { margin: 0 0 8px; font-size: 15px; color: var(--navin-text); }

.navin-info-card a{
  color: var(--navin-primary-dark);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0,200,83,.35);
}
.navin-info-card a:hover{ border-bottom-style: solid; }

/* Твої border-* */
.navin-info-card.border-green{ background: #fbfffd; }
.navin-info-card.border-blue{ background: #fbfdff; }
.navin-info-card.border-orange{ background: #fffdf7; }

.navin-info-card.border-green::before,
.navin-info-card.border-blue::before,
.navin-info-card.border-orange::before{
  content:"";
  position:absolute;
  left:0; top:14px; bottom:14px;
  width:4px;
  border-radius: 999px;
}
.navin-info-card.border-green::before{ background: linear-gradient(180deg, var(--navin-primary), rgba(0,200,83,.35)); }
.navin-info-card.border-blue::before{ background: linear-gradient(180deg, #0284c7, rgba(2,132,199,.25)); }
.navin-info-card.border-orange::before{ background: linear-gradient(180deg, #f59e0b, rgba(245,158,11,.25)); }

/* Калькулятор */
.navin-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  text-align: center;
  letter-spacing: -0.02em;
}
.navin-subtitle {
  font-size: 14px;
  color: var(--navin-text-light);
  text-align: center;
  margin-bottom: 26px;
  max-width: 360px;
  margin-left:auto;
  margin-right:auto;
}

.navin-tabs {
  display: flex;
  background: #eef2f7;
  border: 1px solid #e6edf5;
  padding: 6px;
  border-radius: 16px;
  margin: 22px 0;
}
.navin-tab {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: 12px;
  background: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease;
}
.navin-tab:hover { transform: translateY(-1px); }
.navin-tab.active {
  background: white;
  box-shadow: 0 10px 18px -14px rgba(2, 6, 23, .35);
  color: var(--navin-primary);
}
.navin-tab:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--navin-ring);
}

.navin-input-wrapper { position: relative; margin-bottom: 22px; }

.navin-main-input {
  width: 100%;
  border: 3px solid #e8eef6;
  border-radius: 16px;
  padding: 20px;
  font-size: 32px;
  font-weight: 800;
  box-sizing: border-box;
  text-align: center;
  color: var(--navin-primary);
  outline: none;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.navin-main-input:focus{
  border-color: rgba(0,200,83,.55);
  box-shadow: 0 0 0 4px var(--navin-ring);
}

.navin-input-unit {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: var(--navin-text-light);

  background: #ffffff;
  border: 1px solid #e8eef6;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

/* Кнопки +/- (якщо додаси в HTML) */
.navin-step-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #e8eef6;
  background: #fff;
  font-size: 22px;
  font-weight: 800;
  color: var(--navin-text);
  cursor: pointer;
  box-shadow: 0 10px 20px -18px rgba(2,6,23,.45);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.navin-step-btn:hover{
  transform: translateY(-52%);
  border-color: rgba(0,200,83,.45);
}
.navin-step-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--navin-ring);
}
.navin-step-btn[data-action="minus"]{ left: 14px; }
.navin-step-btn[data-action="plus"]{ right: 14px; }

/* Падінг інпута тільки якщо реально є +/- */
@supports selector(.navin-input-wrapper:has(.navin-step-btn)){
  .navin-input-wrapper:has(.navin-step-btn) .navin-main-input{
    padding-left: 72px;
    padding-right: 110px;
  }
}
/* fallback: якщо нема :has, то просто не чіпаємо padding */

.navin-main-settings{
  display: grid;
  gap: 18px;
  padding: 16px;
  border: 1px solid #eef2f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
  margin-bottom: 16px;
}

.navin-group { margin-bottom: 0; }
.navin-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navin-text-light);
  text-transform: uppercase;
}

.navin-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.navin-pill {
  flex: 1;
  min-width: 60px;
  padding: 12px;
  border: 2px solid #e6edf5;
  background: #fff;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--navin-text);

  box-shadow: 0 1px 0 rgba(2,6,23,.04);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.navin-pill:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 16px -16px rgba(2,6,23,.35);
  border-color: rgba(0,200,83,.45);
}
.navin-pill.active{
  background: var(--navin-primary);
  border-color: var(--navin-primary);
  color: #fff;
  box-shadow: 0 16px 28px -22px rgba(0,200,83,.55);
}
.navin-pill:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--navin-ring);
}

.navin-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.navin-res-card {
  border: 1px solid #edf2f7;
  background: linear-gradient(180deg, #ffffff, #f7fafc);
  padding: 15px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.navin-res-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -22px rgba(2,6,23,.45);
}
.navin-res-card.primary {
  grid-column: span 2;
  background: linear-gradient(135deg, #ecfdf5, #f0fff4);
  border-color: rgba(0,200,83,.25);
}
.navin-res-label { font-size: 12px; color: var(--navin-text-light); margin-bottom: 5px; }
.navin-res-value { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.navin-res-value small { font-size: 14px; opacity: 0.6; }

.navin-status {
  margin-top: 22px;
  padding: 12px;
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 26px -22px rgba(2,6,23,.4);
}
.navin-status.ok { background: #e6fffa; color: #047481; border: 1px solid #b2f5ea; }
.navin-status.warn { background: #fffaf0; color: #9c4221; border: 1px solid #feebc8; }
.navin-status.bad { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

.navin-content { display: none; }
.navin-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce){
  .navin-content.active{ animation: none; }
  .navin-pill, .navin-tab, .navin-res-card{ transition: none; }
}
/* дати місце під вбудовані стрілочки справа */
.navin-main-input{
  padding-right: 95px;
}
.navin-label small{
  text-transform: none;     /* важливо */
  letter-spacing: 0;
  font-weight: 600;
  font-size: 11px;
  color: var(--navin-text-light);
  opacity: .85;
}
/* Контейнер всього блоку рекомендацій */
.navin-kit-box {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    box-shadow: 0 10px 25px -10px rgba(0, 123, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Декоративний елемент збоку */
.navin-kit-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #007bff;
}

.navin-kit-header {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Список карток товарів */
.navin-kit-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navin-kit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.navin-kit-item:hover {
    border-color: #007bff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.kit-name {
    font-weight: 700;
    font-size: 15px;
    color: #2563eb;
}

.kit-len {
    font-size: 12px;
    font-weight: 800;
    background: #eff6ff;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #dbeafe;
}

/* Примітка внизу */
.navin-kit-note {
    margin-top: 15px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* === Kit box v2 (більш преміально, під зелений стиль) === */
.navin-kit-box{
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,200,83,.22);
  background: radial-gradient(900px 260px at 15% 0%, rgba(0,200,83,.12), transparent 55%),
              linear-gradient(180deg, #ffffff, #fbfffd);
  box-shadow: 0 14px 34px -28px rgba(2,6,23,.35);
  position: relative;
  overflow: hidden;
}

.navin-kit-box::before{
  content:"";
  position:absolute;
  left:0; top:12px; bottom:12px;
  width:4px;
  border-radius:999px;
  background: linear-gradient(180deg, var(--navin-primary), rgba(0,200,83,.25));
}

.navin-kit-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.navin-kit-header{
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--navin-text);
  letter-spacing: -0.01em;
  text-transform: none; /* прибираємо "офіціоз" */
}

.navin-kit-meta{
  margin-top: 6px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.navin-kit-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,200,83,.22);
  background: rgba(0,200,83,.08);
  font-size: 12px;
  font-weight: 800;
  color: var(--navin-primary-dark);
}

.navin-kit-meta-text{
  font-size: 12px;
  font-weight: 700;
  color: var(--navin-text-light);
}

.navin-kit-link{
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--navin-primary-dark);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,200,83,.18);
  background: #fff;
  white-space: nowrap;
}
.navin-kit-link:hover{
  border-color: rgba(0,200,83,.40);
  box-shadow: 0 10px 22px -18px rgba(0,200,83,.35);
}

.navin-kit-list{ gap: 8px; } /* ваш .navin-kit-list вже є, просто робимо компактніше :contentReference[oaicite:3]{index=3} */

.navin-kit-item{
  border-radius: 14px;
  border-color: #edf2f7;
}
.navin-kit-item:hover{
  transform: none; /* прибираємо "зсув вправо" */
  border-color: rgba(0,200,83,.45);
  box-shadow: 0 12px 26px -22px rgba(0,200,83,.35);
}

.kit-name{ color: var(--navin-text); }   /* замість синього */
.kit-len{
  background: rgba(0,200,83,.10);
  border-color: rgba(0,200,83,.22);
  color: var(--navin-primary-dark);
}

/* Адаптація для мобільних */
@media (max-width: 900px) {
  .navin-main-wrapper { flex-direction: column; padding: 0 15px; }
  .navin-info-sidebar { order: 2; width: 100%; }
  .navin-app { order: 1; width: 100%; max-width: 100%; padding: 20px; }
}