/* ================================================================
   HOME PAGE
   ================================================================ */
:root {
  --success: #15803D;
  --warning: #A35A00;
  --danger: #D42A2A;
  --line-strong: #CBD5E1;
  --deal: #C81E1E;                 /* white text on it: 5.9:1 */
  --deal-deep: #9F1717;
  --warm: #FFF4E6;
  --ink: #0B2A55;
}
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }
a, a:hover { text-decoration: none; }
.home { padding-block: 16px 72px; display: flex; flex-direction: column; gap: 56px; }
.cur { font-size: 13px; font-weight: 400; color: var(--fg-muted); }
.btn--lg { min-height: 52px; padding-inline: 22px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--primary-soft); }
/* Store photos carry the logo watermark in the top strip: hide it where photos are used as art */
.cat__img img, .slide__art img, .blk__figs img { clip-path: inset(17% 0 0 0); }

/* ---------- Section head ---------- */
.sh { display: flex; align-items: flex-end; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sh__title { font-size: 24px; font-weight: 800; line-height: 1.5; }
.sh__sub { flex-basis: 100%; order: 3; margin-top: -6px; font-size: 15px; color: var(--fg-subtle); }
.sh__more {
  display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto;
  min-height: 40px; padding-inline: 12px 6px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--primary);
  transition: background-color .15s;
}
.sh__more:hover { background: var(--primary-soft); }
.sh__more .i { transition: transform .2s var(--ease); }
.sh__more:hover .i { transform: translateX(-3px); }

/* ---------- Product card ---------- */
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pc__media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--muted-2); border-radius: 14px; }
.pc__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s var(--ease); }
.pc__title { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.8; }
.pc__title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.8em * 2); transition: color .15s; }
.pc__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 14px; }
.pc:has(.pc__title a:focus-visible) { outline: 3px solid var(--primary); outline-offset: 6px; border-radius: 14px; }
.pc__title a:focus-visible { outline: none; }
@media (hover: hover) {
  .pc:hover .pc__media img { transform: scale(1.05); }
  .pc:hover .pc__title a { color: var(--primary); }
}
.pr { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-top: auto; padding-top: 8px; }
.pr__now { display: flex; align-items: baseline; gap: 4px; }
.pr__now strong { font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.pr__from { font-size: 13px; color: var(--fg-subtle); }
.pr__was { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--fg-subtle); }
.pr__was del { text-decoration-thickness: 1px; }

/* ---------- Horizontal rail ---------- */
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4);
  gap: 20px; list-style: none; margin: 0; padding: 4px 0 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { scroll-snap-align: start; display: flex; }
.rail__track > li > .pc { flex: 1; }
.rail__nav { display: flex; gap: 8px; }
.rail__btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  color: var(--fg); background: var(--bg); border: 1px solid var(--border);
  transition: background-color .15s, border-color .15s, opacity .15s;
}
.rail__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.rail__btn:disabled { opacity: .35; cursor: default; }

/* ================================================================
   1. Hero
   ================================================================ */
.hero { position: relative; }
.hero__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 24px;
}
.hero__track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  min-height: 400px; padding: 40px 56px 76px;
  background: var(--s-bg); color: var(--s-fg, var(--fg));
}
.slide__text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 30em; }
.slide h2 { font-size: 38px; font-weight: 800; line-height: 1.45; letter-spacing: -.3px; }
.slide p { font-size: 17px; line-height: 2; color: var(--s-muted, var(--fg-muted)); }
.slide .btn { margin-top: 8px; }
.slide__art { position: relative; height: 100%; min-height: 300px; }

.slide--heat { --s-bg: var(--warm); }
.slide--heat .blob { position: absolute; z-index: -1; inset-inline-end: 4%; top: 50%; width: 360px; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFE0B5, #FDCB8A 70%); }
.slide--heat .p1 { position: absolute; width: 300px; inset-inline-end: 8%; top: 50%; translate: 0 -50%; mix-blend-mode: multiply; rotate: -6deg; }
.slide--heat .p2 { position: absolute; width: 170px; inset-inline-end: 52%; bottom: 0; mix-blend-mode: multiply; rotate: 8deg; }
.slide--heat .btn--primary { background: #B45309; }
.slide--heat .btn--primary:hover { background: #92400E; }

.slide--size { --s-bg: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%); --s-fg: #fff; --s-muted: rgba(255, 255, 255, .85); }
.slide--size :focus-visible { outline-color: #fff; }
.slide--size .grid-bg { position: absolute; z-index: -1; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(to left, #000 20%, transparent 70%); }
.measure { position: absolute; inset-inline-end: 6%; top: 50%; translate: 0 -50%; width: min(400px, 90%); aspect-ratio: 1.15; padding: 22px 22px 40px; background: #fff; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.measure img { width: 100%; height: 100%; object-fit: contain; }
.measure__dim { position: absolute; inset-inline: 18%; bottom: 14px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--danger); white-space: nowrap; }
.measure__dim::before, .measure__dim::after { content: ""; flex: 1; border-top: 2px dashed currentColor; }

.slide--gas { --s-bg: #EAF2FB; }
.tiles3 { position: absolute; inset-inline-end: 4%; top: 50%; translate: 0 -50%; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; width: min(420px, 92%); aspect-ratio: 1.25; }
.tiles3 span { display: block; overflow: hidden; background: #fff; border-radius: 18px; box-shadow: 0 12px 30px -18px rgba(15, 23, 42, .35); }
.tiles3 span:first-child { grid-row: span 2; }
.tiles3 img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

/* controls: previous · dots · next */
.hero__ctrl { position: absolute; bottom: 18px; inset-inline-start: 56px; display: flex; align-items: center; gap: 6px; color: var(--fg); }
.hero__arrow {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--fg); box-shadow: 0 1px 3px rgba(15, 23, 42, .15);
  transition: background-color .15s, color .15s;
}
.hero__arrow:hover { background: #fff; color: var(--primary); }
.dots { display: flex; }
.dot { width: 26px; height: 40px; display: grid; place-items: center; }
.dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; opacity: .3; transition: width .25s var(--ease), opacity .25s; }
.dot[aria-current="true"]::before { width: 22px; opacity: .9; }
@media (min-width: 768px) {
  .hero[data-dark] .hero__ctrl { color: #fff; }
  .hero[data-dark] .hero__ctrl :focus-visible { outline-color: #fff; }
  .hero[data-dark] .hero__arrow { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: none; }
  .hero[data-dark] .hero__arrow:hover { background: rgba(255, 255, 255, .28); }
}

/* ================================================================
   2. Categories
   ================================================================ */
.cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.cat {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; height: 100%; min-height: 250px; padding: 20px 20px 0;
  border-radius: 20px; background: var(--c-bg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat__name { font-size: 17px; font-weight: 800; line-height: 1.6; }
.cat__sub { margin-top: 2px; font-size: 13.5px; line-height: 1.8; color: var(--fg-muted); }
.cat__img { margin: auto -8px 0; height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.cat__img img { width: 176px; height: 176px; flex-shrink: 0; margin-bottom: -8px; mix-blend-mode: multiply; transition: transform .35s var(--ease); }
.cat__go { position: absolute; top: 18px; inset-inline-end: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .8); color: var(--fg); transition: background-color .2s, color .2s; }
@media (hover: hover) {
  .cat:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35); }
  .cat:hover .cat__img img { transform: scale(1.06) rotate(-2deg); }
  .cat:hover .cat__go { background: var(--primary); color: #fff; }
}
.cat--gas { --c-bg: #FDEDEA; }
.cat--oil { --c-bg: #FFF3DF; }
.cat--sam { --c-bg: #EEF4FC; }
.cat--tool { --c-bg: #EDF4EF; }
.cat--kit { --c-bg: #F2EFFA; }

/* ================================================================
   3. Special sale
   ================================================================ */
.deal {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: stretch;
  padding: 28px; border-radius: 28px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #E23B3B 0%, var(--deal) 45%, var(--deal-deep) 100%);
}
.deal :focus-visible { outline-color: #fff; }
.deal__mark { position: absolute; z-index: -1; top: -40px; inset-inline-start: -30px; width: 280px; height: 280px; opacity: .09; color: #fff; }
.deal__mark .i { width: 100%; height: 100%; stroke-width: 1.2; }
.deal::after { content: ""; position: absolute; z-index: -1; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); pointer-events: none; }
.deal__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-block: 8px; }
.deal__seal { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.deal__seal .i { width: 32px; height: 32px; stroke-width: 2; }
.deal h2 { margin-top: 4px; font-size: 34px; font-weight: 800; line-height: 1.4; }
.cd { display: flex; align-items: center; gap: 6px; }
.cd__u { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px 4px; border-radius: 12px; background: rgba(0, 0, 0, .18); }
.cd__u b { font-size: 20px; font-weight: 800; line-height: 1.3; font-variant-numeric: tabular-nums; }
.cd__u small { font-size: 11.5px; color: rgba(255, 255, 255, .8); }
.cd__sep { font-weight: 800; opacity: .6; }
.deal__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; width: 100%; }
.deal__foot .btn { flex: 1; min-height: 48px; font-weight: 700; white-space: nowrap; color: var(--deal); }
.deal__foot .btn:hover { background: #FFF1F1; }
.deal .rail__btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.deal .rail__btn:hover:not(:disabled) { background: rgba(255, 255, 255, .22); border-color: #fff; color: #fff; }
.deal .rail__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; padding: 0; }
.dc { position: relative; display: flex; flex-direction: column; width: 100%; padding: 12px; color: var(--fg); background: #fff; border-radius: 18px; box-shadow: 0 18px 30px -22px rgba(0, 0, 0, .55); }
.dc .pc__media { border-radius: 12px; }
.dc .pc__title { margin-top: 10px; padding-inline: 4px; }
.dc .pc__title a::after { border-radius: 18px; }
.dc .pr { padding: 8px 4px 2px; align-items: stretch; }
.dc .pr__was { justify-content: space-between; }
.dc .pr__now { justify-content: flex-end; }
.dc .pr__now strong { font-size: 20px; color: var(--deal); }
.stamp {
  position: absolute; z-index: 1; top: 10px; inset-inline-start: 10px;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  font-size: 15px; font-weight: 800; color: #fff; background: var(--deal);
  box-shadow: 0 0 0 4px #fff, 0 6px 14px -4px rgba(200, 30, 30, .6);
  rotate: -10deg;
}
.save { font-size: 12.5px; font-weight: 500; color: var(--success); }

/* ================================================================
   4. Best sellers: rank badge on the photo corner, so the photo can be bigger
   ================================================================ */
.ranks-wrap { padding: 16px; border: 1px solid var(--border); border-radius: 20px; }
.ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rk {
  display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 8px; border-radius: 16px; counter-increment: rank; transition: background-color .15s;
}
.rk .pc__media { width: 124px; border-radius: 14px; }
.rk .pc__media img { scale: 1.22; } /* store photos have wide white margins */
.rk .pc__media::before {
  content: counter(rank, persian);
  position: absolute; z-index: 1; top: 6px; inset-inline-start: 6px;
  min-width: 28px; height: 28px; padding-inline: 6px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; line-height: 1; color: #fff;
  background: #64748B; border-radius: 9px; box-shadow: 0 0 0 2px #fff;
}
.rk:nth-child(-n+3) .pc__media::before { background: var(--primary); }
.rk .pc__title { margin: 0; font-size: 14.5px; }
.rk .pc__title a { min-height: 0; }
.rk .pr { align-items: flex-start; margin: 0; padding-top: 6px; }
.rk .pr__now strong { font-size: 16px; }
.rk__body { min-width: 0; display: flex; flex-direction: column; }
.rk__stock { margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--warning); }
@media (hover: hover) { .rk:hover { background: var(--muted-2); } }

/* ================================================================
   Product blocks (samovar · gas & oil · kitchen): one structure, three tones
   ================================================================ */
.blk { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.blk--warm { --b-bg: #FFF4E6; --b-ink: #92400E; --b-soft: #FDE7CC; --b-soft-h: #FBD9AE; --b-fig: #B45309; }
.blk--rose { --b-bg: #FDEFEC; --b-ink: #9F2A1B; --b-soft: #F9D9D2; --b-soft-h: #F5C6BC; --b-fig: #C2410C; }
.blk--mint { --b-bg: #EDF5EF; --b-ink: #166534; --b-soft: #D4E9DA; --b-soft-h: #C2DFCA; --b-fig: #15803D; }
.blk__intro { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: var(--b-bg); }
.blk__intro h2 { font-size: 24px; font-weight: 800; line-height: 1.5; }
.blk__intro > p { font-size: 15px; line-height: 2; color: var(--fg-muted); }
.blk__figs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.blk__figs figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; background: #fff; border-radius: 14px; }
.blk__figs svg { width: 84px; height: 60px; color: var(--b-fig); }
.blk__figs img { width: 84px; height: 84px; margin-block: -12px -2px; object-fit: contain; }
.blk__figs figcaption { font-size: 13.5px; font-weight: 700; }
.blk__cta {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  min-height: 48px; padding: 8px 14px; border-radius: 12px;
  font-size: 15px; font-weight: 700; line-height: 1.7; color: var(--b-ink); background: var(--b-soft);
  transition: background-color .15s;
}
.blk__cta:hover { background: var(--b-soft-h); }
.blk__cta .i { flex-shrink: 0; }
.blk__rail { min-width: 0; display: flex; flex-direction: column; }
/* arrows at the far right (start), "see all" at the far left (end) */
.blk__bar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
/* phone-only title (the intro panel with its own title is hidden on phones) */
.blk__mtitle { display: none; }

/* ================================================================
   Photo banners (repair · smart home · wholesale): one structure, one CTA
   ================================================================ */
.bnr {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: 300px; padding: 40px 48px;
  border-radius: 24px; color: #fff; background: var(--ink);
}
.bnr :focus-visible { outline-color: #fff; }
.bnr__img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--b-pos, 30% 50%); }
/* scrim from the text side, so white text always reads */
.bnr::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(to left, var(--b-tint) 0%, var(--b-tint) 34%, color-mix(in srgb, var(--b-tint) 55%, transparent) 62%, transparent 88%); }
.bnr--repair { --b-tint: rgba(11, 42, 85, .96); --b-pos: 20% 60%; }
.bnr--smart { --b-tint: rgba(15, 61, 62, .95); --b-pos: 20% 50%; }
.bnr--whole { --b-tint: rgba(69, 38, 10, .95); --b-pos: 50% 50%; }
.bnr__body { max-width: 34em; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bnr h2 { font-size: 30px; font-weight: 800; line-height: 1.5; }
.bnr p { font-size: 16px; line-height: 2; color: rgba(255, 255, 255, .88); }
.bnr .btn { margin-top: 8px; color: var(--ink); }
.bnr--smart .btn { color: #0F3D3E; }
.bnr--whole .btn { color: #45260A; }
.bnr .btn:hover { background: #F1F5F9; }

/* ================================================================
   Breakpoints
   ================================================================ */
@media (max-width: 1279.98px) {
  .rail__track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .deal .rail__track { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 1199.98px) {
  .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023.98px) {
  .home { gap: 44px; }
  .slide { padding: 28px 28px 76px; }
  .slide h2 { font-size: 28px; }
  .slide p { font-size: 16px; }
  .hero__ctrl { inset-inline-start: 28px; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .deal { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; }
  .deal__intro { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 0; }
  .deal__seal { width: 52px; height: 52px; border-radius: 16px; }
  .deal h2 { margin: 0; font-size: 26px; }
  .cd { margin-inline-start: auto; }
  .deal__foot { padding-top: 4px; }
  .deal__foot .rail__nav { display: none; }
  .blk { grid-template-columns: minmax(0, 1fr); }
  .blk__intro { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 24px; row-gap: 10px; }
  .blk__intro > :not(.blk__figs) { grid-column: 1; }
  .blk__intro .blk__figs { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
  .blk__cta { margin-top: 4px; justify-self: start; }
  .bnr { min-height: 260px; padding: 32px; }
  .bnr::before { background: linear-gradient(to left, var(--b-tint) 0%, var(--b-tint) 45%, color-mix(in srgb, var(--b-tint) 60%, transparent) 75%, color-mix(in srgb, var(--b-tint) 25%, transparent) 100%); }
}
@media (max-width: 767.98px) {
  .home { gap: 40px; padding-top: 8px; }
  .sh__title { font-size: 20px; }
  .sh__sub { font-size: 14px; }
  .sh__more { font-size: 14px; }
  .rail__track, .ranks { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .rail__track { grid-auto-columns: 44%; gap: 12px; }
  .rail__nav { display: none; }

  /* Hero, compact: text beside a small picture; controls sit under the slide */
  /* phone: neighbours peek in at both edges instead of arrow/dot controls */
  .hero__track { margin-inline: -16px; padding-inline: 24px; scroll-padding-inline: 24px; gap: 8px; grid-auto-columns: 100%; border-radius: 0; } /* 100% of the padded box = screen − 48px */
  .slide { scroll-snap-align: center; border-radius: 18px; }
  .slide { grid-template-columns: minmax(0, 1fr) 38%; gap: 8px; min-height: 0; padding: 18px 18px 18px 8px; }
  .slide p { display: none; }
  .slide h2 { font-size: 18px; line-height: 1.7; }
  .slide__text { gap: 10px; }
  .slide .btn { margin-top: 2px; min-height: 42px; padding-inline: 14px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
  .slide__art { min-height: 150px; height: 150px; }
  .slide--heat .blob { width: 124px; inset-inline-end: 50%; translate: -50% -50%; }
  .slide--heat .p1 { width: 120px; inset-inline-end: 50%; translate: -50% -50%; }
  .slide--heat .p2 { display: none; }
  .measure { inset-inline-end: 50%; translate: -50% -50%; width: 100%; padding: 8px 8px 22px; border-radius: 14px; }
  .measure__dim { font-size: 10.5px; bottom: 6px; inset-inline: 8%; }
  .tiles3 { inset-inline-end: 50%; translate: -50% -50%; width: 100%; gap: 6px; }
  .tiles3 span { border-radius: 10px; }
  .hero__ctrl { display: none; }

  .cats { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 40%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .cats::-webkit-scrollbar { display: none; }
  .cats > li { scroll-snap-align: start; }
  .cat { min-height: 200px; padding: 14px 14px 0; border-radius: 16px; }
  .cat__name { font-size: 15px; }
  .cat__sub, .cat__go { display: none; }
  .cat__img { height: 118px; }
  .cat__img img { width: 136px; height: 136px; }

  .deal { margin-inline: -16px; border-radius: 0; padding: 22px 16px; }
  .deal__mark { inset-inline-start: auto; inset-inline-end: -60px; top: -50px; width: 220px; height: 220px; }
  .deal__seal { width: 44px; height: 44px; border-radius: 14px; }
  .deal__seal .i { width: 24px; height: 24px; }
  .deal h2 { font-size: 23px; }
  .cd { flex-basis: 100%; margin: 0; }
  .cd__u { flex: 1; }
  .deal .rail__track { grid-auto-columns: 62%; gap: 12px; margin-inline: -16px; padding-inline: 16px; }

  .ranks-wrap { padding: 0; border: 0; }
  .ranks { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-columns: 86%; gap: 8px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .ranks::-webkit-scrollbar { display: none; }
  .rk { scroll-snap-align: start; grid-template-columns: 100px minmax(0, 1fr); border: 1px solid var(--border); }
  .rk .pc__media { width: 100px; }

  /* phone: no colored intro panel — just the title (right) and "see all" (left) above the rail */
  .blk__intro { display: none; }
  .blk__mtitle { display: block; font-size: 20px; font-weight: 800; line-height: 1.5; }
  .blk__bar { margin-bottom: 8px; }

  .bnr { margin-inline: -16px; border-radius: 0; min-height: 0; padding: 150px 16px 24px; align-items: flex-end; }
  .bnr__img { height: 190px; bottom: auto; object-position: var(--b-pos, 50% 50%); }
  .bnr::before { background: linear-gradient(to bottom, transparent 0, transparent 90px, var(--b-tint) 190px, var(--b-tint) 100%); }
  .bnr h2 { font-size: 22px; }
  .bnr p { font-size: 15px; }
  .bnr .btn { width: 100%; }

  .pc__title { font-size: 14px; }
  .pr__now strong { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__track, .rail__track { scroll-behavior: auto; }
}
