/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.block {
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.navbar {
    position: fixed;
    top: 0;
    width: 99%;
    background-color: black;
    color: white;
    display: flex;
    flex-direction: row;
    padding: 1px 1px;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
    margin-top: 3px;
    border: 1px solid white;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    margin-top: 7px;
    padding-left: 8px;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.logo-text-desktop{
    display: none;
}

.logo-text-mobile {
    font-size: 20px;
    font-weight: bold;
    color: white;
    display: inline-block;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding-right: 3%;
}

/* Container for the Menu Button */
.menu-container {
    position: relative; /* Create a reference point for absolute positioning */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    
}

/* Кнопка меню */
.menu-button {
    display: block; /* Показать кнопку на мобильных устройствах */
    background-color: black;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    text-align: left;
    width: auto; /* Минимальная ширина */
    text-transform: uppercase;
    font-weight: bold; /* Жирный шрифт */
    transition: background-color 0.3s ease;
    border-color: #333;
    border-radius: 10px;
    margin-right: 10px;
}

/* Активное состояние меню */
.menu-button.menu-open + #mobile-menu {
    max-height: 200px; /* Фиксированная высота для показа меню */
    opacity: 1; /* Полная видимость */
}

/* Убедитесь, что кнопка остается на месте */
.menu-button.menu-open {
    position: relative; /* Не меняет положение */
    z-index: 10; /* Остается поверх других элементов */
}

.menu-button:hover {
    background-color: #555;
}

/* Arrow Icon */
.menu-button::after {
    content: '▼'; /* Down arrow */
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.menu-open.menu-button::after {
    transform: rotateX(180deg); /* Flip arrow to point up */
}

/* Hide Navigation Links by Default on Mobile */
#mobile-menu {
    display: flex; /* Ensure the menu is hidden initially */
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: black;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    position: absolute;
    top: 100%;
    width: 95%;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px); /* Начальная позиция выше навбара */
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border: 1px solid white;
}

.menu-open + #mobile-menu {
    display: flex;
    transform: translateY(0); /* Возвращаем к нормальной позиции */
    max-height: 200px;
    opacity: 1;
}

/* Ссылки в меню */
#mobile-menu li {
    list-style: none; /* Убираем маркеры списка */
    width: 100%; /* Ширина элемента списка */
    text-align: center; /* Центрирование текста */
}

#mobile-menu li a {
    display: block; /* Блочный элемент для полной ширины */
    padding: 10px; /* Внутренний отступ */
    width: 100%; /* Полная ширина */
    color: white; /* Белый цвет текста */
    text-decoration: none; /* Убираем подчеркивание */
    font-size: 16px; /* Размер шрифта */
    transition: background-color 0.3s ease; /* Анимация при наведении */
}

#mobile-menu li a:hover {
    background-color: #555; /* Изменение цвета фона при наведении */
}

/* Show Navigation Links When Open */
.menu-open + #mobile-menu {
    display: flex; /* Show the menu when open */
    max-height: 500px; /* Adjust based on content */
}

.menu-container {
    display: flex;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
}

/* Section Styles */
/* Main Block Styles */
#main {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Fixed Background Image */
#main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('mainbg.jpg') no-repeat center center;
    background-size: cover;
    z-index: -1; /* Ensure it stays behind other elements */
    filter: brightness(0.8); /* Optional: Add a slight dimming effect */
}

/* Parallelogram Shape */
#main .parallelogram {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: skewY(-30deg);
    background-color: black;
    z-index: 2;
}

#main .parallelogram-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) skewY(30deg); /* Counteract the skew */
    text-align: center;
    color: white;
    font-size: 3.1rem; /* Adjust font size for mobile */
    font-weight: bold;
}

#main .subtitle {
    font-size: 1.5rem; /* Adjust font size for mobile */
    margin-top: 10px;
    margin-bottom: 1px
}


/* Fade-Out Effect Under Next Block */
#main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* Adjust the height for fade-out */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    z-index: 3;
}

/* Studios Block */
#studios {
    padding: 30px 10px;
    min-height: auto;
    display: flex;
    flex-direction: column; /* Располагаем блоки в столбик */
    gap: 20px; /* Отступ между блоками студий */
}

/* Блок студии */
.studio-block {
    display: flex;
    flex-direction: column; /* Располагаем контент в столбик */
    align-items: center; /* Центрируем контент по горизонтали */
    text-align: center; /* Центрируем текст */
}

/* Название студии */
.studio-title {
    font-size: 2rem; /* Размер шрифта */
    font-weight: bold; /* Жирный шрифт */
    margin-bottom: 10px; /* Отступ снизу */
}

/* Фотография студии */
.studio-image {
    width: 100%; /* Ширина на всю доступную ширину */
    max-width: 600px; /* Ограничиваем максимальную ширину */
    border-radius: 10px; /* Скруглённые углы */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень */
    margin-bottom: 10px; /* Отступ снизу */
}

/* Описание студии */
.studio-description {
    font-size: 1.2rem; /* Размер шрифта */
    line-height: 1.6; /* Межстрочный интервал */
    margin-bottom: 20px; /* Отступ снизу */
}

/* Полоска-разделитель */
.divider {
    width: 80%; /* Ширина полоски */
    height: 1px; /* Толщина полоски */
    background-color: #ccc; /* Цвет полоски */
    margin: 20px 0; /* Отступы сверху и снизу */
}

#teachers {
    min-height: auto;
}
.teachertitle {
    margin-bottom: 40px;
}

/* Teacher Grid (Mobile - 2 Columns) */
.teacher-grid {
    display: grid; /* Use grid layout */
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    grid-auto-rows: minmax(200px, auto);
    gap: 15px; /* Reduced spacing for mobile */
    justify-content: center; /* Center the grid items horizontally */
    place-items: center; /* Center both horizontally and vertically */
}

/* Teacher Item (Mobile) */
.teacher-item {
    flex: 1 1 calc(50% - 15px); /* 2 columns on mobile */
    max-width: calc(80% - 15px); /* Adjust width for spacing */
    margin-bottom: 15px; /* Space between rows */
    padding: 15px;
    text-align: center; /* Center-align content */
    background-color: #f9f9f9; /* Light gray background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

.teacher-item:hover {
    transform: translateY(-5px); /* Эффект поднятия при наведении */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

.teacher-photo {
    width: 100px; /* Fixed size for photos */
    height: 100px;
    border-radius: 50%; /* Make the photo round */
    object-fit: cover; /* Ensure the image fills the circle */
    margin-bottom: 10px; /* Space below the photo */
}

/* Reduce Font Sizes for Mobile */
.teacher-name {
    font-size: 1rem;
}

.teacher-profile {
    font-size: 0.9rem;
}

.teacher-description {
    font-size: 0.8rem;
}

/* Блок "Мы предлагаем" */
.we-offer {
    background-color: white; /* Белый фон */
    color: black; /* Чёрный текст */
    padding: 50px 20px;
}

.offer-list {
    list-style-type: none;
    padding: 0;
    max-width: 70%; /* 70% ширины на ПК */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Отступ между пунктами */
}

.offer-list li {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 20px;
    border: 2px solid black; /* Чёрная рамка */
    border-radius: 15px; /* Скруглённые углы */
    background-color: white; /* Белый фон */
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Учитываем padding в общей ширине/высоте */
}

.offer-list li:hover {
    transform: translateY(-5px); /* Эффект поднятия при наведении */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

/* Блок "Почему стоит выбрать нас?" */
.why-choose-us {
    background-color: black; /* Чёрный фон */
    color: white; /* Белый текст */
    padding: 50px 20px;
}

.choose-list {
    list-style-type: none;
    padding: 0;
    max-width: 70%; /* 70% ширины на ПК */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Отступ между пунктами */
}

.choose-list li {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 20px;
    border: 2px solid white; /* Белая рамка */
    border-radius: 15px; /* Скруглённые углы */
    background-color: black; /* Чёрный фон */
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Учитываем padding в общей ширине/высоте */
}

.choose-list li:hover {
    transform: translateY(-5px); /* Эффект поднятия при наведении */
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2); /* Тень при наведении */
}

/* Блок с призывом к действию */
.cta {
    background-color: white; /* Белый фон */
    color: black; /* Чёрный текст */
    padding: 50px 20px;
}

.cta h2 {
    color: black;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: black;
}

.cta-button {
    display: inline-block;
    background-color: black; /* Чёрный фон кнопки */
    color: white; /* Белый текст кнопки */
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
    padding: 20px 25px;
    font-size: 1.6rem;
    border-radius: 14px;
    border: 2px solid white;
}

.cta-button:hover {
    background-color: white; /* Белый фон при наведении */
    color: black; /* Чёрный текст при наведении */
    border: 2px solid black; /* Чёрная рамка при наведении */
    transform: translateY(-5px); /* Эффект поднятия при наведении */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

.cta-slogan {
    font-size: 8rem;
    font-weight: bold;
    margin-top: 30px;
    color: black;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .offer-list, .choose-list {
        max-width: 95%; /* 95% ширины на мобильных */
    }

    .offer-list li, .choose-list li {
        padding: 15px; /* Уменьшаем отступы на мобильных */
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 20px 25px;
        font-size: 1.6rem;
        border-radius: 14px;
    }

    .cta-slogan {
        font-size: 1.2rem;
    }
}

/* FAQ Block */
#faq {
    background-color: #f9f9f9;
    text-align: center;
    min-height: auto;
    padding: 20px 0;
}

#faqtitle {
    text-align: center;
    margin-bottom: 20px;
}

/* Центрирование контента на ПК */
#faq .content {
    max-width: 70%;
    margin: 0 auto;
    text-align: center;
}

.faq-item {
    margin: 10px auto;
    width: 100%;
    border-bottom: 1px solid #ddd; /* Добавим разделитель между вопросами */
}

/* Вопрос */
.faq-item .question {
    background-color: black;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.3rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    position: relative; /* Для плавного раскрытия */
}

.faq-item .question:hover {
    background-color: #444; /* Эффект при наведении */
}

/* Ответ */
.faq-item .answer {
    background-color: #eaeaea;
    color: #333;
    padding: 0 20px;
    font-size: 0.9rem;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

/* Активный ответ */
.faq-item .answer.active {
    opacity: 1;
    visibility: visible;
    max-height: 200px; /* Максимальная высота ответа */
    padding: 15px 20px; /* Отступы для текста */
}

.qalinkform {
    all: unset;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    color: black; /* Синий цвет для ссылки */
}

.qalinkform:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
}

#bottom {
    background-color: #212529;
    color: white;
    text-align: center;
    padding: 20px;
    min-height: auto;
}