*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.07), transparent 18%),
    radial-gradient(circle at 15% 8%, rgba(59, 130, 246, 0.08), transparent 18%),
    linear-gradient(180deg, #070b14 0%, #0b1020 58%, #0c1222 100%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% 0%, rgba(250, 204, 21, 0.09), transparent 20%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  border: 0;
  background: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  font-size: 14px;
}

small,
.text-small,
.text-meta {
  font-size: 13px;
}

.page-title {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.section-title {
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
}

.card-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  font-family: var(--font-heading);
}

.text-soft {
  color: var(--text-soft);
}

.text-muted {
  color: var(--text-muted);
}

.container-main {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 24px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

.page-section {
  padding: 24px 0;
}

.page-section-lg {
  padding: 34px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    background var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    opacity var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  color: #171717;
  box-shadow:
    0 12px 28px rgba(250, 204, 21, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.38);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fef08a 0%, #facc15 100%);
  box-shadow:
    0 16px 30px rgba(250, 204, 21, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.46);
}

.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
}

.btn-icon {
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.input-base,
.select-base {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 0 rgba(0,0,0,0.1);
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.input-base {
  padding: 0 16px;
}

.select-base {
  padding: 0 40px 0 14px;
  appearance: none;
}

.input-base::placeholder {
  color: #8190ab;
  font-size: 13px;
}

.input-base:focus,
.select-base:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.42);
  box-shadow:
    0 0 0 4px rgba(250, 204, 21, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.search-field {
  position: relative;
}

.search-field__icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #8ea0be;
  pointer-events: none;
  font-size: 14px;
}

.search-field .input-base {
  padding-left: 42px;
}

.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  box-shadow:
    0 20px 44px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.045);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.panel:hover {
  transform: none;
}

.panel-link {
  display: block;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.panel-link:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.11);
  box-shadow:
    0 24px 50px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.glow-border::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 24%),
    radial-gradient(circle at left center, rgba(59, 130, 246, 0.08), transparent 22%);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge-green {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
}

.badge-red {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.14);
  border-color: rgba(244, 63, 94, 0.24);
}

.badge-blue {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.22);
}

.badge-yellow {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border-color: rgba(250, 204, 21, 0.22);
}

@media (max-width: 760px) {
  .container-main {
    padding-inline: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }
}

.deal-slider {
  overflow: hidden;
}

.deal-slider__track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  transition: transform .28s ease;
}

.deal-card {
  overflow: hidden;
  min-width: 0;
  min-height: 372px;
  display: flex;
  flex-direction: column;
}

.deal-card__media {
  position: relative;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,0.05), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.deal-card__image {
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.38));
  transition: transform .22s ease;
}

.panel-link.deal-card:hover .deal-card__image {
  transform: translateY(-3px) scale(1.02);
}

.deal-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 14px;
}

.deal-card__number {
  font-size: 12px;
  color: #8fa0bf;
}

.deal-card__title {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  min-height: 36px;
}

.deal-card__theme {
  margin-top: 3px;
  font-size: 13px;
  color: #9aa9c4;
  min-height: 20px;
}

.deal-card__price-row {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-card__price {
  font-size: 18px;
  font-weight: 800;
  color: #ffd84b;
}

.deal-card__old {
  font-size: 13px;
  color: #8a96ab;
  text-decoration: line-through;
}

.deal-card__meta {
  margin-top: 8px;
}

.deal-card__shop {
  font-size: 13px;
  color: #c8d2e5;
}

.deal-card__cta {
  margin-top: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.05);
  color: #f6f8fd;
  font-size: 13px;
  font-weight: 800;
  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.deal-card__cta:hover {
  background: linear-gradient(180deg, #fde047 0%, #facc15 100%);
  border-color: rgba(250, 204, 21, 0.45);
  color: #171717;
  box-shadow: 0 10px 24px rgba(250, 204, 21, 0.20);
  transform: translateY(-1px);
}