/* Базовые стили и переменные */
:root {
    --primary-color: #6b8e66;
    --secondary-color: #8c7362;
    --accent-color: #d9b38c;
    --light-color: #f5f5f0;
    --dark-color: #333333;
    --text-color: #444444;
    --border-radius: 4px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5em;
    color: var(--dark-color);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Утилиты */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn--primary {
    background-color: var(--primary-color);
    color: white;
}

.btn--primary:hover {
    background-color: #5b7a57;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn--secondary:hover {
    background-color: #7d6557;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Компоненты */

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
}

.logo:hover {
    color: var(--secondary-color);
}

.nav__list {
    display: flex;
    align-items: center;
}

.nav__item {
    margin: 0 15px;
}

.nav__link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.header__phone {
    font-weight: 500;
    color: var(--primary-color);
}

/* Hero секция */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../img/hero.jpg') no-repeat center / cover;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero__inner {
    max-width: 600px;
    color: white;
    animation: fadeIn 1.5s ease-out;
}

.hero__title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: white;
}

.hero__subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero__btn {
    animation: pulse 2s infinite;
}

/* About секция */
.about {
    background-color: white;
}

.about__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about__image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateY(0);
    transition: var(--transition);
}

.about__image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.about__content {
    flex: 1;
    min-width: 300px;
}

.about__title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about__features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 2rem;
}

.feature {
    flex: 1;
    min-width: 120px;
    text-align: center;
    animation: slideUp 0.5s ease-out;
}

.feature__number {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.feature__text {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Services секция */
.services {
    background-color: var(--light-color);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card__image {
    height: 200px;
    overflow: hidden;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card__title {
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.service-card__desc {
    padding: 0 20px 20px;
    font-size: 0.9rem;
}

/* Schedule секция */
.schedule {
    background-color: white;
}

.schedule__wrapper {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.schedule__days {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--secondary-color);
    color: white;
}

.schedule__day {
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.schedule__day:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.schedule__day.active {
    background-color: var(--primary-color);
}

.schedule__content {
    padding: 30px;
}

.schedule__table {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.schedule__table.active {
    display: block;
    opacity: 1;
}

.schedule__item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.schedule__item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.schedule__time {
    flex: 1;
    min-width: 120px;
    font-weight: 500;
}

.schedule__class {
    flex: 1;
    min-width: 150px;
    color: var(--primary-color);
    font-weight: 500;
}

.schedule__teacher {
    flex: 1;
    min-width: 150px;
    color: var(--text-color);
}

/* Pricing секция */
.pricing {
    background-color: var(--light-color);
}

.pricing__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pricing-card--featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

.pricing-card--featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card__title {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pricing-card__features {
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card__features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.pricing-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.pricing-card__btn {
    width: 100%;
}

/* Teachers секция */
.teachers {
    background-color: white;
}

.teachers__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.teacher-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.teacher-card__image {
    height: 280px;
    overflow: hidden;
}

.teacher-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-card__image img {
    transform: scale(1.05);
}

.teacher-card__name {
    padding: 20px 20px 5px;
    color: var(--primary-color);
}

.teacher-card__specialty {
    padding: 0 20px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 5px;
}

.teacher-card__bio {
    padding: 0 20px 20px;
    font-size: 0.9rem;
}

/* Form секция */
.form-section {
    background-color: var(--light-color);
}

.form-section__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-section__content {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: var(--primary-color);
    color: white;
}

.form-section__title {
    color: white;
    margin-bottom: 1.5rem;
}

.form-section__contacts {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
}

.contact-item__title {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item__info a {
    color: white;
}

.form-section__form {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

.form {
    width: 100%;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form__input,
.form__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__input:focus,
.form__select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(107, 142, 102, 0.2);
}

.form__group--checkbox {
    display: flex;
    align-items: flex-start;
}

.form__group--checkbox input {
    margin-top: 5px;
    margin-right: 10px;
}

.form__label--checkbox {
    font-size: 0.9rem;
}

.form__submit {
    width: 100%;
    margin-top: 10px;
}

/* Map секция */
.map-section {
    padding: 0;
    height: 400px;
}

.map-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: #aaa;
    padding: 60px 0 20px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__info {
    flex: 1;
    min-width: 250px;
}

.footer__logo {
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer__address {
    margin-bottom: 0.5rem;
}

.footer__phone {
    color: var(--accent-color);
}

.footer__nav {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__nav-column {
    flex: 1;
    min-width: 160px;
}

.footer__nav-title {
    color: white;
    margin-bottom: 1.2rem;
}

.footer__nav-list li {
    margin-bottom: 10px;
}

.footer__nav-list a {
    color: #aaa;
    transition: var(--transition);
}

.footer__nav-list a:hover {
    color: white;
}

.footer__bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 320px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s forwards;
}

.cookie-popup__title {
    margin-bottom: 10px;
}

.cookie-popup__text {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-popup__btn {
    width: 100%;
}

/* Адаптивность */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .feature__number {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .nav__list {
        display: none;
    }
    
    .header {
        position: relative;
        padding: 12px 0;
    }
    
    .schedule__days {
        flex-direction: column;
    }
    
    .schedule__day {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .pricing-card--featured {
        transform: none;
    }
    
    .pricing-card--featured:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .about__features {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-section__content,
    .form-section__form {
        padding: 30px 20px;
    }
    
    .cookie-popup {
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: 90%;
    }
    
    .map-section {
        height: 300px;
    }
} 