:root {
  --text-main: #ffecc7;
  --text-soft: rgba(255, 229, 184, 0.92);
  --gold: #ffb841;
  --gold-strong: #ff9f1f;
  --border-glow: rgba(255, 147, 24, 0.92);
  --card-bg: rgba(50, 10, 2, 0.44);
  --card-shadow:
    0 0 28px rgba(255, 130, 15, 0.24),
    inset 0 0 24px rgba(255, 123, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text-main);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #1b1b1b url("assets/images/background.webp") center center / cover no-repeat fixed;
}

.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: relative;
  min-height: 350px;
  padding: 20px 26px 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.topbar nav {
  position: relative;
  z-index: 2;
  width: 100%;
}

.topbar ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  width: 100%;
  align-items: center;
}

.topbar ul li:last-child {
  margin-left: auto;
}

.topbar a {
  color: rgba(255, 244, 226, 0.95);
  text-decoration: none;
  font-size: clamp(17px, 1.9vw, 26px);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 147, 38, 0.85);
  background: rgba(35, 10, 7, 0.58);
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.topbar a.active {
  background: rgba(255, 147, 38, 0.15);
  border-color: rgba(255, 178, 84, 0.95);
}

.topbar a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.logo {
  position: absolute;
  left: 50%;
  top: 184px;
  transform: translate(-50%, -50%);
  width: 312px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 4;
  animation: logoFloat 5.8s ease-in-out infinite;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 52px;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(16px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

h1 {
  margin: 6px 0 0;
  position: relative;
  top: 0;
  font-size: clamp(42px, 5.5vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ef3000 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--text-main);
  filter: drop-shadow(0 0 10px rgba(239, 48, 0, 0.4));
}

.cart-shell {
  margin-top: 18px;
  width: min(92vw, 980px);
  border-radius: 18px;
  border: 3px solid var(--border-glow);
  background: rgba(26, 8, 4, 0.52);
  backdrop-filter: blur(3px);
  box-shadow: var(--card-shadow);
  padding: 28px;
  animation: shellEnter 0.55s ease-out both;
}

.line-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 193, 127, 0.24);
}

.item-title {
  margin: 0;
  font-size: clamp(28px, 2.35vw, 40px);
  line-height: 1.02;
  font-weight: 800;
  color: #fff5e3;
}

.item-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 234, 196, 0.76);
  font-size: clamp(18px, 1.55vw, 26px);
}

.price-block {
  text-align: right;
  align-self: center;
}

.item-price {
  margin: 0;
  color: #ffcb5a;
  font-size: clamp(36px, 3.7vw, 62px);
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(255, 171, 51, 0.25);
}

.price-caption {
  margin: 10px 0 0;
  color: rgba(255, 234, 196, 0.7);
  font-size: clamp(14px, 1vw, 17px);
}

.platform-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  align-items: center;
  gap: 16px;
}

.platform-row label {
  color: rgba(255, 234, 196, 0.86);
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 700;
}

.platform-row select {
  height: 62px;
  border-radius: 12px;
  border: 2px solid rgba(255, 178, 84, 0.45);
  background: rgba(16, 9, 8, 0.78);
  color: #fff6e8;
  padding: 0 16px;
  font-size: clamp(20px, 1.5vw, 26px);
  outline: none;
}

.trust-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 193, 127, 0.24);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-list li {
  color: rgba(255, 245, 224, 0.92);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.4;
}

.trust-list li::before {
  content: "\2713";
  color: #ffd773;
  margin-right: 12px;
}

.donation-card {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid rgba(255, 187, 95, 0.3);
  background:
    linear-gradient(180deg, rgba(55, 22, 7, 0.62) 0%, rgba(29, 14, 8, 0.72) 100%),
    radial-gradient(120% 120% at 0% 0%, rgba(255, 200, 82, 0.16) 0%, rgba(255, 200, 82, 0) 60%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.donation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 195, 100, 0.45);
}

.donation-eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.donation-card h2 {
  margin: 10px 0 0;
  color: #fff4df;
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.05;
}

.donation-copy {
  margin: 12px 0 0;
  max-width: 520px;
  color: rgba(255, 236, 207, 0.82);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.4;
}

.donation-button {
  min-height: 48px;
  transform: scale(0.92);
  transform-origin: right center;
  opacity: 0.94;
}

.donation-button iframe,
.donation-button a,
.donation-button div[data-name="bmc-button"] {
  max-width: 100%;
}

.cart-feedback {
  margin: 14px 2px 0;
  min-height: 24px;
  color: #ffc58f;
  font-size: clamp(16px, 1.25vw, 20px);
}

.cart-feedback.ok {
  color: #9bf8b0;
}

.cart-feedback.error {
  color: #ff9b8d;
}

.total-row {
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 193, 127, 0.24);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.total-copy span {
  display: block;
  color: rgba(255, 224, 178, 0.82);
  font-size: clamp(18px, 1.1vw, 20px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.total-copy p {
  margin: 10px 0 0;
  color: rgba(255, 240, 215, 0.82);
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.35;
}

.total-row strong {
  color: #ffcb5a;
  font-size: clamp(50px, 4.6vw, 82px);
  line-height: 0.92;
  text-shadow: 0 0 20px rgba(255, 171, 51, 0.22);
}

.cart-actions {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.cart-actions a {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.cart-actions a:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  color: rgba(255, 244, 226, 0.95);
  border: 2px solid rgba(255, 147, 38, 0.52);
  background: rgba(35, 10, 7, 0.58);
  backdrop-filter: blur(6px);
}

.btn-primary {
  border: 2px solid rgba(255, 178, 84, 0.75);
  background: linear-gradient(180deg, #ff571f 0%, #dd2700 90%);
  color: #fff0ce;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  box-shadow:
    inset 0 2px 7px rgba(255, 186, 91, 0.5),
    0 0 22px rgba(255, 109, 20, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff6a2f 0%, #f2380f 90%);
}

@keyframes shellEnter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 5px));
  }
}

@media (max-width: 980px) {
  .topbar {
    min-height: 248px;
    padding: 14px 16px 0;
  }

  .topbar nav {
    width: 100%;
    z-index: 6;
  }

  .topbar ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  .topbar ul li:last-child {
    margin-left: 0;
  }

  .topbar a {
    text-align: center;
    padding: 8px 10px;
    font-size: clamp(14px, 3.5vw, 18px);
  }

  .logo {
    top: 137px;
    width: 204px;
    z-index: 3;
  }

  .content {
    padding: 0 16px 30px;
  }

  .cart-shell {
    margin-top: 14px;
    width: min(100%, 820px);
    padding: 16px;
    border-width: 2px;
  }

  .line-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .price-block {
    grid-column: 1 / -1;
    text-align: left;
  }

  .platform-row {
    grid-template-columns: 1fr;
  }

  .trust-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-list li {
    font-size: clamp(15px, 4vw, 20px);
  }

  .donation-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .donation-button {
    overflow-x: auto;
    padding-bottom: 4px;
    transform: scale(1);
    transform-origin: left center;
  }

  .total-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-actions {
    grid-template-columns: 1fr;
  }

  .cart-actions a {
    min-height: 66px;
    font-size: 24px;
  }
}
