/* 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: 98.5%;
    background-color: black;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    z-index: 1000;
    flex-wrap: nowrap;
    border-radius: 10px;
    border: 1px solid white;
    margin-top: 3px;
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

.logo-text-desktop {
    font-size: 20px;
    font-weight: bold;
    color: white;
    display: inline-block;
}

.logo-text-mobile{
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding-right: 3%;
    flex-wrap: nowrap;
    align-content: center;
}

/* Hide the Dropdown Menu Button on Desktop */
.menu-button {
    display: none; /* Hide the button on desktop */
}

/* Display Navigation Links Horizontally on Desktop */
.nav-links {
    display: flex;
    gap: 20px;
}

/* Display Navigation Links Horizontally on Desktop */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
}

.phone-number {
    font-size: 18px;
    font-weight: bold;
}

/* Section Styles */
/* Main Block Styles */
#main {
    position: relative;
    min-height: 90vh;
    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: 45%;
    left: 50%;
    transform: translate(-50%, -50%) skewY(30deg); /* Counteract the skew */
    text-align: center;
    color: white;
    font-size: 5vw;
    font-weight: bold;
    margin: 0;
}

#main .title {
    margin: 0;
}

#main .subtitle {
    font-size: 3rem;
    font-weight: normal;
    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;
}

#main .title {
    margin-top: 1px;
}

/* About Us Block */
#aboutus {
    background-color: black; /* Black background */
    color: white; /* White text for contrast */
    display: flex; /* Use flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 50px 20px; /* Padding for spacing */
    min-height: auto;
}

/* Content Container */
.about-us .content {
    max-width: 800px; /* Limit width for better readability */
    text-align: center; /* Center-align text inside the container */
}

/* Title */
.about-us h2 {
    font-size: 2.5rem; /* Large font size for the title */
    margin-bottom: 20px; /* Space between title and subtitle */
}

/* Subtitle */
.about-us .subtitle {
    font-size: 1.5rem; /* Slightly smaller than the title */
    font-weight: bold; /* Make it bold */
    margin-bottom: 30px; /* Space between subtitle and description */
}

/* Description Text */
.about-us .description {
    font-size: 1rem; /* Standard text size */
    line-height: 1.6; /* Improve readability */
}
/* Studios Block */
#studios {
    background-color: #f4f4f4; /* Light gray background */
    padding: 50px 20px;
    text-align: center;
    min-height: auto;
}

/* Content Container */
.studios .content {
    max-width: 1200px; /* Limit width for better readability */
    margin: 0 auto; /* Center horizontally */
}

/* Title */
.studios h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Studio Item */
.studio-item {
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Vertically center items */
    margin-bottom: 30px; /* Space between rows */
}

/* Studio Image */
.studio-image {
    width: 40%; /* Set image width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Studio Text */
.studio-text {
    width: 50%; /* Set text width */
    padding: 20px;
    text-align: left; /* Align text to the left */
}

/* Subtitle */
.studio-text .subtitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Description */
.studio-text .description {
    font-size: 1rem;
    line-height: 1.6;
}

/* Left Image Layout */
.left-image .studio-image {
    order: 1; /* Image comes first */
    margin-right: 20px; /* Space between image and text */
}

.left-image .studio-text {
    order: 2; /* Text comes second */
}

/* Right Image Layout */
.right-image .studio-image {
    order: 2; /* Image comes second */
    margin-left: 20px; /* Space between text and image */
}

.right-image .studio-text {
    order: 1; /* Text comes first */
}

/* Teachers Block */
#teachers {
    background-color: #ffffff; /* White background */
    padding: 30px 1px 80px;
    text-align: center;
    min-height: auto;
}

.techertitle {
    margin-bottom: 10px;
}

/* Content Container */
.teachers .content {
    max-width: 1200px; /* Limit width for better readability */
    margin: 0 auto; /* Center horizontally */
}

/* Title */
.teachers h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Teacher Grid (Desktop - 3 Columns) */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 20px; /* Space between items */
    grid-auto-rows: minmax(200px, auto);
}

/* Teacher Item */
.teacher-item {
    text-align: center; /* Center-align content */
    background-color: #f9f9f9; /* Light gray background */
    border-radius: 10px; /* Rounded corners */
    padding: 20px;
    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); /* Эффект поднятия при наведении */
}

/* Teacher Photo (Round) */
.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 */
}

/* Teacher Name */
.teacher-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Teacher Profile */
.teacher-profile {
    font-size: 1rem;
    color: #555; /* Gray color for the profile */
    margin-bottom: 10px;
}

/* Teacher Description */
.teacher-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Блок "Мы предлагаем" */
.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;
}

.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;
}

.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: 28px 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;
    margin-top: 28px;
    border: 2px solid white;
}

.cta-button:hover {
    background-color: white; /* Белый фон при наведении */
    color: black; /* Чёрный текст при наведении */
    border: 2px solid black; /* Чёрная рамка при наведении */
    transform: translateY(-3px); /* Эффект поднятия при наведении */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Тень при наведении */
}

.cta-slogan {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 28px;
    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: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .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: 1rem;
    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; /* Отступы для текста */
}

.phoneqa {
    text-decoration: none;
    color: black;
    font-weight: bold;
}
.qalinkform {
    all: unset;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    color: #007bff; /* Синий цвет для ссылки */
}

.qalinkform:hover {
    text-decoration: underline; /* Подчеркивание при наведении */
}   

#contacts {
    background-color: #343a40;
    color: white;
    min-height: auto;
}

#bottom {
    background-color: #212529;
    color: white;
    text-align: center;
    padding: 20px;
    min-height: auto;
}

#whyus {
    min-height: auto;
}