/* Основные цвета */
:root {
    --red: #ff3e4d;
    --purple: #7b4bff;
    --blue: #3e77ff;
    --dark: #1a1a2e;
    --light-gray: #f5f5f7;
    --gray: #e0e0e0;
    --white: #ffffff;
    --accent-color: #ff3e4d;
    --purple-accent: #7b4bff;
    --blue-accent: #3e77ff;
}

/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

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

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--red), var(--purple));
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

section {
    padding: 60px 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(to right, var(--red), var(--purple));
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(123, 75, 255, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(123, 75, 255, 0.3);
}

.btn-outline {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--purple);
    color: var(--purple);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    text-align: center;
}

.btn-outline:hover {
    background-color: var(--purple);
    color: var(--white);
    transform: translateY(-3px);
}

/* Хедер */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--red), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    font-weight: 500;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--red), var(--purple));
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    background-color: var(--dark);
    padding: 20px 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 15px;
    text-align: center;
}

.mobile-nav a {
    color: var(--white);
    font-weight: 500;
}

.mobile-nav a.active {
    color: var(--red);
}

/* Блок "Вступление" */
.intro {
    background: linear-gradient(135deg, rgba(255, 62, 77, 0.9), rgba(123, 75, 255, 0.9), rgba(62, 119, 255, 0.9)), url('../images/main-illustration-learning.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 0 60px;
}

.intro h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Блок "Что вы получите" */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--white);
}

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

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

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

/* Баннер */
.banner {
    background: linear-gradient(135deg, rgba(255, 62, 77, 0.9), rgba(123, 75, 255, 0.9), rgba(62, 119, 255, 0.9)), url('../images/main-illustration-learning.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.banner h2 {
    margin-bottom: 1rem;
}

.banner h2::after {
    background-color: var(--white);
}

.banner p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.banner .btn {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.banner .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--white);
    transition: all 0.5s ease;
    z-index: -1;
}

.banner .btn:hover {
    color: var(--purple);
    background: transparent;
    transform: translateY(-3px);
}

.banner .btn:hover:before {
    width: 100%;
}

/* Дополнительный раздел */
.combinations {
    background-color: var(--light-gray);
    text-align: center;
}

.combinations p {
    max-width: 800px;
    margin: 0 auto;
}

/* Блок категорий */
.categories {
    background-color: var(--white);
}

.categories-desc {
    text-align: center;
    margin-bottom: 40px;
}

.categories-wrapper {
    position: relative;
    width: 100%;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.category-card {
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.category-icon.red {
    background-color: var(--red);
}

.category-icon.purple {
    background-color: var(--purple);
}

.category-icon.blue {
    background-color: var(--blue);
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Слайдер-контроллер для мобильных устройств */
.slider-controls {
    margin-top: 20px;
    display: none;
    justify-content: center;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--purple);
}

@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Блок FAQ */
.faq {
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    transition: all 0.3s ease;
    color: var(--purple);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 300px;
}

.faq-more {
    text-align: center;
    margin-top: 40px;
}

/* Футер */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 50px 0 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    margin: 0 15px 10px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--red);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Адаптивность */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    /* Мобильный слайдер категорий */
    .categories-wrapper {
        overflow: hidden;
        width: 100%;
    }
    
    .categories-slider {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE и Edge */
        padding-bottom: 15px;
        width: 100%;
        margin: 0;
    }
    
    .categories-slider::-webkit-scrollbar {
        display: none; /* Chrome, Safari и Opera */
    }
    
    .categories-grid {
        display: flex;
        grid-template-columns: none;
        gap: 15px;
        padding: 10px 0;
        scroll-snap-type: x mandatory;
        width: 100%;
    }
    
    .category-card {
        width: 100%;
        min-width: auto;
        flex: 0 0 90%;
        margin-right: 0;
        scroll-snap-align: center;
        box-sizing: border-box;
    }
    
    /* Первая карточка с небольшим отступом слева */
    .categories-grid .category-card:first-child {
        margin-left: 5%;
    }
    
    /* Последняя карточка с небольшим отступом справа */
    .categories-grid .category-card:last-child {
        margin-right: 5%;
    }
    
    .slider-controls {
        display: flex;
    }

    .intro {
        padding: 60px 0 30px;
    }

    .banner {
        padding: 60px 0;
    }

    .filter-btn {
        padding: 10px 18px;
        margin: 0 5px 10px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .filter-btn.active {
        box-shadow: 0 2px 6px rgba(123, 75, 255, 0.25);
    }
    
    .faq-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
    }

    .intro-text, 
    .banner p {
        font-size: 1rem;
    }

    .benefit-card,
    .category-card {
        padding: 20px 15px;
    }
    
    .category-card {
        min-width: auto;
        flex: 0 0 95%;
        padding: 20px;
    }
    
    .categories-grid .category-card:first-child {
        margin-left: 2.5%;
    }
    
    .categories-grid .category-card:last-child {
        margin-right: 2.5%;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.intro, .benefits, .banner, .combinations, .categories, .faq {
    animation: fadeIn 0.8s ease-out;
}

/* Стили для внутренних страниц */
.page-header {
    background: linear-gradient(135deg, rgba(255, 62, 77, 0.9), rgba(123, 75, 255, 0.9), rgba(62, 119, 255, 0.9)), url('../images/main-illustration-learning.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 60px 0;
    animation: fadeIn 0.8s ease-out;
}

.page-header h1 {
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Стили для страницы правил */
.rules-content {
    padding: 40px 0;
    animation: fadeIn 0.8s ease-out;
}

.content-block {
    margin-bottom: 60px;
}

.content-block h2 {
    text-align: left;
    margin-bottom: 20px;
}

.content-block h2::after {
    left: 0;
    transform: none;
}

.content-block p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.info-card {
    display: flex;
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-right: 20px;
    flex-shrink: 0;
}

.info-icon.red {
    background-color: var(--red);
}

.info-icon.purple {
    background-color: var(--purple);
}

.info-icon.blue {
    background-color: var(--blue);
}

.info-content h3 {
    margin-bottom: 10px;
}

.info-content p {
    margin-bottom: 0;
}

.card-values {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin: 30px 0;
}

.card-values h3 {
    margin-bottom: 15px;
    color: var(--purple);
}

.card-values ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    list-style: none;
}

.card-values li {
    padding: 8px 12px;
    border-radius: 5px;
    background-color: var(--light-gray);
    text-align: center;
    transition: all 0.3s ease;
}

.card-values li:hover {
    background-color: var(--purple);
    color: var(--white);
    transform: translateY(-3px);
}

.game-stages {
    margin: 30px 0;
}

.stage {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.stage:last-child {
    margin-bottom: 0;
}

.stage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--purple);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.stage-content h3 {
    margin-bottom: 5px;
}

.stage-content p {
    margin-bottom: 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.action-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 15px;
}

.action-icon.blue {
    background-color: var(--blue);
}

.action-icon.red {
    background-color: var(--red);
}

.action-card h3 {
    margin-bottom: 10px;
}

.action-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.positions-list {
    margin: 30px 0;
}

.position-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray);
}

.position-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.position-name {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.position-icon {
    background-color: var(--dark);
    color: var(--white);
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-right: 15px;
}

.position-name h4 {
    margin: 0;
    font-size: 1.1rem;
}

.position-item p {
    margin-bottom: 0;
    padding-left: 45px;
}

.page-nav {
    background-color: var(--light-gray);
    padding: 60px 0;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.nav-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
}

.nav-icon.red {
    background-color: var(--red);
}

.nav-icon.purple {
    background-color: var(--purple);
}

.nav-icon.blue {
    background-color: var(--blue);
}

.nav-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.nav-card p {
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Адаптивность для внутренних страниц */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 30px;
    }
    
    .rules-content {
        padding: 30px 0;
    }
    
    .content-block {
        margin-bottom: 40px;
    }
    
    .content-block h2 {
        text-align: center;
    }
    
    .content-block h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .card-values ul {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .stage {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .stage-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .position-name {
        flex-direction: column;
    }
    
    .position-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .position-item p {
        padding-left: 0;
    }
    
    .page-nav {
        padding: 40px 0;
    }
    
    .nav-cards {
        grid-template-columns: 1fr;
    }
    
    .combination-item {
        flex-direction: column;
    }
    
    .combination-rank {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .combination-example {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .card-symbol {
        margin: 5px;
    }
    
    .combination-stats {
        flex-direction: column;
    }
    
    .stat {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Стили для страницы комбинаций */
.combinations-content {
    padding: 40px 0;
    animation: fadeIn 0.8s ease-out;
}

.combinations-list {
    margin: 40px 0;
}

.combination-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--gray);
}

.combination-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.combination-rank {
    background-color: var(--purple);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 25px;
    flex-shrink: 0;
}

.combination-content {
    flex-grow: 1;
}

.combination-content h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.combination-content p {
    margin-bottom: 20px;
}

.combination-example {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
}

.card-symbol {
    width: 60px;
    height: 80px;
    background-color: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-top: 5px;
}

.card-symbol.red {
    color: #e74c3c;
}

.card-symbol.black {
    color: #2c3e50;
}

.card-symbol span {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 1.2rem;
}

.combination-stats {
    display: flex;
    gap: 30px;
}

.stat {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    width: 200px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 5px;
}

.stat-value {
    font-weight: 700;
    color: var(--purple);
}

/* Стили для страницы с советами */
.tips-content {
    padding: 40px 0;
    animation: fadeIn 0.8s ease-out;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.tip-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tip-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 20px;
}

.tip-icon.purple {
    background-color: var(--purple);
}

.tip-icon.blue {
    background-color: var(--blue);
}

.tip-icon.red {
    background-color: var(--red);
}

.tip-card h3 {
    margin-bottom: 15px;
}

.tip-card p {
    margin-bottom: 15px;
}

.tip-advice {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    font-size: 0.95rem;
}

.math-concepts {
    margin: 30px 0;
}

.math-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.math-item:last-child {
    margin-bottom: 0;
}

.math-item h3 {
    color: var(--blue);
    margin-bottom: 15px;
}

.math-example {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.math-example p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.strategy-tips {
    margin: 30px 0;
}

.strategy-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.strategy-item:last-child {
    margin-bottom: 0;
}

.strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.strategy-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.strategy-header i {
    font-size: 1.5rem;
    color: var(--blue);
    margin-right: 15px;
}

.strategy-header h3 {
    margin-bottom: 0;
}

.bankroll-rules {
    margin: 30px 0;
}

.bankroll-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
}

.bankroll-item:last-child {
    margin-bottom: 0;
}

.bankroll-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--white);
    margin-right: 20px;
    flex-shrink: 0;
}

.bankroll-number.red {
    background-color: var(--red);
}

.bankroll-content {
    flex-grow: 1;
}

.bankroll-content h3 {
    margin-bottom: 10px;
}

.bankroll-content p {
    margin-bottom: 0;
}

.warning-box {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.warning-box i {
    font-size: 1.8rem;
    color: #ffc107;
    margin-right: 20px;
}

.warning-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Адаптивность для страницы советов */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .tip-card,
    .math-item,
    .strategy-item {
        padding: 20px;
    }
    
    .strategy-header {
        flex-direction: column;
        text-align: center;
    }
    
    .strategy-header i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .bankroll-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .bankroll-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .warning-box {
        flex-direction: column;
        text-align: center;
    }
    
    .warning-box i {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Стили для FAQ страницы */
.faq-content {
    padding: 60px 0;
}

.faq-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 12px 24px;
    margin: 0 10px 10px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark);
}

.filter-btn:hover {
    background: #e0e0e0;
    color: var(--dark);
}

.filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: linear-gradient(to right, var(--red), var(--purple));
    color: var(--white);
    box-shadow: 0 2px 8px rgba(123, 75, 255, 0.3);
}

.faq-full-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.faq-question {
    padding: 20px 25px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
}

.faq-question i {
    font-size: 18px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.faq-item.active .faq-answer {
    padding: 20px 25px;
    max-height: 1000px;
}

.faq-answer p, .faq-answer ul {
    margin-top: 0;
}

.faq-answer ul {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 10px;
}

/* Блок дополнительных ресурсов */
.additional-resources {
    background: #f5f7fa;
    padding: 60px 0;
}

.resources-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.resource-icon i {
    font-size: 24px;
    color: white;
}

.resource-icon.purple {
    background: var(--purple-accent);
}

.resource-icon.blue {
    background: var(--blue-accent);
}

.resource-icon.red {
    background: var(--accent-color);
}

.resource-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.resource-card ul {
    padding-left: 20px;
    margin: 0;
}

.resource-card li {
    margin-bottom: 8px;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        margin: 0 5px 10px;
        font-size: 14px;
        min-width: 80px;
    }
    
    .filter-btn.active {
        box-shadow: 0 2px 6px rgba(123, 75, 255, 0.25);
    }
    
    .faq-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
} 