.shop-page {
  padding: 0;
  min-height: calc(100vh - var(--header-h));
  position: relative;
}

.featured-offer {
  width: clamp(60rem, 96.68vw, 96.68vw);
  height: clamp(15rem, 41.04vh, 41.04vh);
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  margin-left: clamp(0.8rem, 1.67vw, 1.67vw);
  border-radius: clamp(1.2rem, 2.22vw, 1.575rem);
  background: rgba(0, 0, 0, 1);
  border: clamp(0.045rem, 0.07vw, 0.05rem) solid transparent;
  background-clip: padding-box;
  position: relative;
  z-index: 10;
  padding: clamp(1.8rem, 3.33vw, 2.36rem);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.featured-offer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: clamp(1rem, 2.22vw, 1.58rem);
  padding: clamp(0.04rem, 0.07vw, 0.05rem);
  background: linear-gradient(180deg, rgba(153, 99, 78, 0.5) 0%, rgba(255, 178, 130, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.featured-offer__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 2.11vw, 1.79rem);
  grid-column: 1;
  grid-row: 1;
}

.featured-offer__image {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: clamp(1.8rem, 3.33vw, 2.36rem);
  width: auto;
  height: calc(100% + clamp(2rem, 4vw, 3rem));
  aspect-ratio: 1 / 1;
  border-radius: clamp(2rem, 3.54vw, 2.51rem);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.featured-offer__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.featured-offer__image-mobile {
  display: none;
}

.featured-offer__label {
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

.featured-offer__title {
  color: #fff;
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.2vh, 1rem);
}

.featured-offer__title-line {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  display: block;
}

.featured-offer__title-main {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  display: block;
}

.featured-offer__price {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2rem);
  grid-column: 1;
  grid-row: 2;
}

.featured-offer__price-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.4rem, 0.9vw, 0.7rem);
  color: #fff;
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.featured-offer__price-icon {
  width: clamp(2rem, 4vw, 3.5rem);
  height: clamp(2rem, 4vw, 3.5rem);
  display: block;
}


.shop-nav {
  width: clamp(60rem, 96.68vw, 96.68vw);
  height: clamp(2rem, 4.95vh, 2.8rem);
  margin-top: clamp(1.2rem, 2.5vh, 2rem);
  margin-left: clamp(0.8rem, 1.67vw, 1.67vw);
  border-radius: clamp(1.2rem, 2.22vw, 1.575rem);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(1.575px);
  -webkit-backdrop-filter: blur(1.575px);
  padding: clamp(0.25rem, 0.42vw, 0.3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  z-index: 10;
}

.shop-nav-mobile {
  display: none;
}

.shop-nav__tab {
  flex: 1;
  height: 100%;
  padding: clamp(0.3rem, 0.56vw, 0.4rem) clamp(0.5rem, 0.83vw, 0.6rem);
  border-radius: clamp(0.8rem, 1.39vw, 1.98rem);
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.4rem, 0.69vw, 0.5rem);
}

.shop-nav__tab--active {
  background: rgb(0 0 0);
  color: #fff;
  padding: clamp(0.5rem, 0.83vw, 0.59rem);
  border-radius: clamp(3rem, 6.95vw, 4.92rem);
  gap: clamp(0.3rem, 0.56vw, 0.39rem);
}

.shop-nav__tab:hover:not(.shop-nav__tab--active) {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  width: clamp(60rem, 96.68vw, 96.68vw);
  margin-top: clamp(2rem, 4vh, 3rem);
  margin-left: clamp(0.8rem, 1.67vw, 1.67vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.section-header__title {
  color: #fff;
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(1.75rem, 2.11vw, 1.79rem);
  font-weight: 500;
  line-height: 1.38;
  margin: 0;
  text-transform: uppercase;
}

.section-header__link {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.3rem, 0.5vw, 0.4rem);
  color: #fff;
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(1.75rem, 2.11vw, 1.79rem);
  font-weight: 500;
  line-height: 1.38;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.section-header__link:hover {
  opacity: 0.7;
}

.section-header__arrow {
  width: clamp(1rem, 1.67vw, 2.19rem);
  height: clamp(1rem, 1.67vw, 2.19rem);
  display: block;
}

.offers-grid {
  width: clamp(60rem, 96.68vw, 96.68vw);
  margin-top: clamp(1rem, 2vh, 1.5rem);
  margin-left: clamp(0.8rem, 1.67vw, 1.67vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 1.85vw, 1.5rem);
  position: relative;
  z-index: 10;
  max-height: clamp(30rem, 75vh, 40rem);

  padding-bottom: clamp(1rem, 2vh, 1.5rem);
}

.offer-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: clamp(0.8rem, 1.39vw, 0.98rem);
  border: clamp(0.045rem, 0.07vw, 0.05rem) solid transparent;
  background: radial-gradient(50% 50% at 50% 50%, rgba(239, 49, 36, 0) 32%, rgba(255, 108, 17, 0.064) 100%);
  background-clip: padding-box;
  position: relative;
  padding: clamp(0.6rem, 1.11vw, 0.79rem) clamp(0.6rem, 1.11vw, 0.79rem) clamp(0.4rem, 0.69vw, 0.49rem) clamp(0.6rem, 1.11vw, 0.79rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: clamp(0.8rem, 1.39vw, 0.98rem);
  padding: clamp(0.045rem, 0.07vw, 0.05rem);
  background: linear-gradient(135.87deg, rgba(255, 245, 224, 0.7) 8.97%, rgba(245, 106, 0, 0.7) 88.2%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.offer-card__image {
  position: relative;
  z-index: 2;
  flex: 1;
  border-radius: clamp(0.5rem, 0.9vw, 0.7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Teachers page tweaks */
.teachers-page .featured-offer__image {
  right: clamp(1rem, 2vw, 1.5rem);
  height: calc(100% + clamp(3rem, 6vw, 5rem));
  transform: translateX(-8%);
}

.teachers-page .offers-grid .offer-card__image {
  width: clamp(9.5rem, 22vw, 22.9rem);
  height: clamp(9.5rem, 23vw, 12.9rem);
  margin: 2rem auto;
  border-radius: 131rem;
  background: radial-gradient(33.71% 33.71% at 50% 50%, rgba(239, 49, 36, 0.112) 32%, rgba(0, 0, 0, 0.128) 100%);
  overflow: hidden;
}

.teachers-page .offers-grid .offer-card__image img {
  /* width: 115%; */
  /* height: 115%; */
  object-fit: cover;
  object-position: center;
}

.offer-card__title {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

@media (max-width: 767px) {
  :root {
    --header-scale: 1;
  }

  .site-header {
    padding: 1rem 1rem;
    min-height: auto;
  }

  .site-header__logo {
    display: none;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__meta {
    width: 100%;
    grid-template-columns: auto 1fr;
    column-gap: 0.75rem;
    justify-content: space-between;
  }

  .site-header__profile {
    order: -1;
    gap: 0.75rem;
  }

  .site-header__avatar {
    width: 2.75rem;
    height: 2.75rem;
  }

  .site-header__user {
    row-gap: 0.25rem;
    margin-right: 0;
  }

  .user-name {
    font-size: 0.875rem;
    line-height: 1.2;
  }

  .user-rank {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .site-header__stats {
    column-gap: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    justify-self: end;
  }

  .stat-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .mobile-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom) + clamp(0.5rem, 2.5vh, 1rem));
    z-index: 1000;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: clamp(0.6rem, 2.6vw, 1rem);

    width: 90%;
    margin: 0;
    height: clamp(4.5rem, 7vh, 5.25rem);
    padding: clamp(0.55rem, 1.8vh, 0.8rem) clamp(0.75rem, 3vw, 1rem);

    border-radius: 62.5rem;
    background: rgba(0, 0, 0, 1);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow: hidden;
  }

  .mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;

    height: 100%;
    width: 100%;
    min-width: 0;
    text-align: center;

    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Unbounded', system-ui, -apple-system, Segoe UI, sans-serif;
    font-size: clamp(0.6rem, 2.5vw, 0.7rem);
    font-weight: 400;
    line-height: 1.2;

    transition: color 0.2s ease;
  }

  .mobile-nav__item--active {
    color: #EF3124;
  }

  .mobile-nav__icon {
    width: clamp(1.6rem, 8vw, 2.2rem);
    height: clamp(1.6rem, 8vw, 2.2rem);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav__icon img {
    width: 100%;
    height: 100%;
    display: block;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: filter 0.2s ease;
  }

  .mobile-nav__item--active .mobile-nav__icon img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(97%) saturate(3089%) hue-rotate(349deg) brightness(98%) contrast(92%);
  }

  .mobile-nav__label {
    display: none;
  }

  .shop-page {
    padding: 0rem 1rem calc(env(safe-area-inset-bottom) + clamp(12.5rem, 12vh, 10.5rem));
  }

  .featured-offer {
    width: 100%;
    height: auto;
    min-height: 14rem;
    margin-left: 0;
    padding: 1.5rem 1rem;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    gap: 1rem;
    position: relative;
    overflow: visible;
    align-items: center;
  }

  .featured-offer__content {
    grid-column: 1;
    grid-row: 1;
    gap: 0.5rem;
    align-self: start;
  }

  .featured-offer__label {
    font-size: 0.7rem !important;
  }

  .featured-offer__title {
    gap: 0.25rem !important;
  }

  .featured-offer__title-line {
    font-size: 0.9rem !important;
  }

  .featured-offer__title-main {
    font-size: 1.1rem !important;
    white-space: nowrap !important;
  }

  .featured-offer__image {
    position: absolute !important;
    width: 9rem !important;
    height: calc(100% - 10%) !important;
    max-height: calc(14rem - 1.4rem) !important;
    right: 1rem !important;
    bottom: auto !important;
    top: 5% !important;
    left: auto !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .teachers-page .featured-offer__image img {
    position: absolute !important;
    right: -1rem !important;
    bottom: 0 !important;
    width: auto !important;
    height: 76% !important;
    object-fit: contain !important;
  }

  .teachers-page .featured-offer__image {
    width: auto !important;
    height: 80% !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
  }

  .featured-offer__image-desktop {
    display: none !important;
  }

  .featured-offer__image-mobile {
    display: block !important;
    width: auto !important;
    height: 70% !important;
    max-width: 100% !important;
    object-fit: contain !important;
    object-position: right center !important;
    margin-right: -1rem !important;
    margin-bottom: -3rem;
  }

  .featured-offer__price {
    grid-column: 1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    align-self: end;
    margin-bottom: 0;
  }

  .featured-offer__price-item {
    font-size: 1rem !important;
    gap: 0.5rem !important;
  }

  .featured-offer__price-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .shop-nav {
    display: none !important;
  }

  .shop-nav-mobile {
    display: flex !important;
    width: 100%;
    height: auto;
    min-height: clamp(2rem, 4.95vh, 2.8rem);
    margin-top: clamp(1.2rem, 2.5vh, 2rem);
    margin-left: 0;
    border-radius: clamp(1.2rem, 2.22vw, 1.575rem);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1.575px);
    -webkit-backdrop-filter: blur(1.575px);
    padding: clamp(0.25rem, 0.42vw, 0.3rem);
    align-items: center;
    justify-content: space-between;
    gap: 0;
    position: relative;
    z-index: 10;
  }

  .shop-nav-mobile .shop-nav__tab {
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    line-height: 1.2;
    padding: clamp(0.3rem, 0.56vw, 0.4rem) clamp(0.3rem, 0.5vw, 0.4rem);
  }

  .shop-nav-mobile .shop-nav__tab--active {
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    padding: clamp(0.4rem, 0.6vw, 0.5rem) clamp(0.3rem, 0.5vw, 0.4rem);
  }

  .section-header,
  .offers-grid {
    width: 100%;
    margin-left: 0;
  }

  .section-header__link {
    display: none;
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: calc(env(safe-area-inset-bottom) + clamp(2.5rem, 6vh, 3.5rem));
  }

  .teachers-page .offers-grid .offer-card__image {
    width: clamp(7rem, 15vw, 9rem) !important;
    height: clamp(7rem, 16vw, 9rem) !important;
    /* margin: 0 auto !important; */
  }

  .shop-page .offers-grid .offer-card__image {
    margin: 0.5rem auto;
  }

}

@media (min-width: 576px) {
  .featured-offer {
    min-height: 400px;
  }
}