.gd-page {
  --gd-ink: #f4f3ff;
  --gd-muted: #b4bcda;
  --gd-surface: #10182f;
  --gd-panel: #141f3b;
  --gd-line: #2b385c;
  --gd-focus: #c6b9ff;
  --gd-accent: #bdadff;
  --gd-accent-ink: #1b1239;
  --gd-saving: #a5f0ca;
  --gd-radius: 15px;
  color: var(--gd-ink);
  color-scheme: dark;
}

.gd-page > .page-head,
.gd-shell {
  width: min(100% - clamp(24px, 6vw, 80px), 1360px);
  margin-inline: auto;
}

.gd-page > .page-head {
  max-inline-size: none;
  padding: clamp(20px, 3vw, 44px) 0 clamp(13px, 2vw, 25px);
}

.gd-page > .page-head h1 {
  margin: 0 0 6px;
  color: var(--gd-ink);
  font-size: clamp(2.5rem, 5.8vw, 4.8rem);
  letter-spacing: -.015em;
  line-height: .99;
}

.gd-page > .page-head p { margin: 0; color: var(--gd-muted); }
.gd-shell { display: grid; gap: clamp(18px, 2.3vw, 32px); margin-bottom: 36px; }
.gd-shell h2, .gd-shell h3, .gd-shell p { margin: 0; overflow-wrap: anywhere; }
.gd-shell h2, .gd-shell h3 { color: var(--gd-ink); }
.gd-shell p { color: var(--gd-muted); }
.gd-shell :is(a, button, input, select):focus-visible { outline: 2px solid var(--gd-focus); outline-offset: 3px; }
.gd-shell [hidden] { display: none !important; }

.gd-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 26px;
}

.gd-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 6px 6px 16px;
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: 13px;
}
.gd-search > i { color: var(--gd-accent); }
.gd-search:focus-within { border-color: var(--gd-focus); }
.gd-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 5px 0;
  color: var(--gd-ink);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: max(1rem, 16px);
}
.gd-search input::placeholder { color: var(--gd-muted); opacity: 1; }
.gd-search input:focus-visible { outline: 0; }
.gd-market { display: grid; gap: 2px; justify-items: end; color: var(--gd-muted); font-size: .82rem; }
.gd-market > span { color: var(--gd-ink); font-weight: 650; }
.gd-market a, .gd-calendar a, .gd-notice a, .gd-official { color: var(--gd-accent); text-underline-offset: 4px; }

.gd-shell .gd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  padding: 8px 15px;
  border: 1px solid var(--gd-line);
  border-radius: 9px;
  background: var(--gd-panel);
  color: var(--gd-ink);
  font: inherit;
  font-weight: 670;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.gd-shell .gd-button:hover { border-color: var(--gd-accent); filter: brightness(1.09); }
.gd-shell .gd-button:disabled { opacity: .6; cursor: default; }
.gd-shell .gd-button--primary { color: var(--gd-accent-ink); background: var(--gd-accent); border-color: var(--gd-accent); }

.gd-front { display: grid; grid-template-columns: minmax(0, 2.14fr) minmax(250px, 1fr); align-items: start; gap: 18px; }
.gd-feature {
  position: relative;
  display: grid;
  min-height: clamp(288px, 27vw, 430px);
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background:
    radial-gradient(ellipse at 80% 18%, #51438a99, transparent 60%),
    linear-gradient(145deg, #101b3d 10%, #182448 60%, #15112e);
}
.gd-feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #081326 7%, #081326cf 33%, #08132600 82%),
    linear-gradient(0deg, #080d1ce8, #080d1c00 75%);
  pointer-events: none;
}
.gd-feature__offer {
  display: grid;
  align-items: end;
  gap: 12px;
  min-width: 0;
  width: min(25rem, 70%);
  padding: clamp(16px, 3vw, 40px);
}
.gd-feature__offer > h2 {
  font-size: clamp(1.6rem, 3.7vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -.02em;
}
.gd-feature__offer p { max-width: 29ch; font-size: clamp(.86rem, 1.4vw, 1rem); }
.gd-feature__offer .gd-label { color: var(--gd-accent); font-weight: 650; font-size: .78rem; }
.gd-feature__art {
  position: absolute;
  z-index: -1;
  inset-block: 8% 10%;
  inset-inline: 39% 3%;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 9px;
}
.gd-feature__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.gd-feature__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a142f 0%, #0a142f30 38%, transparent 67%);
}
.gd-feature__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--gd-ink);
  font-weight: 750;
}
.gd-feature__price strong { font-size: 1.4rem; }
.gd-feature__price del, .gd-cost del { color: var(--gd-muted); font-size: .78rem; font-weight: 500; }
.gd-saving {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 3px 6px;
  border: 1px solid #4b8f76;
  border-radius: 5px;
  background: #182e37;
  color: var(--gd-saving);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .008em;
  line-height: 1.1;
  white-space: nowrap;
}

.gd-calendar { min-width: 0; display: grid; gap: 13px; }
.gd-calendar__panel {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: clamp(13px, 1.8vw, 20px);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: var(--gd-surface);
}
.gd-calendar__header { display: flex; align-items: center; gap: 10px; color: var(--gd-accent); }
.gd-calendar__header h2 { font-size: 1.13rem; line-height: 1.24; letter-spacing: -.01em; }
.gd-calendar__panel > a { justify-self: start; font-size: .8rem; }
.gd-calendar__panel a > i { font-size: .66rem; margin-inline-start: 3px; }
.gd-calendar__panel [data-gd-freebies]:empty, .gd-calendar__panel [data-gd-events]:empty { display: none; }
.gd-calendar__items { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.gd-calendar__items li { display: grid; gap: 1px; min-width: 0; margin: 0; }
.gd-calendar__items li + li { padding-top: 7px; border-top: 1px solid var(--gd-line); }
.gd-calendar__items .gd-calendar__title { color: var(--gd-ink); font-size: .88rem; font-weight: 680; overflow-wrap: anywhere; }
.gd-calendar__items small { color: var(--gd-muted); font-size: .72rem; }
.gd-calendar__items .gd-calendar__title a { color: inherit; text-decoration-color: #8186ab; }
.gd-calendar__note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.gd-calendar__items .gd-claim { font-size: .74rem; }
.gd-calendar__empty { font-size: .83rem; }

.gd-bloc { scroll-margin-block-start: 7rem; min-width: 0; }
.gd-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 15px;
}
.gd-controls h2 { font-size: clamp(1.36rem, 2.8vw, 2.3rem); line-height: 1.15; letter-spacing: -.018em; }
.gd-freshness { margin-top: 5px !important; font-size: .79rem; }
.gd-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.gd-select { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--gd-muted); font-size: .77rem; }
.gd-select select {
  width: min(100%, 175px);
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid var(--gd-line);
  border-radius: 9px;
  background: var(--gd-surface);
  color: var(--gd-ink);
  font: inherit;
  font-size: .82rem;
}
.gd-tabs { display: flex; flex-wrap: wrap; column-gap: 11px; row-gap: 4px; padding: 0 0 7px; border-bottom: 1px solid var(--gd-line); }
.gd-tabs > button {
  flex: none;
  min-height: 44px;
  padding: 5px 10px;
  color: var(--gd-muted);
  border: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-size: .91rem;
  font-weight: 630;
  cursor: pointer;
}
.gd-tabs > button:hover { color: var(--gd-ink); }
.gd-tabs > button[aria-pressed="true"] { color: var(--gd-ink); border-bottom-color: var(--gd-accent); }
.gd-status { min-height: 1.2rem; padding-top: 9px; font-size: .82rem; }
.gd-status:empty { display: none; }
.gd-status .gd-button { margin-inline-start: 8px; }
.gd-shell-list { display: grid; gap: 15px; min-width: 0; padding-block: 14px 0; }
.gd-shell-list[aria-busy="true"] { opacity: .68; }
[data-gd-shelves] { min-width: 0; display: grid; gap: 30px; }
[data-gd-shelves]:empty { display: none; }
.gd-shelf { min-width: 0; }
.gd-shelf h3 { margin-bottom: 10px; font-size: 1.1rem; font-weight: 720; }
.gd-shelf__strip,
.gd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(8px, 1.35vw, 17px);
}
.gd-grid:empty { display: none; }
.gd-card { min-width: 0; }
.gd-card > a {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  background: var(--gd-surface);
  color: var(--gd-ink);
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.gd-card > a:hover { border-color: var(--gd-accent); background: var(--gd-panel); }
.gd-card__media, .gd-detail__media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 46 / 22;
  overflow: hidden;
  border: 0;
  background: linear-gradient(135deg, #223063, #171230 66%, #342765);
}
.gd-card__media img, .gd-detail__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gd-card__media .gd-saving {
  position: absolute;
  inset-block-end: 8px;
  inset-inline-start: 8px;
}
.gd-card__body {
  display: grid;
  align-content: space-between;
  gap: 9px;
  min-width: 0;
  padding: 9px clamp(8px, 1.1vw, 13px) 12px;
}
.gd-card__body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.46em;
  font-size: clamp(.83rem, 1.5vw, .98rem);
  font-weight: 680;
  line-height: 1.23;
}
.gd-card__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 3px 7px; }
.gd-card__store { color: var(--gd-muted); font-size: .72rem; overflow-wrap: anywhere; }
.gd-cost { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 5px; color: var(--gd-ink); font-size: 1.02rem; line-height: 1.1; }
.gd-pagination { display: grid; justify-items: center; margin-top: 16px; }
.gd-notice { margin-top: 12px; color: var(--gd-muted); }

.gd-dialog {
  width: min(100% - 28px, 820px);
  max-width: none;
  max-height: min(86vh, calc(100% - 28px));
  max-height: min(86svh, calc(100% - 28px));
  min-width: 0;
  margin: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: var(--gd-surface);
  color: var(--gd-ink);
  box-shadow: 0 22px 100px #030714bb;
}
.gd-dialog::backdrop { background: #020611c9; }
.gd-dialog__bar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px clamp(13px, 2.6vw, 25px);
  background: var(--gd-surface);
  border-bottom: 1px solid var(--gd-line);
}
.gd-dialog__bar h2 { font-size: clamp(1.04rem, 2.4vw, 1.6rem); line-height: 1.19; }
.gd-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gd-line);
  border-radius: 8px;
  background: var(--gd-panel);
  color: var(--gd-ink);
  cursor: pointer;
}
.gd-close:hover { border-color: var(--gd-accent); }
.gd-dialog__body { display: grid; min-width: 0; gap: 15px; padding: clamp(13px, 2.6vw, 25px); }
.gd-detail__intro { display: grid; grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr); align-items: start; gap: 16px; }
.gd-detail__intro:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
.gd-detail__media:not(:has(img)) { display: none; }
.gd-detail__media { width: 100%; border: 1px solid var(--gd-line); border-radius: 11px; }
.gd-detail__facts { display: grid; gap: 7px; min-width: 0; align-content: start; }
.gd-detail__facts p { color: var(--gd-muted); font-size: .88rem; }
.gd-detail__facts strong { color: var(--gd-ink); }
.gd-detail__facts a { justify-self: start; font-size: .82rem; }
.gd-detail__price { font-size: 1.4rem; line-height: 1.1; }
.gd-detail__source { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.gd-detail__source p { font-size: .77rem; }
.gd-share-field { width: 13rem; max-width: 100%; min-height: 44px; padding: 6px; font: inherit; }
.gd-offers-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--gd-line); border-radius: 10px; }
.gd-offers { width: 100%; margin: 0; border-collapse: collapse; font-size: .82rem; }
.gd-offers :is(th, td) { padding: 8px clamp(6px, 1.6vw, 12px); border-bottom: 1px solid var(--gd-line); text-align: start; }
.gd-offers thead { background: var(--gd-panel); color: var(--gd-muted); }
.gd-offers tbody > tr:last-child > td { border-bottom: 0; }
.gd-offers td:first-child { overflow-wrap: anywhere; min-width: 3.8rem; }
.gd-offers .gd-offer__price { color: var(--gd-ink); white-space: nowrap; font-weight: 700; }
.gd-offers .gd-offer__retail { color: var(--gd-muted); white-space: nowrap; }
.gd-offers .gd-button { padding-inline: 9px; font-size: .77rem; }
.gd-offers .gd-cost del { display: block; }

@media (max-width: 900px) {
  .gd-front { grid-template-columns: minmax(0, 1fr); }
  .gd-feature { min-height: 305px; }
  .gd-calendar { grid-template: auto / repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 640px) {
  .gd-page > .page-head { padding-block: 22px 14px; }
  .gd-shell { gap: 20px; }
  .gd-topbar { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .gd-market { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 10px; font-size: .73rem; }
  .gd-feature { min-height: 248px; }
  .gd-feature__offer { width: min(240px, 82%); gap: 8px; padding: 15px; }
  .gd-feature:has(.gd-feature__art) { min-height: 265px; }
  .gd-feature__art { inset: 0; align-content: start; border-radius: 0; }
  .gd-feature__art img { height: auto; aspect-ratio: 46 / 22; }
  .gd-feature__art::after { background: linear-gradient(0deg, #081326 28%, #08132600 78%); }
  .gd-feature:has(.gd-feature__art)::after { background: linear-gradient(90deg, #081326 0%, #08132600 86%); opacity: .42; }
  .gd-feature__offer > h2 { font-size: clamp(1.32rem, 5.7vw, 1.9rem); }
  .gd-feature__offer p { font-size: .8rem; }
  .gd-calendar__panel { gap: 8px; padding: 11px; }
  .gd-calendar__header h2 { font-size: .97rem; }
  .gd-calendar__header { gap: 6px; }
  .gd-calendar__panel a, .gd-calendar__items .gd-calendar__title { font-size: .79rem; }
  .gd-selects { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-select { gap: 4px; }
  .gd-select select { width: 100%; min-width: 0; font-size: max(.85rem, 16px); }
  .gd-tabs { column-gap: 3px; }
  .gd-tabs > button { padding-inline: 7px; font-size: .8rem; }
  .gd-shelf__strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(148px, 46%); overflow-x: auto; scrollbar-width: thin; scroll-snap-type: inline mandatory; padding-block-end: 8px; }
  .gd-shelf__strip > .gd-card { scroll-snap-align: start; }
  .gd-shelf__strip .gd-card > a:focus-visible { outline-offset: -3px; }
  .gd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gd-dialog { width: calc(100% - 16px); max-height: calc(100% - 20px); }
  .gd-detail__intro { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .gd-detail__media { max-height: 180px; }
  .gd-detail__source { grid-template-columns: minmax(0, 1fr); }
  .gd-offers :is(th, td) { padding-inline: 6px; }
  .gd-offers .gd-offer__retail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gd-shell .gd-button, .gd-card > a { transition: none; }
}
