:root {
  color-scheme: dark;
  --page: #080d16;
  --panel: #121a28;
  --panel-strong: #172132;
  --panel-soft: #0d1420;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #aeb9c9;
  --blue: #1673ff;
  --blue-strong: #0f5fe2;
  --gold: #f4b942;
  --green: #30d47a;
  --red: #ff5e70;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--page);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.35), var(--page) 32rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 86px);
  pointer-events: none;
}

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

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

button {
  font: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 22, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a,
.header-cta {
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover {
  color: var(--text);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(22, 115, 255, 0.7);
  border-radius: 8px;
  background: rgba(22, 115, 255, 0.2);
  color: var(--text);
  font-weight: 700;
}

.header-cta:hover {
  background: rgba(22, 115, 255, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 13, 22, 0.95) 0%, rgba(8, 13, 22, 0.78) 42%, rgba(8, 13, 22, 0.38) 100%),
    linear-gradient(180deg, rgba(8, 13, 22, 0.06), var(--page) 98%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: brightness(0.42) saturate(1.05);
  opacity: 0.38;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 36px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  padding: 58px 0 72px;
}

.hero-copy {
  flex: 1 1 56%;
  min-width: 0;
  max-width: 650px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 3.9rem;
  line-height: 1.02;
}

h2 {
  margin: 0;
  font-size: 2.15rem;
  line-height: 1.12;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 650px;
  margin: 22px 0 0;
  color: #f2f6ff;
  font-size: 1.18rem;
}

.featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  min-width: 0;
}

.featured-actions .btn {
  flex: 1 1 100%;
  min-height: 58px;
  font-size: 1.02rem;
}

.featured-actions .btn-primary {
  box-shadow: 0 16px 42px rgba(22, 115, 255, 0.42);
}

.featured-actions .btn-gold {
  background: linear-gradient(180deg, #ffd36a, #f5b32f);
  box-shadow: 0 16px 38px rgba(244, 185, 66, 0.34);
}

.featured-logo {
  display: flex;
  justify-content: center;
  padding: 22px 0 4px;
}

.featured-logo img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  opacity: 0.95;
  filter: drop-shadow(0 16px 24px rgba(22, 115, 255, 0.24));
}

.btn,
.small-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  font-size: 0.98rem;
}

.btn:hover,
.small-btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.small-btn:focus-visible,
.top-nav a:focus-visible,
.header-cta:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(244, 185, 66, 0.6);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 32px rgba(22, 115, 255, 0.28);
}

.btn-primary:hover {
  background: var(--blue-strong);
}

.btn-secondary {
  border: 1px solid rgba(244, 185, 66, 0.48);
  background: rgba(244, 185, 66, 0.12);
  color: #ffe4a0;
}

.btn-gold {
  background: var(--gold);
  color: #10131a;
  box-shadow: 0 14px 30px rgba(244, 185, 66, 0.24);
}

.featured-code {
  flex: 0 1 420px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 33, 50, 0.94), rgba(14, 22, 34, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 26px;
}

.code-label {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid rgba(48, 212, 122, 0.35);
  border-radius: 8px;
  color: var(--green);
  background: rgba(48, 212, 122, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.code-value,
.final-code span {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed rgba(244, 185, 66, 0.8);
  border-radius: 8px;
  background: rgba(244, 185, 66, 0.1);
  color: #fff5d7;
  font-size: 2.25rem;
  font-weight: 900;
  text-align: center;
}

.featured-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.featured-grid span {
  flex: 1 1 calc(50% - 10px);
  min-width: 0;
  min-height: 48px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce6f5;
  font-weight: 700;
}

.quick-stats {
  position: relative;
  z-index: 2;
  margin-top: -18px;
  padding: 18px 0 26px;
  background: #0a111c;
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.stat-card {
  display: flex;
  flex: 1 1 220px;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.stat-number {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
}

.stat-text {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: #0b121d;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.compact-heading {
  max-width: 520px;
  margin-bottom: 0;
}

.promo-table {
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.promo-row {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.promo-row:last-child {
  border-bottom: 0;
}

.promo-row > span {
  min-width: 0;
}

.promo-row > span:nth-child(1) {
  flex: 1.05 1 0;
}

.promo-row > span:nth-child(2) {
  flex: 1.7 1 0;
}

.promo-row > span:nth-child(3) {
  flex: 0.75 1 0;
}

.promo-row > span:nth-child(4) {
  flex: 1 1 0;
}

.promo-row > span:nth-child(5) {
  flex: 1.55 1 0;
}

.promo-head {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.promo-code {
  color: #fff5d7;
  font-weight: 900;
}

.status-active {
  color: var(--green);
  font-weight: 800;
}

.row-actions {
  display: flex;
  gap: 8px;
  min-width: 0;
  justify-content: flex-end;
}

.small-btn {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.84rem;
}

.small-btn-accent {
  border-color: rgba(22, 115, 255, 0.6);
  background: rgba(22, 115, 255, 0.16);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.step-card,
.bonus-card,
.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.step-card {
  flex: 1 1 290px;
  min-width: 0;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.step-card p,
.bonus-card p,
.review-card p {
  margin-bottom: 0;
}

.bonus-layout {
  display: flex;
  gap: 42px;
  align-items: start;
  min-width: 0;
}

.bonus-grid {
  display: flex;
  flex: 1 1 620px;
  flex-wrap: wrap;
  gap: 14px;
}

.bonus-card {
  flex: 1 1 260px;
  min-width: 0;
  min-height: 170px;
}

.bonus-card h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.accent-blue {
  border-top: 3px solid var(--blue);
}

.accent-gold {
  border-top: 3px solid var(--gold);
}

.accent-green {
  border-top: 3px solid var(--green);
}

.accent-red {
  border-top: 3px solid var(--red);
}

.reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.review-card {
  flex: 1 1 290px;
  min-width: 0;
  min-height: 210px;
}

.review-top {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.review-top strong {
  font-size: 1rem;
}

.review-top span {
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(244, 185, 66, 0.12);
  color: #ffe4a0;
  font-size: 0.78rem;
  font-weight: 900;
}

.faq-layout {
  display: flex;
  gap: 40px;
  align-items: start;
  min-width: 0;
}

.faq-list {
  display: flex;
  flex: 1 1 650px;
  flex-direction: column;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
}

.final-cta {
  padding: 70px 0;
  background:
    linear-gradient(135deg, rgba(22, 115, 255, 0.16), rgba(244, 185, 66, 0.08)),
    #101827;
  border-top: 1px solid var(--line);
}

.final-inner {
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}

.final-inner p {
  max-width: 660px;
}

.final-code {
  display: flex;
  flex: 0 1 390px;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.final-code span {
  display: block;
  margin-top: 0;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #060a11;
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.footer-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.license-block {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.license-seal {
  display: inline-flex;
  flex: 0 0 auto;
}

.license-seal img {
  width: 82px;
  height: auto;
}

.license-block p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 22px;
}

.footer-legal p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(360px, calc(100% - 36px));
  padding: 16px 18px;
  border: 1px solid rgba(48, 212, 122, 0.4);
  border-radius: 8px;
  background: #0d2018;
  color: #dcffe9;
  box-shadow: var(--shadow);
  font-weight: 800;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.redirect-page {
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(22, 115, 255, 0.18), rgba(244, 185, 66, 0.12)),
    var(--page);
}

.redirect-shell {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
  box-shadow: var(--shadow);
}

.redirect-shell h1 {
  margin-top: 18px;
  font-size: 1.6rem;
}

.redirect-shell p {
  margin-bottom: 0;
}

.loader {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .site-header {
    gap: 12px;
    padding: 0 18px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .top-nav {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    flex-direction: column;
    gap: 24px;
    padding: 38px 0 44px;
  }

  .hero-copy,
  .featured-code,
  .final-code {
    width: 100%;
  }

  .featured-code {
    flex: 0 1 auto;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .bonus-layout,
  .faq-layout,
  .final-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .faq-layout,
  .final-inner {
    gap: 20px;
  }

  .faq-list,
  .final-code {
    flex: 0 1 auto;
  }

  .compact-heading {
    max-width: 760px;
    margin-bottom: 28px;
  }

  .promo-head {
    display: none;
  }

  .promo-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-height: 0;
    padding: 18px;
  }

  .promo-row > span:not(.row-actions)::before {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .promo-row > span:nth-child(1)::before {
    content: "Промокод";
  }

  .promo-row > span:nth-child(2)::before {
    content: "Бонус";
  }

  .promo-row > span:nth-child(3)::before {
    content: "Статус";
  }

  .promo-row > span:nth-child(4)::before {
    content: "Подходит";
  }

  .row-actions {
    justify-content: stretch;
    margin-top: 8px;
  }

  .small-btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .container,
  .hero-inner {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    gap: 10px;
    min-height: 60px;
    padding: 0 12px;
  }

  .brand {
    gap: 8px;
    flex: 1 1 auto;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .brand-text {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.78rem;
  }

  .header-cta {
    min-height: 36px;
    max-width: 104px;
    padding: 0 7px;
    font-size: 0.64rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(8, 13, 22, 0.92) 0%, rgba(8, 13, 22, 0.78) 48%, rgba(8, 13, 22, 0.92) 100%);
  }

  .hero-media img {
    object-position: center top;
    filter: brightness(0.35) saturate(1);
    opacity: 0.28;
  }

  .hero-inner {
    gap: 14px;
    padding: 20px 0 24px;
  }

  .eyebrow {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.24;
  }

  h2 {
    font-size: 1.62rem;
  }

  .hero-subtitle {
    margin-top: 10px;
    font-size: 0.92rem;
    line-height: 1.86;
  }

  .featured-code {
    width: 100%;
    padding: 16px;
  }

  .featured-actions {
    margin-top: 16px;
  }

  .featured-actions .btn {
    min-height: 52px;
  }

  .featured-logo {
    padding: 10px 0 0;
  }

  .featured-logo img {
    width: 58px;
    height: 58px;
  }

  .code-value,
  .final-code span {
    padding: 14px;
    font-size: 1.8rem;
  }

  .featured-grid span,
  .stat-card {
    flex-basis: 100%;
    min-height: auto;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .section {
    padding: 44px 0;
  }

  #faq.section {
    padding-bottom: 28px;
  }

  #faq .compact-heading {
    margin-bottom: 12px;
  }

  .faq-layout {
    gap: 14px;
  }

  details summary {
    padding: 14px 16px;
  }

  details p {
    padding: 0 16px 16px;
  }

  .final-cta {
    padding: 34px 0 30px;
  }

  .final-inner {
    gap: 16px;
  }

  .final-code {
    gap: 10px;
  }

  .quick-stats {
    padding: 18px 0;
  }

  .row-actions {
    flex-direction: column;
  }

  .small-btn {
    width: 100%;
  }

  .review-card {
    min-height: auto;
  }

  .review-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-top,
  .license-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 10px;
  }

  .license-seal img {
    width: 72px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
