/* KUS Games — общий стиль сайта games.kus.technology */
:root {
  color-scheme: dark;
  --bg: #04050b;
  --bg2: #0a0d1c;
  --ink: #eef2ff;
  --muted: #9aa3c2;
  --faint: #59617f;
  --line: rgba(255, 255, 255, 0.10);
  --panel: rgba(255, 255, 255, 0.035);
  --teal: #45f0c8;
  --gold: #ffcc4d;
  --rd-green: #39ff88;
  --rd-purple: #c07aff;
  --accent: var(--teal);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 26px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(69, 240, 200, 0.10), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(192, 122, 255, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* верхняя панель */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 5, 11, 0.62);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; letter-spacing: 0.14em; font-size: 15px; }
.brand svg { width: 28px; height: 28px; flex: none; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a.navlink { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.top nav a.navlink:hover { color: var(--ink); background: var(--panel); }
.lang { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 6px; }
.lang button { font: 800 12px var(--body); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 6px 11px; cursor: pointer; letter-spacing: 0.04em; }
.lang button.on { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .top nav a.navlink { display: none; } }

/* общие элементы */
.eyebrow { font: 800 13px var(--body); letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
.lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); max-width: 36em; text-wrap: pretty; }
.chip { display: inline-flex; align-items: center; gap: 7px; font: 800 12px var(--body); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); white-space: nowrap; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.chip.live { color: var(--rd-green); border-color: rgba(57, 255, 136, 0.35); }
.chip.soon { color: var(--gold); border-color: rgba(255, 204, 77, 0.35); }

.btn { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 17px; padding: 15px 22px; border-radius: 18px; border: 1px solid transparent; transition: transform .15s ease, box-shadow .25s ease, background .25s; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font: 700 11px var(--body); letter-spacing: 0.08em; text-transform: uppercase; opacity: .75; }
.btn span { display: flex; flex-direction: column; line-height: 1.1; }
.btn.solid { background: var(--accent); color: #03110c; box-shadow: 0 10px 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.solid:hover { box-shadow: 0 14px 52px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn.ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.btn.off { background: var(--panel); border-color: var(--line); color: var(--muted); cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* герой витрины */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(36px, 6vw, 64px); }
.hero h1 { font-size: clamp(44px, 9vw, 104px); margin: 18px 0 22px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--teal), #8fd8ff 45%, var(--rd-purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .facts .chip { text-transform: none; letter-spacing: 0; font-size: 13px; padding: 7px 14px; color: var(--muted); }

/* карточки игр */
.games { display: grid; gap: clamp(20px, 3vw, 32px); padding-bottom: 40px; }
.game {
  --accent: var(--teal);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(22px, 4vw, 48px);
  border-radius: 34px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  text-decoration: none;
}
.game::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.game.rd { --accent: var(--rd-green); }
.game.tr { --accent: var(--teal); }
.game .info { position: relative; display: flex; flex-direction: column; gap: 18px; }
.game .head { display: flex; align-items: center; gap: 16px; }
.game .icon { width: 76px; height: 76px; border-radius: 20px; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px var(--line); }
.game h2 { font-size: clamp(34px, 5vw, 56px); }
.game .genre { color: var(--accent); font-weight: 800; font-size: 15px; margin-top: 6px; }
.game p.desc { color: var(--muted); font-size: 17px; max-width: 32em; }
.game ul.points { list-style: none; display: grid; gap: 8px; }
.game ul.points li { display: flex; gap: 10px; font-size: 15px; color: var(--ink); }
.game ul.points li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 6px; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.game.rd ul.points li::before { clip-path: none; border-radius: 50%; }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2vw, 18px); min-height: 100%; }
.phone { position: relative; width: clamp(118px, 13.5vw, 176px); border-radius: 26px; padding: 7px; background: #0c0f1d; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 60px color-mix(in srgb, var(--accent) 12%, transparent); flex: none; }
.phone img { border-radius: 20px; width: 100%; height: auto; }
.phones .phone:nth-child(1) { transform: rotate(-5deg) translateY(10px); }
.phones .phone:nth-child(2) { transform: translateY(-14px); z-index: 1; }
.phones .phone:nth-child(3) { transform: rotate(5deg) translateY(10px); }
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .phones .phone:nth-child(3) { display: none; }
}

/* страница игры */
.gamehero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(40px, 8vw, 96px) 0 clamp(30px, 5vw, 60px); }
.gamehero .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 0 1px var(--line), 0 0 50px color-mix(in srgb, var(--accent) 25%, transparent); }
.gamehero h1 { font-size: clamp(46px, 8vw, 92px); margin: 20px 0 10px; }
.gamehero .tagline { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 2.6vw, 26px); color: var(--accent); margin-bottom: 18px; }
.gamehero .btns { margin-top: 28px; }
.gamehero .hero-phone { justify-self: center; }
.gamehero .hero-phone .phone { width: clamp(220px, 28vw, 320px); transform: rotate(3deg); }
@media (max-width: 860px) {
  .gamehero { grid-template-columns: 1fr; }
  .gamehero .hero-phone .phone { width: min(70vw, 280px); }
}

.section { padding: clamp(36px, 6vw, 72px) 0; }
.section h2 { font-size: clamp(30px, 4.6vw, 48px); margin: 12px 0 28px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 14px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }

.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 22px; scrollbar-width: thin; scrollbar-color: var(--faint) transparent; }
.gallery figure { flex: none; width: clamp(170px, 22vw, 240px); scroll-snap-align: start; }
.gallery .phone { width: 100%; transform: none !important; }
.gallery figcaption { color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 12px; text-align: center; }

.promise { display: flex; gap: 18px; align-items: flex-start; padding: clamp(22px, 4vw, 34px); border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); background: color-mix(in srgb, var(--gold) 6%, transparent); }
.promise .ico { color: var(--gold); flex: none; }
.promise .ico svg { width: 34px; height: 34px; }
.promise h3 { font-size: 22px; margin-bottom: 6px; }
.promise p { color: var(--muted); }

/* документы (политика, соглашение, поддержка) */
.doc { max-width: 820px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) clamp(16px, 4vw, 24px) 40px; line-height: 1.65; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc .meta { color: var(--muted); margin-bottom: 26px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; color: var(--accent); }
.doc h3 { font-size: 17px; margin: 18px 0 6px; }
.doc p, .doc li { color: #d5dbf0; }
.doc ul { padding-left: 22px; } .doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; }
.doc td, .doc th { border: 1px solid var(--line); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc th { color: var(--accent); }
.doc .card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); margin: 16px 0; }
.doc .mail { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 4vw, 26px); text-decoration: none; }
.doc details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.doc summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.doc details p { margin-top: 8px; }

/* подвал */
footer.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 44px; color: var(--muted); font-size: 14px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 18px 30px; justify-content: space-between; align-items: flex-start; }
footer.foot .cols { display: flex; flex-wrap: wrap; gap: 18px 40px; }
footer.foot .col { display: flex; flex-direction: column; gap: 8px; }
footer.foot .col b { color: var(--ink); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--ink); }
footer.foot .fine { color: var(--faint); font-size: 12px; margin-top: 6px; }

[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .rise.in { opacity: 1; transform: none; }
}

/* витрина: цвета логотипа KUS Games — серебро и синий, без кислотных оттенков */
body.hub {
  --accent: #5b9dff;
  background:
    radial-gradient(1100px 650px at 85% -5%, rgba(70, 120, 230, 0.16), transparent 60%),
    radial-gradient(900px 600px at 0% 30%, rgba(150, 170, 210, 0.07), transparent 60%),
    var(--bg);
}
body.hub .hero h1 .grad { background: linear-gradient(100deg, #f1f4fb, #a9b9d8 40%, #5b9dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.hub .hero .eyebrow { color: #8fb6ff; }

/* обратная связь */
.contact { padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 90px); }
.contact-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: start;
  padding: clamp(22px, 4vw, 48px); border-radius: 34px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(91, 157, 255, 0.10), rgba(255,255,255,0.015));
}
.contact-text { display: flex; flex-direction: column; gap: 16px; }
.contact-text h2 { font-size: clamp(32px, 5vw, 52px); }
.contact-text .eyebrow { color: #8fb6ff; }
.mail-addr { font-family: var(--display); font-weight: 900; font-size: 19px; color: #8fb6ff; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font: 700 14px var(--body); color: var(--muted); }
.contact-form select, .contact-form textarea {
  font: 16px var(--body); color: var(--ink); background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line); border-radius: 16px; padding: 13px 15px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form select:focus, .contact-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 1px; }
.contact-form .btn { align-self: flex-start; cursor: pointer; }
.contact-form .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.form-note { color: var(--faint); font-size: 13px; }
.form-warn { color: var(--gold); font-size: 13px; }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; } }
body.hub .hero h1 { font-size: clamp(44px, 7vw, 82px); }
