/* === Локальные шрифты === */
@font-face {
    font-family: 'Lobster';
    src: url('fonts/lobster.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-600.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('fonts/montserrat-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

    /* --- Базовые сбросы и переменные --- */
        :root {
            --primary-beige: #ffffff; /* Фон сайта */
            
            --card-bg: #DDCDBA; /* Фон карточек и отзывов */
            --text-dark: #2C2C2C;
            --text-gray: #4A4A4A;
            --font-script: 'Lobster', cursive;
            --font-main: 'Montserrat', sans-serif;
            --green-olive: #5A7156;       /* Темно-оливковый */
            --terracotta: #c07953;       /* Терракота (цвет малыша) */
            --gold-ochre: #DBA95A;       /* Золотистый (верхняя волна) */
            --blue-denim: #5D7D9A;       /* Синий деним (нижняя волна) */
            
            --bg-light: #f1e9dc;         /* Молочный фон */
            --text-dark: #2F3E3C;        /* Темный текст под зелень */
            --text-muted: #6B7D7A;
            

        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: var(--font-main);
            background-color: var(--primary-beige);
            color: var(--text-dark);
            line-height: 1.6;
        }
        .fields{
            position: relative;
            max-width: 1500px;
            margin: 0 auto;
            box-shadow: 0px 0px 50px 10px rgba(219, 169, 90, 0.4);
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* --- Шапка (Header) --- */
        header {
            padding: 10px 0;
            background-color: var(--primary-beige);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            width: 170px;
            height: 90px;
        }
        

        nav ul {
            display: flex;
            list-style: none;
            gap: 50px;
        }

        nav a {
            font-weight: 500;
            font-size: 16px;
            transition: color 0.3s;
        }

        nav a:hover {
            color: var(--green-olive);
        }

        .btn-signup {
            background-color: var(--green-olive);
            color: white;
            padding: 10px 24px;
            border-radius: 8px;
            font-weight: 500;
            transition: background 0.3s;
        }
        .btn-signup:hover{ background-color: var(--terracotta); }

        /* --- Первый экран (Hero) --- */
        .hero {
            display: flex;
            height: 845px;
            width: 950px; /* было - 650 стало 950*/
            background-color: var(--bg-light);
        }

        .hero-content {
            max-width: 1400px;
        }

        .hero h1 {
            background-color: rgba(241,233,220,0.45);
            border-radius: 45px;
            box-shadow: 0px 0 10px 10px  rgba(241,233,220,0.45);
            text-align: left;
            position: relative;
            z-index: 2;
            font-family: var(--font-script);
            font-size: 56px;
            color: #1D3A2E; /* Темно-зеленый оттенок текста */
            margin-top: 200px;
            margin-left: 0px;
            line-height: 1.2;
            width:600px;
        
        }

    

        .btn-hero {
            position: relative;
            z-index: 2;
            background-color: var(--green-olive);
            color: white;
            padding: 16px 32px;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            margin-top: 200px;
            display: inline-block;
            transition: background 0.3s;

        }
        .btn-hero:hover { background-color: var(--terracotta); }

        html {
        scrollbar-color: var(--gold-ochre) var(--card-bg); /* Цвет бегунка и цвет фона (дорожки) */
        scrollbar-width: 60px; /* Делает скроллбар более узким */
}
        
        .bg {
            z-index: 1;
            position:absolute;
            margin-right: 0px;
            height: 100 px;
            width: 600px; /* 1100 600*/
            overflow: hidden;
            right: 0;
            background: linear-gradient(45deg, #ff7e5f, #feb47b)
        }
        .bg::after {
            z-index: 1;
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 40%;
            height: 100%;
            background: linear-gradient(to left, transparent 0%, var(--bg-light) 100%);
            pointer-events: none;
                    
        }
        /* Кнопка "Наверх" */
        .scroll-top-btn {
            position: absolute;
            bottom: 40px;
            right: 40px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background-color: var(--green-olive);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            transition: 0.3s;
        }
        .scroll-top-btn:hover {
            transform: translateY(-5px);
        }

        /* --- Секция: Кому подходит курс --- */
        .audience {
            
            text-align: center;
        }

        .section-title {
            font-family: var(--font-script);
            font-size: 48px;
            margin-bottom: 100px;
            margin-top: 25px;
        }


        
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 40px;
        }

        .feature-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .feature-icon-circle {
            width: 120px;
            height: 120px;
            background-color: var(--blue-denim);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }
        .perception{
            height: 100px;
            width: 150px;
            padding-bottom: 10px;
        }

        .feature-icon-circle svg {
            width: 60px;
            height: 60px;
            fill: none;
            stroke: var(--text-dark);
            stroke-width: 3;
            stroke-linecap: round;
            stroke-linejoin: round;
        }
        .speech{
            padding-top: 3px;
            height: 120px;
            width: 100px;
        }

        .book{
            width: 75px;
            height: 72px;
        }

        .feature-item h3 {
            font-weight: 700;
            font-size: 20px;
            margin-bottom: 10px;
        }
        .feature-item p {
            font-size: 14px;
            color: var(--text-gray);
            margin-bottom: 20px;
        }

        /* --- Программа обучения --- */
        .program {
            padding: 4px 0 40px;
            background-color: var(--bg-light); /* Чуть светлее фона */
        }

        .advantages{
            margin-bottom: 10px;
        }
        .program-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 40px;
        }

        .program-card {
            background-color: var(--primary-beige);
            border: 2px solid var(--text-dark);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            gap: 20px;
            align-items: flex-start;
        }

        .program-card img {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            object-fit: cover;
        }

        .program-card h4 {
            font-size: 22px;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .program-card p {
            font-size: 14px;
            color: var(--text-gray);
        }

        /* --- Преподаватель --- */
        .teacher {
            padding: 60px 0;
        }

        .teacher-container {
            display: flex;
            align-items: center;
            gap: 60px;
        }

        .teacher-photo-wrapper {
            position: relative;
        }

        .teacher-photo-wrapper img {
            width: 290px;
            height: 333px;
            border-radius: 24px;
            box-shadow: 5px 5px 15px 0px var(--gold-ochre);
        }

        .teacher-decor {
            position: absolute;
            right: -60px;
            bottom: -30px;
            width: 120px;
            height: 120px;
            fill: none;
            stroke: var(--text-dark);
            stroke-width: 3;
        }

        .teacher-info h2 {
            font-family: var(--font-script);
            font-size: 48px;
            margin-bottom: 15px;
        }

        .teacher-info h3 {
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .teacher-info .subtitle {
            color: var(--text-gray);
            margin-bottom: 20px;
            font-weight: 500;
        }

        .teacher-info .quote {
            font-style: italic;
            font-size: 16px;
        }

        /* --- Отзывы (скрин 1) --- */
        .reviews {
            padding: 0px 0 20px;
            background-color: var(--bg-light);
            text-align: center;
        }
        .review-title{
            margin-top: 30px;
            margin-bottom: 30px;
        }

        .reviews-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
            margin-top: 0px;
        }

        .review-card {
            
            background-color: var(--card-bg);
            border: 25px solid var(--card-bg);
            border-radius: 20px;
            text-align: left;
            display: flex;
            flex-direction: column;
            gap: 15px;
            height: 250px;
            overflow: hidden;
            scroll-behavior: smooth;
            
        }
        .review-window{
            max-width: 800px;
            margin-top: 30px;
            background-color: var(--card-bg);
            border: 25px solid var(--card-bg);
            border-radius: 20px;
            text-align: left;
        }
        .type-A{
            margin-left: 220px;
        }
        .type-B{
            margin-right: 210px;
            margin-left: auto
        }

        .review-card:hover{
            scrollbar-width: none;
            overflow-y: scroll;
            overscroll-behavior: contain;
        }

        .review-header {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .review-header img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }

        .review-text {
            font-size: 14px;
            color: var(--text-dark);
            line-height: 1.5;
        }

        .review-author {
            font-weight: 600;
            font-size: 14px;
        }

        /* --- Футер (скрин 1) --- */
        footer {
            background-color: white;
            padding: 10px 0;
        }

        .footer-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        .footer-logo p {
            margin-top: -10px;
            font-size: 12px;
            text-align: center;
        }
        .flogo{
            height: 100px;
            width: 100px;
        }

        .footer-email {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
        }

        .footer-socials {
            display: flex;
            gap: 15px;
        }

        .footer-socials svg {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: black; /* Черный фон как на скрине */
            fill: white;
            padding: 8px;
            cursor: pointer;
            transition: 0.3s;
        }
        .mess-logo{
            height: 40px;
            width: 40px;
            margin-right: 5px;
        }

        .mess-logo:link{
            height: 40px;
            width: 40px; 
        }
        
        
        .footer-socials svg:hover {
            opacity: 0.8;
            transform: scale(1.05);
        }

        /* --- Адаптивность --- */
        @media (max-width: 992px) {
            .features-grid, .reviews-grid {
                grid-template-columns: 1fr 1fr;
            }
            .program-grid {
                grid-template-columns: 1fr;
            }
            .teacher-container {
                flex-direction: column;
                text-align: center;
            }
            .teacher-decor { display: none; }
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
            }
            nav ul {
                gap: 15px;
                flex-wrap: wrap;
                justify-content: center;
            }
            .hero h1 { font-size: 36px; }
            .features-grid, .reviews-grid {
                grid-template-columns: 1fr;
            }
            .footer-container {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
        }

        .review-btn{
            background-color: var(--card-bg);
            border-radius: 5px;
            box-shadow: 0 0 15px 15px var(--card-bg);
        }
        .about_me-btn{
            background-color: var(--card-bg);
            border-radius: 5px;
            box-shadow: 0 0 15px 15px var(--card-bg); 
        }
        .services-btn{
            background-color: var(--card-bg);
            border-radius: 5px;
            box-shadow: 0 0 15px 15px var(--card-bg); 
        }

        .about_me-photo{
            margin-top: 20px;
            margin-left: 203px;
            width: 290px;
            height: 333px;
            border-radius: 24px;
            box-shadow: 5px 5px 15px 0px var(--gold-ochre);
        }
        .about_me-hero{
            display: flex;
            align-items:flex-start;
            gap: 25px;
        }
        .about_me-h2{
            color: var(--text-dark);
            margin-top: 40px;
            font-size: 36px;
        }
        .about_me-p{
            color: var(--text-dark);
            font-size: 20px;
            max-width: 900px;
        }
        
        .about_me-text{
            margin-left: 210px;
            color: var(--text-dark);
            font-size: 18px;
            margin-top: 50px;
            max-width: 1450px;
        }
        .about_me-edu{
            margin-left: 210px;
            color: var(--text-dark);
            margin-top: 30px;
        }
        .edu-list{
            margin-left: 250px;
            margin-top: 10px;
            margin-bottom: 200px;
        }
        ul li{
            font-weight: 500;
            margin-bottom: 20px;
            color: var(--text-dark);
        }
        .about_me-subtext{
            color: var(--text-gray);
            opacity: 0.75;
            font-size: 16px;
        }

        /* ============================================
   services.css — Стили для страницы "Услуги"
   ============================================ */

/* --- Hero / Заголовок страницы --- */
.services-hero {
    padding: 60px 0 40px;
    background-color: var(--bg-light);
}

.services-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-dark);
}

/* --- Сетка услуг --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Карточка услуги --- */
.service-card {
    position: relative;
    background-color: var(--primary-beige);
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    padding: 35px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(90, 113, 86, 0.15);
}

/* Бейдж "Экспертно" */
.service-badge {
    position: absolute;
    top: -12px;
    right: 25px;
    background-color: var(--terracotta);
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
}

/* Номер услуги */
.service-number {
    display: inline-block;
    font-family: var(--font-script);
    font-size: 42px;
    color: var(--gold-ochre);
    line-height: 1;
    margin-bottom: 10px;
}

.service-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Цена */
.service-footer {
    border-top: 1px dashed var(--card-bg);
    padding-top: 18px;
    margin-top: auto;
}

.service-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--green-olive);
    font-family: var(--font-main);
}

/* Выделенная карточка */
.service-card.featured {
    border-color: var(--terracotta);
    background-color: #fdf8f3;
}

/* --- Секция контактов / записи --- */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-beige);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-title {
    text-align: left;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.contact-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 450px;
}

/* Блок с телефоном */
.contact-phone-block {
    display: flex;
    align-items: center;
    gap: 18px;
    background-color: var(--card-bg);
    padding: 22px 28px;
    border-radius: 16px;
    color: var(--text-dark);
}

.contact-phone-block svg {
    flex-shrink: 0;
    color: var(--green-olive);
}

.phone-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.phone-number {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.3s;
}

.phone-number:hover {
    color: var(--green-olive);
}

/* Кнопки мессенджеров */
.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.contact-btn svg {
    flex-shrink: 0;
}

.btn-telegram {
    background-color: #2e9fdb;
}

.btn-telegram:hover {
    background-color: #2289b9;
}

.btn-max {
    background-color: var(--green-olive);
}

.btn-max:hover {
    background-color: #4a5f47;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .contact-title {
        text-align: center;
    }

    .contact-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .contact-phone-block {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 40px 0 30px;
    }

    .services-title {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .service-card {
        padding: 25px 22px 22px;
    }

    .service-header h3 {
        font-size: 18px;
    }

    .service-price {
        font-size: 22px;
    }

    .contact-section {
        padding: 50px 0;
    }

    .phone-number {
        font-size: 18px;
    }

    .contact-btn {
        padding: 16px 24px;
        font-size: 15px;
    }
}