/* ===== Подключение шрифтов ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700;14..32,800&display=swap');

/* ===== CSS переменные ===== */
:root {
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8A5C;
    --secondary: #4ECDC4;
    --secondary-dark: #3AB5AD;
    --accent: #FFE66D;
    --dark: #1A1A2E;
    --dark-light: #16213E;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --bg-light: #FFF8F5;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 15px rgba(255, 107, 53, 0.15);
    --shadow-md: 0 8px 30px rgba(255, 107, 53, 0.25);
    --shadow-lg: 0 16px 48px rgba(255, 107, 53, 0.35);
    --gradient-1: linear-gradient(135deg, #FF6B35 0%, #FF8A5C 100%);
    --gradient-2: linear-gradient(135deg, #4ECDC4 0%, #44B39D 100%);
    --gradient-3: linear-gradient(135deg, #FFE66D 0%, #FFB347 100%);
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Кастомный скроллбар ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-3);
}

/* ===== Хедер ===== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideDown 0.6s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header__logo img {
    height: 60px;
    width: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.header__logo img:hover {
    transform: scale(1.05) rotate(-3deg);
}

.header__menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.header__item {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.header__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header__item:hover::after {
    width: 70%;
}

.header__item:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0.5rem;
}

.header__contact p {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.header__contact p i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.header__button {
    background: var(--gradient-1);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

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

.header__button:active {
    transform: translateY(0) scale(0.98);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Основной контент ===== */
.main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Секции ===== */
section {
    margin-bottom: 3rem;
}

/* ===== Заголовки ===== */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.advantages__subtitle,
.group__subtitle,
.lessons__subtitle,
.food__subtitle,
.optionally__subtitle,
.review__subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== Преимущества ===== */
.advantages__section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.card__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card__item {
    background: #efdd934d;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
    border: 1px solid transparent;
}

.card__item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.advantages__icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.card__item:hover .advantages__icon img {
    transform: rotate(360deg) scale(1.1);
}

.advantages__icon p {
    font-weight: 600;
    color: var(--dark);
}

/* ===== Группы ===== */
.group__section {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8A5C 100%);
    border-radius: var(--border-radius);
    padding: 3rem;
    color: var(--white);
}

.group__title h2 {
    background: var(--white);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

.group__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.group__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.group_item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.group_item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.25);
}

.group__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.group_item p {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.group__badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: var(--dark);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

/* ===== Слайдер занятий ===== */
.lessons__section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.slider__container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.slider__wrapper {
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.slider__items {
    display: flex;
    transition: transform 0.5s ease;
}

.slider__item {
    min-width: 33.333%;
    padding: 0.5rem;
    cursor: pointer;
}

.slider__item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.slider__item img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

.slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.slider__btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.slider__btn.prev {
    left: 10px;
}

.slider__btn.next {
    right: 10px;
}

.slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider__dots span.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== Модальные окна ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: none;
    border: none;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: var(--primary);
}

/* ===== Питание ===== */
.food__section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.food__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.food__item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.4s ease;
}

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

.food__icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transition: transform 0.5s ease;
}

.food__item:hover .food__icon img {
    transform: scale(1.1) rotate(-5deg);
}

.food__icon p {
    font-weight: 500;
    color: var(--dark);
}

/* ===== Дополнительные занятия ===== */
.optionally__section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.optionally__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.optionally__item {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

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

.optionally__image {
    position: relative;
    overflow: hidden;
}

.optionally__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.optionally__item:hover .optionally__image img {
    transform: scale(1.1);
}

.optionally__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.optionally__item:hover .optionally__overlay {
    transform: translateY(0);
}

.optionally__text {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

/* ===== Отзывы ===== */
.review__section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.review-slider__container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.review-slider__wrapper {
    overflow: hidden;
}

.review-slider__items {
    display: flex;
    transition: transform 0.5s ease;
}

.review-slider__item {
    min-width: 100%;
    padding: 0 1rem;
}

.review__card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.review__stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review__text {
    color: var(--gray);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.review__author {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
}

.review__name {
    font-weight: 700;
    color: var(--dark);
}

.review__child {
    color: var(--gray);
    font-size: 0.9rem;
}

.review-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--gray-light);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.review-slider__btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

.review-slider__btn.prev {
    left: 0;
}

.review-slider__btn.next {
    right: 0;
}

.review-slider__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.review-slider__dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-slider__dots span.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== О нас ===== */
.about__section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.about__title h2 {
    background: var(--gradient-2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.about__title h2::after {
    background: var(--gradient-2);
}

.info p {
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features,
.program,
.principles {
    margin-bottom: 2rem;
}

.features h3,
.program h3,
.principles h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features h3 i,
.program h3 i,
.principles h3 i {
    color: var(--primary);
}

.features ul,
.program ul,
.principles ul {
    list-style: none;
    padding-left: 0;
}

.features ul li,
.program ul li,
.principles ul li {
    padding: 0.5rem 0;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.features ul li:last-child,
.program ul li:last-child,
.principles ul li:last-child {
    border-bottom: none;
}

.features ul li i,
.program ul li i {
    color: var(--secondary);
}

.principles ul li {
    padding-left: 0;
}

.principles ul li::before {
    content: '✦';
    color: var(--primary);
    margin-right: 0.5rem;
}

.contacts {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
}

.contacts h3 {
    font-size: 1.3rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contacts h3 i {
    color: var(--primary);
}

.contact-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-link {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-link.telegram {
    background: #0088cc;
    color: white;
}

.contact-link.telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}

.contact-link.vk {
    background: #4a76a8;
    color: white;
}

.contact-link.vk:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 118, 168, 0.3);
}

/* ===== Кнопка "Наверх" ===== */
.top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.top.visible {
    opacity: 1;
    visibility: visible;
}

.top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* ===== Футер ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer__content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.footer__info p {
    color: var(--gray-light);
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__info p i {
    color: var(--primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer__links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.footer__social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.footer__copy {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    color: var(--gray-light);
    font-size: 0.9rem;
}

/* ===== Адаптивность ===== */
@media (max-width: 1024px) {
    .header {
        padding: 0.5rem 1rem;
    }

    .header__menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
        background: var(--white);
    }

    .header__menu.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .header__contact {
        flex-wrap: wrap;
        justify-content: center;
    }

    .slider__item {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .main {
        padding: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .advantages__section,
    .group__section,
    .lessons__section,
    .food__section,
    .optionally__section,
    .review__section,
    .about__section {
        padding: 1.5rem;
    }

    .card__items,
    .group__items,
    .food__items,
    .optionally__items {
        grid-template-columns: 1fr 1fr;
    }

    .slider__item {
        min-width: 100%;
    }

    .slider__item img {
        height: 200px;
    }

    .slider__btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .review-slider__container {
        padding: 0 30px;
    }

    .review-slider__btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .contact-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .card__items,
    .group__items,
    .food__items,
    .optionally__items {
        grid-template-columns: 1fr;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header__button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .review-slider__container {
        padding: 0 15px;
    }

    .review__card {
        padding: 1rem;
    }

    .top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }
}