:root {
  --bg: #1c1a1f;
  --panel: #2d2831;
  --header: #332d38;
  --text: #f5f3f7;
  --muted: #c7c1ca;
  --dim: #8d8590;
  --accent: #e2279a;
  --accent-hover: #f03da7;
  --border: #3a3340;
  --shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

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

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

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

.topbar {
  background: var(--header);
}

.topbar__inner,
.page,
.footer__inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.92;
  font-weight: 800;
}

.brand__accent {
  color: var(--accent);
}

.brand__subtitle {
  margin: 0;
  font-size: 0.95rem;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
}

.nav__link {
  font-size: 1rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  border-color: currentColor;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.page {
  flex: 1;
  padding: 44px 0 72px;
}

.stack {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.news-card {
  padding: 18px;
}

.news-card--featured {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) 1.6fr;
  gap: 28px;
  align-items: start;
}

.news-card__image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 6px;
  background: #161419;
}

.news-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-card__title {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 800;
}

.news-card__text {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.65vw, 1.55rem);
  line-height: 1.45;
}

.news-card__meta {
  margin-top: auto;
  padding-top: 18px;
  color: var(--dim);
  font-size: 0.95rem;
  text-align: right;
}

.news-card--compact .news-card__footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.news-card__link,
.product-card__link {
  color: var(--accent);
}

.hero-note {
  padding: 20px 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.5;
}

.hero-note__title {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 700;
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
}

.selector-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 36px;
  align-items: start;
}

.selector-divider {
  width: 1px;
  min-height: 110px;
  background: var(--border);
}

.selector-group,
.products-section {
  display: grid;
  gap: 24px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill {
  min-width: 132px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.pill.is-active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(226, 39, 154, 0.5);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.product-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-card__title {
  margin: 0;
  font-size: clamp(1.9rem, 2.5vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
}

.product-card__price {
  margin: 8px 0 0;
  font-size: 1.1rem;
}

.product-card__icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #221f26;
  color: #807784;
}

.product-card__features {
  margin: 0;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.45;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.rules-card {
  padding: 24px 22px;
}

.rules-list {
  margin: 0;
  padding-left: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.55;
}

.rules-list > li + li {
  margin-top: 22px;
}

.rules-list strong {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 1.18em;
}

.rules-list ol {
  margin: 0;
  padding-left: 20px;
}

.notice {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 12, 0.72);
  padding: 24px;
}

.notice.is-open {
  display: grid;
  place-items: center;
}

.notice__dialog {
  width: min(100%, 520px);
  padding: 24px;
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.notice__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.notice__text {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.notice__actions {
  display: flex;
  justify-content: flex-end;
}

.footer {
  background: var(--header);
}

.footer__inner {
  min-height: 90px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  color: var(--muted);
}

.footer__inner p {
  margin: 0;
}

.footer__contact {
  text-align: right;
  color: var(--text);
  font-weight: 700;
}

.footer__contact p + p {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .topbar__inner {
    flex-direction: column;
    align-items: start;
    padding: 18px 0;
  }

  .nav-wrap {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
  }

  .news-card--featured,
  .selector-grid,
  .product-grid,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .selector-divider {
    display: none;
  }

  .footer__contact {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 28px 0 56px;
  }

  .topbar__inner,
  .page,
  .footer__inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .news-card,
  .rules-card {
    padding: 16px;
  }

  .news-card--compact .news-card__footer {
    flex-direction: column;
    align-items: start;
  }

  .hero-note {
    padding: 18px;
  }

  .pill {
    min-width: 116px;
    padding: 12px 18px;
  }

  .product-card__icon {
    width: 72px;
    height: 72px;
  }
}
