/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a7c59;
    --secondary-color: #6b9b7d;
    --text-dark: #2c3e2d;
    --text-light: #5a6b5d;
    --bg-light: #f8f9f8;
    --bg-white: #ffffff;
    --border-color: #e0e5e1;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* Анимация плавного появления страницы */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeIn 0.6s ease-out;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* HERO секция */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-dark);
    padding: 2rem;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    z-index: -1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.9), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Анимации появления */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.2s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1.2s ease-out 0.4s both;
}

/* Page HERO */
.page-hero {
    background-color: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-small:hover {
    background-color: var(--primary-color);
}

/* Секции */
section {
    padding: 4rem 0;
    position: relative;
}

/* Разделители между секциями */
section:not(.navbar):not(.page-hero):not(.hero):not(.footer) {
    border-top: 2px solid var(--border-color);
}

section:not(.navbar):not(.page-hero):not(.hero):not(.footer)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    opacity: 0.5;
}

/* Первая секция после hero не должна иметь разделитель сверху */
.page-hero + section,
.hero + section {
    border-top: none;
}

.page-hero + section::before,
.hero + section::before {
    display: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Анимация поднятия карточек */
@keyframes liftUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-lift {
    animation: liftUp 0.6s ease-out;
    transition: var(--transition);
}

.card-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Основные направления */
.directions {
    background-color: var(--bg-light);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.direction-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.direction-card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.direction-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.direction-card:hover img {
    transform: scale(1.05);
}

.direction-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.direction-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* Галерея */
.gallery-section {
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Планировщик */
.planner-section {
    background-color: var(--bg-light);
}

.planner-wrapper {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.planner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.planner-exercises {
    margin-bottom: 1.5rem;
}

.exercise-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-light);
    border-radius: 5px;
    transition: var(--transition);
}

.exercise-item:hover {
    background-color: var(--border-color);
}

.exercise-item input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.exercise-item.completed {
    text-decoration: line-through;
    opacity: 0.6;
}

.planner-add {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.planner-add input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.planner-add .btn-small {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    white-space: nowrap;
}

.planner-add input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Игра */
.game-section {
    background-color: var(--bg-white);
}

.game-wrapper {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.memory-card {
    aspect-ratio: 1;
    background-color: var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    padding: 0.5rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.memory-card.flipped {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.memory-card.matched {
    opacity: 0.5;
    cursor: default;
}

.memory-card:hover:not(.flipped):not(.matched) {
    transform: scale(1.05);
    background-color: var(--secondary-color);
}

/* Популярные материалы */
.popular-section {
    background-color: var(--bg-light);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.popular-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.popular-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.popular-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.popular-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.popular-card:hover img {
    transform: scale(1.05);
}

.popular-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.popular-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-light);
}

.read-more {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Отзывы */
.testimonials-section {
    background-color: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}

/* Дисклеймер */
.disclaimer-section {
    background-color: var(--bg-light);
}

.disclaimer-box {
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 5px;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Программы */
.programs-section {
    background-color: var(--bg-light);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.program-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.program-card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.program-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.program-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.program-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-light);
}

.program-features {
    padding: 0 1.5rem 1.5rem;
    list-style: none;
}

.program-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.program-features li:last-child {
    border-bottom: none;
}

/* Таблица */
.formats-section {
    background-color: var(--bg-white);
}

.table-wrapper {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.formats-table {
    width: 100%;
    border-collapse: collapse;
}

.formats-table thead {
    background-color: var(--primary-color);
    color: white;
}

.formats-table th,
.formats-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.formats-table tbody tr:hover {
    background-color: var(--bg-light);
}

/* Гид */
.guide-section {
    background-color: var(--bg-light);
}

.guide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.guide-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.guide-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.guide-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.guide-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Упражнения в программах */
.program-exercises-section {
    background-color: var(--bg-white);
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.exercise-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.exercise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.exercise-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.exercise-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.exercise-card h4 {
    padding: 1rem;
    color: var(--text-dark);
}

.exercise-card p {
    padding: 0 1rem 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* FAQ */
.faq-section {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-light);
    line-height: 1.8;
}

/* Категории */
.categories-section {
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card .card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-light);
}

.category-link {
    display: inline-block;
    padding: 0 1.5rem 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Пошаговый гид */
.step-guide-section {
    background-color: var(--bg-white);
}

.step-guide-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.step-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-item {
    background-color: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.step-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-light);
}

.step-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 500px;
}

/* Аккордеон */
.accordion-section {
    background-color: var(--bg-light);
}

.accordion {
    max-width: 900px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--bg-white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--bg-light);
}

.accordion-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.accordion-body h4 {
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.accordion-body h4:first-child {
    margin-top: 0;
}

.accordion-body p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Последовательность */
.sequence-section {
    background-color: var(--bg-white);
}

.sequence-list {
    max-width: 700px;
    margin: 0 auto;
}

.sequence-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.sequence-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.sequence-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.sequence-content p {
    color: var(--text-light);
}

/* Мини-сеты */
.mini-sets-section {
    background-color: var(--bg-light);
}

.mini-sets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mini-set-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.mini-set-card h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.mini-set-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.mini-set-card ul {
    list-style: none;
    padding-left: 0;
}

.mini-set-card li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.mini-set-card li:last-child {
    border-bottom: none;
}

/* Статьи */
.articles-grid-section {
    background-color: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.article-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-light);
}

/* Рекомендуемые статьи */
.featured-articles-section {
    background-color: var(--bg-white);
}

.featured-articles {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image {
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.featured-content {
    padding: 2rem;
}

.featured-content h2 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.featured-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Тематические подборки */
.thematic-section {
    background-color: var(--bg-light);
}

.thematic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.thematic-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.thematic-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.thematic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thematic-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--text-dark);
}

.thematic-card > p {
    padding: 0 1.5rem 1rem;
    color: var(--text-light);
}

.thematic-card ul {
    padding: 0 1.5rem 1.5rem;
    list-style: none;
}

.thematic-card li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.thematic-card li:last-child {
    border-bottom: none;
}

/* Временная шкала */
.timeline-section {
    background-color: var(--bg-white);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-left: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 2rem;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Пагинация */
.pagination-section {
    background-color: var(--bg-light);
    padding: 2rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-link {
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.pagination-link:hover,
.pagination-link.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Чек-лист */
.checklist-section {
    background-color: var(--bg-white);
}

.checklist-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.checklist-wrapper {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.checklist-wrapper h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.checklist {
    list-style: none;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    margin-right: 1rem;
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item label {
    color: var(--text-dark);
    cursor: pointer;
    flex: 1;
}

.checklist-item input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    opacity: 0.6;
}

.checklist-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checklist-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.checklist-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Контакты */
.contact-info-section {
    background-color: var(--bg-light);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-info-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-light);
}

.contact-info-card a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Карта */
.map-section {
    background-color: var(--bg-white);
}

.map-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.map-note {
    text-align: center;
    color: var(--text-light);
}

/* Форма обратной связи */
.contact-form-section {
    background-color: var(--bg-light);
}

.form-description {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.popup.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-hover);
    animation: liftUp 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.popup-close:hover {
    color: var(--text-dark);
}

.popup-content p {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

/* Страница благодарности */
.thank-you-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.thank-you-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.thank-you-icon {
    margin: 0 auto 2rem;
    width: 80px;
    height: 80px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.thank-you-message {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.thank-you-button {
    margin-top: 2.5rem;
}

/* Футер */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-disclaimer {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.footer-disclaimer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .directions-grid,
    .popular-grid,
    .programs-grid,
    .exercises-grid,
    .categories-grid,
    .articles-grid,
    .gallery-grid-small,
    .mini-sets-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid-small .gallery-item:last-child {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .game-board {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .guide-content,
    .step-guide-content,
    .checklist-content {
        grid-template-columns: 1fr;
    }

    .featured-article {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        margin-left: 1.5rem;
    }

    .timeline-marker {
        left: -2rem;
    }

    .table-wrapper {
        overflow: visible;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .formats-table {
        width: 100%;
        max-width: 100%;
        font-size: 0.85rem;
        table-layout: fixed;
    }

    .formats-table th,
    .formats-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        word-wrap: break-word;
        hyphens: auto;
        text-align: left;
    }

    .formats-table th {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 500px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 2rem 0;
    }

    .game-board {
        gap: 0.5rem;
    }

    .memory-card {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    .formats-table {
        font-size: 0.75rem;
    }

    .formats-table th,
    .formats-table td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .formats-table th {
        font-size: 0.8rem;
    }
}

/* Стили для страниц статей */
.article-page {
    padding: 2rem 0 4rem;
    min-height: 80vh;
}

.article-header {
    margin-bottom: 2rem;
}

.btn-back {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.btn-back:hover {
    background-color: var(--secondary-color);
    transform: translateX(-3px);
}

.article-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.article-meta {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--text-dark);
}

.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.article-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Адаптивность для страниц статей */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 0 1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-content p,
    .article-content li {
        font-size: 1rem;
    }

    .article-image {
        border-radius: 8px;
    }
}

