/* Topspil-DK — токены из макета Claude Design */

@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin.woff2?v=559e8363') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Syne';
  src: url('/assets/fonts/syne-latin-ext.woff2?v=2f261df7') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin.woff2?v=260c81a4') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-ext.woff2?v=1ad231aa') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --ink: #3a3a3a;
  --ink-soft: #555555;
  --ink-mute: #6b6b6b;
  --brand: #4a1515;
  --brand-deep: #2a0808;
  --accent: #e63946;          /* фирменный акцент макета: заливки, иконки, границы */
  --accent-btn: #dd2f3c;      /* кнопки: с белым текстом даёт 4.62 против 4.17 у #e63946 */
  --accent-on-dark: #f5636e;  /* ссылки на тёмном футере: 6.06 против 4.43 */
  --border: #eae6e6;
  --m: 20px;
  --maxw: 1200px;
  --r-card: 16px;
  --r-slot: 12px;
  --r-btn: 10px;
}

* { box-sizing: border-box; }

/* полоса прокрутки зарезервирована всегда — иначе overflow:hidden у модалки сдвигал бы контент */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: 'Syne', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--brand);
  /* только overflow-wrap: word-break ломал слова, которые ещё влезали бы целиком */
  overflow-wrap: break-word;
}
h1 { font-size: clamp(20px, 6vw, 40px); line-height: 1.15; }
h2 { font-size: clamp(22px, 4vw, 30px); line-height: 1.2; }
h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; }

p { margin: 0; }
figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; overflow-wrap: break-word; word-break: break-word; }
[hidden] { display: none !important; }

button, [role="button"], .ts-nav a, .ts-btn {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ts-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--m);
}

/* ---------- Header ---------- */
.ts-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ts-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
}
.ts-logo {
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.ts-logo b { color: var(--brand); font-weight: 800; }
.ts-logo i { color: var(--accent); font-style: normal; }

.ts-burger {
  width: 40px; height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.ts-burger[aria-expanded="true"] { background: var(--brand); color: #fff; }

.ts-nav ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.ts-nav a {
  display: block;
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.ts-nav a:hover { background: var(--bg); }
.ts-nav a[aria-current="page"] { font-weight: 700; color: var(--accent); }

.ts-nav--mobile {
  /* панель поверх контента: в потоке она раздвигала страницу на свою высоту */
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 24px rgba(74, 21, 21, .12);
  animation: ts-slide-up .25s ease;
}
.ts-nav--mobile ul { flex-direction: column; gap: 6px; padding: 10px 0 18px; }

@keyframes ts-slide-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ts-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Main ---------- */
.ts-main { flex: 1 1 auto; }

/* Hero */
.ts-hero {
  padding-block: 36px;
  background:
    linear-gradient(90deg, rgba(20, 4, 4, .7), rgba(20, 4, 4, .35)),
    url('/assets/img/hero-bg.avif?v=97039efc') center / cover no-repeat;
}
.ts-hero h1 { color: #fff; margin-bottom: 12px; max-width: 820px; }
.ts-hero__lead {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  max-width: 720px;
  margin-bottom: 16px;
}
.ts-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ts-chips li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

/* Top picks */
.ts-picks { padding-block: 48px; }
.ts-picks h2 { margin-bottom: 8px; }
.ts-cards {
  display: grid;
  /* только 1 / 2 / 3 колонки: 6 карточек делятся без остатка на любом брейкпоинте */
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ts-card {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ts-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(74, 21, 21, .14); }
.ts-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.ts-card__cover {
  width: 56px; height: 56px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-slot);
}
/* эмблемы с прозрачным фоном — вписываем, а не обрезаем */
.ts-card__cover img { width: 100%; height: 100%; object-fit: contain; }
.ts-card__rating {
  padding: 4px 10px;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.ts-card__text {
  flex: 1 1 auto;
  margin-bottom: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.ts-card__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; padding: 0; list-style: none; }
.ts-card__tags li {
  padding: 2px 8px;
  background: var(--bg);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--brand);
}
.ts-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 8px;
  background: var(--accent-btn);
  border: 0;
  border-radius: var(--r-btn);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 12.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  overflow: clip;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.ts-btn:hover { background: #c9202f; box-shadow: 0 8px 18px rgba(230, 57, 70, .4); }
.ts-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.ts-btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--brand);
}
.ts-btn--ghost:hover { background: var(--bg); box-shadow: none; }
.hidlink { position: absolute; z-index: -5; }

.ts-picks__note {
  margin-top: 28px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- Inner pages ---------- */
.ts-page-head {
  padding-block: 36px;
  background:
    linear-gradient(90deg, rgba(20, 4, 4, .82), rgba(20, 4, 4, .5)),
    url('/assets/img/hero-bg.avif?v=97039efc') center / cover no-repeat;
}
.ts-page-head h1 { color: #fff; }
.ts-page-head p { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .85); max-width: 720px; }

.ts-body { padding-block: 40px 48px; }
.ts-body > .ts-container > p { margin-bottom: 20px; }
.ts-blocks { display: flex; flex-direction: column; gap: 12px; }
.ts-blocks section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 20px;
}
.ts-blocks h2 { font-size: 18px; margin-bottom: 10px; }
.ts-blocks p { margin-bottom: 10px; font-size: 14px; }
.ts-blocks p:last-child { margin-bottom: 0; }
.ts-blocks ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ts-blocks li { position: relative; padding-left: 20px; margin-bottom: 8px; }
.ts-blocks li:last-child { margin-bottom: 0; }
.ts-blocks li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 999px;
}
.ts-blocks a { color: var(--accent); }

/* Steps (how-it-works) */
.ts-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ts-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.ts-step__n {
  width: 34px; height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.ts-step h3 { font-size: 15px; font-family: 'Syne', sans-serif; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.ts-step p { font-size: 13.5px; color: var(--ink-soft); }

.ts-indep {
  margin-top: 20px;
  padding: 20px;
  background: var(--brand);
  border-radius: var(--r-card);
  color: rgba(255, 255, 255, .82);
}
.ts-indep h2 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.ts-indep p { font-size: 14px; }

/* Contacts */
.ts-contact-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.ts-contact-cards li {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.ts-contact-cards h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 6px; }
.ts-contact-cards p { font-size: 14px; }
.ts-contact-cards a { color: var(--accent); text-decoration: none; }
.ts-contact-cards a:hover { text-decoration: underline; }

.ts-form-wrap {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.ts-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ts-field > span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}
.ts-field input,
.ts-field textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.ts-field textarea { resize: none; min-height: 120px; }
.ts-field input:focus,
.ts-field textarea:focus { outline: none; border-color: var(--accent); }
.ts-field input[aria-invalid="true"],
.ts-field textarea[aria-invalid="true"] { border-color: var(--accent); background: #fff6f6; }
.ts-consent { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 12.5px; color: var(--ink-soft); }
.ts-consent input { flex: none; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }
.ts-form .ts-btn { padding: 12px; font-size: 13.5px; }

.ts-thanks {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  text-align: center;
}
.ts-thanks h2 { font-size: 18px; margin-bottom: 6px; }
.ts-thanks p { font-size: 14px; color: var(--ink-soft); }

/* Responsible play helplines */
.ts-help { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.ts-help li {
  /* карточки помощи — не список с маркерами: гасим точку от .ts-blocks li */
  padding: 16px;
  padding-left: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.ts-help li::before { content: none; }
.ts-help h3 { font-size: 15px; font-family: 'Syne', sans-serif; text-transform: none; letter-spacing: 0; margin-bottom: 4px; }
.ts-help p { font-size: 13.5px; color: var(--ink-soft); }
.ts-help a { color: var(--accent); }

/* ---------- Footer ---------- */
.ts-footer {
  background: var(--brand-deep);
  padding: 44px 0 28px;
  color: rgba(255, 255, 255, .75);
}
.ts-footer__intro { font-size: 13.5px; line-height: 1.7; margin-bottom: 24px; }
.ts-footer h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 12px;
}
.ts-footer__terms p { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.ts-footer__terms b { color: #fff; }
.ts-footer__links { font-size: 13px; margin-bottom: 18px; }
.ts-footer a { color: var(--accent-on-dark); text-decoration: none; }
.ts-footer a:hover { text-decoration: underline; }
.ts-footer__info {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  font-size: 13px;
  line-height: 1.6;
}
.ts-footer__info h3 { color: #fff; font-size: 13px; text-transform: none; letter-spacing: 0; }
.ts-footer__legal {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 16px;
}
.ts-footer__legal a { color: rgba(255, 255, 255, .5); }

/* ---------- Redirect gate ---------- */
.ts-gate {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px var(--m);
  text-align: center;
}
.ts-gate__spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: ts-spin 1s linear infinite;
}
.ts-gate__text { font-size: 14px; color: var(--ink-soft); max-width: 460px; }
.ts-gate__btn { width: auto; padding: 12px 24px; font-size: 13.5px; }
@keyframes ts-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ts-gate__spinner { animation: none; } }

/* ---------- Cookie banner ---------- */
.ts-cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: var(--brand);
  padding: 16px 20px;
  animation: ts-slide-up .3s ease;
}
.ts-cookie__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.ts-cookie p { flex: 1 1 320px; font-size: 13px; line-height: 1.5; color: #fff; max-width: 640px; }
.ts-cookie__actions { display: flex; gap: 8px; }
.ts-cookie .ts-btn { width: auto; padding: 9px 16px; font-size: 13px; }
.ts-cookie .ts-btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.ts-cookie .ts-btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Age gate ---------- */
.ts-age {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(20, 4, 4, .88);
  animation: ts-fade-in .3s ease;
}
.ts-age__box {
  width: 100%;
  max-width: 400px;
  padding: 36px 28px;
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  text-align: center;
}
.ts-age__num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}
.ts-age__box h2 { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 12px; }
.ts-age__box p { font-size: 14px; color: #666; margin-bottom: 24px; }
.ts-age__actions { display: flex; flex-direction: column; gap: 10px; }
.ts-age__actions .ts-btn { padding: 14px; font-size: 15px; border-radius: var(--r-slot); }
.ts-age__actions .ts-btn--ghost { padding: 12px; font-size: 14px; color: #6b6b6b; }
.ts-age--locked { overflow: hidden; }

.ts-blocked {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--brand-deep);
  text-align: center;
}
.ts-blocked__box { max-width: 440px; }
.ts-blocked h2 { font-size: 28px; color: #fff; margin-bottom: 16px; }
.ts-blocked p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .75); }

/* ---------- Breakpoints ---------- */
@media (max-width: 820px) {
  /* на мобиле шапка не липкая (иначе тёмный hero подтекает под неё), но остаётся
     контейнером для absolute-панели меню — поэтому relative, а не static */
  .ts-header { position: relative; }
  .ts-hero { padding-block: 20px; }
  /* на мобиле в hero остаётся только заголовок — без нижних отступов */
  .ts-hero__lead,
  .ts-chips { display: none; }
  .ts-hero__lead { margin-bottom: 0; }
  .ts-hero h1 { margin-bottom: 0; }
}

@media (min-width: 560px) {
  .ts-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 821px) {
  :root { --m: 32px; }
  .ts-hero__lead { font-size: 16px; }
  .ts-page-head { padding-block: 56px; }
  .ts-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ts-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-blocks section:first-child { grid-column: 1 / -1; }
  .ts-blocks section:last-child:nth-child(even) { grid-column: 1 / -1; }
  .ts-contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ts-help { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ts-form-wrap { padding: 28px; }
}

@media (min-width: 1220px) {
  .ts-burger { display: none; }
  .ts-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ts-nav--mobile { display: none !important; }
  .ts-hero { padding-block: 96px; }
}

@media (max-width: 1219px) {
  .ts-nav--desktop { display: none; }
}

@media (max-width: 520px) {
  .ts-footer__info { gap: 16px; }
  .ts-cookie__actions { width: 100%; }
  .ts-cookie .ts-btn { flex: 1 1 auto; }
}

@media (max-width: 430px) {
  :root { --m: 16px; }
  .ts-logo { font-size: 19px; }
  .ts-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ts-nav--mobile, .ts-cookie, .ts-age { animation: none; }
  .ts-card:hover { transform: none; }
}
