/* Каркас: токены, ресет, шапка, бургер, таб-бар, футер, кнопки */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/rubik-latin-var.woff2") format("woff2");
}

:root {
  --sln-bg: #0f153b;
  --sln-bg-deep: #090d23;
  --sln-card: #28326f;
  --sln-card-2: #1b2135;
  --sln-card-3: #212a63;
  --sln-line: #3f4462;
  --sln-text: #fff;
  --sln-muted: #9fa1b1;
  --sln-soft: #cfd0d8;
  --sln-cyan-1: #1ffcf1;
  --sln-cyan-2: #33c1ef;
  --sln-cyan-grad: radial-gradient(50% 50% at 50% 50%, var(--sln-cyan-1) 0%, var(--sln-cyan-2) 100%);
  --sln-red: #ef3254;
  --sln-red-dark: #bf2843;
  --sln-blue: #277cfc;
  --sln-indigo: #4655b4;
  --sln-yellow: #fbca01;
  --sln-green: #00ed76;
  --sln-radius: 12px;
  --sln-radius-lg: 16px;
  --sln-header-h: 52px;
  --sln-tabbar-h: 64px;
  --sln-wrap: 1400px;
  --sln-gutter: 16px;
  --sln-font: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sln-bg);
  color: var(--sln-text);
  font: 400 15px/1.55 var(--sln-font);
  padding-bottom: var(--sln-tabbar-h);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sln-cyan-2); }
a:hover { color: var(--sln-cyan-1); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p, ul, ol, dl, table { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sln-cyan-1); outline-offset: 2px; border-radius: 4px; }
.sln-icon { width: 22px; height: 22px; flex: none; }
.sln-wrap { width: 100%; max-width: calc(var(--sln-wrap) + 2 * var(--sln-gutter)); margin: 0 auto; padding: 0 var(--sln-gutter); }
.sln-skip { position: absolute; left: -9999px; top: 0; }
.sln-skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--sln-card); color: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- кнопки ---------- */
.sln-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 22px; border: 0; border-radius: var(--sln-radius);
  font: 600 15px/1.1 var(--sln-font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: filter .15s, transform .15s;
}
.sln-cta:hover { filter: brightness(1.08); }
.sln-cta:active { transform: translateY(1px); }
.sln-cta--signup { background: var(--sln-cyan-grad); color: var(--sln-bg); }
.sln-cta--signup:hover { color: var(--sln-bg); }
.sln-cta--login { background: #d11d3e; color: #fff; }
.sln-cta--login:hover { color: #fff; }
.sln-cta--ghost { background: var(--sln-card); color: #fff; }
.sln-cta--ghost:hover { color: #fff; }
.sln-cta--lg { min-height: 52px; padding: 0 30px; font-size: 17px; }
.sln-cta__sub { display: block; font-size: 12px; font-weight: 500; opacity: .85; }
.sln-cta--stack { flex-direction: column; gap: 2px; padding-top: 8px; padding-bottom: 8px; }

/* ---------- шапка ---------- */
.sln-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--sln-bg); border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.sln-header__inner { display: flex; align-items: center; gap: 12px; height: var(--sln-header-h); padding: 0 var(--sln-gutter); }
.sln-logo { display: block; flex: none; }
.sln-logo img { width: 84px; height: auto; }
.sln-menu { display: none; }
.sln-header__actions { display: flex; gap: 8px; margin-left: auto; }
.sln-header__actions .sln-cta { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }

.sln-menu__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sln-menu__link {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  color: #fff; font-weight: 600; font-size: 14px; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; white-space: nowrap;
}
.sln-menu__link:hover { color: var(--sln-cyan-1); }
.sln-menu__link[aria-current="page"] { color: var(--sln-cyan-2); }

/* бургер на чекбоксе */
.sln-burger__box { position: absolute; opacity: 0; pointer-events: none; }
.sln-burger__btn {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 10px; background: var(--sln-card); cursor: pointer;
}
.sln-burger__bars, .sln-burger__bars::before, .sln-burger__bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; position: relative;
}
.sln-burger__bars::before, .sln-burger__bars::after { content: ""; position: absolute; left: 0; }
.sln-burger__bars::before { top: -6px; }
.sln-burger__bars::after { top: 6px; }
.sln-burger__box:focus-visible + .sln-burger__btn { outline: 2px solid var(--sln-cyan-1); outline-offset: 2px; }

.sln-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw);
  background: var(--sln-bg-deep); padding: 16px; overflow-y: auto;
  transform: translateX(-102%); transition: transform .25s ease; visibility: hidden;
}
.sln-drawer__shade {
  position: fixed; inset: 0; z-index: 55; background: rgba(3, 4, 12, .6);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.sln-burger__box:checked ~ .sln-drawer { transform: none; visibility: visible; }
.sln-burger__box:checked ~ .sln-drawer__shade { opacity: 1; pointer-events: auto; }
.sln-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sln-drawer__close { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--sln-card); cursor: pointer; }
.sln-drawer__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.sln-drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sln-drawer__link {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px;
  color: #fff; text-decoration: none; font-weight: 500;
}
.sln-drawer__link:hover, .sln-drawer__link[aria-current="page"] { background: var(--sln-card); color: #fff; }
.sln-drawer__link .sln-icon { color: var(--sln-cyan-2); }

/* нижний таб-бар (мобайл) */
.sln-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: var(--sln-tabbar-h);
  background: var(--sln-bg-deep); border-top: 1px solid rgba(255, 255, 255, .06);
}
.sln-tabbar__list { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; list-style: none; margin: 0; padding: 0; }
.sln-tabbar__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%;
  color: var(--sln-soft); text-decoration: none; font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.sln-tabbar__link[aria-current="page"], .sln-tabbar__link:hover { color: var(--sln-cyan-2); }
.sln-tabbar__link--signup .sln-icon {
  width: 40px; height: 40px; padding: 9px; margin-top: -14px; border-radius: 50%;
  background: var(--sln-cyan-grad); color: var(--sln-bg);
}

/* крошки */
.sln-crumbs { padding-top: 14px; font-size: 13px; color: var(--sln-muted); }
.sln-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.sln-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--sln-line); }
.sln-crumbs a { color: var(--sln-soft); text-decoration: none; }
.sln-crumbs a:hover { color: var(--sln-cyan-1); }

/* ---------- футер ---------- */
.sln-footer { background: var(--sln-bg-deep); margin-top: 48px; padding: 32px 0 24px; text-align: center; }
.sln-footer__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; list-style: none; margin: 0 0 12px; padding: 0; }
.sln-footer__nav a { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.sln-footer__nav a:hover { color: var(--sln-cyan-1); }
.sln-footer__nav--extra a { color: var(--sln-soft); font-weight: 500; text-transform: none; font-size: 14px; }
.sln-footer__title { margin: 24px 0 12px; font-size: 14px; font-weight: 600; color: var(--sln-muted); text-transform: uppercase; letter-spacing: .04em; }
.sln-providers {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; margin: 0; padding: 0 16px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.sln-providers::-webkit-scrollbar { display: none; }
.sln-providers li { scroll-snap-align: start; flex: none; width: 112px; height: 56px; display: grid; place-items: center; background: var(--sln-card-2); border-radius: 10px; padding: 6px 10px; }
.sln-providers img { width: 92px; height: 46px; object-fit: contain; filter: grayscale(1) brightness(1.6); opacity: .75; }
.sln-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 24px 0 0; padding: 0; }
.sln-pay li { width: 82px; height: 40px; display: grid; place-items: center; background: #fff; border-radius: 8px; padding: 4px 6px; }
.sln-pay img { width: 70px; height: 32px; object-fit: contain; }
.sln-footer__bottom { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 24px; }
.sln-footer__bottom img { width: 84px; }
.sln-age { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #ff5a76; border-radius: 50%; color: #ff5a76; font-size: 12px; font-weight: 700; }
.sln-footer__note { max-width: 760px; margin: 16px auto 0; color: var(--sln-muted); font-size: 12px; }
.sln-footer__copy { margin: 10px 0 0; color: var(--sln-soft); font-size: 13px; }

@media (min-width: 768px) {
  :root { --sln-gutter: 20px; }
  .sln-header__actions .sln-cta { min-height: 38px; padding: 0 18px; font-size: 14px; }
}

@media (min-width: 1100px) {
  :root { --sln-header-h: 80px; }
  body { padding-bottom: 0; font-size: 16px; }
  .sln-burger, .sln-burger__btn, .sln-tabbar, .sln-drawer, .sln-drawer__shade { display: none; }
  .sln-logo img { width: 102px; }
  .sln-menu { display: block; margin-left: 24px; }
  .sln-header__actions .sln-cta { min-height: 40px; width: 120px; font-size: 15px; border-radius: var(--sln-radius); }
}
@media (min-width: 1100px) and (max-width: 1279px) { .sln-menu { margin-left: 12px; } .sln-menu__list { gap: 2px; } .sln-menu__link { padding: 8px 6px; gap: 6px; font-size: 13px; } }
@media (min-width: 1280px) { .sln-menu__list { gap: 14px; } }

/* Online Chat: вертикальная вкладка у правого края, как у официала (только десктоп) */
.sln-chat { display: none; }
@media (min-width: 1100px) {
  .sln-chat {
    display: flex; align-items: center; justify-content: center;
    position: fixed; right: 0; top: 55%; z-index: 50; width: 40px; height: 172px;
    background: var(--sln-yellow); color: var(--sln-bg); writing-mode: vertical-rl;
    font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  }
  .sln-chat:hover { filter: brightness(1.08); }
  .sln-chat:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
}
