/* Основные стили */
:root {
    --main-color: #40E0D0;
    --accent-color: #FF4500;
    --bg-color: #F5F5F5;
    --cream-color: #FFFDD0;
    --dark-blue: #000080;
    --text-color: #333333;
    --white: #FFFFFF;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-blue);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #E03E00;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Шапка сайта */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--main-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-color);
}

/* Навигация */
.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-checkbox {
    display: none;
}

/* Херо секция */
.hero {
    background-image: url('../img/rExNoQ.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    position: relative;
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease;
}

/* Секции */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* О компании */
.about {
    background-color: var(--cream-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Преимущества */
.benefits {
    background-color: var(--white);
}

.benefits-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.benefit-item {
    flex: 1;
    min-width: 250px;
    background-color: var(--cream-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

/* Виды занятий */
.classes {
    background-color: var(--bg-color);
}

.classes-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.class-item {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.class-item:hover {
    transform: translateY(-10px);
}

.class-image {
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.class-item:hover .class-image img {
    transform: scale(1.1);
}

.class-content {
    padding: 20px;
}

.class-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.class-description {
    margin-bottom: 20px;
}

/* Отзывы */
.testimonials {
    background-color: var(--white);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-item {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--cream-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-text:before {
    content: """;
    font-size: 3rem;
    color: var(--main-color);
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.2;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Форма заказа */
.booking {
    background-color: var(--cream-color);
}

.booking-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.booking-info {
    flex: 1;
    min-width: 300px;
}

.booking-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

/* Удалены декоративные кружочки */

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-blue);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--main-color);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

option {
    color: black;
    background-color: white;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-container input {
    margin-top: 5px;
    margin-right: 10px;
}

.checkbox-label {
    font-size: 0.9rem;
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* FAQ */
.faq {
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--white);
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    border-left: 4px solid var(--main-color);
    display: block;
    width: 100%;
    text-align: left;
    position: relative;
}

.faq-question:after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-answer {
    background-color: var(--white);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

details[open] .faq-question:after {
    content: "−";
}

details[open] .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* Контакты */
.contacts {
    background-color: var(--white);
}

.contacts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    color: var(--main-color);
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 25px;
}

.contact-text {
    flex: 1;
}

.contact-text a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-text a:hover {
    color: var(--accent-color);
}

/* Подвал */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-title {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
}

.footer-title:after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--main-color);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--main-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 15px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-accept {
    background-color: var(--main-color);
    color: var(--white);
}

.cookie-decline {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

/* Страницы политик */
.policy-page {
    padding: 60px 0;
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.policy-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.policy-content h2:after {
    margin-left: 0;
}

.policy-content p {
    margin-bottom: 20px;
}

.policy-content ul, .policy-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

/* Страница благодарности */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.thank-you h1 {
    color: var(--main-color);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Анимации */
@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);
    }
}

/* Медиа запросы */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark-blue);
        cursor: pointer;
    }
    
    .mobile-menu-checkbox:checked ~ .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }
    
    .mobile-menu-checkbox:checked ~ .nav-menu li {
        margin: 10px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .benefit-item, .class-item, .testimonial-item {
        min-width: 100%;
    }
    
    .contact-info, .contact-map {
        min-width: 100%;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .footer-column {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .booking-form {
        padding: 25px;
    }
    
    .policy-container {
        padding: 25px;
    }
}
