:root {
  color-scheme: dark;
  --page: #0a0a0b;
  --ink: #f7f7f7;
  --muted: #a7a7ad;
  --line: #323236;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--page);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.site-shell {
  width: min(100%, 1160px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(30px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; }
.brand__name { font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -1px; }
.brand__descriptor { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.3; letter-spacing: 1.15px; }
.account-link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 10px 22px; border: 1px solid #3b3b40; border-radius: 24px; font-size: 14px; line-height: 1.3; }
.account-link::after { content: "↗"; margin-left: 12px; font: 20px/1 Arial, sans-serif; }
.hero { padding-top: clamp(30px, 5vh, 54px); padding-bottom: 28px; }
.system-status { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 11px; line-height: 1.3; letter-spacing: 1.3px; }
.system-status > span { width: 5px; height: 5px; background: #ccc; border-radius: 50%; }
h1 { margin: 0; font-weight: 400; }
.hero__eyebrow { display: block; margin-bottom: 14px; color: #c7c7cc; font-size: 20px; line-height: 1.4; letter-spacing: -.2px; }
.hero__title { display: block; max-width: 950px; font-size: clamp(48px, 6.1vw, 76px); font-weight: 400; line-height: 1.06; letter-spacing: -.05em; }
.hero__title > span:last-child { display: block; }
.hero__ending { display: block; margin-top: 18px; color: var(--muted); font-size: 26px; line-height: 1.35; letter-spacing: -.7px; }
.company-description { max-width: 410px; margin: 24px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.product-links { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: auto; padding-top: 22px; }
.product-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 26px 0; color: var(--ink); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; cursor: pointer; }
.product-copy { display: block; min-width: 0; }
.product-copy strong { display: block; font-size: clamp(22px, 2.25vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -.9px; }
.product-description { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-arrow { display: flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; color: #181819; background: #f2f2f2; border-radius: 50%; font: 25px/1 Arial, sans-serif; }
.product-card--sport:focus-visible, .product-card--roulette:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 15px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.site-footer a { display: inline-flex; min-height: 44px; align-items: center; }
.product-dialog { width: min(calc(100% - 36px), 420px); padding: 28px; border: 1px solid #444448; border-radius: 18px; color: var(--ink); background: #141416; }
.product-dialog::backdrop { background: #000b; }
.product-dialog form { margin: 0; }
.dialog-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -10px -10px 12px auto; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: transparent; font-size: 30px; cursor: pointer; }
.dialog-status { color: var(--muted); font-size: 12px; }
.product-dialog h2 { margin: 12px 0; font-size: clamp(21px, 6vw, 27px); font-weight: 500; letter-spacing: -.8px; }
.product-dialog > p:last-of-type { color: #c7c7cc; font-size: 15px; line-height: 1.6; }
.dialog-confirm { width: 100%; min-height: 46px; margin-top: 18px; border: 0; border-radius: 24px; color: #181819; background: #f2f2f2; cursor: pointer; }
@media (hover: hover) {
  .account-link:hover { border-color: #85858b; }
  .product-card:hover .product-description, .site-footer a:hover { color: var(--ink); }
  .product-card:hover .product-arrow { background: #ccc; }
}
@media (max-width: 679px) {
  .site-shell { padding: max(26px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); }
  .brand__name { font-size: 24px; }
  .brand__descriptor { letter-spacing: .8px; }
  .account-link { padding: 10px 15px; font-size: 13px; }
  .hero { padding-top: 34px; padding-bottom: 16px; }
  .system-status { margin-bottom: 22px; }
  .hero__eyebrow { font-size: 16px; margin-bottom: 12px; }
  .hero__title { font-size: clamp(36px, 10.4vw, 52px); line-height: 1.08; letter-spacing: -.045em; }
  .hero__title > span { display: block; }
  .hero__ending { font-size: 20px; margin-top: 17px; letter-spacing: -.6px; }
  .company-description { max-width: 325px; margin-top: 20px; font-size: 13px; }
  .product-links { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .product-card { padding: 22px 0; gap: 12px; }
  .product-card + .product-card { border-top: 0; }
  .product-copy strong { font-size: clamp(21px, 6.05vw, 28px); }
  .product-description { margin-top: 7px; font-size: 11px; }
  .product-arrow { flex-basis: 36px; height: 36px; font-size: 23px; }
  .site-footer { padding-top: 8px; }
}
@media (max-width: 359px) {
  .site-shell { padding-right: max(18px, env(safe-area-inset-right)); padding-left: max(18px, env(safe-area-inset-left)); }
  .brand__name { font-size: 22px; }
  .brand__descriptor { letter-spacing: .3px; }
  .hero { padding-top: 25px; }
  .product-card { padding: 18px 0; }
}
@media (max-height: 740px) and (max-width: 679px) {
  .hero { padding-top: 23px; padding-bottom: 10px; }
  .system-status { margin-bottom: 16px; }
  .company-description { margin-top: 16px; }
  .product-links { padding-top: 16px; }
}

/* Три продукта портала на широком экране. */
@media (min-width: 900px) { .product-links { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
