/* ==========================================================================
   Riobet Casino — Official Site Stylesheet
   riobetcasino534.ru
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1a1a1a;
    background: #f6f6f6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #27ae60;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: #1e8449; }

/* ---------- Focus States ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.btn:focus-visible {
    outline: 2px solid #27ae60;
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Layout ---------- */
.container {
    max-width: 1168px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 30px rgba(0,0,0,0.06);
}

/* ---------- Header ---------- */
.header {
    background: #f9f9f9;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8e8e8;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}
.header__logo:hover { color: #1a1a1a; }

.header__logo-icon {
    height: 36px;
    width: auto;
}

.header__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- 18+ Badge ---------- */
.badge-18 {
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
}
.badge-18--sm {
    font-size: 10px;
    padding: 2px 5px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 26px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-decoration: none;
    text-align: center;
}
.btn:hover {
    background: #1e8449;
    color: #fff;
    transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

.btn--outline {
    background: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
}
.btn--outline:hover {
    background: #27ae60;
    color: #fff;
}

/* ---------- Navigation ---------- */
.nav {
    background: #f9f9f9;
    padding: 10px 30px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    border-bottom: 1px solid #e8e8e8;
    font-size: 14px;
    font-weight: 500;
}
.nav a { color: #27ae60; }
.nav a:hover { color: #1e8449; text-decoration: underline; }

/* ---------- Content ---------- */
.content {
    padding: 32px 30px;
}

/* ---------- Typography ---------- */
h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    text-wrap: balance;
}

h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 40px 0 16px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 2px solid #27ae60;
    text-wrap: balance;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 28px 0 12px;
}

p { margin-bottom: 14px; }

ul, ol { margin: 12px 0 18px 28px; }
li { margin-bottom: 8px; }

/* ---------- CTA Section ---------- */
.cta-wrap {
    text-align: center;
    margin: 24px 0 30px;
}

/* ---------- Info Table ---------- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}
.info-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #eeeeee;
    font-size: 15px;
    vertical-align: top;
}
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) { background: #fafafa; }
.info-table td:first-child {
    font-weight: 500;
    width: 40%;
    color: #333;
}

/* ---------- Screenshot ---------- */
.screenshot-wrap {
    margin: 24px 0;
    text-align: center;
}
.screenshot-wrap img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* ---------- RTP Table ---------- */
.rtp-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 14px;
}
.rtp-table th {
    background: #27ae60;
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.rtp-table td {
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    font-variant-numeric: tabular-nums;
}
.rtp-table tr:nth-child(even) { background: #f9f9f9; }
.rtp-table tr:hover { background: #f0faf4; }

/* ---------- VIP Table ---------- */
.vip-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 28px;
    font-size: 14px;
}
.vip-table th {
    background: #2c3e50;
    color: #fff;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}
.vip-table td {
    padding: 10px 14px;
    border: 1px solid #e8e8e8;
    vertical-align: top;
    font-variant-numeric: tabular-nums;
}
.vip-table tr:nth-child(even) { background: #f9f9f9; }
.vip-table tr:hover { background: #f5f5f5; }

/* ---------- Banner / Promo ---------- */
.banner {
    background: linear-gradient(135deg, #1a5c34 0%, #27ae60 50%, #2ecc71 100%);
    border-radius: 10px;
    padding: 32px;
    color: #fff;
    text-align: center;
    margin: 28px 0;
    position: relative;
    overflow: hidden;
}
.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.banner h3 {
    color: #fff;
    margin: 0 0 8px;
    position: relative;
    font-size: 22px;
}
.banner p {
    color: rgba(255,255,255,0.92);
    margin: 0;
    position: relative;
    font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
    margin: 36px 0;
}
.faq h2 {
    border-bottom: none;
    margin-bottom: 20px;
}
.faq details {
    margin-bottom: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.faq details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq summary {
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    background: #fafafa;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}
.faq summary:hover { background: #f0f0f0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 22px;
    color: #27ae60;
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary {
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}
.faq-answer {
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Author Block ---------- */
.author-block {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 36px 0;
    border: 1px solid #e8e8e8;
}
.author-block__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}
.author-block__name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.author-block__role { font-size: 13px; color: #666; margin-bottom: 6px; }
.author-block__bio { font-size: 14px; color: #444; line-height: 1.5; }
.author-block__date { font-size: 12px; color: #999; margin-top: 8px; }

/* ---------- Responsible Gambling ---------- */
.rg-block {
    padding: 22px 24px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    margin: 36px 0;
    font-size: 14px;
    color: #664d03;
    line-height: 1.6;
}
.rg-block__title {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
    background: #2c3e50;
    color: #bdc3c7;
    padding: 28px 30px;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}
.footer a { color: #27ae60; }
.footer a:hover { color: #2ecc71; }
.footer__license { margin: 10px 0; }
.footer__copy { margin-top: 10px; color: #7f8c8d; }

/* ---------- Scroll to top ---------- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}
.scroll-top:hover {
    background: #1e8449;
    transform: translateY(-2px);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .header { padding: 12px 16px; }
    .header__logo { font-size: 22px; gap: 8px; }
    .header__logo-icon { height: 24px; }
    .nav { padding: 8px 16px; gap: 14px; font-size: 13px; }
    .content { padding: 24px 16px; }
    h1 { font-size: 22px; }
    h2 { font-size: 19px; margin-top: 32px; }
    h3 { font-size: 17px; }
    .info-table td { padding: 9px 12px; font-size: 14px; }
    .info-table td:first-child { white-space: normal; width: 45%; }
    .rtp-table, .vip-table { font-size: 13px; }
    .rtp-table th, .vip-table th { padding: 8px 10px; }
    .rtp-table td, .vip-table td { padding: 8px 10px; }
    .author-block { flex-direction: column; align-items: center; text-align: center; }
    .banner { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .header { padding: 10px 12px; }
    .header__logo { font-size: 18px; }
    .header__logo-icon { height: 20px; }
    .btn { padding: 9px 18px; font-size: 13px; }
    .nav { gap: 10px; font-size: 12px; padding: 8px 12px; }
    .content { padding: 18px 12px; }
    h1 { font-size: 19px; }
    h2 { font-size: 17px; }
    .rtp-table, .vip-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .info-table { font-size: 13px; }
    .faq summary { font-size: 14px; padding: 12px 14px; }
    .faq-answer { padding: 12px 14px; font-size: 14px; }
}
