/* --- Базовые настройки --- */
:root {
    --primary-color: #4A9085; /* Глубокий бирюзовый */
    --primary-hover: #3a756b;
    --accent-color: #E8A0A0; /* Пудровый розовый */
    --accent-hover: #d68888;
    --text-dark: #2C3333;
    --text-light: #6B7280;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --border-radius: 16px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 16px;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 133, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-accent {
    background-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
}

/* --- Шапка --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-title {
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-list a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:hover::after, .nav-list a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* --- Hero Section (Главный экран) --- */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #F0F7F6 0%, #FFFFFF 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.hero-title {
    font-size: 56px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Интересная форма фото */
    box-shadow: 20px 20px 0 var(--accent-color);
    object-fit: cover;
    width: 100%;
    max-height: 600px;
}

/* --- Секции --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Карточки услуг */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.card-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-link:hover {
    gap: 12px;
}

/* --- Внутренние страницы --- */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(135deg, #F0F7F6 0%, #FFFFFF 100%);
    text-align: center;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Обо мне */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    border-radius: var(--border-radius);
    box-shadow: -15px 15px 0 var(--accent-color);
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.custom-list {
    margin: 25px 0;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.custom-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary-color);
    background: #E6F0EE;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Аккордеон (Услуги) */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--bg-white);
    border: 1px solid #EDF2F7;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 25px 30px;
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.accordion-header:hover, .accordion-header.active {
    color: var(--primary-color);
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.accordion-body.open {
    padding: 0 30px 25px 30px;
    max-height: 1500px;
}

.price-tag {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
    margin: 15px 0;
    display: block;
}

/* Анонсы (Курсы) */
.course-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
}

.course-img {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-img::after {
    content: '';
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.course-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    align-self: flex-start;
    margin-bottom: 15px;
}

/* Отзывы */
.review-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.review-card::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 100px;
    color: #F0F7F6;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
    z-index: 0;
}

.review-text {
    position: relative;
    z-index: 1;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1;
}

.review-author {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-top: 3px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* CTA Блок */
.cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: white;
    border-radius: var(--border-radius);
    margin: 0 20px 60px 20px;
}

.cta-section h2 {
    font-size: 36px;
    color: white;
    margin-bottom: 20px;
}

/* --- Подвал --- */
.footer {
    background-color: #1A202C;
    color: #A0AEC0;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .hero-container, .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    .hero-image img {
        box-shadow: 10px 10px 0 var(--accent-color);
        margin-top: 40px;
    }
    .hero-actions, .custom-list li {
        justify-content: center;
    }
    .custom-list li { text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    .nav.active { display: block; }
    .nav-list { flex-direction: column; align-items: center; gap: 20px; }
    
    .header-btn { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 36px; }
    .section-title, .page-hero h1 { font-size: 32px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
}