:root {
  --ink: #171214;
  --plum: #351126;
  --berry: #bc1f59;
  --berry-dark: #8d123e;
  --lime: #dfff55;
  --ivory: #f3f0eb;
  --paper: #fffdfa;
  --white: #ffffff;
  --muted: #6f686b;
  --line: #d9d3d3;
  --shadow-sm: 0 12px 34px rgba(23, 18, 20, 0.08);
  --shadow-lg: 0 28px 80px rgba(23, 18, 20, 0.15);
  --page-pad: clamp(20px, 5vw, 76px);
  --page-max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.latin {
  direction: ltr;
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0.12em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  right: 18px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.skip-link:focus {
  top: 14px;
}

.review-strip {
  min-height: 34px;
  padding: 6px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--berry);
  color: var(--white);
  font-size: 0.78rem;
  text-align: center;
}

.review-label {
  flex: 0 0 auto;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(23, 18, 20, 0.12);
  background: rgba(243, 240, 235, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, var(--page-max));
  min-height: 84px;
  margin-inline: auto;
  padding-inline: var(--page-pad);
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
}

.brand {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.brand-type strong,
.brand-type small {
  display: block;
  line-height: 1;
}

.brand-type strong {
  font-size: 1.18rem;
  font-weight: 800;
}

.brand-type small {
  margin-top: 8px;
  color: var(--berry);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

nav a {
  position: relative;
  color: #4f494b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--berry);
  transition: width 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

.saved-button {
  min-height: 46px;
  padding: 7px 9px 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.saved-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.saved-button b {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.saved-button:hover {
  transform: translateY(-1px);
}

.saved-button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.saved-button[aria-pressed="true"] svg {
  fill: var(--lime);
  stroke: var(--lime);
}

.saved-button[aria-pressed="true"] b {
  background: var(--lime);
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  width: min(100%, var(--page-max));
  min-height: 460px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  overflow: hidden;
  border-radius: 0 0 38px 38px;
  background: var(--ink);
  color: var(--white);
}

.hero-copy {
  min-width: 0;
  padding: clamp(48px, 6vw, 76px) clamp(30px, 7vw, 108px) 44px var(--page-pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 24%, rgba(188, 31, 89, 0.38), transparent 32%),
    linear-gradient(145deg, #171214 0%, #26151e 100%);
}

.kicker {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d9ced2;
  font-size: 0.82rem;
  font-weight: 600;
}

.kicker-line {
  width: 42px;
  height: 3px;
  background: var(--lime);
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.15rem, 5.5vw, 5.7rem);
  font-weight: 700;
  line-height: 1.12;
}

h1 em,
.method h2 em {
  color: var(--lime);
  font-style: normal;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 28px;
  color: #d0c7ca;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.9;
}

.hero-link {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(223, 255, 85, 0.55);
  color: var(--white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-link span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.hero-media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: #8d173f;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 18, 20, 0.02), transparent 48%, rgba(23, 18, 20, 0.26));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 48% 58%;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero:hover .hero-media img {
  transform: scale(1.025);
}

.image-tag {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  min-width: 210px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 253, 250, 0.9);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.image-tag span,
.image-tag strong {
  display: block;
}

.image-tag span {
  margin-bottom: 7px;
  color: var(--berry);
  font-size: 0.58rem;
  font-weight: 700;
}

.image-tag strong {
  font-size: 0.82rem;
}

.image-number {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 2;
  padding: 7px 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 0.63rem;
  font-weight: 800;
}

.deal-section {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: 0 var(--page-pad) clamp(76px, 8vw, 126px);
}

.discovery-panel {
  position: relative;
  z-index: 5;
  margin-top: -33px;
  margin-bottom: clamp(52px, 6vw, 76px);
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(23, 18, 20, 0.12);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.search-box {
  min-width: 0;
  height: 56px;
  padding-inline: 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: var(--berry);
  box-shadow: 0 0 0 4px rgba(188, 31, 89, 0.09);
}

.search-box svg {
  width: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.search-box input {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}

.search-box input::placeholder {
  color: #91898c;
  opacity: 1;
}

.filters {
  min-width: 0;
  display: flex;
  justify-content: flex-start;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.filter {
  min-width: 76px;
  min-height: 46px;
  flex: 1 0 auto;
  padding: 8px 14px;
  border: 1px solid transparent;
  background: var(--ivory);
  color: #5f585b;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 170ms ease, background 170ms ease, border-color 170ms ease;
}

.filter:hover,
.filter:focus-visible {
  border-color: var(--berry);
  color: var(--berry);
}

.filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.subcategory-filter {
  flex: 1 0 190px;
}

.subcategory-filter select {
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.section-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-index {
  margin-bottom: 12px;
  color: var(--berry);
  font-size: 0.68rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4vw, 4.5rem);
  font-weight: 700;
  line-height: 1.22;
}

#resultCount {
  margin: 0 0 9px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.deal-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(23, 18, 20, 0.12);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(23, 18, 20, 0.03);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: card-in 500ms both;
  animation-delay: calc(var(--order, 0) * 55ms);
}

.deal-grid.editorial-layout .deal-card:first-child,
.deal-grid.editorial-layout .deal-card:last-child {
  grid-column: span 2;
}

.deal-card:only-child {
  grid-column: 1 / -1;
}

.deal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(23, 18, 20, 0.28);
  box-shadow: var(--shadow-lg);
}

.deal-card:focus-within {
  border-color: var(--berry);
}

.deal-visual {
  position: relative;
  min-height: 248px;
  padding: 18px;
  overflow: hidden;
  isolation: isolate;
}

.deal-grid.editorial-layout .deal-card:first-child .deal-visual,
.deal-grid.editorial-layout .deal-card:last-child .deal-visual {
  min-height: 286px;
}

.product-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  display: block;
  background:
    radial-gradient(circle at 50% 44%, #ffffff 0 30%, transparent 58%),
    linear-gradient(145deg, #f9f7f3, #e8e2dc);
  color: var(--ink);
  text-decoration: none;
}

.product-preview:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: -6px;
}

.product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1), filter 220ms ease;
}

.product-image.fit-contain {
  padding: 20px 28px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-image.fit-cover {
  padding: 0;
  object-fit: cover;
  object-position: center 42%;
}

.preview-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(23, 18, 20, 0.4), transparent 42%);
  pointer-events: none;
}

.preview-label {
  position: absolute;
  right: 18px;
  bottom: 17px;
  z-index: 2;
  min-height: 48px;
  padding: 7px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 22px rgba(23, 18, 20, 0.12);
  backdrop-filter: blur(12px);
}

.preview-label small,
.preview-label strong {
  display: block;
  line-height: 1.25;
}

.preview-label small {
  margin-bottom: 3px;
  color: var(--berry);
  font-size: 0.56rem;
  font-weight: 800;
}

.preview-label strong {
  font-size: 0.72rem;
  font-weight: 700;
}

.preview-open {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(23, 18, 20, 0.88);
  color: var(--white);
  box-shadow: 0 7px 22px rgba(23, 18, 20, 0.18);
  backdrop-filter: blur(12px);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.preview-open svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deal-card:hover .image-ready .product-image {
  transform: scale(1.035);
}

.deal-card:hover .image-ready .preview-open {
  transform: translate(-2px, -2px);
  background: var(--lime);
  color: var(--ink);
}

.deal-visual.image-failed .product-preview {
  display: none;
}

.deal-visual::before,
.deal-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.deal-visual::before {
  width: 180px;
  height: 180px;
  left: -52px;
  bottom: -85px;
  border: 1px solid currentColor;
  opacity: 0.2;
}

.deal-visual::after {
  width: 85px;
  height: 85px;
  left: 72px;
  bottom: -46px;
  background: currentColor;
  opacity: 0.07;
}

.deal-card.beauty .deal-visual {
  background: linear-gradient(135deg, #c81e5a, #8e123f);
  color: var(--white);
}

.deal-card.hair .deal-visual {
  background: var(--lime);
  color: var(--ink);
}

.deal-card.care .deal-visual {
  background: linear-gradient(135deg, #5266e7, #2e3ca7);
  color: var(--white);
}

.deal-card.fashion .deal-visual {
  background: linear-gradient(135deg, #211a1d, #090708);
  color: var(--white);
}

.deal-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  min-height: 28px;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-size: 0.67rem;
  font-weight: 700;
}

.badge.alt {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
}

.hair .badge.alt {
  background: var(--ink);
  color: var(--white);
}

.save-deal {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 170ms ease, color 170ms ease, background 170ms ease;
}

.deal-visual.image-ready .badge {
  border-color: rgba(23, 18, 20, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(23, 18, 20, 0.08);
  backdrop-filter: blur(12px);
}

.deal-visual.image-ready .badge.alt {
  border-color: rgba(23, 18, 20, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.deal-visual.image-ready .save-deal {
  border-color: rgba(23, 18, 20, 0.16);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 5px 18px rgba(23, 18, 20, 0.1);
  backdrop-filter: blur(12px);
}

.deal-visual.image-ready .save-deal[aria-pressed="true"] {
  border-color: var(--berry);
  background: var(--berry);
  color: var(--white);
}

.save-deal:hover {
  transform: scale(1.06);
}

.save-deal svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.save-deal[aria-pressed="true"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--berry);
}

.hair .save-deal[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--lime);
}

.visual-copy {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 17px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.visual-copy span,
.visual-copy strong {
  display: block;
}

.visual-copy span {
  margin-bottom: 5px;
  font-size: 0.57rem;
  font-weight: 700;
  opacity: 0.72;
}

.visual-copy strong {
  font-size: clamp(1.75rem, 3vw, 3.35rem);
  font-weight: 700;
  line-height: 1;
}

.visual-index {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 10px;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  font-weight: 800;
  line-height: 0.8;
  opacity: 0.16;
  transition: opacity 180ms ease, transform 180ms ease;
}

.deal-visual.image-ready > .visual-copy,
.deal-visual.image-ready > .visual-index {
  opacity: 0;
  transform: translateY(8px);
}

.deal-content {
  min-height: 320px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.merchant {
  margin-bottom: 9px;
  color: var(--berry);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.45;
  text-transform: uppercase;
}

.deal-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  font-weight: 700;
  line-height: 1.55;
}

.deal-price {
  margin: 2px 0 16px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  border: 1px solid rgba(23, 18, 20, 0.1);
  border-right: 4px solid var(--lime);
  border-radius: 15px;
  background: linear-gradient(135deg, #f8f6f2, #ffffff);
}

.price-label {
  color: var(--berry);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.price-value {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.deal-price small {
  margin-right: auto;
  color: #827a7d;
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: left;
}

.deal-description {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.85;
}

.deal-bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.deal-bottom small {
  color: #827a7d;
  font-size: 0.68rem;
}

.deal-link {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.deal-link:hover {
  background: var(--berry);
  transform: translateX(-2px);
}

.deal-link svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.price-disclaimer {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.landed-price {
  margin: -4px 0 14px;
  padding: 9px 11px;
  background: var(--ivory);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.landed-price strong {
  color: var(--ink);
}

.load-more-wrap {
  margin-top: 34px;
  display: flex;
  justify-content: center;
}

.load-more-wrap[hidden] {
  display: none;
}

.load-more-button {
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.load-more-button:hover,
.load-more-button:focus-visible {
  background: var(--lime);
  color: var(--ink);
  transform: translateY(-2px);
}

.empty-state {
  padding: 64px 24px;
  border: 1px dashed #b9b0b3;
  border-radius: 24px;
  background: var(--paper);
  text-align: center;
}

.empty-state > span {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-size: 1.5rem;
}

.empty-state strong {
  display: block;
  font-size: 1.05rem;
}

.empty-state p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.method {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: clamp(64px, 8vw, 124px) var(--page-pad);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(44px, 9vw, 140px);
  background: var(--ink);
  color: var(--white);
}

.method .section-index {
  color: var(--lime);
}

.method h2 {
  font-size: clamp(2.6rem, 5vw, 5.5rem);
}

.method-intro > p:last-child {
  max-width: 560px;
  margin: 28px 0 0;
  color: #c9bfc2;
  font-size: 0.93rem;
  line-height: 2;
}

.criteria {
  margin: 0;
  padding: 0;
  list-style: none;
}

.criteria li {
  min-height: 132px;
  padding: 25px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  align-items: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.criteria li:first-child {
  padding-top: 6px;
}

.criteria li:last-child {
  border-bottom: 0;
}

.criteria-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 255, 85, 0.58);
  border-radius: 50%;
  color: var(--lime);
  font-size: 0.65rem;
  font-weight: 800;
}

.criteria strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.criteria p {
  margin: 5px 0 0;
  color: #bdb3b6;
  font-size: 0.85rem;
}

.partner-wrap {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: clamp(56px, 7vw, 104px) var(--page-pad);
}

.partner-panel {
  position: relative;
  min-height: 390px;
  padding: clamp(32px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: 44px;
  align-items: end;
  overflow: hidden;
  border-radius: 32px;
  background: var(--berry);
  color: var(--white);
}

.partner-panel::after {
  content: "ل";
  position: absolute;
  top: -128px;
  left: -25px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 31rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.partner-label {
  position: absolute;
  top: clamp(30px, 5vw, 60px);
  right: clamp(32px, 5vw, 68px);
  margin: 0;
  font-size: 0.64rem;
  font-weight: 800;
}

.partner-copy,
.partner-action {
  position: relative;
  z-index: 1;
}

.partner-copy h2 {
  max-width: 760px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1.14;
}

.partner-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: #f3d9e3;
  font-size: 0.9rem;
}

.partner-action {
  align-self: end;
}

.partner-button {
  width: 100%;
  min-height: 58px;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.partner-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(23, 18, 20, 0.2);
}

.partner-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

#copyStatus {
  margin: 11px 8px 0;
  color: #ffeaf1;
  font-size: 0.72rem;
}

footer {
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding: 54px var(--page-pad) 30px;
  background: var(--ink);
  color: var(--white);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-top {
  padding-bottom: 38px;
}

.footer-top > a {
  color: #d5cbce;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-top > a span {
  margin-right: 5px;
  color: var(--lime);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .brand-mark {
  background: var(--lime);
  color: var(--ink);
}

.footer-brand strong,
.footer-brand small {
  display: block;
  line-height: 1;
}

.footer-brand strong {
  font-size: 1.16rem;
}

.footer-brand small {
  margin-top: 7px;
  color: #bdb3b6;
  font-size: 0.58rem;
  font-weight: 700;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #aaa0a3;
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p:first-child {
  max-width: 820px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
  }

  .hero-copy {
    padding-right: var(--page-pad);
  }

  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deal-grid.editorial-layout .deal-card:first-child,
  .deal-grid.editorial-layout .deal-card:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 74px;
  }

  nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    border-radius: 0 0 28px 28px;
  }

  .hero-copy {
    min-height: 390px;
    padding: 48px var(--page-pad) 38px;
  }

  .hero-media {
    min-height: 310px;
  }

  .discovery-panel {
    grid-template-columns: 1fr;
  }

  .method {
    grid-template-columns: 1fr;
  }

  .partner-panel {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .partner-action {
    width: min(100%, 340px);
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 18px;
  }

  .review-strip {
    min-height: 39px;
    padding-block: 6px;
    gap: 7px;
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .review-label {
    padding-inline: 7px;
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 1.32rem;
  }

  .brand-type strong {
    font-size: 1.03rem;
  }

  .brand-type small {
    display: none;
  }

  .saved-button {
    min-height: 42px;
    padding: 6px 7px 6px 11px;
  }

  .saved-label {
    display: none;
  }

  .hero-copy {
    min-height: 330px;
    padding-top: 35px;
    padding-bottom: 28px;
  }

  h1 {
    margin-bottom: 15px;
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .hero-text {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .hero-link {
    display: none;
  }

  .hero-media {
    min-height: 190px;
  }

  .hero-media img {
    object-position: 50% 54%;
  }

  .image-tag {
    display: none;
  }

  .image-number {
    top: 15px;
    left: 15px;
  }

  .deal-section {
    padding-bottom: 76px;
  }

  .discovery-panel {
    margin-top: -76px;
    margin-bottom: 48px;
    padding: 10px;
  }

  .filters {
    margin-inline: -1px;
  }

  .filter {
    min-width: 72px;
  }

  .section-heading {
    align-items: flex-start;
  }

  #resultCount {
    flex: 0 0 auto;
    margin-top: 35px;
  }

  .deal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deal-grid.editorial-layout .deal-card:first-child,
  .deal-grid.editorial-layout .deal-card:last-child {
    grid-column: span 1;
  }

  .deal-visual,
  .deal-grid.editorial-layout .deal-card:first-child .deal-visual,
  .deal-grid.editorial-layout .deal-card:last-child .deal-visual {
    min-height: 264px;
  }

  .product-image.fit-contain {
    padding: 24px 30px;
  }

  .preview-label {
    right: 14px;
    bottom: 14px;
  }

  .preview-open {
    left: 14px;
    bottom: 15px;
  }

  .deal-content {
    min-height: 304px;
  }

  .method {
    padding-block: 76px;
  }

  .criteria li {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .partner-wrap {
    padding-block: 58px;
  }

  .partner-panel {
    min-height: 480px;
    border-radius: 25px;
  }

  .partner-panel::after {
    top: -35px;
    left: -60px;
    font-size: 22rem;
  }

  .partner-label {
    top: 28px;
    right: 28px;
  }

  .partner-copy h2 {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
