/* Основные переменные */
:root {
    /* Основная палитра */
    --primary: #8a1538;
    --primary-light: #b82248;
    --primary-dark: #6e0f2d;
    --secondary: #1a1a2e;
    --secondary-light: #293046;
    --secondary-dark: #0f0f1a;
    
    /* Нейтральные цвета */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --black: #212529;
    
    /* Функциональные цвета */
    --text: var(--dark-gray);
    --text-light: var(--gray);
    --text-dark: var(--black);
    --background: var(--white);
    --border: var(--light-gray);
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Переходы */
    --transition: all 0.3s ease;
    
    /* Контейнер */
    --container-width: 1200px;
    --container-padding: 1.25rem;
    
    /* Шрифты */
    --font-family: 'Roboto', 'Open Sans', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;
}

/* Сброс стилей */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые стили */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

section {
    padding: 4rem 0;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

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

/* Кнопки */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Шапка сайта */
header {
    padding: 1rem 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    }

    .benefit {
    scroll-snap-stop: always;
    position: relative;
        max-width: 450px;
        margin: 0 auto;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

/* Секция приветствия */
.welcome {
    padding: 8rem 0 6rem;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/mainbanner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-top: -85px;
    position: relative;
}

.welcome::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--background), transparent);
}

.welcome h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: fadeInDown 1s ease;
}

.welcome .intro {
    font-size: 1.4rem;
    max-width: 750px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.2s ease;
}

.welcome .btn {
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 1.4s ease;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Баннер для внутренних страниц */
.page-banner {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.95)), url('../img/mainbanner.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    margin-top: -85px;
    margin-bottom: 3rem;
    position: relative;
}

.page-banner::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, var(--background), transparent);
}

.page-banner h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Секция преимуществ */
.benefits {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.benefits h2 {
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.benefits::after {
    content: "\2192";
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary);
    animation: slideHint 2s infinite;
    opacity: 0;
    display: none;
}

@keyframes slideHint {
    0% { opacity: 0; right: 15px; }
    50% { opacity: 1; right: 10px; }
    100% { opacity: 0; right: 5px; }
}

.scroll-indicator {
    display: none;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.scroll-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: rgba(138, 21, 56, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator span:first-child {
    width: 12px;
    height: 12px;
    background-color: var(--primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.benefit {
    scroll-snap-stop: always;
    position: relative;
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
    border-radius: var(--radius-md);
    background-color: var(--background);
    box-shadow: var(--shadow-sm);
}

.benefit:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
}

.benefit-icon {
    position: relative;
    margin-bottom: 1.25rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: rgba(138, 21, 56, 0.08);
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.benefit-emoji {
    transform: rotate(0deg) !important;
    font-style: normal !important;
    text-orientation: upright !important;
    writing-mode: horizontal-tb !important;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2.75rem;
    color: var(--primary);
}

.benefit h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.benefit p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Текстовый блок */
.text-section {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.text-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.text-section h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.text-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    text-align: justify;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .text-content {
        font-size: 1rem;
        line-height: 1.7;
        padding: 0 1rem;
    }
}


/* Баннер */
.banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)), url('../img/banner.jpg');
    background-blend-mode: multiply;
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    margin: 5rem 0;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 60%);
}

.banner-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.banner p {
    color: var(--white);
    margin-bottom: 2rem;
    font-size: 1.3rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.banner .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Дополнительный раздел */
.advanced-info {
    padding: 4rem 0;
    background-color: var(--white);
}

.advanced-info .container {
    max-width: 900px;
}

.advanced-info p {
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
}

/* Предпросмотр FAQ */
.faq-preview {
    padding: 4rem 0;
    background-color: var(--white);
}

.faq-items {
    margin-bottom: 2.5rem;
}

.faq-item {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.faq-item:hover {
    background-color: var(--white);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h3::after {
    content: '+';
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--primary);
}

.faq-preview .btn {
    display: block;
    margin: 2rem auto 0;
    width: fit-content;
}

/* Футер */
footer {
    background-color: var(--secondary);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Страницы с контентом */
.content-page {
    padding: 4rem 0;
}

.content-page .container {
    max-width: 900px;
}

.content-page h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.content-page h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 1.9rem;
}

.content-page p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.content-section {
    margin-bottom: 4rem;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* FAQ страница */
.faq-page .container > p {
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-light);
}

.faq-items {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.faq-question {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background-color: var(--white);
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.toggle-icon {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon::before {
    background-color: var(--white);
}

.faq-open .faq-answer {
    display: block;
    animation: fadeIn 0.5s ease;
}

.faq-answer p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul, 
.faq-answer ol {
    margin: 1rem 0 1.5rem 1.25rem;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.faq-answer strong {
    color: var(--primary);
    font-weight: 600;
}

/* Комбинации покера */
.combinations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.combination {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.combination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
}

.combination:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.combination h2 {
    color: var(--primary);
    text-align: left;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.combination-image {
    text-align: center;
    margin: 2rem 0;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon::before {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    background-color: rgba(138, 21, 56, 0.08);
    border-radius: 50%;
    z-index: -1;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}

.combination-emoji {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: bold;
    color: var(--primary);
    background-color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: inline-block;
    letter-spacing: 3px;
    box-shadow: var(--shadow-sm);
}

.probability-table {
    margin: 2.5rem 0;
    overflow-x: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.probability-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
}

.probability-table th,
.probability-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.probability-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.probability-table tr:nth-child(even) {
    background-color: var(--white);
}

.probability-table tr:hover {
    background-color: rgba(138, 21, 56, 0.05);
}

.probability-table td:nth-child(2),
.probability-table td:nth-child(3) {
    text-align: center;
}

/* Медиа-запросы */
@media (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .benefits::after {
        display: block;
    }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: block;
    }
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    .benefits-grid {
        display: flex;
        flex-wrap: nowrap;
        scroll-behavior: smooth;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 1.5rem;
        padding: 1rem 1rem 2rem;
        max-width: 100%;
        margin: 0 auto;
    }

    .benefits-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .benefit {
        flex: 0 0 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        position: relative;
        margin: 0;
        transform: none !important;
        border: 1px solid rgba(138, 21, 56, 0.1);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        width: 85%;
        max-width: 450px;
    }
    
    .welcome h1 {
        font-size: 3rem;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }
    
    .benefits-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-column {
        text-align: center;
    }
    
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .benefits h2 {
        font-size: 1.8rem;
    }

    .benefits::after {
        content: "\2192";
        position: absolute;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        font-size: 2rem;
        color: var(--primary);
        animation: slideHint 2s infinite;
        opacity: 0;
        display: none;
    }

    @keyframes slideHint {
        0% { opacity: 0; right: 15px; }
        50% { opacity: 1; right: 10px; }
        100% { opacity: 0; right: 5px; }
    }

    .benefit {
        padding: 1.5rem;
    }

    .benefit-icon {
        height: 60px;
        margin-bottom: 1rem;
    }

    .benefit-icon::before {
        width: 60px;
        height: 60px;
    }

    .benefit-emoji {
        font-size: 2.25rem;
    }

    .benefit h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .benefit p {
        font-size: 0.95rem;
    }
    
    .benefits-grid {
        width: calc(100% - 2rem);
        padding: 0 1rem 2rem;
    }
    
    .benefit {
        flex: 0 0 80%;
        width: 80%;
    }
}
