/* Общие стили и сброс */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #7e9a9a;
    --secondary-color: #f2e9e4;
    --accent-color: #c8b6a6;
    --text-color: #4a4a4a;
    --light-text: #f8f8f8;
    --dark-bg: #2c3639;
    --transition: all 0.3s ease;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.btn:hover {
    background-color: var(--dark-bg);
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

section {
    padding: 80px 0;
}

/* Заголовок */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 20px 0;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    position: relative;
    font-weight: 500;
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.menu a:hover {
    color: var(--primary-color);
}

.menu a:hover::after {
    width: 100%;
}

.phone a {
    font-weight: 600;
    color: var(--dark-bg);
}

.phone a:hover {
    color: var(--primary-color);
}

/* Главная секция */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/sJ7s18.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    margin-top: 0;
    padding: 0;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Анимации fade-in */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* О нас */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeIn 0.8s ease-out forwards;
}

.about-text p:nth-child(1) {
    animation-delay: 0.2s;
}

.about-text p:nth-child(2) {
    animation-delay: 0.4s;
}

.about-text p:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.02);
}

/* Виды занятий */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.class-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.class-image {
    height: 200px;
    overflow: hidden;
}

.class-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.class-card:hover .class-image img {
    transform: scale(1.1);
}

.class-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.class-card p {
    padding: 0 20px 20px;
    color: var(--text-color);
}

/* Расписание */
.schedule {
    background-color: var(--secondary-color);
}

.schedule-table {
    overflow-x: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: #fff;
}

.schedule-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 15px 0;
    text-align: center;
}

.schedule-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-column {
    padding: 15px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.day-column:last-child {
    border-right: none;
}

.class-item {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: var(--border-radius);
    background-color: #f8f8f8;
    transition: var(--transition);
}

.class-item:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.time {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
}

.class-name {
    font-size: 0.9rem;
}

/* Применяем подсветку для текущего дня недели */
.day-column.current-day .class-item {
    background-color: rgba(126, 154, 154, 0.15);
}

/* Форма записи */
.booking {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/rg222i.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.booking-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.booking-form {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(126, 154, 154, 0.2);
}

/* Отзывы */
.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    min-height: 200px;
}

.review-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

.review-card.active {
    opacity: 1;
    visibility: visible;
}

.review-text {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
}

.review-dots {
    display: flex;
    justify-content: center;
    margin-top: 250px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Контакты */
.contacts {
    background-color: var(--secondary-color);
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.contact-item h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-map img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* Подвал */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.footer-menu h3,
.footer-contacts h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-menu a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contacts p {
    margin-bottom: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.policies a:hover {
    color: var(--accent-color);
}

/* Cookies popup */
.cookies-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: rgba(44, 54, 57, 0.95);
    color: var(--light-text);
    padding: 20px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: bottom 0.4s ease-in-out;
}

.cookies-popup.show {
    bottom: 0;
}

.cookies-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookies-content p {
    flex: 1;
}

/* Media queries для адаптивности */
@media (max-width: 992px) {
    .about-content,
    .booking-container,
    .contacts-container,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .header {
        position: relative;
    }

    .hero {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .schedule-header,
    .schedule-body {
        grid-template-columns: repeat(7, minmax(120px, 1fr));
    }

    .schedule-table {
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .nav {
        flex-direction: column;
        gap: 20px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .phone {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .cookies-content {
        flex-direction: column;
        text-align: center;
    }

    .review-card {
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .review-dots {
        margin-top: 300px;
    }
}

/* CSS для политики конфиденциальности */
.policy {
    padding-top: 120px;
}

.policy h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.policy-content {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.policy-nav {
    display: flex;
    margin-bottom: 30px;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
}

.policy-nav a {
    padding: 15px 25px;
    white-space: nowrap;
    transition: var(--transition);
    font-weight: 500;
}

.policy-nav a.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.policy-section p {
    margin-bottom: 15px;
}

/* CSS для страницы благодарности */
.thank-you {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/rvKWJX.jpg') no-repeat center center;
    background-size: cover;
}

.thank-you-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
}

.thank-you h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thank-you p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* CSS для табов в политике */
.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-link {
    padding: 15px 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* CSS анимации для смены отзывов */
@keyframes reviewSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes reviewSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
} 