:root {
  color-scheme: dark;
  --ink: #f4f7ff;
  --ink-soft: #aab6ca;
  --blue: #6f9cff;
  --blue-dark: #4d7fec;
  --yellow: #ffd34d;
  --yellow-soft: #3a3216;
  --on-yellow: #171b25;
  --surface: #0b1020;
  --surface-soft: #10182b;
  --surface-card: #151f34;
  --surface-raised: #1b2740;
  --line: #2b3852;
  --green: #63d59a;
  --red: #ff8585;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 2%, rgba(60, 100, 190, .16), transparent 420px),
    var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--blue); color: #081020; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.sr-only, .select-field > span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid rgba(36, 87, 214, 0.35); outline-offset: 3px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 16, 32, 0.92); border-bottom: 1px solid rgba(54, 70, 101, 0.82);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px)); height: 74px; margin: 0 auto;
  display: flex; align-items: center; gap: 34px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 19px; white-space: nowrap; }
.brand strong { font-weight: 800; }
.brand em { color: var(--blue); font-style: normal; font-weight: 800; }
.brand-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 13px; background: var(--yellow); transform: rotate(-4deg);
  box-shadow: 0 7px 18px rgba(208, 160, 0, 0.22);
}
.brand-mark svg { width: 25px; height: 25px; stroke: var(--on-yellow); stroke-width: 1.9; stroke-linecap: round; }
nav { display: flex; gap: 28px; margin-left: auto; }
nav a { color: var(--ink-soft); text-decoration: none; font-weight: 650; font-size: 14px; }
nav a:hover { color: var(--blue); }
.freshness {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px;
  border: 1px solid #34624e; border-radius: 999px; background: rgba(30, 91, 63, .2);
  color: #83e9b4; font-size: 12px; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(99, 213, 154, .05), 0 0 24px rgba(49, 190, 117, .1);
}
.freshness::after {
  content: ""; position: absolute; z-index: -1; inset: -50% auto -50% -45%; width: 35%;
  background: linear-gradient(90deg, transparent, rgba(119, 239, 178, .18), transparent);
  transform: skewX(-18deg); animation: statusSweep 3.2s ease-in-out infinite;
}
.freshness span { width: 8px; height: 8px; border-radius: 50%; background: #49dc91; box-shadow: 0 0 0 0 rgba(73, 220, 145, .5); animation: statusPulse 2s ease-out infinite; }
.freshness.unavailable { color: var(--red); border-color: #633a45; background: rgba(110, 44, 57, .18); box-shadow: none; }
.freshness.unavailable::after { display: none; }

.hero-shell {
  width: min(1180px, calc(100% - 40px)); margin: 44px auto 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, .82fr); align-items: center; gap: 60px;
}
.hero-copy { padding: 28px 0; }
.eyebrow, .section-kicker { display: block; color: var(--blue); font-size: 12px; font-weight: 850; letter-spacing: .13em; }
.hero-copy h1 { margin: 16px 0 20px; font-size: clamp(42px, 5vw, 68px); line-height: .99; letter-spacing: -.055em; }
.hero-copy mark {
  color: transparent; padding: 0; background: linear-gradient(100deg, #6f9cff, #9abaff);
  -webkit-background-clip: text; background-clip: text;
}
.hero-copy > p { color: var(--ink-soft); max-width: 570px; font-size: 18px; line-height: 1.65; margin: 0 0 28px; }
.primary-action, .spotlight-button, .offer-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--blue); color: white; border-radius: 11px; text-decoration: none; font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.primary-action { min-height: 50px; padding: 0 20px; box-shadow: 0 10px 26px rgba(36, 87, 214, .25); }
.primary-action:hover, .spotlight-button:hover, .offer-button:hover { background: var(--blue-dark); transform: translateY(-2px); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 28px; color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.hero-trust span::first-letter { color: var(--green); }

.spotlight {
  min-height: 530px; overflow: hidden; border: 1px solid #334260; border-radius: 28px; background: var(--surface-card);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .42); transform: rotate(1.2deg);
}
.spotlight-media { height: 275px; position: relative; background: radial-gradient(circle, #2b3851, #11192b 72%); overflow: hidden; }
.spotlight-image, .spotlight-image img { width: 100%; height: 100%; }
.spotlight-image img { object-fit: contain; padding: 22px; filter: brightness(.9) contrast(.96); }
.spotlight-label { position: absolute; left: 17px; top: 17px; padding: 8px 11px; border-radius: 8px; background: #080d18; color: white; border: 1px solid #334260; font-size: 10px; font-weight: 850; letter-spacing: .09em; }
.full-badge { background: var(--blue); color: white; padding: 6px 8px; border-radius: 7px; font-size: 10px; font-weight: 900; letter-spacing: .04em; }
.spotlight-body { padding: 24px 27px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.card-category { color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.spotlight-body h2 { width: 100%; margin: 7px 0 13px; font-size: 20px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.old-price { color: #8b94a6; text-decoration: line-through; font-size: 13px; }
.spotlight-price { width: 100%; display: flex; align-items: center; flex-wrap: wrap; gap: 9px 13px; margin: 2px 0 15px; }
.spotlight-current-price { display: inline-flex; align-items: baseline; gap: 7px; }
.spotlight-price small { color: var(--ink-soft); }
.spotlight-price strong { color: var(--ink); font-size: 30px; letter-spacing: -.035em; }
.spotlight-discount {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 12px;
  border-radius: 9px; background: #54dc96; color: #07180f; font-size: 16px; font-weight: 950;
  letter-spacing: -.015em; white-space: nowrap; box-shadow: 0 7px 20px rgba(55, 197, 126, .2);
}
.spotlight-button { width: 100%; min-height: 45px; }
.spotlight-time { align-self: center; color: var(--ink-soft); font-size: 11px; margin-top: 10px; }
.spotlight-empty { min-height: 530px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; background: var(--surface-soft); }
.spotlight-empty > span { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--yellow-soft); font-size: 34px; margin-bottom: 20px; }
.spotlight-empty strong { font-size: 22px; }
.spotlight-empty p { color: var(--ink-soft); max-width: 280px; }

.offers-section { background: var(--surface-soft); padding: 72px max(20px, calc((100% - 1180px) / 2)) 82px; scroll-margin-top: 72px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-heading h2, .how-copy h2 { margin: 8px 0 6px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -.04em; }
.how-copy p { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.filter-panel { display: grid; grid-template-columns: minmax(280px, 1fr) repeat(2, minmax(165px, 200px)); gap: 12px; margin-bottom: 18px; }
.search-field, .select-field { position: relative; min-width: 0; }
.search-field svg { position: absolute; left: 15px; top: 50%; width: 20px; transform: translateY(-50%); stroke: #71809a; stroke-width: 1.8; stroke-linecap: round; }
.search-field input, .select-field select {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-card); color: var(--ink); outline: none;
}
.search-field input { padding: 0 16px 0 44px; }
.select-field select { padding: 0 38px 0 14px; cursor: pointer; }
.search-field input:focus, .select-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 87, 214, .1); }
.category-strip { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; margin-bottom: 28px; }
.category-title { color: #c7d2e5; font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.category-nav { width: 100%; max-width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.category-viewport { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
.category-viewport::before, .category-viewport::after {
  content: ""; position: absolute; z-index: 2; top: 0; bottom: 10px; width: 34px; pointer-events: none; opacity: 1; transition: opacity .18s ease;
}
.category-viewport::before { left: 0; background: linear-gradient(90deg, var(--surface-soft), transparent); }
.category-viewport::after { right: 0; background: linear-gradient(270deg, var(--surface-soft), transparent); }
.category-nav.at-start .category-viewport::before, .category-nav.at-end .category-viewport::after { opacity: 0; }
.category-rail {
  width: 100%; max-width: 100%; display: flex; gap: 9px; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain;
  padding: 2px 3px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #52688f #182238;
}
.category-rail::-webkit-scrollbar { height: 7px; }
.category-rail::-webkit-scrollbar-track { background: #182238; border-radius: 999px; }
.category-rail::-webkit-scrollbar-thumb { background: #52688f; border-radius: 999px; }
.category-chip {
  flex: 0 0 auto; min-height: 38px; padding: 0 16px; scroll-snap-align: start;
  border: 1px solid #344461; border-radius: 999px; background: #151f34; color: #b7c3d8;
  font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
.category-chip:hover { color: var(--ink); border-color: #6079a3; transform: translateY(-1px); }
.category-chip.active { border-color: var(--blue); background: var(--blue); color: #07101f; box-shadow: 0 7px 18px rgba(78, 127, 236, .2); }
.category-arrow {
  width: 42px; height: 42px; border: 1px solid #3a4c6d; border-radius: 50%; background: #19243a; color: var(--ink);
  position: relative; z-index: 3; display: grid; place-items: center; cursor: pointer; transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.category-arrow span { font-size: 27px; line-height: 1; transform: translateY(-1px); }
.category-arrow:hover:not(:disabled) { border-color: var(--blue); background: #223252; }
.category-arrow:disabled { opacity: .28; cursor: default; }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.offer-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #2c3a55; border-radius: 15px; background: #151f34; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.offer-card:not(.skeleton-card):hover { transform: translateY(-4px); border-color: #50668c; box-shadow: 0 20px 42px rgba(0, 0, 0, .34); }
.card-media { position: relative; height: 225px; background: #eef0f3; border-bottom: 1px solid #d9dde4; overflow: hidden; }
.card-image, .card-image img { width: 100%; height: 100%; }
.card-image img { object-fit: contain; padding: 20px; transition: transform .28s ease; }
.offer-card:hover .card-image img { transform: scale(1.025); }
.image-placeholder { display: grid; place-items: center; background: linear-gradient(145deg, #e9ebef, #d9dde4); color: #778196; }
.image-placeholder span { font-size: 34px; filter: grayscale(1); opacity: .65; }
.image-fallback { display: none; position: absolute; inset: 0; }
.image-wrap.failed img { display: none; }
.image-wrap.failed .image-fallback { display: grid; }
.card-body { padding: 17px 17px 16px; display: flex; flex: 1; flex-direction: column; }
.card-body .card-category { display: block; min-height: 15px; margin-bottom: 6px; color: #8faef3; }
.card-category-empty { visibility: hidden; }
.card-body h3 { height: 63px; margin: 0 0 14px; color: #e7ecf6; font-size: 14px; font-weight: 550; line-height: 1.48; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card-purchase { display: flex; flex-direction: column; margin-top: auto; }
.price-block { display: flex; flex-direction: column; min-height: 54px; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.price-row strong { color: #f7f9ff; font-size: 24px; font-weight: 550; letter-spacing: -.035em; }
.price-discount {
  display: inline-flex; align-items: center; min-height: 31px; padding: 0 9px; border-radius: 8px;
  background: #54dc96; color: #07180f; font-size: 14px; font-weight: 950; letter-spacing: -.01em; white-space: nowrap;
  box-shadow: 0 5px 16px rgba(55, 197, 126, .16);
}
.old-price.empty { text-decoration: none; }
.listing-benefits { display: flex; align-items: center; gap: 8px; min-height: 26px; margin-top: 7px; color: #79dba8; font-size: 12px; font-weight: 800; }
.listing-benefits .full-badge { padding: 5px 7px; border-radius: 5px; font-size: 10px; line-height: 1; }
.shipping-free { color: #73e6a8; white-space: nowrap; }
.listing-benefits-empty { visibility: hidden; }
.spotlight-benefits { margin: -4px 0 15px; }
.card-footer { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.published { color: #8997ae; font-size: 10px; }
.offer-button { min-height: 37px; padding: 0 12px; font-size: 12px; flex: 0 0 auto; }

.status-card { min-height: 180px; border: 1px dashed #40506c; border-radius: 18px; background: var(--surface-card); padding: 30px; display: flex; align-items: center; justify-content: center; gap: 16px; text-align: left; }
.status-card[hidden] { display: none; }
.status-card .status-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); font-size: 22px; font-weight: 900; }
.status-card strong { font-size: 17px; }
.status-card p { color: var(--ink-soft); margin: 5px 0 0; }
.status-card.error .status-icon { background: #45242c; color: var(--red); }
.status-card button { border: 0; background: var(--blue); color: #081020; border-radius: 9px; padding: 10px 14px; font-weight: 750; cursor: pointer; }

.skeleton, .skeleton-card { background: linear-gradient(100deg, #182237 30%, #25324a 50%, #182237 70%); background-size: 300% 100%; animation: shimmer 1.4s infinite; }
.spotlight-loading { min-height: 530px; }
.spotlight-image-skeleton { height: 275px; }
.skeleton-line { display: block; width: 100%; height: 15px; border-radius: 5px; margin: 13px 0; }
.skeleton-line.short { width: 35%; }
.skeleton-line.medium { width: 70%; }
.skeleton-card { height: 475px; }
@keyframes shimmer { to { background-position-x: -300%; } }
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(73, 220, 145, .52); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(73, 220, 145, 0); }
}
@keyframes statusSweep {
  0%, 42% { left: -45%; }
  75%, 100% { left: 120%; }
}

.how-it-works { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 85px 0; display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: center; scroll-margin-top: 72px; }
.how-copy h2 { max-width: 500px; }
.how-copy p { max-width: 530px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.steps li { display: flex; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: rgba(21, 31, 52, .68); padding: 17px 19px; }
.steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); color: var(--on-yellow); font-weight: 900; flex: 0 0 auto; }
.steps strong { font-size: 15px; }
.steps p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); background: #070b15; color: white; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; min-height: 150px; display: grid; grid-template-columns: .7fr 1.3fr auto; gap: 38px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 5px; }
.footer-brand strong { color: var(--yellow); font-size: 18px; }
.footer-brand span, .footer-inner > span { color: #aeb8ca; font-size: 11px; line-height: 1.6; }
.footer-contact { display: flex; gap: 34px; }
.footer-contact a { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; }
.footer-contact a:hover strong { color: var(--blue); }
.footer-contact span { color: #8290a8; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-contact strong { font-size: 13px; transition: color .18s ease; }

@media (max-width: 1020px) {
  .freshness { display: none; }
  .hero-shell { grid-template-columns: 1fr 390px; gap: 35px; }
  .hero-copy h1 { font-size: 48px; }
  .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .header-inner { width: min(100% - 28px, 1180px); }
  nav { display: none; }
  .hero-shell { width: min(100% - 28px, 600px); grid-template-columns: 1fr; margin-top: 24px; gap: 20px; }
  .hero-copy { text-align: center; padding-bottom: 5px; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; }
  .spotlight { transform: none; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .category-strip { grid-template-columns: 1fr; gap: 9px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-it-works { grid-template-columns: 1fr; gap: 35px; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; padding: 34px 0; }
  .footer-contact { flex-wrap: wrap; gap: 18px 30px; }
}
@media (max-width: 520px) {
  .header-inner { height: 66px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand { font-size: 17px; }
  .hero-shell { margin-bottom: 52px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-copy > p { font-size: 16px; }
  .hero-trust { gap: 8px 13px; }
  .spotlight, .spotlight-empty, .spotlight-loading { min-height: 500px; }
  .offers-section { padding-top: 56px; padding-bottom: 65px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .filter-panel { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .category-nav { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 6px; }
  .category-arrow { width: 36px; height: 36px; }
  .category-chip { min-height: 36px; padding: 0 14px; }
  .offer-grid { grid-template-columns: 1fr; }
  .card-media { height: 250px; }
  .status-card { flex-direction: column; text-align: center; }
  .how-it-works { padding: 65px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
