* {
  box-sizing: border-box;
}

:root {
  --bg: #3b3b3b;
  --card-bg: #0b0c11;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --grad-text: linear-gradient(180deg, #FF9800 41.83%, #FF0000 100%);
  --grad-cta: linear-gradient(82.76deg, #f5170c 3.14%, #fedb58 96.52%);
  --grad-promo: linear-gradient(90deg, #ff5921 0%, #ffa021 100%);
  --promo-orange: #ff8a1f;
}

/*html{*/
/*  background: #0b0c11;*/
/*}*/

/*html::before{*/
/*  content:"";*/
/*  position: fixed;*/
/*  inset: 0;*/
/*  z-index: -1;*/
/*  pointer-events: none;*/

/*  background: linear-gradient(*/
/*    180deg,*/
/*    #1b1f2a 0%,*/
/*    rgba(44, 14, 6, 0.55) 35%,*/
/*    rgba(18, 8, 14, 0.65) 70%,*/
/*    var(--card-bg) 100%*/
/*  );*/
/*}*/

body {
  margin: 0;
  min-height: 100svh;
  font-family: "Coolvetica", "Segoe UI", sans-serif;
  color: var(--text);
  background: transparent;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  min-height: 100vh;
  padding: 16px 14px 0;
  display: flex;
  justify-content: center;
}

.hero {
  width: 100%;
  min-height: 100svh;
  background: transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  height: auto;
  padding: calc(env(safe-area-inset-top) + 16px) 12px calc(env(safe-area-inset-bottom) + 16px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/background.webp") center center / cover no-repeat;
  filter: saturate(1.1) brightness(0.9);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(44, 14, 6, 0.88) 0%,
    rgba(44, 14, 6, 0.28) 30%,
    rgba(18, 8, 14, 0.28) 70%,
    rgba(18, 8, 14, 0.9) 100%
  );
  z-index: 0;
}

.logo {
  position: relative;
  z-index: 2;
  width: 120px;
  margin: 0 auto;
  padding: clamp(8px, 2svh, 12px) 0 clamp(14px, 3svh, 34px);
}

.decor {
  position: absolute;
  top: -20px;
  width: 360px;
  opacity: 0.85;
  z-index: 1;
}

.decor-left {
  top: -86px;
  left: -168px;
  transform: rotate(115deg);
}

.decor-right {
  right: -168px;
  transform: rotate(106deg);
}

.ticket {
  position: absolute;
  top: -7px;
  right: -34px;
  z-index: 2;
  width: 120px;
  height: auto;
  transform: rotate(290deg);
}

.headline {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: clamp(8px, 2svh, 18px) 0 clamp(8px, 2svh, 18px);
  text-transform: uppercase;
  font-family: "Coolvetica", "Segoe UI", sans-serif;
  text-align: center;
  width: 100%;
  --headline-top-size: clamp(40px, 16vw, 96px);
  --headline-top-line: calc(var(--headline-top-size) * 2.13);
  --headline-sub-size: clamp(18px, 3.6vw, 42px);
  --headline-sub-line: calc(var(--headline-sub-size) * 0.969);
  --headline-big-size: clamp(96px, 16vw, 148px);
  --headline-big-line: calc(var(--headline-big-size) * 0.969);
}

.headline-line {
  margin: 0 auto;
  letter-spacing: 0;
  display: block;
  width: max-content;
  white-space: nowrap;
  vertical-align: middle;
  --headline-scale-x: 1;
  --headline-scale-y: 1;
  transform: scale(var(--headline-scale-x), var(--headline-scale-y));
  transform-origin: center;
}

.headline-top,
.headline-big {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.headline-top {
  font-family: "Coolvetica", "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-stretch: ultra-condensed;
  font-size: var(--headline-top-size);
  letter-spacing: 0;
  text-transform: uppercase;
  --headline-scale-y: 1.9;
  padding-bottom: 14px;
}

.headline-big {
  font-family: "Benzin-Bold", "Coolvetica", "Segoe UI", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--headline-big-size);
  /*line-height: var(--headline-big-line);*/
  letter-spacing: 2px;
  text-transform: uppercase;
}

.headline-sub {
  font-family: "Coolvetica", "Segoe UI", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-stretch: normal;
  font-size: var(--headline-sub-size);
  /*line-height: var(--headline-sub-line);*/
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: -10px;
}

@media (min-width: 1024px) {
  .headline {
    max-width: min(760px, 92vw);
    margin: 0 auto;
    padding-inline: clamp(24px, 4vw, 64px);

    --headline-top-size: clamp(44px, 7vw, 78px);
    --headline-sub-size: clamp(18px, 3vw, 36px);
    --headline-big-size: clamp(96px, 12vw, 132px);
  }
}

.promo-trigger {
  position: relative;
  z-index: 2;
  margin: 8px auto 14px;
  border: 0;
  padding: 10px 14px 9px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.offers {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vmin, 14px);
  padding: 0;
  align-content: end;
  width: 100%;
  max-width: min(640px, 92vw);
  margin: auto auto 0;
  justify-content: center;
  place-content: end center;
}

.offer {
  position: relative;
  padding: 0;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  --offer-btn-h: clamp(86px, 12vmin, 96px);
  --offer-h: clamp(360px, 48svh, 680px);
  height: var(--offer-h);
  min-height: 0;
  overflow: visible;
  isolation: isolate;
  --offer-image-overhang: clamp(18px, 4vmin, 60px);
  --offer-image-underlap: clamp(12px, 4vmin, 20px);
  --offer-image-top: calc(var(--offer-image-overhang) * -1);
  --frame-thickness: 1px;
  --frame-occlude: clamp(14px, 4vw, 26px);
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(
    50.43deg,
    rgba(0, 0, 0, 0) 11.2%,
    #fff 90.02%
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box,
  linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.offer--left::before {
  background: linear-gradient(50.43deg, rgba(0, 0, 0, 0) 11.2%, #fff 90.02%);
}

.offer--right::before {
  background: linear-gradient(-50.43deg, rgba(0, 0, 0, 0) 11.2%, #fff 90.02%);
}

.offer > * {
  position: relative;
  z-index: 2;
}

.offer-image {
  position: absolute;
  bottom: auto;
  pointer-events: none;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(138%, 110vw);
  max-width: none;
  max-height: none;
  object-fit: contain;
  z-index: 2;
  top: var(--offer-image-top);
  height: calc(100% - var(--offer-btn-h) + var(--offer-image-overhang) + var(--offer-image-underlap));
  object-position: center bottom;
}

.offer-image-left {
  right: 0;
  left: 50%;
}

.offer-image-right {
  left: 50%;
  right: auto;
}

.offer-btn {
  width: 100%;
  border: 0;
  padding: 10px 8px 8px;
  border-radius: 16px;
  background: var(--grad-cta);
  color: #ffffff;
  font-family: "Roboto", "Coolvetica", sans-serif;
  font-weight: 500;
  font-stretch: condensed;
  font-size: clamp(14px, 4.2vw, 25px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 4;
  min-height: var(--offer-btn-h);
  margin: 0 -1px -1px;
  line-height: 1.05;
  overflow: hidden;
}

.offer-btn span {
  display: block;
  font-size: inherit;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.offer-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;

  background: linear-gradient(
    50.43deg,
    rgba(0, 0, 0, 0) 11.2%,
    #ffffff 90.02%
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box,
  linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.offer-btn > * {
  position: relative;
  z-index: 6;
}

.promo-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20;
  font-family: "Roboto Flex", "Roboto", sans-serif;
}

.promo-modal.is-open {
  display: flex;
}

.promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.promo-card {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 90vw;
  min-width: 280px;
  padding: 42px 22px 20px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
  #111116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  --promo-cta-width: min(280px, 84vw);
}

.promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
}

.promo-close::before,
.promo-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.9);
  transform-origin: center;
}

.promo-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.promo-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.promo-title {
  font-family: "Coolvetica", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 10vw, 36px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff7a1a;
  margin: 0 0 8px;
}

.promo-code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #5a5a5a;
  font-weight: 800;
  font-size: clamp(16px, 5vw, 20px);
  /*text-transform: uppercase;*/
  color: #ffffff;
  width: var(--promo-cta-width);
  max-width: 100%;
  min-height: 48px;
  cursor: pointer;
}

.promo-code-text {
  white-space: nowrap;
}

.copy-btn {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  padding: 0;
}

.copy-btn img {
  width: 16px;
  height: 16px;
  /*filter: invert(66%) sepia(63%) saturate(4064%) hue-rotate(350deg) brightness(102%) contrast(101%);*/
  color: var(--promo-orange);
}

.promo-code.is-copied .copy-btn img {
  opacity: 0;
}

.promo-code.is-copied .copy-btn::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--promo-orange);
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 12px;
  padding: 14px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #ff6a1f 0%, #ffb22f 100%);
  color: #151515;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  width: var(--promo-cta-width);
  max-width: 100%;
  min-height: 48px;
}

.promo-btn:hover {
  filter: brightness(1.05);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 10px 18px rgba(0, 0, 0, 0.4);
}

.promo-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 6px 12px rgba(0, 0, 0, 0.35);
}

.promo-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.promo-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text-muted);
}

.promo-note span {
  color: var(--promo-orange);
  font-weight: 800;
}

@media (max-height: 640px) {
  .offer {
    height: clamp(220px, 52svh, 440px);
  }
}

@media (max-width: 360px) {
  .hero {
    padding: 16px 14px 16px;
  }

  .offer {
    height: clamp(420px, 18vmin, 520px);
    --offer-image-overhang: clamp(14px, 4vmin, 44px);
  }

  .offer-image {
    top: var(--offer-image-top);
    bottom: auto;
    width: min(118%, 110vw);
    max-height: calc(100% + var(--offer-image-overhang));
  }
}

@media (max-width: 340px) {
  .offers {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 84vw);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .offer {
    scroll-snap-align: start;
  }
}

.offer--left {
  --clip-l: -28px;
  --clip-r: 0px;
}

.offer--right {
  --clip-l: 0px;
  --clip-r: -28px;
}

.offer__media {
  position: absolute;
  inset: 0;
  z-index: 3;
  clip-path: inset(-240px var(--clip-r) 0 var(--clip-l) round 16px);
}

.offer {
  position: relative;
  border-radius: 16px;
  overflow: visible;
  isolation: isolate;

  --r: 16px;
  --frame-th: 1px;
  --edge-w: clamp(10px, 3.6vw, 16px);
  --frame-angle: 50.43deg;
}

.offer--right {
  --frame-angle: -50.43deg;
}

.offer::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--frame-th);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;

  background: linear-gradient(
    var(--frame-angle),
    rgba(0, 0, 0, 0) 11.2%,
    #fff 90.02%
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box,
  linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}


.offer::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: var(--frame-th);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;

  background: linear-gradient(
    var(--frame-angle),
    rgba(0, 0, 0, 0) 11.2%,
    #fff 90.02%
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box,
  linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.offer--left::after {
  clip-path: inset(
    0 0 0 calc(100% - var(--edge-w)) round 0 var(--r) var(--r) 0
  );
}

.offer--right::after {
  clip-path: inset(
    0 calc(100% - var(--edge-w)) 0 0 round var(--r) 0 0 var(--r)
  );
}

.offer-btn {
  position: relative;
  z-index: 4;
}

.offer--left {
  --left-cut-y: calc(100% - var(--offer-btn-h) - 86px);
}

.offer--left .offer__media {
  clip-path: polygon(
    var(--clip-l) var(--offer-image-top),
    100% var(--offer-image-top),
    100% 100%,
    0 100%,
    0 var(--left-cut-y),
    var(--clip-l) var(--left-cut-y)
  );
}
