:root {
  color-scheme: dark;
  --bg: #0c0c0c;
  --surface-1: #141415;
  --surface-2: #1b1b1d;
  --border: #242426;
  --text-primary: #ededec;
  --text-secondary: #a9a9a5;
  --accent: #4f8cff;
  --radius-sm: 10px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 56px; padding: 0 14px;
  background: var(--surface-1); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; padding: 2px 8px; white-space: nowrap; }
.brand-mark { width: 22px; height: 22px; flex: none; background: url("/favicon.svg") center/contain no-repeat; }
.topnav { display: flex; align-items: center; gap: 2px; margin-right: auto; margin-left: 12px; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  flex: none; padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-weight: 500; white-space: nowrap;
}
.topnav a:hover, .topnav a:focus-visible, .topnav a[aria-current="page"] { background: var(--surface-2); color: var(--text-primary); outline: none; }
.login-link {
  display: flex; align-items: center; gap: 10px; height: 38px; padding: 8px 10px;
  border-radius: var(--radius-sm); color: var(--text-secondary); font-weight: 500;
}
.login-link:hover, .login-link:focus-visible { background: var(--surface-2); color: var(--text-primary); outline: none; }
.login-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* language */
.langbar { display: flex; justify-content: flex-end; padding: 10px 14px 0; }
.lang { display: flex; gap: 6px; }
.lang button {
  display: grid; place-items: center; width: 40px; height: 32px; padding: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--border); border-radius: 8px; opacity: .55;
  transition: opacity .15s ease, border-color .15s ease;
}
.lang button img { display: block; width: 26px; height: auto; border-radius: 3px; }
.lang button:hover { opacity: .9; }
.lang button[aria-pressed="true"] { opacity: 1; border-color: var(--text-secondary); }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* home */
.home { padding: 40px 16px 64px; text-align: center; }
.kicker { margin: 0 0 4px; color: var(--text-secondary); font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.hero { margin: 14px auto 0; max-width: 720px; font-size: 0; }
.hero img { display: block; width: 100%; height: auto; }
.tagline {
  margin: 20px auto 0; max-width: 620px;
  color: var(--text-secondary); font-size: 19px; line-height: 1.5; font-weight: 500;
}

.cta { display: grid; justify-items: center; gap: 12px; margin-top: 28px; }
.cta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; min-width: 150px; height: 48px; padding: 0 26px;
  border-radius: 12px; border: 1px solid var(--border-strong, #333336); background: var(--surface-1);
  color: var(--text-primary); font-weight: 650; font-size: 16px;
}
.btn-cta:hover { background: var(--surface-2); }
.btn-cta-main { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-cta-main:hover { background: var(--accent); filter: brightness(1.1); }
.btn-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* sections */
html { scroll-behavior: smooth; }
.block { max-width: 960px; margin: 88px auto 0; text-align: left; scroll-margin-top: 80px; }
.block h2 { margin: 0 0 18px; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.block-body { min-height: 180px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 14px; interpolate-size: allow-keywords; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; border-radius: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 10px; height: 10px; flex: none; margin-right: 4px;
  border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq-answer { padding: 0 20px 18px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; min-height: 24px; }

/* shop */
.shop { max-width: 1120px; margin: 0 auto; padding: 40px 16px 72px; }
.shop-title { margin: 0 0 24px; font-size: 34px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
.page-empty { min-height: 50vh; }
.legal { max-width: 760px; font-size: 15.5px; line-height: 1.6; }
.legal h2 { margin: 28px 0 8px; font-size: 20px; }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.text-link { color: var(--accent); text-decoration: underline; }
.notfound p { color: var(--text-secondary); font-size: 16px; margin: 0 0 22px; }
.shop-status { margin: 0 0 20px; color: var(--text-secondary); font-size: 15px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shop-group { padding: 22px; border: 2px solid #cc2834; border-radius: 20px; background: #110d0e; }
.shop-group + .shop-group { margin-top: 32px; }
.shop-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.shop-group-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; color: var(--text-primary); }
.shop-group-count {
  min-width: 30px; height: 30px; padding: 0 9px; display: inline-grid; place-items: center;
  border-radius: 15px; background: #cc2834; color: #fff; font-weight: 700; font-size: 15px;
}
.shop-group .pass { background: var(--surface-1); }
.pass { display: flex; flex-direction: column; background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.pass-wait { min-height: 460px; }
.pass-pic { aspect-ratio: 1; background: var(--surface-2); display: grid; place-items: center; }
.pass-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pass-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px; }
.pass-name { margin: 0; font-size: 19px; line-height: 1.25; font-weight: 700; }
.pass-desc { margin: 0; color: var(--text-secondary); font-size: 14.5px; line-height: 1.5; }
.pass-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.pass-price { font-size: 17px; font-weight: 700; }
.btn-buy {
  display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 22px;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 650; font-size: 15px;
}
.btn-buy:hover { filter: brightness(1.1); }
.btn-buy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .shop { padding: 24px 12px 56px; }
  .shop-title { font-size: 26px; }
  .shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .shop-group { padding: 14px; border-radius: 16px; }
  .shop-group-title { font-size: 21px; }
  .pass-wait { min-height: 380px; }
}

/* report form */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.report { max-width: 720px; display: grid; gap: 18px; padding: 24px; background: var(--surface-1); border: 1px solid var(--border); border-radius: 18px; }
.report fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.report legend { width: 100%; margin-bottom: 8px; padding: 0; color: var(--text-secondary); font-size: 14px; }
.report fieldset label { position: relative; }
.report fieldset input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.report fieldset span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-strong, #333336); background: var(--surface-2); color: var(--text-secondary);
  font-weight: 600; font-size: 14.5px; cursor: pointer;
}
.report fieldset input:checked + span { background: #cc2834; border-color: #cc2834; color: #fff; }
.report fieldset input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.report-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.report .field { display: grid; gap: 6px; font-size: 14px; color: var(--text-secondary); }
.report input:not([type="radio"]), .report textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px; color: var(--text-primary);
  background: var(--bg); border: 1px solid var(--border-strong, #333336); border-radius: 10px;
}
.report textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.report input:focus, .report textarea:focus { outline: none; border-color: var(--accent); }
.field-note { font-size: 13px; color: var(--text-secondary); }
.field-note:empty { display: none; }
.field-note.ok { color: #3fb950; }
.field-note.bad { color: #ff5c63; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.btn-send {
  height: 46px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-weight: 650; font-size: 16px;
}
.btn-send:hover { filter: brightness(1.1); }
.btn-send:disabled { opacity: .6; cursor: default; }
.report-msg { margin: 0; font-size: 15px; color: #ff5c63; }
.report-msg.ok { color: #3fb950; }
@media (max-width: 560px) {
  .report { padding: 16px; }
  .report-row { grid-template-columns: 1fr; }
}

/* footer */
.footer { background: var(--surface-1); border-top: 1px solid var(--border); padding: 40px 16px 48px; }
.footer-cols { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-legal {
  max-width: 1040px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  color: var(--text-secondary); font-size: 13px; line-height: 1.5;
}
.footer-legal p { margin: 0; max-width: 720px; }
.footer-legal a { flex: none; color: var(--text-secondary); text-decoration: underline; }
.footer-legal a:hover { color: var(--text-primary); }
.footer nav { display: grid; align-content: start; gap: 10px; }
.footer h3 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.footer a { color: var(--text-secondary); font-size: 14px; width: fit-content; }
.footer a:hover, .footer a:focus-visible { color: var(--text-primary); text-decoration: underline; outline: none; }

/* loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: var(--bg);
  transition: opacity .5s ease, visibility 0s linear .5s;
  /* without JS the loader still leaves on its own */
  animation: loader-out .35s ease 6s forwards;
  perspective: 700px;
}
.loader-mark {
  width: 80px; height: 80px;
  background: url("/favicon.svg") center/contain no-repeat;
  filter: drop-shadow(0 12px 14px rgb(0 0 0 / .6));
  animation: coin 2.4s cubic-bezier(.45, 0, .25, 1) .1s both;
}
.ready .loader { opacity: 0; visibility: hidden; }
.loader-title { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.loader-text { color: var(--text-secondary); font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.dots i { font-style: normal; opacity: 0; }
.dots i:nth-child(1) { animation: dot1 1.6s steps(1) infinite; }
.dots i:nth-child(2) { animation: dot2 1.6s steps(1) infinite; }
.dots i:nth-child(3) { animation: dot3 1.6s steps(1) infinite; }
@keyframes dot1 { 0% { opacity: 0; } 25%, 100% { opacity: 1; } }
@keyframes dot2 { 0%, 25% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes dot3 { 0%, 50% { opacity: 0; } 75%, 100% { opacity: 1; } }
@keyframes coin { from { transform: rotateY(0) scale(.86); } to { transform: rotateY(720deg) scale(1); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* appear */
.loading .kicker, .loading .hero, .loading .tagline, .loading .cta { opacity: 0; animation: reveal 0s linear 6s forwards; }
@keyframes reveal { to { opacity: 1; } }
.ready .kicker { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.ready .hero { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.ready .tagline { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .15s both; }
.ready .cta { animation: rise .6s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary::after, .faq details::details-content { transition: none; }
  .loader { transition: none; }
  .loader-mark { animation: none; }
  .dots i { animation: none; opacity: 1; }
  .ready .kicker, .ready .hero, .ready .tagline, .ready .cta { animation: none; }
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-legal { flex-direction: column; gap: 10px; }
}

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 14px 0; row-gap: 2px; }
  .topnav { order: 3; flex-basis: 100%; margin: 0 -14px; padding: 0 8px 6px; }
}

@media (max-width: 720px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .home { padding: 24px 12px 48px; }
  .tagline { font-size: 16px; margin-top: 14px; }
  .block { margin-top: 56px; }
  .block h2 { font-size: 26px; }
  .block-body { min-height: 140px; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
