:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --line: #2b2b2b;
  --green: #00d26a;
  --green-deep: #00a854;
  --gold: #f5d400;
  --white: #ffffff;
  --ink: #111111;
  --muted: #8d8d8d;
  --card-muted: #5c5c5c;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.page {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.topbar {
  padding: calc(22px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #16351f;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar--center {
  text-align: center;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(1.7rem, 7vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(0.92rem, 3.5vw, 1.02rem);
  line-height: 1.4;
}

main {
  padding: 14px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
}

.rating {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.item-light {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "place logo"
    "stars stars";
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--white);
}

.place {
  grid-area: place;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #062016;
  font-size: 0.95rem;
  font-weight: 800;
}

.logo-chip {
  grid-area: logo;
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  text-decoration: none;
}

.logo-chip img {
  width: auto;
  height: auto;
  max-width: min(100%, 148px);
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.logo-chip:hover img {
  opacity: 0.82;
}

.logo-chip:focus-visible {
  outline: 3px solid rgba(0, 210, 106, 0.55);
  outline-offset: 3px;
}

.stars {
  grid-area: stars;
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  color: #d9d9d9;
  font-size: clamp(1.05rem, 4.6vw, 1.25rem);
  letter-spacing: 0.02em;
  line-height: 1;
}

.stars .filled {
  color: var(--gold);
}

.item-dark {
  padding: 14px 12px 12px;
}

.sum {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: clamp(1.55rem, 7vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(0.86rem, 3.2vw, 0.95rem);
}

.cta {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #062016;
  font-size: 0.98rem;
  font-weight: 800;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.cta:hover {
  filter: brightness(1.06);
}

.cta:active {
  transform: translateY(1px);
}

.cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.foot {
  margin-top: 10px;
  padding: 8px 0 28px;
  border-top: 1px solid var(--line);
}

.foot-legal {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px max(16px, env(safe-area-inset-right)) 14px max(16px, env(safe-area-inset-left));
}

.age-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.foot-legal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.foot-legal p + p {
  margin-top: 6px;
}

.foot-menu {
  display: grid;
  gap: 8px;
  padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
}

.foot-menu a {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.foot-menu a span:last-child {
  color: var(--green);
  font-size: 1.35rem;
  line-height: 1;
}

.foot-menu a:focus-visible {
  outline: 3px solid rgba(0, 210, 106, 0.55);
  outline-offset: 3px;
}

.doc-page .topbar {
  border-bottom: 1px solid var(--line);
}

.doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.doc-nav a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.doc-nav a[aria-current="page"] {
  background: var(--green);
  color: #062016;
}

.doc-wrap {
  padding: 14px max(12px, env(safe-area-inset-right)) 28px max(12px, env(safe-area-inset-left));
}

.document-card {
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.document-card h2 {
  margin: 26px 0 8px;
  font-size: 1.15rem;
}

.document-card h2:first-child {
  margin-top: 0;
}

.document-card p,
.document-card li {
  color: #c8c8c8;
  font-size: 0.94rem;
  line-height: 1.55;
}

.document-card a {
  color: var(--green);
  font-weight: 700;
}

.warning-box {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(245, 212, 0, 0.35);
  border-radius: 14px;
  background: #2a2408;
}

.warning-box p {
  margin: 8px 0 0;
  color: #f3e7a6;
}

@media (min-width: 360px) {
  .topbar,
  .foot-legal {
    padding-right: 20px;
    padding-left: 20px;
  }

  .item-light,
  .item-dark {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (min-width: 390px) {
  .item-light {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "place logo stars";
    min-height: 58px;
  }

  .stars {
    justify-content: flex-end;
  }

  .cta {
    min-height: 50px;
  }
}

@media (min-width: 430px) {
  .page {
    width: min(100%, 520px);
  }

  .place {
    width: 40px;
    height: 40px;
  }

  .logo-chip,
  .logo-chip img {
    height: auto;
    max-height: 46px;
  }
}

@media (min-width: 768px) {
  body {
    padding: 28px 24px;
    background:
      radial-gradient(circle at 50% -10%, rgba(0, 210, 106, 0.12), transparent 28rem),
      var(--bg);
  }

  .page {
    width: min(100%, 680px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #101010;
  }

  .topbar {
    padding: 32px 32px 22px;
  }

  .topbar h1 {
    font-size: 2.45rem;
  }

  main {
    padding: 22px 24px 10px;
  }

  .rating {
    gap: 16px;
  }

  .item {
    border-radius: 20px;
  }

  .logo-chip img {
    max-width: min(100%, 168px);
    max-height: 46px;
  }

  .cta {
    max-width: 280px;
  }

  .foot-legal,
  .foot-menu {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (min-width: 1024px) {
  .page {
    width: min(100%, 720px);
  }
}

@media (min-width: 1280px) {
  .page {
    width: min(100%, 760px);
  }
}

@media (min-width: 1440px) {
  body {
    padding: 36px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .item {
    transition: transform 180ms ease, border-color 180ms ease;
  }

  .item:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 210, 106, 0.45);
  }

  .foot-menu a:hover {
    border-color: var(--green);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
