/* =========================================================
  backpack-section.css
  Блок #backpack / “Рюкзак учасника”
  Версія 09

  Що виправлено:
  - права картка “Що має бути з собою” стала меншою;
  - права картка візуально ближча за розміром до текстового блоку зліва;
  - блок “Базовий орієнтир” більше не домінує над секцією;
  - внутрішні картки ущільнені;
  - картка вирівнюється праворуч і не розтягується зайво.
========================================================= */

.backpack-section {
  position: relative;
  overflow: visible;
  padding: 84px 0;
  color: var(--ink);
  background: transparent;
}

.backpack-section::before {
  content: "";
  position: absolute;
  right: -190px;
  top: -190px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 3px dashed rgba(91, 16, 166, 0.10);
  pointer-events: none;
  opacity: 0.42;
}

/* Локальний декоративний мотив: спорядження. */
.backpack-decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.52;
}

.backpack-decor-one {
  left: -90px;
  bottom: 54px;
  width: 250px;
  height: 250px;
  border-radius: 48px;
  border: 20px solid rgba(22, 71, 52, 0.06);
  transform: rotate(-18deg);
}

.backpack-decor-one::after {
  content: "🎒";
  position: absolute;
  right: 46px;
  top: 52px;
  font-size: 54px;
  transform: rotate(18deg);
}

.backpack-decor-two {
  right: 92px;
  bottom: -68px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(255, 220, 29, 0.15);
}

.backpack-decor-two::after {
  content: "🔦";
  position: absolute;
  left: 72px;
  top: 58px;
  font-size: 48px;
}

/* =========================================================
  Головна сітка блоку

  Було:
  minmax(0, 0.88fr) minmax(360px, 1.12fr)

  Стало:
  ліва частина трохи сильніша, права компактніша.
========================================================= */

.backpack-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 30px;
  align-items: start;
}

.backpack-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.backpack-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.backpack-subtitle {
  margin: 14px 0 0;
  max-width: 700px;
  color: var(--forest);
  font-size: clamp(18px, 1.9vw, 23px);
  line-height: 1.42;
  font-weight: 800;
}

.backpack-text {
  margin: 18px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.66;
}

.backpack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.backpack-actions-single {
  max-width: 430px;
}

.backpack-btn-wide {
  width: 100%;
  justify-content: center;
}

.backpack-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.backpack-btn:hover {
  transform: translateY(-2px);
}

.backpack-btn-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 0 16px 36px rgba(255, 220, 29, 0.25);
}

/* Плашка з презентацією спорядження */
.equipment-guide-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 96% 16%, rgba(255, 220, 29, 0.25), transparent 26%),
    linear-gradient(135deg, var(--forest), var(--purple-deep));
  box-shadow: 0 18px 48px rgba(45, 39, 35, 0.13);
}

.equipment-guide-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 220, 29, 0.17);
  border: 1px solid rgba(255, 220, 29, 0.24);
  font-size: 25px;
}

.equipment-guide-card h3 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
}

.equipment-guide-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
  Права скляна картка “Базовий орієнтир”

  Головна правка:
  - max-width: 700px;
  - justify-self: end;
  - align-self: start;
  - менший padding.
========================================================= */

.backpack-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  max-width: 700px;
  justify-self: end;
  align-self: start;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.50);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.30));
  box-shadow: 0 24px 70px rgba(45, 39, 35, 0.13);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.backpack-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  pointer-events: none;
}

.backpack-card-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 13px;
}

.backpack-card-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.045em;
}

.backpack-card-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 2.7vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.backpack-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(91, 16, 166, 0.10);
  border: 1px solid rgba(91, 16, 166, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.backpack-items-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

/* Внутрішні картки компактніші й не розтягуються. */
.backpack-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 0;
  height: fit-content;
  padding: 9px 10px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.40));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 12px 32px rgba(45, 39, 35, 0.07);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.backpack-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 220, 29, 0.34);
  box-shadow: 0 20px 48px rgba(45, 39, 35, 0.12);
}

.backpack-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 19px;
}

.backpack-item h4 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.006em;
}

.backpack-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12.4px;
  line-height: 1.26;
}

.backpack-items-grid > .backpack-item {
  align-self: start;
}

@media (max-width: 980px) {
  .backpack-layout {
    grid-template-columns: 1fr;
  }

  .backpack-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .backpack-section {
    padding: 64px 0;
  }

  .backpack-card {
    padding: 18px;
    border-radius: 28px;
  }

  .backpack-card-header {
    display: grid;
  }

  .backpack-items-grid {
    grid-template-columns: 1fr;
  }
}
