/* Safety section */
.safety {
  padding: 56px 0 72px;
  background-image: 
    linear-gradient(120deg, #f9fafb 0%, #f9fafb 55%, rgba(15, 23, 42, 0.02) 75%, rgba(15, 23, 42, 0.14) 100%),
    url(../img/security.png);
  background-position: center center, center center;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.04);
  position: relative;
}

@media (min-width: 900px) {
  .safety {
    padding: 72px 0 88px;
  }
}

@media (max-width: 768px) {
  .safety {
    background-attachment: scroll, scroll;
    background-position: center top, center top;
  }
}

.safety::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  width: 140px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0ea5e9);
}

.safety-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.1fr);
  gap: 32px;
  align-items: flex-start;
}

.safety-content {
  max-width: 740px;
}

.safety-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
}

.safety-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

@media (min-width: 900px) {
  .safety-title {
    font-size: 28px;
  }
}

.safety-subtitle {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
}

/* ========================================
   БЕЙДЖИ
   ======================================== */

.safety-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.safety-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  color: #0369a1;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

/* ========================================
   ГАРАНТИИ (СПИСОК)
   ======================================== */

.safety-guarantees {
  display: grid;
  gap: 16px;
}

.safety-guarantees-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.safety-guarantee-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.safety-guarantee-item:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.safety-guarantee-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.safety-guarantee-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.safety-guarantee-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.safety-guarantee-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
}

/* ========================================
   ПРАВАЯ КАРТОЧКА
   ======================================== */

.safety-side {
  display: flex;
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .safety-side {
    align-self: flex-start;
    position: sticky;
    top: 80px;
  }
}

.safety-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 18px;
  padding: 20px 20px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.45);
  max-width: 360px;
}

.safety-card-title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #f9fafb;
}

.safety-card-text {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5f5;
}

.safety-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  color: #e5e7eb;
  line-height: 1.5;
}

.safety-card-list li::before {
  content: "✓";
  color: #38bdf8;
  margin-right: 6px;
  font-weight: 700;
}

.safety-card .btn {
  width: 100%;
  justify-content: center;
}

.safety-card .btn.btn-primary {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #0f172a;
  font-weight: 600;
}

.safety-card .btn.btn-primary:hover {
  background: #0284c7;
  border-color: #0284c7;
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 900px) {
  .safety {
    padding: 40px 0 56px;
  }

  .safety-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .safety-title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .safety-subtitle {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .safety-badges {
    gap: 6px;
    margin-bottom: 20px;
  }

  .safety-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .safety-guarantees {
    gap: 12px;
  }

  .safety-guarantees-title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .safety-guarantee-item {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px;
  }

  .safety-guarantee-icon {
    width: 36px;
    height: 36px;
  }

  .safety-guarantee-icon svg {
    width: 18px;
    height: 18px;
  }

  .safety-guarantee-heading {
    font-size: 13px;
  }

  .safety-guarantee-text {
    font-size: 12px;
  }

  .safety-side {
    justify-content: flex-start;
  }

  .safety-card {
    max-width: 100%;
    padding: 16px;
  }

  .safety-card-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .safety-card-text {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .safety-card-list {
    font-size: 12px;
    gap: 4px;
    margin-bottom: 12px;
  }

  .safety-card .btn {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
  .safety-title {
    font-size: 20px;
  }

  .safety-badge {
    font-size: 9px;
  }

  .safety-guarantee-item {
    padding: 12px;
    gap: 10px;
  }

  .safety-guarantee-icon {
    width: 32px;
    height: 32px;
  }

  .safety-guarantee-heading {
    font-size: 12px;
  }

  .safety-guarantee-text {
    font-size: 11px;
  }
}
