/* Спільні стилі сторінок Rasdy Tech (index.html, contact.html). Палітра — від логотипа. */
:root {
    --bg: #f4f7fb;
    --bg-2: #ffffff;
    --ink: #0b1f3a;
    --ink-dim: #5b6b7f;
    --accent: #16a3d8;
    --accent-deep: #0f7fb0;
    --line: #d7e0ea;
    --card: #ffffff;
    --max: 1080px;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Тло: легка «схемна» сітка + бірюзове свічення зверху — відлуння доріжок логотипа. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 70% 45% at 50% -10%, rgba(22, 163, 216, 0.16), transparent 70%),
        linear-gradient(rgba(11, 31, 58, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 31, 58, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, #f8fafd 0%, var(--bg) 40%, #eef3f9 100%);
    background-size: auto, 32px 32px, 32px 32px, auto;
}
a { color: var(--accent-deep); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; width: 100%; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }

/* ── Шапка ─────────────────────────────────── */
header.wrap { padding: 26px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
    display: inline-flex; align-items: center; gap: 12px;
    color: var(--ink); text-decoration: none;
    font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.brand .mark { width: 44px; height: 44px; }
header nav { display: flex; gap: 24px; }
header nav a { color: var(--ink-dim); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
header nav a:hover { color: var(--accent-deep); }

/* ── Hero ──────────────────────────────────── */
.hero { padding: 72px 22px 28px; text-align: center; }
.eyebrow {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--accent-deep); margin: 0 0 14px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--ink-dim); max-width: 50ch; margin: 18px auto 0; }

/* ── Плитки ігор ───────────────────────────── */
.games { padding: 44px 22px 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.tile {
    position: relative; display: block; color: inherit; text-decoration: none;
    border: 1px solid var(--line); border-radius: 18px; background: var(--card);
    box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 12px 32px rgba(11, 31, 58, 0.08);
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tile .poster { aspect-ratio: 1024 / 500; width: 100%; object-fit: cover; }
.tile .body { padding: 18px 20px 22px; }
.tile h2 { font-size: 1.35rem; margin-bottom: 6px; }
.tile p { margin: 0 0 14px; color: var(--ink-dim); font-size: 0.98rem; }
.tile .cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent-deep);
}
.tile .cta::after { content: "→"; transition: transform 0.18s ease; }
a.tile:hover, a.tile:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 2px 4px rgba(11, 31, 58, 0.05), 0 22px 44px rgba(11, 31, 58, 0.14), 0 0 0 3px rgba(22, 163, 216, 0.2);
    outline: none;
}
a.tile:hover .cta::after { transform: translateX(4px); }

/* Задізейблена плитка: знебарвлена, без hover, з бейджем. */
.tile.soon { cursor: default; pointer-events: none; }
.tile.soon .poster { filter: grayscale(0.9) brightness(0.9) opacity(0.7); }
.tile.soon .body { opacity: 0.6; }
.tile.soon .cta::after { content: none; }
.tile.soon .cta { color: var(--ink-dim); }
.tile .badge-soon {
    /* z-index: filter на постері створює stacking context і інакше ховає бейдж. */
    position: absolute; top: 14px; left: 14px; z-index: 2;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink); background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(11, 31, 58, 0.12);
}

/* ── Футер ─────────────────────────────────── */
footer { margin-top: auto; padding: 28px 22px 36px; text-align: center; color: var(--ink-dim); font-size: 0.9rem; border-top: 1px solid var(--line); background: var(--bg-2); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 10px; }
footer a { color: var(--ink-dim); text-decoration: none; }
footer a:hover { color: var(--accent-deep); }

@media (max-width: 640px) {
    .hero { padding-top: 48px; }
    .games { padding-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .tile, .tile .cta::after { transition: none; }
}

/* ── Кнопка «Follow on TikTok» ──────────────────
   Гліф — три копії зі зсувом (бірюза вгору-ліворуч, червона вниз-праворуч,
   біла зверху): це фірмове «двоїння» логотипа, і читається воно лише на
   темній підкладці, тому кнопка чорна незалежно від світлої палітри сайту. */
.btn-tiktok {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 20px 12px 16px; border-radius: 999px;
    background: #0b0b0d; color: #fff; text-decoration: none;
    font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(11, 31, 58, 0.22);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-tiktok svg { width: 22px; height: 22px; flex: none; }
.btn-tiktok .handle { color: #9aa3ad; font-weight: 500; }
.btn-tiktok:hover, .btn-tiktok:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(11, 31, 58, 0.3), 0 0 0 2px rgba(37, 244, 238, 0.35);
    outline: none;
}
