/* =========================================================
   1xBet Вход & Официальный сайт — Ultimate SEO & UX Stylesheet
   ========================================================= */

:root {
    --c-navy: #0B1F5E;
    --c-navy-dark: #071438;
    --c-navy-light: #122b7a;
    --c-blue: #1E6BFF;
    --c-blue-hover: #1555d4;
    --c-cyan: #20C5FF;
    --c-green: #10B981;
    --c-green-dark: #059669;
    --c-gold: #F59E0B;
    --c-red: #EF4444;
    --c-bg: #F4F7FC;
    --c-card: #FFFFFF;
    --c-card-subtle: #F8FAFD;
    --c-text: #1E293B;
    --c-text-muted: #64748B;
    --c-border: #E2E8F0;
    --c-border-light: #EDF2F7;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(11, 31, 94, 0.05);
    --shadow: 0 8px 24px rgba(11, 31, 94, 0.08);
    --shadow-lg: 0 16px 36px rgba(11, 31, 94, 0.12);
    --container: 920px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.62;
    font-size: 16px;
    padding-bottom: 74px;
}

img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 18px;
}

a { color: var(--c-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-blue-hover); text-decoration: underline; }

h1, h2, h3, h4 {
    line-height: 1.28;
    font-weight: 800;
    color: var(--c-navy);
    letter-spacing: -0.015em;
}

h1 { font-size: clamp(1.65rem, 5.2vw, 2.35rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.3rem, 4.2vw, 1.68rem); margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--c-border-light); }
h3 { font-size: clamp(1.1rem, 3.4vw, 1.3rem); margin: 24px 0 10px; color: var(--c-navy-light); }

p { margin: 0 0 16px; }
p.lead { font-size: 1.12rem; line-height: 1.68; color: #334155; font-weight: 450; }

.skip-link {
    position: absolute; left: -999px; top: 0; background: #fff; color: var(--c-navy);
    padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.top-ticker {
    background: #050E29;
    color: var(--c-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    overflow: hidden;
    white-space: nowrap;
    padding: 6px 0;
    border-bottom: 1px solid rgba(32, 197, 255, 0.2);
}
.ticker-track {
    display: inline-block;
    animation: tickerScroll 28s linear infinite;
}
.ticker-track span {
    margin-right: 32px;
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.site-header {
    background: linear-gradient(135deg, var(--c-navy), var(--c-navy-dark));
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 4px 18px rgba(7, 20, 56, 0.25);
}
.header-row {
    display: flex; align-items: center; justify-content: space-between;
    height: 62px;
    max-width: 1240px;
}
.logo {
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-weight: 800; font-size: 1.1rem;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo img { filter: brightness(0) invert(1); height: 28px; width: auto; display: block; }
.logo-badge {
    background: linear-gradient(135deg, var(--c-gold), #D97706);
    color: #000;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
}

.burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; cursor: pointer; padding: 0; flex-shrink: 0;
}
.burger span {
    display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto;
    border-radius: 2px; transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    position: fixed; top: 90px; left: 0; right: 0; bottom: 0;
    background: var(--c-navy-dark);
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px 22px 100px;
    z-index: 99;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-nav a {
    display: block; padding: 13px 4px; color: #E2E8F0;
    font-weight: 600; font-size: 1.02rem;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--c-cyan); text-decoration: none; }
.nav-auth-buttons {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    margin-top: 24px;
}

.header-desktop-actions { display: none; }

@media (min-width: 992px) {
    .logo-badge { display: none; }
    .burger { display: none; }
    .site-nav {
        position: static; transform: none; background: none;
        padding: 0; overflow-y: visible; display: flex; align-items: center; gap: 14px;
    }
    .site-nav ul { display: flex; align-items: center; gap: 10px; }
    .site-nav li { border-bottom: none; }
    .site-nav a { padding: 6px 3px; font-size: 0.90rem; color: #E2E8F0; white-space: nowrap; }
    .nav-auth-buttons { display: none; }
    .header-desktop-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
}

.breadcrumbs { background: var(--c-card); border-bottom: 1px solid var(--c-border); }
.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0; padding: 10px 0; font-size: 0.82rem; color: var(--c-text-muted);
}
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: #94A3B8; }
.breadcrumbs li { display: flex; align-items: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 24px; border-radius: 10px; font-weight: 700;
    font-size: 0.98rem; text-align: center; border: none; cursor: pointer;
    transition: all .18s ease; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cta {
    background: linear-gradient(135deg, var(--c-blue), #3B82F6);
    color: #fff; box-shadow: 0 6px 18px rgba(30, 107, 255, 0.35);
}
.btn-cta:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 8px 22px rgba(30, 107, 255, 0.45); }

.btn-green {
    background: linear-gradient(135deg, var(--c-green), var(--c-green-dark));
    color: #fff; box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.btn-green:hover { filter: brightness(1.08); color: #fff; }

.btn-outline {
    background: rgba(255,255,255,0.06); color: var(--c-navy);
    border: 2px solid var(--c-navy);
}
.btn-outline:hover { background: var(--c-navy); color: #fff; }

.btn-login-header {
    background: rgba(255,255,255,0.12); color: #fff;
    padding: 8px 16px; font-size: 0.88rem; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.25);
}
.btn-login-header:hover { background: rgba(255,255,255,0.22); color: #fff; }

.btn-reg-header {
    background: linear-gradient(135deg, var(--c-green), var(--c-green-dark));
    color: #fff; padding: 8px 18px; font-size: 0.88rem; border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4);
}
.btn-reg-header:hover { filter: brightness(1.1); color: #fff; }

.hero {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--c-bg) 100%);
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--c-border-light);
}
.hero-badges {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px;
}
.badge-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(30, 107, 255, 0.08); color: var(--c-blue);
    font-size: 0.78rem; font-weight: 700; padding: 4px 10px;
    border-radius: 6px; border: 1px solid rgba(30, 107, 255, 0.2);
}
.badge-tag.badge-live {
    background: rgba(16, 185, 129, 0.1); color: var(--c-green-dark);
    border-color: rgba(16, 185, 129, 0.25);
}
.hero-actions {
    display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 20px;
}
.hero-img {
    margin: 22px 0 0; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--c-border);
}

.quicklinks {
    padding: 26px 0 10px;
}
.quicklinks-title {
    font-size: 0.86rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--c-text-muted); margin-bottom: 14px;
}
.quicklinks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 600px) {
    .quicklinks-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
.quicklink-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all .2s ease;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.quicklink-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--c-blue);
    text-decoration: none;
}
.quicklink-card img {
    width: 64px; height: 64px; object-fit: cover;
    border-radius: 10px;
}
.quicklink-card span {
    font-weight: 700; font-size: 0.92rem; color: var(--c-navy);
}

.article {
    padding: 24px 0 40px;
}

.content-block {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 24px 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.article-img {
    margin: 22px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border);
}
.article-img figcaption {
    font-size: 0.82rem; color: var(--c-text-muted);
    padding: 8px 12px; background: var(--c-card-subtle);
    text-align: center; border-top: 1px solid var(--c-border-light);
}

.table-wrap {
    overflow-x: auto;
    margin: 22px 0 26px;
    border-radius: var(--radius);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    background: #fff;
}
table {
    width: 100%; border-collapse: collapse; text-align: left;
    font-size: 0.92rem;
}
caption {
    font-weight: 800; font-size: 1rem; color: var(--c-navy);
    padding: 12px 16px; text-align: left;
    background: var(--c-card-subtle); border-bottom: 2px solid var(--c-border);
}
th, td {
    padding: 12px 16px; border-bottom: 1px solid var(--c-border-light);
}
th {
    background: #F1F5F9; color: var(--c-navy); font-weight: 700;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFC; }

.steps, ol.step-list {
    list-style: none; counter-reset: step-counter;
    padding: 0; margin: 20px 0 26px; display: grid; gap: 14px;
}
.steps li, ol.step-list li {
    position: relative; counter-increment: step-counter;
    padding: 14px 16px 14px 58px;
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.steps li::before, ol.step-list li::before {
    content: counter(step-counter);
    position: absolute; left: 16px; top: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-blue), var(--c-navy));
    color: #fff; font-weight: 800; font-size: 0.88rem;
    display: flex; align-items: center; justify-content: center;
}

.promo-box {
    background: linear-gradient(135deg, #0B1F5E, #1E3A8A);
    color: #fff; border-radius: var(--radius);
    padding: 24px; margin: 26px 0; text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.15);
}
.promo-box h3 { color: #fff; margin-top: 0; }
.promo-code-wrap {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; color: var(--c-navy);
    padding: 8px 16px; border-radius: 10px; margin: 12px 0 16px;
    border: 2px dashed var(--c-blue);
}
.promo-code {
    font-size: 1.35rem; font-weight: 900; letter-spacing: 0.08em;
    color: var(--c-blue); font-family: monospace;
}
.btn-copy {
    background: var(--c-blue); color: #fff; border: none;
    padding: 6px 14px; border-radius: 6px; font-weight: 700;
    cursor: pointer; font-size: 0.82rem; transition: background .15s;
}
.btn-copy:hover { background: var(--c-blue-hover); }

.callout {
    background: rgba(30, 107, 255, 0.05);
    border-left: 4px solid var(--c-blue);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 18px; margin: 20px 0;
}
.callout-warning {
    background: #FFFBEB; border-left-color: var(--c-gold);
}
.callout-success {
    background: #ECFDF5; border-left-color: var(--c-green);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; margin: 22px 0;
}
@media (min-width: 650px) {
    .screenshot-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.screenshot-item {
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm); background: #fff;
}
.screenshot-item img {
    width: 100%; height: auto; object-fit: cover;
}

.faq-section {
    margin: 36px 0 20px;
}
.faq-item {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    width: 100%; text-align: left; background: none; border: none;
    padding: 16px 18px; font-weight: 700; font-size: 1rem;
    color: var(--c-navy); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-question:hover { background: var(--c-card-subtle); }
.faq-icon {
    font-size: 1.2rem; font-weight: 400; transition: transform .2s ease;
    color: var(--c-blue);
}
.faq-item.is-active .faq-icon { transform: rotate(45deg); }
.faq-answer {
    padding: 0 18px 16px;
    font-size: 0.94rem; line-height: 1.6; color: #334155;
    display: none;
}
.faq-item.is-active .faq-answer { display: block; }

.author-card {
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 20px; margin: 36px 0 20px;
    display: flex; flex-direction: column; gap: 14px;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 600px) {
    .author-card { flex-direction: row; align-items: center; gap: 18px; }
}
.author-avatar {
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
    color: #fff; font-weight: 800; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.author-meta h4 { margin: 0 0 4px; font-size: 1.02rem; }
.author-meta p { margin: 0; font-size: 0.86rem; color: var(--c-text-muted); }
.author-date {
    margin-top: 6px; font-size: 0.78rem; font-weight: 700; color: var(--c-green-dark);
}

.mobile-sticky-cta {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
    background: rgba(7, 20, 56, 0.96); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.15);
    display: grid; grid-template-columns: 1fr 1fr 1.6fr;
    padding: 8px 12px; gap: 8px;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
}
@media (min-width: 992px) {
    .mobile-sticky-cta { display: none; }
    body { padding-bottom: 0; }
}
.sticky-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 6px 4px; border-radius: 8px; color: #fff; font-size: 0.76rem;
    font-weight: 700; text-align: center; text-decoration: none; line-height: 1.15;
}
.sticky-btn:hover { text-decoration: none; filter: brightness(1.1); }
.sticky-icon { font-size: 1.1rem; margin-bottom: 2px; }
.sticky-btn-mirror { background: rgba(255,255,255,0.12); }
.sticky-btn-app { background: rgba(32, 197, 255, 0.18); color: var(--c-cyan); }
.sticky-btn-action {
    background: linear-gradient(135deg, var(--c-green), var(--c-green-dark));
    font-size: 0.84rem; font-weight: 800;
}

.site-footer {
    background: var(--c-navy-dark);
    color: #94A3B8;
    padding: 44px 0 28px;
    font-size: 0.88rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-sm);
    padding: 16px; margin-bottom: 32px;
    display: flex; gap: 12px; align-items: flex-start;
}
.badge-18 {
    background: var(--c-red); color: #fff; font-weight: 900;
    font-size: 0.82rem; padding: 3px 8px; border-radius: 6px;
    flex-shrink: 0;
}
.footer-warning p { margin: 0; font-size: 0.84rem; color: #CBD5E1; }
.footer-warning a { color: var(--c-cyan); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px; margin-bottom: 32px;
}
@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.footer-title {
    color: #fff; font-weight: 700; font-size: 0.95rem; margin: 0 0 12px;
    border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 6px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94A3B8; font-size: 0.86rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-expert-note {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 14px 16px; margin-bottom: 24px;
    display: flex; gap: 12px; align-items: center;
}
.expert-avatar-mini {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--c-blue); color: #fff; font-weight: 800; font-size: 0.82rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.expert-info-text p { margin: 0; font-size: 0.82rem; color: #CBD5E1; }

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px; text-align: center; font-size: 0.8rem;
}
.footer-legal code {
    background: rgba(255,255,255,0.1); color: var(--c-cyan);
    padding: 1px 6px; border-radius: 4px;
}
.copyright { margin-top: 10px; color: #64748B; }
