/* Page background */
.page-home {
  background-color: #201a1b;
}

.page-home > .section,
.page-home > .section--dark,
.page-home > .map-section {
  background: transparent;
}

/* Hero */
.hero {
    position: relative;
}
.hero::after{
    content: "";
    bottom: 0;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    height: 33%;
    background: linear-gradient(180deg, rgba(32, 26, 27, 0.00) 0%, #201A1B 100%);
}

.hero-wrapper{
    position: relative;
    min-height: 800px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.winners__empty{
    z-index: 100;
    position: relative;
    display: flex;
    align-items: center;
    align-self: center;
    justify-self: center;
    flex-direction: column;
    gap: 32px;
    padding-bottom:clamp(5rem, 4.5455rem + 2.2727vw, 6.25rem);
}

.winners__empty-text{
    display: flex;

    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 12px;
}

.winners__empty-title{
    font-family: var(--font-condensed);
    font-size: clamp(1.125rem, 0.8068rem + 1.5909vw, 2rem);
    font-weight: 800;
    line-height: 120%;
    letter-spacing: -0.64px;
    width: 60%;
    text-transform: uppercase;
}

.winners__empty-subtitle{
    color: rgba(255, 255, 255, 0.80);
    font-size: 18px;
    font-weight: 300;
    line-height: 120%;
    width: 40%;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 155px;
  background: var(--color-gradient-hero-fade);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: var(--space-3xl);
}

.hero__dates {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-md);
    font-size: clamp(1.125rem, 0.8906rem + 0.625vw, 1.4375rem);
  font-weight: 900;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero__dates-icon {
  width: 20px;
  height: 20px;
}

.hero__title{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__title-main {
  font-family: var(--font-yanone);
  font-weight: 700;
    font-size: clamp(4.25rem, 0.5469rem + 9.875vw, 9.1875rem);
    line-height: 90%;
  text-transform: uppercase;
  color: var(--color-white);
}

.hero__title-accent {
    font-family: var(--font-yanone);
    font-size: clamp(3.125rem, 0.7813rem + 6.25vw, 6.25rem);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 90%;
    color: var(--color-accent);
    margin-top: -8px;
}

.hero__divider {
  width: min(792px, 90%);
  height: 3px;
  margin: var(--space-md) auto;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.hero__subtitle {
  width: 60%;
  font-size: clamp(0.875rem, 0.5938rem + 0.75vw, 1.25rem);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
}

.hero__subtitle strong {
  color: var(--color-accent);
  font-style: italic;
}

.hero__cta {
  margin-bottom: var(--space-2xl);
}

.hero__decor {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5%;
}

/* Steps */
.steps__grid {
  display: grid;
    margin-top: 50px;
    grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.steps-wrapper{
    position: relative;
}

.steps-wrapper::after{
    content: "";
    top: 0;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    height: 32%;
    background: linear-gradient(180deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}

.section--steps .container{
    position: relative;
    z-index: 1500;
}

.brands-wrapper{
    background: linear-gradient(180deg, #201A1B 0%, rgba(32, 26, 27, 0.30) 62.97%);
    position: relative;
    height: auto;
}

.brands-wrapper .container {
    position: relative;
}

.brands-wrapper::after{
    content: "";
    bottom: 0;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 500;
    pointer-events: none;
    height: 20%;
    background: linear-gradient(180deg, rgba(32, 26, 27, 0.00) 0%, #201A1B 100%);
}

.brands-wrapper::before {
    content: "";
    top: 0;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 500;
    pointer-events: none;
    height: 20%;
    background: linear-gradient(180deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}


.brands-wrapper .container::before {
    content: "";
    bottom: 0;
    left: 0;
    position: absolute;
    width: 20%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(90deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}

.brands-wrapper .container::after {
    content: "";
    bottom: 0;
    right: 0;
    position: absolute;
    width: 20%;
    height:100%;
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(270deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}

.brands__bg{
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    object-position: bottom;
    top: 0;
    left: 0;
    z-index:0;
}

.steps__bg{
    position: absolute;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    bottom: 0;
    left: 0;
}

/* Products carousel */
.products__carousel {
    margin-top: 30px;
    z-index: 1000;
}


.products__track::-webkit-scrollbar {
  display: none;
}

.products__track .product-card {
  flex: 0 0 285px;
  width: 285px;
  scroll-snap-align: start;
}

.products__controls {
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 22px;
    z-index: 100;
    gap: 12px;
}

.carousel-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
}

.carousel-btn--accent {
  background: var(--color-accent);
  border-radius: 2px;
}

.carousel-btn img {
  display: block;
}

.carousel-btn:hover {
  opacity: 0.75;
}

.carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Map section */
.map-section__header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.map-section__desc {
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--color-text-muted);
  width: 50%;
}

.map-section__map {
  position: relative;
  top: -60px;
  z-index: 0;
  margin-bottom: var(--space-2xl);
}

.map-section__map img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.map-section__tagline {
    text-align: center;
    font-family: var(--font-condensed);
    font-size: clamp(1.25rem, 0.6875rem + 1.5vw, 2rem);
    max-width: 60%;
    margin: 0 auto var(--space-2xl);
    font-weight: 800;
    line-height: 120%;
    letter-spacing: -0.64px;
    text-transform: uppercase;
}

.map-section__retailers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 988px;
  margin-inline: auto;
}

/* Prizes */
.section--prizes .section-heading {
  margin-bottom: 42px;
}

.prizes__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prizes__weekly::-webkit-scrollbar {
  display: none;
}

.prizes__weekly .prize-card {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.prizes__grand {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.prizes__grand-bg {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  pointer-events: none;
}

.prizes__grand-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: url('/static/img/landing/grand-prize-bg.png') center / cover no-repeat;
  opacity: 1;
}

.prizes__grand-inner {
  position: relative;
  z-index: 1;
  padding: 48px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.prizes__grand-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.prizes__grand-title img {
  flex-shrink: 0;
  width: 33px;
  height: 33px;
}

.prizes__grand-amount {
  position: relative;
  width: 100%;
  max-width: 763px;
  margin-inline: auto;
}

.prizes__grand-amount-bar {
  display: block;
  width: 100%;
  height: auto;
}

.prizes__grand-amount-row {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 6px;
}

.prizes__grand-bar {
  flex-shrink: 0;
  width: 56px;
  height: 6px;
  background: var(--color-white);
}

.prizes__grand-amount-value {
  margin: 0;
  font-family: var(--font-condensed);
  font-size: clamp(2.5rem, 10vw, 7.5rem);
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-transform: uppercase;
  white-space: nowrap;
}
.prizes__controls {
    display: none;
}



/* Rules banner */
.rules-banner {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 56px;
    min-height: 200px;
    display: flex;
    align-items: center;
    background: var(--color-bg-card) url('/static/img/landing/rules-banner-bg.jpg') center / cover no-repeat;
    z-index: 800;
}

.rules-banner__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  width: 100%;
}

.rules-banner__text {
  font-family: var(--font-condensed);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 678px;
  margin: 0;
}

.winners{
    position: relative;
}

.winners::after{
    content: "";
    bottom: 75px;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 500;
    pointer-events: none;
    height: 20%;
    background: linear-gradient(180deg, rgba(32, 26, 27, 0.00) 0%, #201A1B 100%);
}

.winners::before {
    content: "";
    top: -140px;
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 500;
    pointer-events: none;
    height: 40%;
    background: linear-gradient(180deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}

.winners .container{
    position: relative;
}

.winners .container::before {
    content: "";
    bottom: 0;
    left: 0;
    position: absolute;
    width: 20%;
    height: calc(100% + 80px);
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(90deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}

.winners .container::after {
    content: "";
    bottom: 0;
    right: 0;
    position: absolute;
    width: 20%;
    height: calc(100% + 80px);
    z-index: 1000;
    pointer-events: none;
    background: linear-gradient(270deg, #201A1B 0%, rgba(32, 26, 27, 0.00) 100%);
}

.winners-bg {
    position: absolute;
    width: 100%;
    opacity: 0.5;
    object-fit: cover;
    pointer-events: none;
    object-position: bottom;
    bottom: 0;
    left: 0;
    z-index: 0;
}

/* Winners */
.winners__content {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-self: center;
    gap: 24px;
    width: 70%;
}

.winners__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  width: 100%;
  min-height: 47px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 2px;
}

.winners__tab {
  flex: 1;
  min-width: 80px;
  padding: 12px 10px;
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.winners__tab.is-active {
  background: var(--color-gradient-btn);
  color: var(--color-white);
}

.winners__table-wrap {
  overflow: hidden;
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.winners__table {
  width: 100%;
  min-width: 600px;
  border-collapse: separate;
  border-spacing: 0;
    text-wrap: nowrap;
}

.winners__table th,
.winners__table td {
  padding: 12px 32px;
  text-align: left;
  vertical-align: middle;
}

.winners__table th {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  border: none;
}

.winners__table thead th:first-child {
  border-top-left-radius: var(--radius-md);
}

.winners__table thead th:last-child {
  border-top-right-radius: var(--radius-md);
}

.winners__table tbody {
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.winners__table td {
  padding-block: 16px;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.winners__table tbody tr:nth-child(odd) {
  background: #2D2728;
}

.winners__table tbody tr:nth-child(even) {
  background:#312C2D;
}

.winners__table tbody tr:last-child td {
  border-bottom: none;
}

.winners__table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-md);
}

.winners__table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-md);
}



/* FAQ */
.faq__grid {
    display: flex;
    gap: 20px;
    width: 100%;
}

.faq__column {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

/* Brands */
.brands-section__inner {
  display: flex;
    position: relative;
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  gap: 42px;
}

.brands-section .section-heading--brands {
  margin-bottom: 0;
}

.brands-section .section-heading--brands .section-heading__title {
  white-space: nowrap;
}

.brands__grid {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: var(--container-max);
}

.page-home .section-heading--map {
  width: 100%;
}
@media (max-width: 1440px) {
    .prizes__controls {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 1200px) {
    .winners__content {
        width: 90%;
    }
}

@media (max-width: 1024px) {
    .winners__content {
        width: 100%;
    }

    .winners__empty-title{
        width: 80%;
    }

    .winners__empty-subtitle{
        width: 70%;
    }
}

@media (min-width: 1200px) {
    .prizes__weekly {
        justify-content: center;
        overflow-x: visible;
    }
}

@media (min-width: 1200px) {
    .products__track {
        justify-content: center;
        overflow-x: visible;
    }
}

@media (max-width: 1024px) {
    .faq__grid {
        flex-direction: column;
        gap: 4px;
    }

    .hero__decor {
        bottom: 0;
    }

    .winners::after{
        bottom: 0;
        height: 20%;
    }

    .winners::before {
        height: 20%;
    }

    .winners .container::before {
        width: 20%;
    }

    .winners .container::after {
        width: 20%;
    }
}

@media (min-width: 1024px) {


    .hero__decor--left {
        left: -2%;
        bottom: 5%;
        width: 35%;
        max-width: 400px;
    }

    .hero__decor--right {
        right: 0;
        bottom: 0;
        width: 40%;
        max-width: 500px;
    }



}

@media (min-width: 1200px) {
    .brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .page-home {
        background-image: url('../../img/backgrounds/rectangle-70.svg');
        background-position: top center;
        background-size: 100% auto;
        background-repeat: no-repeat;
    }
}

@media (min-width: 768px) {
    .map-section__map {
        top: -160px;
    }
}

@media (min-width: 768px) {
    .map-section__retailers {
        gap: 72px;
    }
}
@media (max-width: 950px) {
    .steps__grid {
        gap: 50px;
        grid-template-columns: repeat(1, 1fr);
    }

    .map-section__tagline {
        max-width: 100%;
    }
}
@media (max-width: 767px) {

    .hero__subtitle {
        width: 100%;
    }

    .rules-banner {
        padding: 32px 24px;
    }

    .rules-banner__content {
        flex-direction: column;
        align-items: flex-start;
    }
}


@media (max-width: 767px) {
    .map-section__map {
        overflow: hidden;
    }

    .map-section__map img {
        width: calc(100% / 0.55);
        max-width: none;
        margin-inline: 0;
        object-fit: cover;
        object-position: left center;
    }

    .hero-wrapper{
        min-height: 100svh;
    }

    .map-section__desc {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .winners__table {
        min-width: 0;
    }

    .winners__table th:nth-child(1),
    .winners__table td:nth-child(1) {
        width: 30%;
    }

    .winners__table th:nth-child(2),
    .winners__table td:nth-child(2) {
        width: 44%;
    }

    .winners__table th:nth-child(3),
    .winners__table td:nth-child(3) {
        width: 26%;
    }

    .winners__table th {
        padding: 10px 14px;
    }

    .winners__table td {
        padding: 12px 14px;
    }

    .hero__decor {
        width: 150%;
        max-width: max-content;
        bottom: 1%;
    }

    .hero::after{
        height: 20%;
    }
}

@media (max-width: 550px) {
    .hero__decor {
        width: 200%;
    }

    .hero::after{
        height: 12%;
    }
}

@media (max-width: 480px) {
    .winners__empty-title{
        width: 100%;
    }

    .winners__empty-subtitle{
        width: 100%;
    }

    .prizes__grand-bar {
        width: 28px;
    }

    .prizes__grand-amount-row {
        gap: 8px;
        padding-top: 4px;
    }
}