/* Подключение шрифтов с визитки */
body {
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, .logo, .hero__title, .btn {
    font-family: 'Comfortaa', cursive, sans-serif !important;
}

/* ==========================================
   1. Базовые сбросы и переменные
   ========================================== */
:root {
    --primary-color: #2e9b9b;       /* Мягкий бирюзовый / мятный */
    --primary-hover: #227979;       /* Темно-бирюзовый при наведении */
    --accent-color: #ff8a65;        /* Теплый персиковый/оранжевый акцент */
    --bg-light: #f4faf8;            /* Очень светлый мятно-кремовый фон страниц */
    --card-bg: #ffffff;             /* Белый фон карточек */
    --text-color: #333333;          /* Основной цвет текста */
    --text-muted: #666666;          /* Второстепенный текст */
    --radius: 16px;                 /* Закругление углов */
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.06); /* Мягкая тень */
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.section {
    padding: 80px 0;
}

.section__title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* ==========================================
   2. Кнопки
   ========================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

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

.btn--primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

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

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

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

.btn--header:hover {
    opacity: 0.9;
}

/* ==========================================
   3. Шапка (Header)
   ========================================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--primary-color); /* Мятный цвет */
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Скрываем мальчика из шапки на компьютерах */
.header .mobile-only {
    display: none;
}

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

/* Делаем название и подзаголовок белыми */
.logo__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}

.logo__subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.nav__list {
    display: flex;
    gap: 30px;
}

/* Ссылки меню делаем белыми */
.nav__link {
    font-weight: 500;
    color: #ffffff;
    transition: var(--transition);
}

.nav__link:hover {
    color: #e0f2f1;
    text-decoration: underline;
}

/* Гамбургер меню на мобильных (белые полоски) */
.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
}

/* ==========================================
   4. Главный экран (Hero)
   ========================================== */
.hero {
    padding: 60px 0 80px;
}

.hero__container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: #EFEFFE;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero__title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero__actions {
    display: flex;
    gap: 15px;
}

.hero__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: 3000px;
    height: auto;
    object-fit: contain;
}

/* ==========================================
   5. О мне (About)
   ========================================== */
.about {
    background-color: var(--white);
}

/* Сетка для ПК: фото слева, текст справа */
.about__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.about__image-wrapper {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about__image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.about__info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about__features {
    margin-top: 20px;
}

.about__features li {
    margin-bottom: 10px;
    font-weight: 500;
}

/* Стили для списка образования и направлений */
.about__education h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
}

.about__education h4:first-child {
    margin-top: 0;
}

.about__education ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
}

.about__education li {
    margin-bottom: 8px;
    line-height: 1.5;
}

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card--popular {
    border: 2px solid var(--primary-color);
}

.service-card__badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card__desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-card__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-card__price span {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

/* ==========================================
   7. Контакты и Подвал
   ========================================== */
.contacts__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contacts__item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contacts__item p, .contacts__item a {
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
}

.contacts__map {
    width: 100%;
    min-height: 350px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ==========================================
   Отзывы (Горизонтальная лента)
   ========================================== */
.reviews__slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    margin-bottom: 30px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* скрывает полосу прокрутки в Firefox */
}

.reviews__slider::-webkit-scrollbar {
    display: none; /* скрывает полосу прокрутки в Chrome/Safari/Edge */
}

.review-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-card__author {
    font-weight: 600;
    color: var(--text-color);
}

.review-card__stars {
    color: #FFB800;
    letter-spacing: 2px;
}

.review-card__text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reviews__more {
    text-align: center;
}

/* ==========================================
   8. Адаптив для мобильных устройств
   ========================================== */
@media (max-width: 768px) {
    .header {
        position: relative;
    }

    /* 1. Выстраиваем элементы шапки строго в один ряд */
    .header__container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* 2. Показываем мальчика в шапке справа от текста логотипа */
    .header .mobile-only {
        display: block !important;
        margin-left: 10px !important;
        margin-right: auto !important; /* Отталкивает кнопку бургер-меню вправо */
    }

    .header__boy-img {
        height: 95px !important; /* Автоматический размер по высоте шапки */
        width: auto !important;
        display: block !important;
        border: none !important;
        background: transparent !important;

        position: relative !important;  /* Позволяет смещать картинку без влияния на высоту шапки */
        top: -10px !important;           /* Сдвигает мальчика немного вниз, чтобы он красиво выступал из шапки */
        margin-bottom: -20px !important;/* Компенсирует увеличенную высоту, чтобы зелёная строка не растягивалась */
    }

    /* 3. Полностью С К Р Ы В А Е М мальчика под текстом на телефоне */
    .hero .hero__image {
        display: none !important;
    }

    /* 4. Бургер-меню и кнопка */
    .burger {
        display: flex;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .btn--header {
        display: none;
    }

    /* Выпадающее меню */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav.active {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .nav__link {
        color: #000000 !important;
    }

    /* Главный экран */
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 1.5rem;
    }

    .hero__actions {
        justify-content: center;
        flex-direction: column;
    }

    /* Адаптив "О специалисте" */
    .about__content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about__image-wrapper {
        max-width: 260px;
        margin: 0 auto;
    }

    /* Услуги (2 в ряд) */
    .services__grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .service-card {
        padding: 12px 10px !important;
    }

    .service-card__title {
        font-size: 0.95rem !important;
        margin-bottom: 8px !important;
    }

    .service-card__desc {
        font-size: 0.8rem !important;
        margin-bottom: 10px !important;
    }

    .service-card__price {
        font-size: 1.1rem !important;
    }

    /* Отзывы */
    .review-card {
        flex: 0 0 85%;
    }

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