/* ============================================
   Кинеограф — основной файл стилей
   Содержит все секции, адаптив, анимации
   ============================================ */

/* === Подключение локального шрифта Montserrat === */
@font-face {
    font-family: 'Montserrat';
    src: url('/Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/Montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url('/Montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/Montserrat-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

/* Если есть SemiBold, добавьте аналогичный блок */

/* === CSS-переменные === */
:root {
    /* Основная палитра */
    --color-dark: #2B2D42;      /* тёмно-графитовый */
    --color-accent: #F4A261;    /* тёплый жёлто-оранжевый */
    --color-bg: #F5F5F3;        /* светлый фон */
    --color-white: #FFFFFF;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-error: #E63946;

    /* Шрифт */
    --font-main: 'Montserrat', Arial, sans-serif;

    /* Отступы и радиусы */
    --radius: 12px;
    --radius-small: 6px;
    --container-width: 1140px;
    --header-height: 70px;
}

/* === Сброс и базовые стили === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* плавный скролл по якорям */
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.logo__img {
    /* Базовый размер для десктопа */
    width: 55px;
    height: 50px;
    object-fit: contain;
    transition: width 0.3s ease, height 0.3s ease; /* плавное изменение */
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === Утилитарные классы === */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* === Кнопки === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

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

.btn--primary:hover {
    background-color: #e8944d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 162, 97, 0.4);
}

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

.btn--secondary:hover {
    background-color: var(--color-dark);
    color: var(--color-white);
}

/* === Хедер === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 100;
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* === Логотип === */
.logo {
    display: flex;
    align-items: center;
}

.logo__img {
    width: 200px;        /* ← Ширина 150px как вы просили */
    height: auto;        /* Высота автоматически подстроится */
    max-height: 200px;    /* Ограничение по высоте, чтобы не выходил за пределы хедера */
    object-fit: contain;
    display: block;
}

/* Навигация */
.nav__list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav__link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--accent {
    color: var(--color-accent);
    font-weight: 700;
}

.nav__link--cta {
    background-color: var(--color-accent);
    color: var(--color-dark);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav__link--cta:hover {
    background-color: #e8944d;
    transform: translateY(-2px);
}

/* Бургер-меню (мобильное) */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger__line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* === Hero секция === ФОН*/
.hero {
    background-image: 
        linear-gradient(rgba(43, 45, 66, 0.75), rgba(43, 45, 66, 0.75)),    /* затемнение — сверху */
        url('1.png');   /* картинка — посередине */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 100px;
    color: var(--color-white);
    text-align: center;
}

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

.hero__desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    
}

/* Отдельный самостоятельный стиль для второго абзаца hero — курсив */
.hero__desc-italic {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-weight: 400;
    font-size: 14px;      /* подбери свой размер */
    color: rgba(255, 255, 255, 0.9);       /* подбери свой цвет */
    line-height: 1.5;
    margin-top: 0 auto;
    margin-bottom: 24px;
    text-align: center;
}


                                                /* === Секция "О студии" === */
.about {
    background-image:none; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.about__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about__content {
    flex: 1 1 500px;
}

.about__text {
    text-indent: 40px;   /*отступ первой строки */
    font-size: 1.1rem;
    color: var(--color-text-light);
}
.about__textsimple {
    text-indent: 40px;   /*отступ первой строки */
}

.about__text::first-letter {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    /*vertical-align: 0.1em;   подгоняет букву по нижнему краю строки */
}


.about__photo {    
    flex: auto;
    display: flex;
    justify-content: center;
}

.photo-placeholder {
    width: 400px; 
    height: 400px;
    background-image: url('4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    
    animation: 
        floatX 11s ease-in-out infinite,
        floatY 13s ease-in-out infinite,
        floatRotate 17s ease-in-out infinite;
}

@keyframes floatX {
    0%, 100% { translate: 0 0; }
    50%      { translate: 20px 0; }
}

@keyframes floatY {
    0%, 100% { translate: 0 0; }
    50%      { translate: 0 -20px; }
}

@keyframes floatRotate {
    0%, 100% { rotate: 0deg; }
    50%      { rotate: 2deg; }
}

/* === Как проходит обучение? === */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-card__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 15px;
    line-height: 1;
    text-align: right;
}

.step-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    
}

.step-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-align: left;
}

/* === Что входит в программу обучения? === */
.curriculum {
    background-color: var(--color-white);
}

.curriculum__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}




.topic-card__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    /* никакого фона, паддинга и полоски — просто пустая ячейка сетки */
}

.topic-card__img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    border-radius: var(--radius);
    
    /* та же плавающая анимация, что и у фото в "О студии" */
    animation: 
        floatX 11s ease-in-out infinite,
        floatY 13s ease-in-out infinite,
        floatRotate 17s ease-in-out infinite;
}





.topic-card {
    background-color: var(--color-bg);
    padding: 30px;
    border-radius: var(--radius);
    border-left: 4px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.topic-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
}

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

/* === Секция "Обо мне" === */
.about-me {
    text-indent: 40px;   /*отступ первой строки */
    background-color: var(--color-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Декоративный элемент на фоне */
/*
    .about-me::after {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background-color: rgba(244, 162, 97, 0.1);
        border-radius: 50%;
        z-index: 0;
    }
*/

.about-me__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Фото */
.about-me__photo {
    flex: 0 1 380px;
}

.about-me__photo-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-me__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* Бейдж "Действующий аниматор" */
.about-me__badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(43, 45, 66, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(5px);
}

.about-me__badge svg {
    flex-shrink: 0;
    color: var(--color-accent);
}

/* Контент */
.about-me__content {
    flex: 1 1 500px;
}

.about-me__title {
    text-align: left;
    margin-bottom: 20px;
}

.about-me__title::after {
    margin: 15px 0 0;
}

.about-me__intro {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Студии */
.about-me__studios {
    margin-bottom: 30px;
}

.about-me__studios-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
}

.studios-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.studios-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--color-bg);
    border-radius: var(--radius-small);
    font-weight: 500;
    color: var(--color-text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.studios-list__item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.studios-list__icon {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Кнопка */
.about-me__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.about-me__btn svg {
    transition: transform 0.3s ease;
}

.about-me__btn:hover svg {
    transform: translateX(5px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-me__inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-me__photo {
        flex: 0 1 auto;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .about-me__title {
        text-align: center;
    }
    
    .about-me__title::after {
        margin: 15px auto 0;
    }
    
    .about-me__btn {
        width: 100%;
        justify-content: center;
    }
}




                                    /* === Какие направления будем изучать? === */

/* Подзаголовок секции */
.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 50px;
    position: relative;
    padding-bottom: 20px;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.techniques__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Карточка */
.technique-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(43, 45, 66, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    padding: 0;
}

/* Акцентная линия сверху, растущая при наведении — поверх картинки */
.technique-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: width 0.35s ease, left 0.35s ease;
    z-index: 2;
}

.technique-card:hover::before {
    width: 100%;
    left: 0;
}

.technique-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(43, 45, 66, 0.12);
    border-color: transparent;
}

/* Баннер — картинка на всю ширину карточки, заголовок вверху */
.technique-card__banner {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15px;
}

/* Затемняющая подложка сверху картинки — чтобы оранжевый текст читался на любом фото */
.technique-card__banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 60%);
}

/* Заголовок поверх картинки — оранжевый, вверху */
.technique-card__title {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9); 
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

/* Текстовый блок под картинкой */
.technique-card__body {
    padding: 20px 25px 30px;
}

.technique-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin: 0;
}



                                          /* === Секция "Группы" === */

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

.groups__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.group-card {
    background-color: var(--color-bg);
    padding: 40px 30px 30px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.group-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(43, 45, 66, 0.1);
}

.group-card__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 8px 20px;
    background-color: var(--color-accent);
    color: var(--color-dark);
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 20px;
}

.group-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 12px;
}

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


/* === Секция "Почему Кинеограф" === */
.features {
    background-color: var(--color-bg);
    padding: 80px 0;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3 колонки на десктопе */
    gap: 30px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--color-white);
    padding: 35px 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

/* Акцентная полоска сверху карточки */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* Иконка */
.feature-card__icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(244, 162, 97, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-card__icon {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Заголовок */
.feature-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Описание */
.feature-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}



                                /* === Секция "Работы учеников" === */

/*
.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.work-card {
    background-color: var(--color-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1;
}

.work-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9e9e6;
    color: var(--color-text-light);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}
*/





                                                    /* === Секция "Отзывы" === */
/*
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-card__text {
    font-style: italic;
    color: var(--color-text);
    flex-grow: 1;
}

.review-card__author {
    font-weight: 700;
    color: var(--color-dark);
    text-align: right;
}
*/


                                                    /* === Форма записи === */
.contact {
    background-color: var(--color-white);
}

.form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__label {
    font-weight: 500;
    color: var(--color-dark);
}

.form__input {
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: var(--radius-small);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form__input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form__input--error {
    border-color: var(--color-error) !important;
}

.form__error {
    color: var(--color-error);
    font-size: 0.85rem;
    min-height: 1.2em;
}

.form__group--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.form__checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}

.form__checkbox-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.form__link {
    color: var(--color-accent);
    text-decoration: underline;
}

.form__submit {
    align-self: center;
    min-width: 200px;
}

.form__message {
    text-align: center;
    font-weight: 500;
    min-height: 1.5em;
}

.form__message--success {
    color: #2a9d8f;
}

.form__message--error {
    color: var(--color-error);
}

/* Honeypot — скрытое поле для ботов */
.form__honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

                                                /* === Секция "Как нас найти" === */
.location__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.location__info {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location__address {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-dark);
}

.location__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    transition: color 0.3s ease;
}

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

.icon {
    flex-shrink: 0;
}

.location__btn {
    margin-top: 10px;
}

.location__map {
    flex: 1 1 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location__map iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

                                                            /* === Футер === */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 40px 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer__logo-img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.footer__contacts {
    display: flex;
    gap: 20px;
}

.footer__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.footer__copy {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

                                                    /* === Страницы-заглушки === */
.page-stub {
    padding: 100px 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

/* === Анимации fade-in === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Адаптивность === */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding: 80px 0 60px;
        background-size: 200% auto;   /* ← добавляешь эту строку */
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__desc {
        font-size: 1rem;
    }


    /* Мобильное меню */
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 99;
    }

    .nav.active {
        transform: translateY(0);
    }

    .nav__list {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .nav__link--cta {
        display: inline-block;
    }

                                                        /* Анимация бургера */
    .burger.active .burger__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger.active .burger__line:nth-child(2) {
        opacity: 0;
    }
    .burger.active .burger__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about__inner {
        flex-direction: column;
        gap: 30px;
    }

    .location__inner {
        flex-direction: column;
    }

    .location__map iframe {
        height: 300px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}


                                                                /* Планшеты */
@media (max-width: 768px) {
    .logo__img {
        width: 150px;
        height: 45px;
    }
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .groups__grid {
        grid-template-columns: repeat(2, 1fr);   /* ← добавь сюда */
    }


    .curriculum__grid {
        grid-template-columns: repeat(2, 1fr);   /* ← добавляешь эту строку */
    }

    .techniques__grid {
        grid-template-columns: repeat(2, 1fr);   /* ← добавляешь эту строку */
    }



    .features__grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 20px;
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }
    
    .feature-card__icon {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
    
    .feature-card__title {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
}



                                                                /* Мобильные */
@media (max-width: 480px) {
    .logo__img {
        width: 150px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .steps__grid {
        grid-template-columns: 1fr;
    }

    .groups__grid {
        grid-template-columns: 1fr;   /* ← и сюда */
    }


    .curriculum__grid {
        grid-template-columns: 1fr;   /* ← добавляешь эту строку */
    }

    .techniques__grid {
    grid-template-columns: 1fr;   /* ← добавляешь эту строку */
    }


    @media (max-width: 480px) {
        .feature-card {
            flex-direction: column;
            text-align: center;
            align-items: center;
            gap: 15px;
        }
        
        .feature-card__icon {
            margin-bottom: 10px;
        }
    }


    /* =====================================================
   ФИНАЛЬНЫЕ ИСПРАВЛЕНИЯ МОБИЛЬНОЙ ВЕРСИИ
   ===================================================== */

@media (max-width: 768px) {

    /* ===== 1. ХЕДЕР ВСЕГДА ОСТАЁТСЯ СВЕРХУ ===== */

    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 70px;
        z-index: 1000;
    }

    /* Компенсируем фиксированный хедер,
       чтобы первый блок не залезал под него */
    main {
        padding-top: 70px;
    }

    /* ===== 2. МОБИЛЬНОЕ МЕНЮ НАЧИНАЕТСЯ
       СРАЗУ ПОД ХЕДЕРОМ ===== */

    .nav {
        top: 70px;
    }

    /* ===== 3. БЛОК «О СТУДИИ» НЕ ВЫЛЕЗАЕТ
       ЗА ПРАВЫЙ КРАЙ ЭКРАНА ===== */

    .about__inner {
        width: 100%;
    }

    .about__content {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .about__text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    .about__photo {
        width: 100%;
        max-width: 100%;
    }

    .photo-placeholder {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /* ===== 4. КАРТА — НА ВСЮ ШИРИНУ ЭКРАНА ===== */

    .location__map {
        width: calc(100%);
        max-width: none;
        margin-left: -20px;
        flex: 0 0 auto;
        border-radius: 0;
    }

    .location__map iframe {
        width: 100%;
        height: 300px;
    }

    /* ===== 5. СЕКЦИЯ С КАРТОЙ НЕ СОЗДАЁТ
       ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ ===== */

    .location {
        overflow: hidden;
    }

    /* ===== 6. СТАНДАРТНЫЙ ОТСТУП ОТ ХЕДЕРА
       ДО ПЕРВОГО КОНТЕНТА ===== */

    .hero {
        margin-top: 30px;
    }
}




}
