/* Страницы итогов конкурсов (offer-week / offer-month). Все классы с префиксом of-, от Bootstrap и jQuery не зависит */

.of-page {
  --of-ink: #151b3d;
  --of-text: #404e5c;
  --of-muted: #7b8696;
  --of-line: #e3e8f0;
  --of-bg: #f2f5fa;
  --of-card: #ffffff;
  --of-green: #6dc326;
  --of-green-dark: #4c9511;
  --of-green-soft: #eaf7dc;
  --of-red: #ff4b55;
  --of-navy: #151b3d;
  --of-navy-2: #232b63;
  --of-shadow: 0 4px 24px rgba(9, 51, 169, .04), 0 12px 40px rgba(29, 34, 48, .06);
  --of-radius: 24px;

  margin: 0;
  background: var(--of-bg);
  color: var(--of-text);
  font-family: 'Roboto', 'Play', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

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

.of-page h1,
.of-page h2,
.of-page h3,
.of-page p,
.of-page ul,
.of-page ol { margin: 0; padding: 0; }

.of-page ul,
.of-page ol { list-style: none; }

.of-page a { color: inherit; }

.of-page :focus-visible {
  outline: 3px solid #00b2ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.of-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Шапка ---------- */

.of-top {
  background: #fff;
  border-bottom: 1px solid var(--of-line);
}

.of-top__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.of-logo { display: block; line-height: 0; }
.of-logo img { display: block; height: 26px; width: auto; }

.of-nav {
  display: flex;
  flex: 1 1 auto;
  gap: 22px;
  order: 3;
  width: 100%;
}

.of-nav a {
  color: var(--of-muted);
  font-family: 'Play', sans-serif;
  font-size: 15px;
  text-decoration: none;
  transition: color .2s;
}

.of-nav a:hover { color: var(--of-ink); }

.of-top__cta { margin-left: auto; }

@media (min-width: 720px) {
  .of-nav { order: 0; width: auto; }
}

/* ---------- Кнопки ---------- */

.of-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--of-green);
  color: #10230a;
  font-family: 'Play', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.of-btn:hover { background: #7ed332; }
.of-btn:active { transform: translateY(1px); }

.of-btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
}

.of-btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }

.of-btn--line {
  background: #fff;
  border-color: var(--of-line);
  color: var(--of-ink);
}

.of-btn--line:hover { background: #f7f9fc; border-color: #c9d2e0; }

.of-btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

.of-btn[disabled] { opacity: .6; cursor: default; }

/* ---------- Главный блок ---------- */

.of-hero {
  position: relative;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(560px 320px at 88% -10%, rgba(109, 195, 38, .38), transparent 70%),
    radial-gradient(520px 360px at 0% 110%, rgba(0, 178, 255, .22), transparent 70%),
    linear-gradient(135deg, var(--of-navy) 0%, var(--of-navy-2) 100%);
  color: #fff;
}

.of-hero__in {
  display: grid;
  gap: 32px;
  padding: 36px 24px;
}

.of-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  font-family: 'Play', sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
}

.of-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--of-green);
  box-shadow: 0 0 0 4px rgba(109, 195, 38, .25);
}

.of-hero h1 {
  margin-top: 18px;
  font-family: 'Play', sans-serif;
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.of-hero h1 em {
  font-style: normal;
  color: var(--of-green);
}

.of-lead {
  max-width: 560px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .8);
  font-size: 18px;
  line-height: 1.55;
}

.of-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.of-side {
  display: grid;
  align-content: center;
  gap: 14px;
}

.of-prize,
.of-period {
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.of-prize { padding: 22px 24px; }

.of-label {
  color: rgba(255, 255, 255, .62);
  font-family: 'Play', sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.of-prize__value {
  margin-top: 6px;
  font-family: 'Play', sans-serif;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(85deg, #03e903 -10%, #01bfc5 60%, #00b2ff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.of-prize__note {
  margin-top: 6px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
}

.of-period { padding: 18px 24px 20px; }

.of-period__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.of-period__dates { font-family: 'Play', sans-serif; font-size: 18px; font-weight: 700; }
.of-period__left { color: var(--of-green); font-size: 15px; white-space: nowrap; }

.of-bar {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .16);
}

.of-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(85deg, #03e903, #01bfc5 70%, #00b2ff);
}

.of-period__note {
  margin-top: 10px;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

@media (min-width: 900px) {
  .of-hero__in {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    padding: 56px 52px;
  }
}

/* ---------- Условия (3 плитки) ---------- */

.of-facts {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.of-fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: 20px;
  background: var(--of-card);
  box-shadow: var(--of-shadow);
}

.of-ico {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--of-green-soft);
  color: var(--of-green-dark);
}

.of-ico svg { display: block; width: 24px; height: 24px; }

.of-fact h3 {
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: 17px;
  line-height: 1.25;
}

.of-fact p { margin-top: 4px; color: var(--of-muted); font-size: 15px; line-height: 1.45; }

@media (min-width: 760px) {
  .of-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Секции ---------- */

.of-section { margin-top: 56px; }

.of-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.of-section h2 {
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
}

.of-section__sub { color: var(--of-muted); font-size: 15px; }

/* ---------- Победители ---------- */

.of-winners {
  overflow: hidden;
  border-radius: var(--of-radius);
  background: var(--of-card);
  box-shadow: var(--of-shadow);
}

.of-winner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding: 18px 20px;
}

.of-winner + .of-winner { border-top: 1px solid var(--of-line); }

.of-avatar {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6dc326, #00b2ff);
  color: #fff;
  font-family: 'Play', sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.of-winner__name {
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.of-winner__name small {
  margin-left: 6px;
  color: var(--of-muted);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}

.of-winner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  color: var(--of-muted);
  font-size: 14px;
}

.of-chip {
  display: inline-block;
  max-width: 100%;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--of-green-soft);
  color: var(--of-green-dark);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.of-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
  color: var(--of-muted);
}

.of-empty .of-ico { width: 56px; height: 56px; border-radius: 18px; }
.of-empty strong { color: var(--of-ink); font-family: 'Play', sans-serif; font-size: 18px; }

.of-more { display: flex; justify-content: center; padding: 6px 0 22px; }
.of-more[hidden] { display: none; }


/* ---------- Шаги ---------- */

.of-steps {
  display: grid;
  gap: 14px;
  counter-reset: of-step;
}

.of-step {
  position: relative;
  padding: 24px 22px 22px;
  border-radius: 20px;
  background: var(--of-card);
  box-shadow: var(--of-shadow);
}

.of-step::before {
  counter-increment: of-step;
  content: counter(of-step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--of-navy);
  color: var(--of-green);
  font-family: 'Play', sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.of-step h3 { color: var(--of-ink); font-family: 'Play', sans-serif; font-size: 19px; line-height: 1.25; }
.of-step p { margin-top: 8px; color: var(--of-text); font-size: 15px; line-height: 1.55; }

@media (min-width: 760px) {
  .of-steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Витрина товаров ---------- */

.of-group + .of-group { margin-top: 28px; }

.of-group__title {
  margin-bottom: 14px;
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: 20px;
}

.of-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.of-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: var(--of-card);
  box-shadow: var(--of-shadow);
  color: inherit;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.of-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(9, 51, 169, .12); }

.of-card__img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #dfe6f3, #c8d2e6);
}

.of-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.of-card__sale {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--of-red);
  color: #fff;
  font-family: 'Play', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.of-card__plat {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(21, 27, 61, .78);
}

.of-card__plat img { width: 18px; height: 18px; object-fit: contain; }

.of-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }

.of-card__name {
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.of-card__lic { color: var(--of-muted); font-size: 13px; }

.of-card__price {
  margin-top: auto;
  padding-top: 8px;
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.of-card__price s { margin-left: 6px; color: #a5adbb; font-size: 14px; font-weight: 400; }

.of-catalog { display: flex; justify-content: center; margin-top: 24px; }

@media (min-width: 640px) {
  .of-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 960px) {
  .of-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Вопросы и ответы ---------- */

.of-faq {
  overflow: hidden;
  border-radius: var(--of-radius);
  background: var(--of-card);
  box-shadow: var(--of-shadow);
}

.of-faq details + details { border-top: 1px solid var(--of-line); }

.of-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  color: var(--of-ink);
  font-family: 'Play', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.of-faq summary::-webkit-details-marker { display: none; }
.of-faq summary:hover { background: #f8fafd; }

.of-faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 2px solid var(--of-muted);
  border-bottom: 2px solid var(--of-muted);
  transform: rotate(45deg);
  transition: transform .2s;
}

.of-faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }

.of-faq__body { padding: 0 24px 22px; }
.of-faq__body p { max-width: 720px; color: var(--of-text); font-size: 16px; line-height: 1.6; }
.of-faq__body p + p { margin-top: 10px; }
.of-faq__body a { color: #0a84d6; }

/* ---------- Мелочи ---------- */

.of-end { height: 64px; }

@media (max-width: 520px) {
  .of-wrap { padding: 0 14px; }
  .of-hero { margin-top: 14px; border-radius: 24px; }
  .of-hero__in { padding: 28px 18px; }
  .of-lead { font-size: 16px; }
  .of-hero__actions .of-btn { flex: 1 1 100%; }
  .of-winner { padding: 16px 14px; gap: 4px 12px; }
  .of-avatar { width: 42px; height: 42px; font-size: 18px; }
  .of-faq summary { padding: 16px 18px; font-size: 16px; }
  .of-faq__body { padding: 0 18px 18px; }
  .of-section { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .of-page * { transition: none !important; }
}
