/* =========================================================
  safety-section.css
  Блок #safety / “Безпека та супровід”
  Версія 08

  Що виправлено:
  - фото стало чистішим і менш затемненим;
  - прибрано агресивні накладки на фото;
  - placeholder можна видалити з HTML, якщо фото вже підставлено;
  - блок залишається темною довірчою карткою на спільному фоні.
========================================================= */

.safety-section {
  position: relative;
  overflow: visible;
  padding: 78px 0;
  color: var(--white);
  background: transparent;
}

.safety-bg {
  position: absolute;
  pointer-events: none;
}

/* Старий фоновий декор залишено дуже м'яким. */
.safety-bg-map {
  inset: 0;
  opacity: 0.08;
}

.safety-bg-route {
  left: -80px;
  bottom: 42px;
  width: 620px;
  height: 180px;
  border: 3px dashed rgba(255, 220, 29, 0.18);
  border-top: 0;
  border-right: 0;
  border-radius: 0 0 0 180px;
  transform: rotate(-9deg);
  opacity: 0.14;
}

.safety-bg-shield {
  display: none;
}

/* Внутрішня темна картка */
.safety-section > .container {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 38px;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 220, 29, 0.14), transparent 26%),
    radial-gradient(circle at 88% 80%, rgba(91, 16, 166, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(13, 43, 32, 0.94) 0%, rgba(22, 71, 52, 0.90) 52%, rgba(46, 7, 90, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 28px 86px rgba(46, 7, 90, 0.21),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.safety-section > .container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255, 220, 29, 0.15) 1px, transparent 1.4px);
  background-size: 84px 84px, 132px 132px;
  background-position: 0 0, 42px 34px;
  opacity: 0.10;
  pointer-events: none;
}

.safety-section > .container::after {
  content: "🛡️";
  position: absolute;
  right: 42px;
  top: 24px;
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 220, 29, 0.68);
  font-size: 56px;
  transform: rotate(8deg);
  opacity: 0.62;
  pointer-events: none;
}

.safety-layout,
.safety-content,
.safety-photo-card {
  position: relative;
  z-index: 1;
}

.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 30px;
  align-items: center;
}

.safety-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.safety-title {
  margin: 0;
  color: var(--white);
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.safety-subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.42;
  font-weight: 800;
}

.safety-text {
  margin: 18px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.5px;
  line-height: 1.66;
}

.safety-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.safety-pill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.105);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Страхування */
.safety-insurance-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  align-items: start;
  margin-top: 20px;
  padding: 18px;
  border-radius: 24px;
  color: var(--white);
  background:
    radial-gradient(circle at 96% 16%, rgba(255, 220, 29, 0.22), transparent 26%),
    rgba(255, 255, 255, 0.105);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.safety-insurance-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 220, 29, 0.17);
  border: 1px solid rgba(255, 220, 29, 0.26);
  font-size: 25px;
}

.safety-insurance-card span {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--yellow);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.safety-insurance-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

/* Фото-картка */
.safety-photo-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 20px;
  border-radius: 34px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.safety-photo-card::before {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -102px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 22px solid rgba(255, 220, 29, 0.055);
  border-top-color: rgba(255, 255, 255, 0.08);
  transform: rotate(-24deg);
  pointer-events: none;
  opacity: 0.42;
}

/* Головна правка:
   фото чистіше, без сильного затемнення та зайвих градієнтів. */
.safety-photo-visual {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background-image:
    linear-gradient(180deg, rgba(13, 43, 32, 0.02), rgba(13, 43, 32, 0.18)),
    url("../assets/safety-team-karpaty.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.16);
}

/* Якщо у HTML лишився placeholder — робимо його делікатнішим.
   Але якщо фото вже є, краще видалити .safety-photo-placeholder з HTML. */
.safety-photo-placeholder {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(13, 43, 32, 0.26);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.safety-photo-placeholder strong {
  display: block;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.2;
}

.safety-photo-placeholder span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.35;
}

.safety-photo-caption {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.105);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

.safety-photo-caption span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.safety-photo-caption h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(22px, 2.35vw, 31px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
}

/* Адаптивність */
@media (max-width: 980px) {
  .safety-section > .container {
    padding: 28px;
    border-radius: 32px;
  }

  .safety-layout {
    grid-template-columns: 1fr;
  }

  .safety-photo-card {
    min-height: auto;
  }

  .safety-photo-visual {
    min-height: 320px;
  }
}

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

  .safety-section > .container {
    padding: 22px;
    border-radius: 28px;
  }

  .safety-photo-visual {
    min-height: 260px;
  }

  .safety-section > .container::after {
    display: none;
  }
}
