@font-face {
  font-family: "IRANYekan";
  src: url("./public/fonts/IRANYekanRegular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("./public/fonts/IRANYekanBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("./public/fonts/IRANYekanExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("./public/fonts/IRANYekanBlack.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

/* Basic reset. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Absolute positioning keeps the header out of the future hero's flow. */
.site-header {
  --edge-spacing: clamp(20px, calc(2.857142857vw + 9.714285714px), 24px);
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 10;
  height: 60px;
  background: linear-gradient(180deg, #133174 0%, rgba(64, 106, 196, 0) 100%);
}

.site-header__logo {
  position: absolute;
  inset-inline-start: var(--edge-spacing);
  inset-block-start: 12px;
  width: 76px;
  height: 36px;
  object-fit: contain;
}

.hero__cta {
  position: absolute;
  inset-inline-end: var(--edge-spacing);
  inset-block-start: 12px;
  width: 120px;
  height: 36px;
  border-radius: 10px;
  background: #F83901;
  color: #FFFFFF;
  font-family: "IRANYekan";
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.hero__cta-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #F99A17 0%, #F85707 100%);
}

/* Tablet sizes, including the 800px reference. */
@media (min-width: 501px) {
  .site-header {
    --edge-spacing: clamp(24px, calc(2.666666667vw + 10.666666667px), 32px);
  }

  .site-header__logo {
    inset-block-start: 10px;
    width: 84px;
    height: 40px;
  }

}

/* Desktop sizes; interpolate between the 1280px and 1920px references. */
@media (min-width: 1024px) {
  .site-header {
    --edge-spacing: clamp(42px, calc(2.1875vw + 14px), 56px);
    height: 100px;
  }

  .site-header__logo {
    inset-block-start: 20px;
    width: 150px;
    height: 60px;
  }


}

.hero {
  --hero-height: clamp(676px, calc(17.142857143vw + 614.285714286px), 700px);
  --title-width: clamp(180px, calc(14.285714286vw + 128.571428571px), 200px);
  --title-height: clamp(90px, calc(7.142857143vw + 64.285714286px), 100px);
  --description-width: clamp(328px, calc(12.857142857vw + 281.714285714px), 346px);
  --description-height: 42px;
  --description-gap: 0px;
  --subscription-width: 158px;
  --subscription-height: 28px;
  --subscription-gap: 8px;
  --cta-gap: 8px;
  position: relative;
  height: var(--hero-height);
}

.hero__background {
  position: absolute;
  inset: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__content {
  position: relative;
  padding-block-start: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__heading {
  width: var(--title-width);
  height: var(--title-height);
  max-width: 100%;
}

.hero__heading picture,
.hero__heading img {
  width: 100%;
  height: 100%;
}

.hero__heading img {
  object-fit: contain;
}

.hero__description {
  width: var(--description-width);
  max-width: calc(100% - 32px);
  min-height: var(--description-height);
  margin-block-start: var(--description-gap);
  font-family: "IRANYekan";
  font-weight: 400;
  font-size: 12px;
  line-height: 21px;
  color: #FFFFFF;
}

@media (width < 430px) {
  .hero__description {
    /* Keep the complete copy on two lines at the 328px reference width. */
    word-spacing: -0.2px;
  }
}

.hero__cta {
  position: static;
  flex-shrink: 0;
  margin-block-start: var(--cta-gap);
  width: 160px;
  height: 44px;
  font-size: 14px;
}

.hero__cta-top {
  height: 42px;
}

@media (min-width: 430px) and (max-width: 639px) {
  .hero {
    --description-height: 42px;
    --subscription-width: 182px;
    --subscription-height: 32px;
    --subscription-gap: 12px;
    --cta-gap: 12px;
  }
}

/* Interpolate from the 700px frame at 500px to the full 1440:2464 artwork
   at 639px, avoiding the abrupt restoration of empty sky at 501px. */
@media (min-width: 501px) and (max-width: 639px) {
  .hero {
    height: clamp(700px, calc(283.021582734vw - 715.10791367px), 1093.4px);
  }
}

/* Keep the approved endpoint frames; remove growing empty sky only between them.
   The artwork returns to its approved position at 639px. */
@media (min-width: 501px) and (width < 639px) {
  .hero {
    --artwork-frame-height: clamp(700px, calc(283.021582734vw - 715.10791367px), 1093.4px);
    --artwork-offset: calc(626.25px - 125vw);
    /* Transforms move the artwork without reducing its reserved flow space. */
    height: calc(var(--artwork-frame-height) + var(--artwork-offset));
  }

  .hero__background {
    height: var(--artwork-frame-height);
    overflow: hidden;
  }

  .hero__background img {
    transform: translateY(var(--artwork-offset));
  }
}

@media (min-width: 640px) {
  .hero {
    --hero-height: 471px;
    --title-width: 177px;
    --title-height: 75px;
    --description-gap: 8px;
    --description-width: 404px;
    --description-height: 48px;
    --subscription-width: 182px;
    --subscription-height: 32px;
    --subscription-gap: 20px;
    --cta-gap: 12px;
  }

  .hero__content {
    padding-block-start: 76px;
    padding-inline: 32px;
    align-items: flex-start;
    text-align: right;
  }

  .hero__description {
    max-width: 100%;
    font-size: 14px;
    line-height: 24px;
  }
}

@media (min-width: 1024px) {
  .hero {
    --hero-height: 600px;
    --title-width: 440px;
    --title-height: 62px;
    --description-width: 595px;
    --description-height: 70px;
    --subscription-width: 256px;
    --subscription-height: 45px;
    --subscription-gap: 28px;
    --cta-gap: 20px;
  }

  .hero__content {
    padding-block-start: 140px;
    padding-inline: 40px;
  }

  .hero__description {
    font-size: 20px;
    line-height: 35px;
  }

  .hero__cta {
    width: 240px;
    height: 56px;
    font-size: 16px;
  }

  .hero__cta-top {
    height: 52px;
  }
}

@media (min-width: 1600px) {
  .hero {
    --hero-height: 776px;
    --title-width: 532px;
    --title-height: 75px;
    --description-gap: 12px;
    --description-width: 680px;
    --description-height: 82px;
    --subscription-width: 268px;
    --subscription-height: 47px;
    --subscription-gap: 36px;
  }

  .hero__content {
    padding-block-start: 160px;
    padding-inline: 60px;
  }

  .hero__description {
    font-size: 24px;
    line-height: 41px;
  }
}

.site-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__subscription-title {
  width: var(--subscription-width);
  height: var(--subscription-height);
  margin-block-start: var(--subscription-gap);
  object-fit: contain;
  flex-shrink: 0;
}

/* CTA interactions leave the resting layer heights and outer layout intact. */
.hero__cta {
  --press-depth: 2px;
  --press-duration: 180ms;
  isolation: isolate;
  background: transparent;
  cursor: pointer;
  transition: filter 200ms ease;
}

.hero__cta {
  position: relative;
  inset: auto;
}

.hero__cta::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 100%;
  border-radius: inherit;
  background: #C62E01;
  pointer-events: none;
  z-index: -1;
  transition: height var(--press-duration) ease-out;
}

.hero__cta-top {
  transform: translateY(0);
  transition: transform var(--press-duration) ease-out;
}

.hero__cta:is(:active, .is-keyboard-pressed) {
  --press-duration: 120ms;
}

.hero__cta:is(:active, .is-keyboard-pressed)::before {
  height: calc(100% - var(--press-depth));
}

.hero__cta:is(:active, .is-keyboard-pressed) > .hero__cta-top {
  transform: translateY(var(--press-depth));
}

@media (min-width: 1024px) {
  .hero__cta {
    --press-depth: 4px;
  }
}

.hero__cta:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .hero__cta:hover {
    filter: brightness(0.8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cta,
  .hero__cta::before,
  .hero__cta > .hero__cta-top {
    transition: none;
  }
}

/* Section 2: educational and entertainment categories. */

.categories-section {
  --card-width: 320px;
  --card-height: 224px;
  --icon-size: 120px;
  --icon-rise: 56px;
  --cover-width: 90px;
  --cover-height: 133px;
  --cover-gap: 6px;
  --content-right: 20px;
  --content-bottom: 16px;
  --title-top: 16px;
  --title-size: 20px;
  --title-line: 35px;
  --card-radius: 16px;
  margin-block-start: clamp(40px, calc(14.285714286vw - 11.428571429px), 60px);
  padding-block-start: var(--icon-rise);
  padding-inline: 20px;
}

.categories-grid {
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(0, var(--card-width));
  justify-content: center;
  gap: 56px 28px;
}

.category-card {
  position: relative;
  box-sizing: border-box;
  height: var(--card-height);
  min-width: 0;
  border: 2px solid var(--category-border);
  border-radius: var(--card-radius);
  background: var(--category-background);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms ease;
  /* Overflow stays visible for the decorative icon. */
}

.category-card:hover {
  background-color: color-mix(in srgb, var(--category-background) 90%, black 10%);
}

.category-card:focus-visible {
  outline: 3px solid #133174;
  outline-offset: 4px;
}

.category-card__icon {
  position: absolute;
  top: calc(-1 * var(--icon-rise) - 2px);
  left: -2px;
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  pointer-events: none;
}

.category-card__title {
  position: absolute;
  top: calc(var(--title-top) - 2px);
  right: calc(var(--content-right) - 2px);
  margin: 0;
  color: var(--category-title);
  font-family: "IRANYekan", sans-serif;
  font-weight: 800;
  font-size: var(--title-size);
  line-height: var(--title-line);
  text-align: right;
}

.category-card__covers {
  position: absolute;
  right: calc(var(--content-right) - 2px);
  bottom: calc(var(--content-bottom) - 2px);
  display: grid;
  direction: rtl;
  grid-template-columns: repeat(3, minmax(0, var(--cover-width)));
  gap: var(--cover-gap);
  max-width: calc(100% - var(--content-right) * 2 + 4px);
}

.category-card__cover {
  width: var(--cover-width);
  height: var(--cover-height);
  object-fit: cover;
  border-radius: 5px;
}

.category-card--learning-language {
  --category-background: #DBF1FC;
  --category-border: #8BD6FB;
  --category-title: #005FB4;
}

.category-card--creativity-imagination {
  --category-background: #FFF5DF;
  --category-border: #FFD26E;
  --category-title: #CC941B;
}

.category-card--problem-solving {
  --category-background: #FBE3F0;
  --category-border: #FBAFD8;
  --category-title: #C0498A;
}

.category-card--emotions-friendship {
  --category-background: #FEE3D8;
  --category-border: #FFB89A;
  --category-title: #B56B4D;
}

.category-card--world-discovery {
  --category-background: #E0F9E4;
  --category-border: #75DE86;
  --category-title: #249C37;
}

.category-card--fun-music {
  --category-background: #EEE4FC;
  --category-border: #C7A4F9;
  --category-title: #6E41AC;
}

/* Two columns below tablet size, retaining 20px outer space and a 28px gutter.
   Scale the mobile design to 320px, then blend into the approved tablet sizes. */
@media (min-width: 501px) and (width < 788px) {
  .categories-section {
    --card-width: calc((100vw - 68px) / 2);
    --compact-width: min(320px, var(--card-width));
    --tablet-growth: max(0px, calc(var(--card-width) - 320px));
    --card-height: calc(var(--compact-width) * 0.7 + var(--tablet-growth) * 0.525);
    --icon-size: calc(var(--compact-width) * 0.375 + var(--tablet-growth) * 0.2);
    --icon-rise: calc(var(--compact-width) * 0.175 + var(--tablet-growth) * 0.1);
    --cover-width: calc(var(--compact-width) * 0.278125 + var(--tablet-growth) * 0.275);
    --cover-height: calc(var(--compact-width) * 0.415625 + var(--tablet-growth) * 0.35);
    --cover-gap: calc(var(--compact-width) * 0.01875 + var(--tablet-growth) * 0.05);
    --content-right: calc(var(--compact-width) * 0.0625 + var(--tablet-growth) * 0.05);
    --content-bottom: calc(var(--compact-width) * 0.05 + var(--tablet-growth) * 0.1);
    --title-top: calc(var(--compact-width) * 0.05 + var(--tablet-growth) * 0.1);
    --title-size: calc(var(--compact-width) * 0.0625);
    --title-line: calc(var(--compact-width) * 0.109375);
    margin-block-start: calc(60px + var(--tablet-growth) * 0.1);
  }

  .categories-grid {
    grid-template-columns: repeat(2, var(--card-width));
    row-gap: calc(var(--compact-width) * 0.175 + var(--tablet-growth) * 0.4);
  }
}

/* Two 360px cards + 28px gutter + 40px outer space. */
@media (min-width: 788px) {
  .categories-section {
    --card-width: 360px;
    --card-height: 245px;
    --icon-size: 128px;
    --icon-rise: 60px;
    --cover-width: 100px;
    --cover-height: 147px;
    --cover-gap: 8px;
    --content-right: 22px;
    --content-bottom: 20px;
    --title-top: 20px;
    --card-radius: 20px;
    margin-block-start: 64px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, var(--card-width));
    row-gap: 72px;
  }
}

@media (min-width: 1024px) and (width < 1176px), (min-width: 1600px) {
  .categories-section {
    --card-width: 400px;
    --card-height: 280px;
    --icon-size: 152px;
    --icon-rise: 72px;
    --cover-width: 120px;
    --cover-height: 176px;
    --cover-gap: 4px;
    --content-right: 18px;
    --title-size: 24px;
    --title-line: 41px;
    margin-block-start: 60px;
  }

  .categories-grid {
    /* 12px visible clearance + 72px icon rise prevents row overlap.
       The supplied 12px card-edge gap conflicts with that requirement. */
    row-gap: calc(12px + var(--icon-rise));
  }
}

/* Three 360px cards + two 28px gutters + 40px outer space = 1176px. */
@media (min-width: 1176px) and (width < 1600px) {
  .categories-section {
    --title-size: 24px;
    margin-block-start: 60px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, var(--card-width));
    gap: 72px 28px;
  }
}

@media (min-width: 1600px) {
  .categories-section {
    margin-block-start: 80px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, var(--card-width));
    gap: 92px 40px;
  }
}

/* Subscription CTA: normal flow preserves the following section's own spacing. */
.subscription-section {
  padding-block-start: 40px;
}

.subscription-banner {
  display: block;
  width: min(calc(57.142857143vw + 114.285714286px), calc(100% - 40px));
  margin-inline: auto;
  border-radius: 16px;
  cursor: pointer;
  transform-origin: center;
}

.subscription-banner picture,
.subscription-banner img {
  width: 100%;
  border-radius: inherit;
}

.subscription-banner picture {
  border-radius: inherit;
  overflow: hidden;
  aspect-ratio: 984 / 741;
}

.subscription-banner img {
  height: auto;
}

.subscription-banner:focus-visible {
  outline: 3px solid #005fb4;
  outline-offset: 4px;
}

@media (min-width: 640px) {
  .subscription-section { padding-block-start: 64px; }
  .subscription-banner {
    width: min(calc(80.833333333vw + 101.333333333px), calc(100% - 40px), 1280px);
    border-radius: 20px;
  }
  .subscription-banner picture { aspect-ratio: 4 / 1; }
}

@media (min-width: 1024px) {
  .subscription-section { padding-block-start: 60px; }
}

@media (min-width: 1280px) {
  .subscription-banner { width: min(calc(22.5vw + 848px), 1280px); }
}

@media (min-width: 1600px) {
  .subscription-section { padding-block-start: 80px; }
}

@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .subscription-banner { transition: transform 250ms ease-out, box-shadow 250ms ease-out; }
  .subscription-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .subscription-banner { transition: none; }
}

/* Section 3: RTL auto-placement follows the same DOM order at every size. */

.features-section {
  --section-height: 1036px;
  --heading-width: 240px;
  --heading-height: 52px;
  --heading-top: 20px;
  --grid-top: 156px;
  --feature-width: 320px;
  --feature-height: 152px;
  --feature-radius: 16px;
  --feature-icon: 120px;
  --text-top: 64px;
  --feature-title-size: 16px;
  --feature-title-line: 28px;
  --feature-description-size: 12px;
  --feature-description-line: 21px;
  position: relative;
  direction: rtl;
  height: var(--section-height);
  margin-block-start: 40px;
  background: linear-gradient(to bottom right, #C57FEE 0%, #FF5C95 50%, #FF9855 100%);
  color: #050F42;
  font-family: "IRANYekan", sans-serif;
  text-align: center;
}

.features-section__heading {
  position: absolute;
  top: var(--heading-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--heading-width);
  height: var(--heading-height);
}

.features-section__heading img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.features-section__grid {
  position: absolute;
  top: var(--grid-top);
  inset-inline: 20px;
  display: grid;
  direction: rtl;
  grid-template-columns: minmax(0, var(--feature-width));
  justify-content: center;
  gap: 84px 20px;
}

.features-section__card {
  position: relative;
  min-width: 0;
  height: var(--feature-height);
  border-radius: var(--feature-radius);
  background: #FFFFFF;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.25);
}

.features-section__icon {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--feature-icon);
  height: var(--feature-icon);
  object-fit: contain;
}

.features-section__content {
  padding: var(--text-top) 20px 0;
}

.features-section__content h3 {
  font-family: "IRANYekan", sans-serif;
  font-weight: 700;
  font-size: var(--feature-title-size);
  line-height: var(--feature-title-line);
}

.features-section__content p {
  margin-block-start: 2px;
  font-weight: 400;
  font-size: var(--feature-description-size);
  line-height: var(--feature-description-line);
}

@media (min-width: 430px) {
  .features-section {
    --section-height: 1048px;
    --heading-width: 260px;
    --heading-height: 56px;
    --heading-top: 24px;
    --grid-top: 164px;
  }
}

/* Two 360px cards, a 20px gutter, and 40px outer space. */
@media (min-width: 780px) {
  .features-section {
    --section-height: 605px;
    --heading-width: 300px;
    --heading-height: 65px;
    --heading-top: 32px;
    --grid-top: 181px;
    --feature-width: 360px;
    --feature-height: 154px;
    --feature-radius: 20px;
    --text-top: 52px;
    --feature-title-size: 20px;
    --feature-title-line: 35px;
    --feature-description-size: 14px;
    --feature-description-line: 24px;
    margin-block-start: 64px;
  }

  .features-section__grid {
    grid-template-columns: repeat(2, var(--feature-width));
  }
}

@media (min-width: 1024px) {
  .features-section {
    --section-height: 710px;
    --heading-width: 320px;
    --heading-height: 69px;
    --heading-top: 40px;
    --grid-top: 193px;
    --feature-height: 190px;
    --feature-icon: 140px;
    --text-top: 72px;
    --feature-title-size: 24px;
    --feature-title-line: 41px;
    --feature-description-size: 16px;
    --feature-description-line: 28px;
    margin-block-start: 60px;
  }
}

@media (min-width: 1280px) and (width < 1600px) {
  .features-section {
    --heading-width: 340px;
    --heading-height: 73px;
    --grid-top: calc(var(--heading-top) + var(--heading-height) + 76px);
  }

  .features-section__heading img {
    width: 340px;
    height: 73px;
    object-fit: cover;
    object-position: center 60%;
  }

  .features-section__icon {
    top: -76px;
  }
}

@media (min-width: 1600px) {
  .features-section {
    --section-height: 480px;
    --heading-width: 340px;
    --heading-height: 73px;
    --heading-top: 60px;
    --grid-top: 217px;
    margin-block-start: 80px;
  }

  .features-section__grid {
    grid-template-columns: repeat(4, var(--feature-width));
    column-gap: 32px;
  }
}
/* Section 4 only. Keep the approved preceding sections independent. */
.special-offers {
  --offers-width: 100px;
  --offers-height: 147px;
  --offers-gap: 8px;
  --offers-inset: 16px;
  --offers-count: 4;
  --offers-title-size: 10px;
  --offers-line: 17px;
  --offers-title-gap: 4px;
  direction: rtl;
  background: #fff;
  height: 241px;
  margin-block-start: 40px;
  /* At 1920px the supplied 555px reference is 8px shorter than its content.
     Visible overflow and bottom clearance protect titles and future sections. */
  overflow: visible;
}
.special-offers__heading { width: 280px; height: 44px; margin: 0 auto; max-width: 100%; }
.special-offers__heading img { width: 100%; height: 100%; object-fit: contain; }
.special-offers__carousel { position: relative; margin: 12px auto 0; }
.special-offers__viewport {
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.special-offers__viewport::-webkit-scrollbar { display: none; }
.special-offers__track { display: flex; gap: var(--offers-gap); padding-inline: var(--offers-inset); width: max-content; }
.special-offers__card { flex: 0 0 var(--offers-width); width: var(--offers-width); min-width: 0; }
.special-offers__link { display: block; border-radius: 7px; cursor: pointer; }
.special-offers__poster { width: var(--offers-width); height: var(--offers-height); border-radius: 7px; object-fit: cover; }
.special-offers__title {
  margin-top: var(--offers-title-gap);
  height: calc(2 * var(--offers-line));
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font: 400 var(--offers-title-size)/var(--offers-line) "IRANYekan", sans-serif;
  color: #050F42;
  direction: rtl;
  text-align: right;
}
.special-offers__arrow { display: none; }
.special-offers__link:focus-visible, .special-offers__viewport:focus-visible { outline: 2px solid #005fb4; outline-offset: -2px; }
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) {
  .special-offers__link { position: relative; overflow: hidden; }
  .special-offers__link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }
  .special-offers__link:hover::after { opacity: 1; }
}
@media (min-width: 430px) {
  .special-offers { --offers-width: 120px; --offers-height: 177px; --offers-gap: 12px; --offers-inset: 24px; height: 290px; }
  .special-offers__heading { width: 400px; height: 63px; }
}
@media (min-width: 640px) {
  .special-offers {
    container-type: inline-size;
    --offers-width: min(172px, calc((100vw - 96px) / 4));
    --offers-height: calc(var(--offers-width) * 253 / 172);
    --offers-gap: 16px; --offers-inset: 0px;
    --offers-title-size: 12px; --offers-line: 21px; --offers-title-gap: 8px;
    --offers-arrow: 48px; --offers-protrusion: 24px;
    height: 409px; margin-block-start: 64px;
  }
  .special-offers__heading { width: 572px; height: 90px; }
  .special-offers__carousel { width: calc(var(--offers-count) * var(--offers-width) + (var(--offers-count) - 1) * var(--offers-gap)); margin-top: 16px; }
  .special-offers__viewport { overflow-x: hidden; }
  .special-offers__arrow {
    --arrow-icon-size: calc(var(--offers-arrow) * 0.5);
    position: absolute; top: calc((var(--offers-height) - var(--offers-arrow)) / 2);
    display: grid; place-items: center; width: var(--offers-arrow); height: var(--offers-arrow);
    padding: 0; border: 0; border-radius: 50%; color: #fff;
    background: rgba(0, 0, 0, .5); backdrop-filter: blur(10px); cursor: pointer;
  }
  /* The centered row's outer margin limits protrusion to keep each circle 8px inset. */
  .special-offers__arrow--previous { right: max(calc(-1 * var(--offers-protrusion)), calc(50% - 50cqw + 8px)); }
  .special-offers__arrow--next { left: max(calc(-1 * var(--offers-protrusion)), calc(50% - 50cqw + 8px)); }
  .special-offers__arrow svg { width: var(--arrow-icon-size); height: var(--arrow-icon-size); fill: none; stroke: currentColor; stroke-width: 2; }
  .special-offers__arrow[hidden] { display: none; }
  .special-offers__arrow:focus-visible { outline: 3px solid #005fb4; outline-offset: 3px; }
}
@media (min-width: 1024px) {
  .special-offers {
    --offers-count: 6;
    --offers-width: min(183px, calc((100vw - 164px) / 6));
    --offers-height: calc(var(--offers-width) * 269 / 183);
    --offers-gap: 20px; --offers-title-size: 14px; --offers-line: 24px;
    --offers-arrow: 60px; --offers-protrusion: 32px;
    height: 452px; margin-block-start: 60px;
  }
  .special-offers__heading { width: 712px; height: 111px; }
}
@media (min-width: 1600px) {
  .special-offers {
    --offers-width: clamp(183px, calc(8.90625vw + 69px), 240px);
    --offers-height: calc(var(--offers-width) * 353 / 240);
    --offers-gap: 19.2px; --offers-title-size: 16px; --offers-line: 28px;
    --offers-arrow: 80px; --offers-protrusion: 48px;
    height: 555px; margin-block-start: 80px; margin-block-end: 8px;
  }
  .special-offers__heading { width: 804px; height: 126px; }
  .special-offers__carousel { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .special-offers__viewport { scroll-behavior: auto; }
}

/* Footer only. Minimum heights preserve all copy if font rendering needs more room. */
.site-footer {
  --footer-height: 305px;
  --footer-top: 30px;
  --footer-logo-gap: 16px;
  --footer-text-width: 320px;
  --footer-text-height: 209px;
  min-height: var(--footer-height);
  margin-block-start: 40px;
  padding-block: var(--footer-top) 23px;
  background: #F2F2F2;
  color: #1A1A1A;
  font: 400 11px/19px "IRANYekan", sans-serif;
  direction: rtl;
  text-align: center;
}
.site-footer__logo {
  width: 108px;
  height: 27px;
  margin-inline: auto;
}
.site-footer__text {
  width: var(--footer-text-width);
  max-width: calc(100% - 40px);
  min-height: var(--footer-text-height);
  margin: var(--footer-logo-gap) auto 0;
}
.site-footer__description {
  margin: 0;
  font-weight: 400;
}
.site-footer__attribution {
  /* One empty text line between the two blocks, relative to their line height. */
  margin: 1lh 0 0;
  font-family: "IRANYekan", sans-serif;
  font-weight: 700;
  direction: ltr;
}
.site-footer__attribution a {
  color: #1993FF;
  font-weight: inherit;
  text-decoration: none;
}
@media (min-width: 430px) {
  .site-footer {
    --footer-height: 251px;
    --footer-top: 22px;
    --footer-logo-gap: 8px;
    --footer-text-width: 400px;
    --footer-text-height: 171px;
  }
}
@media (min-width: 640px) {
  .site-footer {
    --footer-height: 232px;
    --footer-text-width: 500px;
    --footer-text-height: 152px;
    margin-block-start: 64px;
  }
}
@media (min-width: 1024px) {
  .site-footer {
    --footer-height: 246px;
    --footer-top: 42px;
    --footer-logo-gap: 10px;
    --footer-text-width: 820px;
    --footer-text-height: 126px;
    margin-block-start: clamp(60px, calc(3.125vw + 20px), 80px);
    padding-block-end: 41px;
    font-size: 12px;
    line-height: 21px;
  }
}

/* Cover skeleton: a calm pulse on the poster box until the image has loaded.
   Gated by .js so users without JS never see a permanent placeholder. */
.js .category-card__cover:not(.is-loaded),
.js .special-offers__poster:not(.is-loaded) {
  background-color: rgba(0, 0, 0, .07);
  animation: cover-skeleton 1.6s ease-in-out infinite;
}

.js .category-card__cover.is-fade,
.js .special-offers__poster.is-fade {
  animation: cover-fade-in 350ms ease-out;
}

@keyframes cover-skeleton {
  50% { background-color: rgba(0, 0, 0, .13); }
}

@keyframes cover-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .js .category-card__cover:not(.is-loaded),
  .js .special-offers__poster:not(.is-loaded),
  .js .category-card__cover.is-fade,
  .js .special-offers__poster.is-fade { animation: none; }
}
