/* WarnMedia — новый дизайн главной: чище, крупнее зоны нажатия, Telegram всегда на виду. */

:root {
    --bg: #0a0614;
    --surface: #151025;
    --surface-2: #1d1633;
    --edge: #2c2347;
    --text: #f5f1ff;
    --muted: #a99fc6;
    --accent: #a3e635;
    --accent-ink: #12200a;
    --tg1: #2aabee;
    --tg2: #1c8cd6;
    --violet: #8b5cf6;
    --cyan: #22d3ee;
    --sans: 'Noto Sans Armenian', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
    margin: 0;
    background:
        radial-gradient(700px 420px at 12% -5%, rgba(139, 92, 246, 0.28), transparent 70%),
        radial-gradient(600px 380px at 95% 8%, rgba(34, 211, 238, 0.16), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Верхняя панель ---------- */

.bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 6, 20, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--edge);
}
.bar__in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.logo svg { width: 38px; height: 38px; flex-shrink: 0; }
.logo b { font: 700 23px/1 'Sora', var(--sans); letter-spacing: -0.03em; }


.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--tg1), var(--tg2));
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tg-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(34, 158, 217, 0.65); }
.tg-btn svg { width: 26px; height: 26px; }

/* ---------- Шапка ---------- */

.hero { padding: 20px 0 0; text-align: center; }
.hero h1 { font-size: clamp(19px, 3.4vw, 30px); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; max-width: 720px; margin: 0 auto; }

.tg-cta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 14px;
    padding: 16px 24px 16px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--tg1), var(--tg2));
    text-align: left;
    box-shadow: 0 14px 36px rgba(34, 158, 217, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tg-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(34, 158, 217, 0.65); }
.tg-cta svg { width: 46px; height: 46px; flex-shrink: 0; }
.tg-cta__body { display: flex; flex-direction: column; }
.tg-cta b { font-size: 20px; line-height: 1.25; }
.tg-cta small { font-size: 14px; opacity: 0.92; }
.hint { display: none; margin-top: 18px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Быстрая навигация ---------- */

.chips {
    display: flex;
    gap: 10px;
    margin: 26px 0 0;
    padding: 4px 2px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--edge);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
}
.chips a:hover { background: var(--surface-2); border-color: var(--violet); }
.chips i { margin-right: 6px; color: var(--cyan); }

/* ---------- Блоки ---------- */

.block { margin-top: 34px; }
#casinos { margin-top: 22px; }
.label { font-size: 17px !important; font-weight: 700 !important; color: var(--muted); }
.block h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sub { margin-top: 4px; color: var(--muted); }

/* ---------- Карточки казино ---------- */

.casinos { display: grid; gap: 14px; margin-top: 10px; grid-template-columns: 1fr; }

.casino {
    position: relative;
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 14px 16px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--edge);
    border-radius: 20px;
    border-left: 4px solid var(--brand, var(--violet));
    transition: border-color 0.2s, transform 0.2s;
}
.casino:hover { transform: translateY(-2px); border-color: var(--brand, var(--violet)); }
.casino__logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--brand, #333) 22%, #0d0919);
    overflow: hidden;
    font-size: 26px;
}
.casino__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.casino__rank {
    position: absolute;
    top: 4px; left: 4px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 11px; font-weight: 800;
}
.casino__top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.casino__name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: #fbbf24; }
.rating__value { color: var(--muted); font-weight: 700; }
.badge { padding: 2px 9px; border-radius: 999px; background: var(--brand, var(--violet)); font-size: 12px; font-weight: 700; }
.casino__desc {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.promos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.promo {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px dashed var(--accent);
    background: rgba(163, 230, 53, 0.08);
    color: var(--accent);
    font: 700 13.5px var(--sans);
    letter-spacing: 0.04em;
    cursor: pointer;
}
.promo:hover { background: rgba(163, 230, 53, 0.18); }

.casino__cta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(163, 230, 53, 0.28);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.casino__cta:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 10px 28px rgba(163, 230, 53, 0.42); }

.skeleton { height: 150px; border-radius: 20px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Плитки разделов ---------- */

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
    padding: 16px;
    min-height: 98px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--edge);
    font-weight: 700;
    line-height: 1.3;
    transition: border-color 0.2s, background 0.2s;
}
.tile:hover { background: var(--surface-2); border-color: var(--cyan); }
.tile i { font-size: 22px; color: var(--cyan); }

/* ---------- Аккордеоны ---------- */

.acc { margin-top: 14px; background: var(--surface); border: 1px solid var(--edge); border-radius: 18px; overflow: hidden; }
.acc summary {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    font-size: 18px; font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { color: var(--muted); transition: transform 0.25s; }
.acc[open] summary i { transform: rotate(180deg); }
.list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--edge); }
.list a {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--edge);
    transition: background 0.2s;
}
.list a:last-child { border-bottom: 0; }
.list a:hover { background: var(--surface-2); }
.list a > i { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.list b { display: block; font-size: 16px; line-height: 1.3; }
.list small { display: block; color: var(--muted); font-size: 13.5px; }

/* ---------- Подвал ---------- */

.foot { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--edge); text-align: center; color: var(--muted); font-size: 14px; }
.foot p { margin-top: 8px; }
.foot a:hover { color: var(--text); }
.foot__tg { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--edge); color: var(--text); font-weight: 700; font-size: 15px; }
.foot__tg i { color: var(--tg1); font-size: 18px; }
.foot__note { opacity: 0.8; }

.toast {
    position: fixed; left: 50%; bottom: 24px; z-index: 100;
    transform: translate(-50%, 30px);
    padding: 12px 20px; border-radius: 14px;
    background: var(--accent); color: var(--accent-ink); font-weight: 700;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Планшет и десктоп ---------- */

@media (min-width: 760px) {
    .casinos { grid-template-columns: repeat(2, 1fr); }
    .casino { grid-template-columns: 76px 1fr; }
    .casino__logo { width: 76px; height: 76px; }
    .grid { grid-template-columns: repeat(3, 1fr); }
    .list { grid-template-columns: repeat(2, 1fr); }
    .list a { border-right: 1px solid var(--edge); }
    .list a:nth-child(2n) { border-right: 0; }
    .hint { display: none; }
}

@media (max-width: 759px) {
    .hint { display: block; }
    .tg-cta { display: flex; justify-content: center; width: 100%; padding: 14px; gap: 12px; }
    .tg-cta svg { width: 40px; height: 40px; }
    .tg-cta b { font-size: 18px; }
    .tg-cta small { font-size: 13px; }
    .tg-cta > i { display: none; }
    .tg-btn span { display: none; }
    .tg-btn { padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Вся карточка казино кликабельна: растягиваем ссылку кнопки «Играть» на карточку.
   Сама кнопка без position, поэтому ::after считается от .casino. Промокод поверх. */
.casino { cursor: pointer; }
.casino__cta::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.promos { position: relative; z-index: 2; }
.promo { position: relative; z-index: 2; cursor: copy; }

/* Причина «клик работает только по кнопке»: transform/filter на кнопке при наведении
   делают её контейнером для абсолютного ::after, и ссылка сжимается до кнопки.
   Поэтому на кнопке transform и filter запрещены, hover-эффект — через фон. */
.casino__cta, .casino__cta:hover { transform: none !important; filter: none !important; }
.casino:hover .casino__cta { background: #b6f04d; box-shadow: 0 10px 28px rgba(163, 230, 53, 0.45); }
