.gifts-page,
.gifts-admin-page {
  min-height: 100vh;
  background: #050505 url("/site-background.png") center / cover fixed;
  color: #f7f2e8;
}

.gifts-shell,
.gifts-admin {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.gifts-hero {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  margin-bottom: 22px;
  padding: 30px clamp(24px, 4vw, 48px);
  position: relative;
  min-height: 230px;
}

.gifts-back {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #ffd86b;
  text-decoration: none;
  font-weight: 800;
}

.gifts-brand,
.gift-card__brand {
  display: grid;
  grid-template-columns: clamp(150px, 13vw, 184px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 2vw, 26px);
  text-transform: uppercase;
}

.gifts-brand img {
  width: 100%;
  height: clamp(150px, 13vw, 184px);
  object-fit: contain;
  object-position: center;
}

.gifts-brand {
  width: 100%;
  align-self: center;
}

.gifts-brand strong,
.gift-card__brand strong {
  display: block;
  font-weight: 950;
  letter-spacing: .08em;
}

.gifts-brand strong {
  color: #f7f2e8;
  font-size: clamp(2.65rem, 3.85vw, 4.05rem);
  line-height: .9;
  letter-spacing: .01em;
}

.gifts-brand strong b {
  display: block;
  white-space: nowrap;
}

.gifts-brand span,
.gift-card__brand span {
  display: block;
  color: #d7d0c5;
  font-weight: 800;
  letter-spacing: .05em;
}

.gifts-brand span {
  margin-bottom: 12px;
  color: #ffd86b;
  font-size: clamp(.95rem, 1.25vw, 1.16rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.gifts-hero__copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: clamp(132px, 11vw, 156px);
  padding-left: clamp(18px, 3vw, 42px);
  border-left: 1px solid rgba(255, 216, 107, .28);
}

.gifts-hero__copy .eyebrow {
  margin: 0;
}

.gifts-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.5vw, 4.7rem);
  line-height: .9;
}

.gifts-hero p {
  max-width: 760px;
}

.gifts-hero__copy > p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
}

.gift-notice {
  border: 1px solid rgba(255, 214, 102, .35);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .45);
  font-weight: 800;
}

.gift-notice--ok {
  color: #8df075;
}

.gift-notice--bad {
  color: #ff9a9a;
}

.gifts-empty {
  padding: 22px;
  margin: 18px 0;
}

.gifts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.gift-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-color: rgba(255, 191, 54, .42);
}

.gift-card__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, rgba(255, 200, 86, .08), transparent 38%),
    radial-gradient(circle at 25% 35%, rgba(255, 216, 107, .10), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), transparent),
    #080808;
  opacity: .95;
  pointer-events: none;
}

.gift-card__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255, 216, 107, .05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 216, 107, .035) 25%, transparent 25%);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 85%);
}

.gift-card__top,
.gift-card__body {
  position: relative;
  z-index: 1;
}

.gift-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 216, 107, .28);
}

.gift-card__brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.gift-card__brand strong {
  font-size: clamp(1.7rem, 4vw, 3rem);
  color: #f4f1e9;
}

.gift-card__brand strong::first-letter {
  color: #ffd45f;
}

.gift-card__flag {
  font-size: 2rem;
}

.gift-card__body {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(320px, .85fr);
  gap: 26px;
  padding-top: 18px;
}

.gift-card__media {
  min-height: 520px;
  position: relative;
  border: 1px solid rgba(255, 191, 54, .48);
  border-radius: 10px;
  overflow: hidden;
  background: #101010;
}

.gift-card__media-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .08), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, .08), transparent 28%),
    repeating-linear-gradient(135deg, rgba(255, 216, 107, .025) 0 2px, transparent 2px 14px),
    #181818;
}

.gift-card__product,
.gift-card__print {
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.gift-card__product {
  width: var(--gift-product-max-w, 96%);
  height: var(--gift-product-max-h, 96%);
  object-fit: contain;
  transform: translate(calc(-50% + var(--gift-product-x, 0%)), calc(-50% + var(--gift-product-y, 0%))) scale(var(--gift-product-scale, 1)) rotate(var(--gift-product-rotate, 0deg));
  z-index: 2;
}

.gift-card__product.has-shadow {
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .55));
}

.gift-card__print {
  width: var(--gift-print-w, 30%);
  height: var(--gift-print-h, 30%);
  transform: translate(calc(-50% + var(--gift-print-x, 50%) - 50%), calc(-50% + var(--gift-print-y, 50%) - 50%)) scale(var(--gift-print-scale, 1)) rotate(var(--gift-print-rotate, 0deg));
  z-index: 3;
}

.gift-card--catalog {
  padding: 16px;
}

.gift-card--catalog .gift-card__body {
  grid-template-columns: minmax(420px, .9fr) minmax(420px, 1.1fr);
  gap: 18px;
  padding-top: 0;
}

.gift-card--catalog .gift-card__media {
  min-height: 380px;
}

.gift-card--catalog h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.gift-card--catalog .gift-card__donation strong {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.gift-card--catalog .gift-card__features {
  grid-template-columns: repeat(3, 1fr);
}

.gift-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.gift-card__kicker {
  color: #ffc93d;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 950;
  margin: 0;
}

.gift-card__number {
  align-self: flex-start;
  border: 1px solid rgba(255, 216, 107, .46);
  border-radius: 8px;
  padding: 7px 12px;
  color: #ffd86b;
  background: rgba(0, 0, 0, .45);
  font-weight: 950;
  text-transform: uppercase;
}

.gift-card h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: .95;
  text-transform: uppercase;
}

.gift-card__content > p:not(.gift-card__kicker) {
  margin: 0;
  color: #cfc8bd;
  font-size: 1.2rem;
  font-weight: 750;
}

.gift-card__donation,
.gift-card__status,
.gift-card__features,
.gift-order-form__fields {
  border: 1px solid rgba(255, 191, 54, .38);
  border-radius: 9px;
  background: rgba(0, 0, 0, .48);
}

.gift-card__donation {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  align-items: end;
  padding: 18px;
}

.gift-card__donation span {
  grid-column: 1 / -1;
  color: #ffc93d;
  font-weight: 900;
  text-transform: uppercase;
}

.gift-card__donation strong {
  font-size: clamp(3.4rem, 9vw, 6.5rem);
  line-height: .9;
}

.gift-card__donation em {
  color: #ffc93d;
  font-size: 2rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.gift-card__status {
  padding: 14px 18px;
}

.gift-card__status span {
  display: block;
  color: #7df255;
  font-weight: 950;
  text-transform: uppercase;
}

.gift-card__status.is-low span {
  color: #ffd45f;
}

.gift-card__status.is-unavailable span {
  color: #ff8585;
}

.gift-card__status small {
  color: #d0c9bd;
  font-weight: 750;
}

.gift-card__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.gift-card__features span {
  color: #d8d0c4;
  font-size: .78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.gift-card__payment-actions {
  display: grid;
  gap: 10px;
}

.gift-pay-button {
  justify-content: center;
  border: 1px solid transparent;
  color: #090806;
  text-align: center;
  text-transform: none;
}

.gift-pay-button--mono {
  border-color: rgba(255, 216, 117, .52);
  background: linear-gradient(180deg, #ffe38f, #dca62e);
  box-shadow: 0 14px 28px rgba(220, 166, 46, .18);
}

.gift-pay-button--privat {
  color: #061006;
  border-color: rgba(128, 237, 96, .52);
  background: linear-gradient(180deg, #9cf174, #56b83f);
  box-shadow: 0 14px 28px rgba(80, 190, 59, .16);
}

.gift-pay-button--paypal {
  color: #fff;
  border-color: rgba(83, 196, 255, .52);
  background: linear-gradient(180deg, #2394d2, #003087);
  box-shadow: 0 14px 28px rgba(0, 112, 186, .18);
}

.gift-pay-button.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.gift-order-form details {
  display: grid;
  gap: 10px;
}

.gift-order-actions {
  display: grid;
  gap: 10px;
}

.gift-order-form summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.gift-order-summary {
  min-height: 56px;
  border: 1px solid rgba(255, 216, 117, .72);
  color: #110d02;
  background:
    linear-gradient(180deg, #fff0b8, #dca62e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .48),
    0 18px 42px rgba(220, 166, 46, .25);
  text-transform: uppercase;
}

.gift-order-summary::before {
  content: "✓";
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 999px;
  color: #0c1208;
  background: rgba(255, 255, 255, .58);
}

.gift-order-summary:hover {
  color: #090806;
  border-color: rgba(255, 235, 168, .94);
  background: linear-gradient(180deg, #fff6cf, #f2bd45);
}

.gift-telegram-button {
  min-height: 56px;
  justify-content: center;
  border-color: rgba(83, 196, 255, .56);
  color: #fff;
  background: linear-gradient(180deg, #2aa7df, #11649c);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 18px 42px rgba(35, 148, 210, .18);
  text-align: center;
}

.gift-telegram-button::before {
  content: "TG";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  border-radius: 999px;
  color: #0c3654;
  background: rgba(255, 255, 255, .78);
  font-size: .78rem;
  font-weight: 950;
}

.gift-telegram-button:hover {
  color: #fff;
  border-color: rgba(146, 224, 255, .86);
  background: linear-gradient(180deg, #36b7f2, #0f75ba);
}

.gift-order-form summary::-webkit-details-marker {
  display: none;
}

.gift-order-form summary.is-disabled {
  opacity: .6;
  pointer-events: none;
}

.gift-telegram-button.is-disabled {
  opacity: .6;
  pointer-events: none;
}

.gift-order-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}

.gift-order-form__fields label,
.gifts-admin label {
  display: grid;
  gap: 6px;
  color: #cfc8bd;
  font-weight: 850;
}

.gift-order-form__fields input,
.gifts-admin input,
.gifts-admin textarea,
.gifts-admin select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 191, 54, .32);
  border-radius: 8px;
  background: rgba(0, 0, 0, .72);
  color: #fff7df;
  padding: 9px 10px;
  font: inherit;
  font-weight: 800;
}

.gift-order-submit-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gift-order-form__wide {
  grid-column: 1 / -1;
}

.gift-card.is-muted {
  opacity: .78;
}

.gifts-admin {
  display: grid;
  gap: 18px;
}

.gifts-admin-hero {
  margin-bottom: 0;
}

.gifts-admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.gifts-admin__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.gifts-admin__grid--product {
  grid-template-columns: .9fr 1.1fr;
}

.gifts-admin-product__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gifts-admin-product__wide {
  grid-column: 1 / -1;
}

.gifts-admin .glass-panel {
  padding: 18px;
}

.gifts-admin h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.gifts-admin-help {
  margin: -4px 0 14px;
  color: #d7d0c5;
  font-weight: 750;
  line-height: 1.45;
}

.gifts-admin__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gifts-admin__grid--product .gifts-admin__row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gifts-admin__row--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.gifts-admin-fieldset {
  border: 1px solid rgba(255, 191, 54, .3);
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0 0;
}

.gifts-admin-fieldset--compact {
  margin: 14px 0;
}

.gifts-admin-fieldset legend {
  color: #ffd45f;
  font-weight: 950;
}

.gifts-admin-check {
  align-content: end;
  grid-template-columns: auto 1fr;
}

.gifts-admin-list,
.gifts-admin-cards,
.gifts-admin-orders {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.gifts-admin-list article,
.gifts-admin-cards article,
.gifts-admin-order {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 191, 54, .24);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, .38);
}

.gifts-admin-list--thumbs article,
.gifts-admin-cards article {
  justify-content: flex-start;
}

.gifts-admin-card-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gifts-admin-delete-form {
  margin: 0;
}

.gifts-admin-edit-button {
  border-color: rgba(255, 212, 95, .5);
  color: #140f05;
  background: linear-gradient(180deg, #ffe28a, #d69a22);
}

.gifts-admin-delete-button {
  border-color: rgba(255, 94, 94, .48);
  color: #fff;
  background: linear-gradient(180deg, #c9352f, #8e1714);
}

.gifts-admin-product.is-editing-highlight {
  animation: gift-admin-edit-highlight 1.15s ease;
}

@keyframes gift-admin-edit-highlight {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 212, 95, 0);
  }

  35% {
    box-shadow: 0 0 0 3px rgba(255, 212, 95, .28), 0 0 34px rgba(255, 212, 95, .2);
  }
}

.gifts-admin-list img,
.gifts-admin-cards img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid rgba(255, 191, 54, .25);
  border-radius: 7px;
  background: #111;
}

.gifts-admin-list strong,
.gifts-admin-cards strong,
.gifts-admin-order strong {
  display: block;
}

.gifts-admin-list span,
.gifts-admin-cards span,
.gifts-admin-order span,
.gifts-admin-order small {
  display: block;
  color: #cfc8bd;
  font-weight: 750;
}

.gifts-admin-order {
  display: grid;
  grid-template-columns: 1fr minmax(190px, auto) auto;
}

.gifts-category-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
}

.gifts-category-link {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
  border: 1px solid rgba(255, 191, 54, .28);
  border-radius: 8px;
  min-height: 146px;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 216, 107, .13), transparent 36%),
    linear-gradient(145deg, rgba(255, 216, 107, .10), rgba(0, 0, 0, .62) 48%),
    rgba(0, 0, 0, .48);
  color: #fff7df;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.gifts-category-link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(74%, 136px);
  height: 90px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 216, 107, .13);
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 216, 107, .10), transparent 58%),
    rgba(0, 0, 0, .24);
}

.gifts-category-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 107, .72);
}

.gifts-category-link img {
  position: relative;
  z-index: 2;
  justify-self: center;
  align-self: center;
  width: min(74%, 136px);
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .55));
}

.gifts-category-nav span {
  display: inline-flex;
  position: relative;
  z-index: 2;
  justify-self: start;
  margin-bottom: 8px;
  color: #ffd86b;
  font-size: .9rem;
  font-weight: 950;
  text-transform: uppercase;
}

.gifts-catalog {
  display: grid;
  gap: 28px;
}

.gifts-all-link {
  justify-self: start;
  border: 1px solid rgba(255, 216, 107, .36);
  border-radius: 999px;
  padding: 10px 14px;
  color: #ffd86b;
  background: rgba(0, 0, 0, .46);
  text-decoration: none;
  font-weight: 900;
}

.gifts-category-section {
  scroll-margin-top: 18px;
}

.gifts-category-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
}

.gifts-category-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.gifts-category-heading span {
  border: 1px solid rgba(255, 191, 54, .32);
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffd86b;
  background: rgba(0, 0, 0, .45);
  font-weight: 950;
}

.gifts-category-description {
  margin: -4px 0 14px;
  color: #d7d0c5;
  font-weight: 750;
}

.gifts-empty--small {
  padding: 16px;
}

@media (max-width: 920px) {
  .gifts-shell,
  .gifts-admin {
    width: min(100% - 18px, 1380px);
    padding-top: 12px;
  }

  .gifts-hero,
  .gift-card__body,
  .gifts-admin__grid,
  .gifts-admin__grid--product,
  .gifts-admin-layout,
  .gifts-admin-product__fields,
  .gift-order-form__fields,
  .gifts-admin-order {
    grid-template-columns: 1fr;
  }

  .gift-order-submit-row {
    grid-template-columns: 1fr;
  }

  .gifts-hero {
    gap: 18px;
    min-height: 0;
    padding: 22px 16px;
  }

  .gifts-hero__copy {
    min-height: 0;
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid rgba(255, 216, 107, .28);
  }

  .gifts-brand img {
    width: 118px;
    height: 118px;
  }

  .gifts-category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-card {
    padding: 14px;
  }

  .gift-card__media {
    min-height: 360px;
  }

  .gift-card__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .gifts-admin__row,
  .gifts-admin__grid--product .gifts-admin__row,
  .gifts-admin__row--six {
    grid-template-columns: 1fr;
  }

  .gift-card--catalog .gift-card__body {
    grid-template-columns: 1fr;
  }

  .gift-card--catalog .gift-card__media {
    min-height: 360px;
  }

  .gifts-category-heading {
    align-items: start;
    flex-direction: column;
  }
}
