* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f0728 0%, #1a0b2e 50%, #0f0728 100%);
    color: #ffffff;
    min-height: 100vh;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 7, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(147, 51, 234, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle:hover {
    background: rgba(147, 51, 234, 0.3);
    border-radius: 8px;
}

table {
    display: block;
    width: 100%;
    overflow-x: scroll;
}

ul,
ol {
    list-style-position: inside;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-collapse {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
}

.menu-collapse:hover {
    background: rgba(147, 51, 234, 0.3);
    border-radius: 8px;
}

.arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2px solid white;
    border-top: 2px solid white;
    transform: rotate(-45deg);
}

.sidebar.collapsed .arrow {
    transform: rotate(135deg);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: bold;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login {
    padding: 0.5rem 1rem;
    background: #8acaff1f;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.3s;
}

.btn-login:hover {
    background: rgba(147, 51, 234, 0.3);
}

.btn-register {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: transform 0.2s;
}

.btn-register:hover {
    transform: scale(1.05);
}

/* Main Wrapper */
.main-wrapper {
    display: flex;
    margin-top: 64px;
    /* padding-bottom: 80px; */
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 256px;
    background: rgba(15, 7, 40, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(147, 51, 234, 0.3);
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 100;
    transform: translateX(-100%);
}

.sidebar-nav {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    position: relative;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(147, 51, 234, 0.3);
}

.nav-item.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.nav-item .icon {
    font-size: 1.25rem;
    min-width: 24px;
}

.nav-item .label {
    flex: 1;
    white-space: nowrap;
}

.badge {
    background: #10b981;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.nav-divider {
    height: 1px;
    background: rgba(147, 51, 234, 0.3);
    margin: 0.5rem 0;
}

.sidebar-footer {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.telegram {
    background: #0088cc;
}

.social-btn.vk {
    background: #0077ff;
}

/* Content */
.content {
    flex: 1;
    padding: 0.7rem;
    margin-left: 0;
    transition: margin-left 0.3s;
    max-width: 100%;
    margin-top: 30px;
}

/* Promo Section */
.promo-section {
    margin-bottom: 2rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.promo-card {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card-1 {
    background: url('img/promo1.jpg');
    background-size: cover;
    background-position: center;
}

.promo-card-2 {
    background: url('img/promo2.jpg');
    background-size: cover;
    background-position: center;
}

.promo-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}

.promo-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promo-content p {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.promo-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: rgba(30, 20, 60, 0.7);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.promo-btn:hover {
    background: rgba(30, 20, 60, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .promo-card {
        height: 240px;
    }

    .promo-content h2 {
        font-size: 1.75rem;
    }

    .promo-content p {
        font-size: 1.5rem;
    }
}

/* Categories */
.categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.categories::-webkit-scrollbar {
    height: 4px;
}

.categories::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.5);
    border-radius: 2px;
}

.category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(30, 20, 60, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    white-space: nowrap;
    transition: all 0.3s;
}

@media (max-width: 767px) {
    .category {
        padding: 0.2rem 0.7rem;
        font-size: 12px;
    }

    .category-icon img {
        width: 16px;
        height: auto;
    }

    .categories {
        gap: 0.3rem;
    }
}

.category:hover {
    background: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}

.category.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-color: transparent;
}

.category-icon {
    font-size: 1.25rem;
}

/* Games Section */
.games-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 28px;
    color: #e6e6e6;
}

.see-all {
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.see-all:hover {
    color: #c084fc;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.game-card {
    background: rgba(30, 20, 60, 0.5);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.game-image {
    width: 100%;
    height: 295px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.game-1 {
    background: url('img/e07f963f-6cd7-4321-ad59-9fbbe32fe0c0_vertical.html') center/cover no-repeat;
}

.game-2 {
    background: url('img/v_endorphinaendorphina2_hellhot100_endorphina2_hellhot100.html') center/cover no-repeat;
}

.game-3 {
    background: url('img/1975f900-4022-420a-bb40-5cf42dd57b07_vertical.html') center/cover no-repeat;
}

.game-4 {
    background: url('img/v_threeoaks777coins_777_coins.html') center/cover no-repeat;
}

.game-5 {
    background: url('img/78577845-ef7d-4e5c-a551-8f12f0db9ecf_vertical.html') center/cover no-repeat;
}

.game-6 {
    background: url('img/16623258-f322-4d9d-810c-b717a1d66500_vertical.html') center/cover no-repeat;
}

.game-7 {
    background: url('img/9f653a9b-85d1-4c86-a0ec-76af9794a67c_vertical.html') center/cover no-repeat;
}

.game-8 {
    background: url('img/231ca5ac-6f4a-4207-b381-3a51eb03d96c_vertical.html') center/cover no-repeat;
}

.game-9 {
    background: url('img/432337c6-5e06-449b-88ef-68e1ddc960dc_vertical.html') center/cover no-repeat;
}

.game-10 {
    background: url('img/6100e7cc-2ff7-41b1-8163-de484e0059b8_vertical.html') center/cover no-repeat;
}

.game-11 {
    background: url('img/c324ac59-0600-495e-8f2d-83e75c168f50_vertical.html') center/cover no-repeat;
}

.game-12 {
    background: url('img/136739b4-24e0-48af-824c-8cabe67897d2_vertical.html') center/cover no-repeat;
}

.game-13 {
    background: url('img/f1876709-4f25-43c5-94a8-24fac9b51f88_vertical.html') center/cover no-repeat;
}

.game-14 {
    background: url('img/395c7836-6ae3-449f-b202-226fe3ed8be4_vertical.html') center/cover no-repeat;
}

.game-info {
    padding: 1rem;
}

.game-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.game-provider {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Originals Grid */
.originals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.original-card {
    height: 150px;
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.original-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.original-1 {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
}

.original-2 {
    background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

.original-3 {
    background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

.original-4 {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.original-5 {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.original-6 {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 7, 40, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(147, 51, 234, 0.3);
    padding: 0.5rem;
    z-index: 1000;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    transition: color 0.3s;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mobile-nav-item.active {
    color: #a855f7;
}

.mobile-icon {
    font-size: 1.5rem;
}

.mobile-badge {
    position: absolute;
    top: -5px;
    right: 15%;
    background: #10b981;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    font-size: 0.625rem;
    font-weight: 600;
}

/* Responsive */
@media (min-width: 1024px) {
    .menu-collapse {
        display: block;
    }

    .sidebar {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
    }

    .content {
        margin-left: 256px;
        transition: margin-left 0.3s ease;
        margin-top: 20px;
    }

    .sidebar.collapsed {
        width: 80px;
    }

    .sidebar.collapsed .nav-item .label,
    .sidebar.collapsed .nav-item .badge {
        display: none;
    }

    .sidebar.collapsed~.content {
        margin-left: 80px;
        margin-top: 30px;
        margin-right: 20px;
    }

    .btn-login {
        display: inline-block;
    }
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: none;
    }

    .logo img {
        width: 100%;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .mobile-nav {
        display: flex;
        justify-content: space-around;
    }

    .main-wrapper {
        padding-bottom: 80px;
    }

    .promo-slider {
        height: 200px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .character {
        width: 120px;
        height: 120px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .btn-login {
        display: block;
    }
}

@media (max-width: 640px) {
    .search-bar {
        flex-direction: column;
    }

    .providers-btn {
        width: 100%;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .promo-slider {
        height: 180px;
    }

    .slide {
        padding: 1.5rem;
    }

    .slide-image {
        display: none;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }
}

/* Footer */
.footer {
    background: #1f1632;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
    border-radius: 20px;
}

.footer-container {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

/* Logo Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-link.telegram {
    background: #0088cc;
}

.social-link.vk {
    background: #0077ff;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(147, 51, 234, 0.4);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column a:hover {
    color: #a855f7;
    transform: translateX(5px);
}

/* Support Card */
.footer-support {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.support-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
}

.support-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.support-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.support-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.support-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.support-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.support-info-item {
    margin-bottom: 1rem;
}

.support-info-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.support-info-value {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.support-info-value a {
    color: white;
    text-decoration: none;
}

.support-info-value a:hover {
    text-decoration: underline;
}

/* Footer Bottom */
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .game-image {
        height: 140px;
    }

    .promo-card-2 {
        display: none;
    }
}

.footer-tx h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.footer-tx p {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 400;
    margin-bottom: 20px;
    color: #a1a1a1;
}

.footer-text {
    background: #1f1632;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
    margin-bottom: 40px;
    border-radius: 20px;
}


@media (max-width: 767px) {
    .footer-text {
        font-size: 22px;
        padding: 24px;
    }
}

ul {
    list-style-type: none;
}

.head-item.active,
.nav-item.active,
.category.active,
.mobile-nav-item.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
}

.footer-text {
    max-width: 100%;
    margin: 40px auto;
    padding: clamp(20px, 3vw, 36px);
    background: linear-gradient(180deg, #1f1632 0%, #1a1230 100%);
    border: 1px solid rgba(147, 51, 234, .18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
}

/* контейнер контента */
.footer-text .footer-tx {
    display: grid;
    gap: 18px;
}

/* Заголовки */
.footer-text h1 {
    font-size: clamp(24px, 4.2vw, 40px);
    line-height: 1.15;
    letter-spacing: .2px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #c8a6ff 60%, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-text h2 {
    font-size: clamp(18px, 3.2vw, 26px);
    margin: 24px 0 8px;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #f3edf9;
    position: relative;
}

.footer-text h2::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #c084fc, #7c3aed);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .18);
}

/* Абзацы */
.footer-text p {
    font-size: clamp(15px, 2.4vw, 17px);
    line-height: 1.7;
    color: #d7d0e4;
}

/* Листы */
.footer-text ul {
    display: grid;
    gap: 8px;
    padding-left: 0;
    /* у тебя уже list-style-position: inside глобально */
    margin: 4px 0 8px;
}

.footer-text li {
    padding: 6px 10px 6px 36px;
    background: rgba(147, 51, 234, .08);
    border: 1px solid rgba(147, 51, 234, .18);
    border-radius: 12px;
    position: relative;
}

.footer-text li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .22);
}

/* Картинки внутри статьи */
.footer-text img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(147, 51, 234, .18);
    background: #140c27;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    margin: 8px 0 4px;
    object-fit: cover;
}

/* Блоки-акценты (подсказки, важное, условия) */
.footer-text .callout {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px dashed rgba(168, 85, 247, .4);
    background: linear-gradient(180deg, rgba(124, 58, 237, .10), rgba(124, 58, 237, .06));
    color: #e9dcff;
}

/* FAQ: вопрос = <p><strong>...</strong></p>, ответ = следующий <p> */
.footer-text p>strong {
    display: block;
    font-size: clamp(15px, 2.5vw, 18px);
    color: #ffffff;
    background: rgba(147, 51, 234, .14);
    border: 1px solid rgba(168, 85, 247, .35);
    padding: 10px 14px;
    border-radius: 12px;
    position: relative;
}

.footer-text p>strong::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translateY(-50%) rotate(45deg);
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    opacity: .7;
}

.footer-text p+p {
    /* «ответ» сразу после вопроса визуально отделяем */
    border-left: 3px solid rgba(168, 85, 247, .55);
    padding-left: 12px;
}

/* Разделители */
.footer-text hr {
    border: none;
    height: 1px;
    margin: 18px 0;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, .4), transparent);
    opacity: .8;
}

/* Ссылки (на всякий случай) */
.footer-text a {
    color: #b892ff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(184, 146, 255, .6);
}

.footer-text a:hover {
    color: #d9c5ff;
    border-bottom-color: transparent;
}

/* Адаптивные отступы и уплотнение на очень маленьких экранах */
@media (max-width: 480px) {
    .footer-text {
        margin: 24px 12px;
        border-radius: 16px;
    }

    .footer-text li {
        padding-left: 32px;
    }
}

/* (опционально) аккуратный хинт-скролл, если внутри попадётся широкая таблица */
.footer-text .scroll-hint {
    mask-image: linear-gradient(to right, black 85%, transparent);
}

.footer-text .scroll-hint::-webkit-scrollbar {
    height: 6px;
}

.footer-text .scroll-hint::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, .5);
    border-radius: 3px;
}

.footer-text table {
    display: block;
    /* даёт возможность горизонтального скролла */
    inline-size: 100%;
    overflow-x: auto;
    /* скролл только при нехватке места */
    -webkit-overflow-scrolling: touch;
    /* инерция на iOS/Android */
    border: 1px solid rgba(147, 51, 234, .18);
    border-radius: 14px;
    background: rgba(147, 51, 234, .06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .03);
    padding-bottom: 4px;
    /* пространство под скроллбар */
    mask-image: linear-gradient(to right, black 85%, transparent);
    /* хинт, что можно скроллить */
}

.footer-text table:hover,
.footer-text table:focus-within {
    mask-image: none;
}

/* Сохраняем «табличное» поведение секций и строк */
.footer-text thead,
.footer-text tbody,
.footer-text tr {
    display: table;
    width: 100%;
    table-layout: fixed;
    /* ровные колонки при узком экране */
    border-collapse: collapse;
}

/* Шапка */
.footer-text thead th {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, rgba(147, 51, 234, .18), rgba(147, 51, 234, .08));
    border-bottom: 1px solid rgba(147, 51, 234, .25);
}

/* Ячейки */
.footer-text th,
.footer-text td {
    min-width: 250px;
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    color: #e7e0f6;
    border-bottom: 1px solid rgba(147, 51, 234, .18);
}

/* Зебра + hover */
.footer-text tbody tr:nth-child(odd) {
    background: rgba(147, 51, 234, .05);
}

.footer-text tbody tr:hover {
    background: rgba(147, 51, 234, .10);
}

/* Скругление углов (визуально) */
.footer-text thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.footer-text thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.footer-text tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.footer-text tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* На мобильных не переносим, чтобы включался горизонтальный скролл */
@media (max-width: 768px) {
    .footer-text thead,
    .footer-text tbody,
    .footer-text tr {
        display: table;
        width: 100%;
        table-layout: auto;
        /* ровные колонки при узком экране */
        border-collapse: collapse;
    }
    
    .footer-text th,
    .footer-text td {

    }
}

/* Кастомный горизонтальный скроллбар */
.footer-text table::-webkit-scrollbar {
    height: 6px;
}

.footer-text table::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, .5);
    border-radius: 3px;
}

.footer-text table::-webkit-scrollbar-track {
    background: transparent;
}

/* Firefox */
.footer-text table {
    scrollbar-width: thin;
    scrollbar-color: rgba(147, 51, 234, .55) transparent;
}