:root {
  --gold: #ebb200;
  --gold-deep: #d9a200;
  --ink: #111111;
  --muted: #3d3d3d;
  --line: #f0e2b0;
  --paper: #ffffff;
  --footer: #141414;
  --dock: #000000;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 86px;
}

.logo img {
  display: block;
  height: 64px;
  width: auto;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.desktop-nav a {
  padding: 8px 10px;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a:hover { color: var(--gold-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  color: #000;
  background: var(--gold);
}

.btn-primary:hover { background: var(--gold-deep); }

.btn-secondary {
  color: #000;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 44%, #d9d9d9 100%);
  border: 1px solid #e4e4e4;
}

.btn-secondary:hover { filter: brightness(0.97); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #111;
}

.page-main { padding: 12px 0 48px; }

.article {
  width: min(920px, 100%);
  margin: 0 auto;
}

section { scroll-margin-top: 96px; }

h1 {
  margin: 8px 0 16px;
  font-size: 2.4rem;
  line-height: 1.15;
}

h2 {
  margin: 1.6em 0 0.45em;
  font-size: 1.65rem;
  line-height: 1.25;
}

h3 {
  margin: 1.3em 0 0.4em;
  font-size: 1.2rem;
}

p { margin: 0.75em 0; }

.custom-banner {
  position: relative;
  min-height: 320px;
  margin: 0 0 22px;
  overflow: hidden;
  border-radius: 8px;
}

.custom-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-banner__content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: max-content;
  max-width: 92%;
  padding: 26px 28px;
  transform: translate(-50%, -50%);
  text-align: center;
}

.custom-banner__content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 5px;
  background: #fff;
  opacity: 0.94;
}

.banner-kicker {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.banner-offer {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.35;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

ol.steps, .rules {
  margin: 0.6em 0 1em;
  padding-left: 1.2em;
}

ol.steps li, .rules li { margin: 0.35em 0; }

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  margin: 12px 0 18px;
  border-collapse: collapse;
  border: 1px solid var(--gold);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3e3ad;
  text-align: left;
  vertical-align: top;
}

th {
  background: #fff8e4;
  font-size: 14px;
}

tr:last-child td { border-bottom: 0; }

blockquote {
  margin: 14px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #fafafa;
}

blockquote p { margin: 0; }

.fine {
  font-size: 14px;
  color: var(--muted);
}

.site-footer {
  color: #fff;
  background: var(--footer);
}

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0;
  padding: 22px 16px;
  list-style: none;
  background: #1e1f21;
}

.footer-menu a {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-menu a:hover { color: var(--gold); }

.footer-base {
  padding: 18px 16px 28px;
  text-align: center;
}

.age {
  display: block;
  width: 72px;
  height: auto;
  margin: 0 auto 8px;
}

.footer-base p { margin: 6px 0; color: #ddd; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 5px;
  color: #000;
  background: var(--gold);
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.to-top.active { opacity: 1; pointer-events: auto; }

.overlay, .mobile-nav { display: none; }

.app-dock { display: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .burger { display: block; }
  .logo img { height: 52px; }
  .header-inner { min-height: 72px; }
  h1 { font-size: 1.9rem; }
  .banner-offer { font-size: 18px; }

  .overlay.is-active {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(0, 0, 0, 0.45);
  }

  .mobile-nav.is-active {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 50;
    width: min(320px, 86vw);
    height: 100%;
    padding: 18px 18px 32px;
    background: #fff;
    overflow: auto;
  }

  .mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-weight: 800;
  }

  .mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
  }

  .close-nav {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .header-actions { display: none; }
  .custom-banner { min-height: 0; }
  .custom-banner__img { position: static; display: block; height: auto; }
  .custom-banner__content {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 12px;
    transform: none;
  }
  .banner-actions .btn { flex: 1 1 100%; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(74px + env(safe-area-inset-bottom)); }

  .app-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    height: calc(58px + env(safe-area-inset-bottom));
    padding: 6px 4px env(safe-area-inset-bottom);
    background: var(--dock);
    border-top: 1px solid #2d2d2d;
  }

  .app-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    color: #b3b3b3;
    text-decoration: none;
  }

  .app-dock-item svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .app-dock-item span {
    max-width: 100%;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: center;
  }

  .app-dock-item--main { color: var(--gold); }
}
