/*----------Общие стили----------*/
a {
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
}

/* Начальное состояние, когда элементы скрыты */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Когда элемент появляется в зоне видимости */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/*----------Header----------*/

.header {
    position: relative;
    height: 100vh;
    background: url("/images/banner_ing2.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/*навигация сайта*/
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-evenly;

    height: 70px;

    color: #fff;
    background: rgb(0, 0, 0, 80%);
}

.header-top a {
    color: #fff;
}

.logo {
    display: flex;
    font-size: 36px;
    transition: transform 0.3s ease;
}


/* 2.2. Замена изображения логотипа при наведении */
.logo:hover img {
    transform: scale(1.1); /* Увеличение изображения */
}


.menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-element {
    margin-right: 20px;
    font-size: 22px;
}


/* 2.2. Добавление эффекта изменения цвета текста и подчеркивания при наведении */
.menu-element__link:hover {
    color: rgb(118, 188, 33); /* Изменение цвета текста */
    text-decoration: underline; /* Подчеркивание текста */
    transition: color 0.3s ease; /* Плавный переход цвета */
}


/* 2.3. Стили для выпадающего меню */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.dropdown-menu li {
    border-bottom: 1px solid #ddd;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: #f1f1f1;
}

.dropdown-menu li a:hover {
    color: rgb(118, 188, 33);
}


/*название сайта*/
.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 92vh;

    color: #fff;
}

.header-center__wrapper {
    width: 100%;
    padding: 10px 0 20px 0;

    text-align: center;
    background: rgb(0, 0, 0, 75%);
}

.name {
    font-size: 56px;
}

.description {
    font-size: 20px;
}

.random-quote {
    color: rgb(118, 188, 33);
    font-size: 20px;
    margin-top: 10px;
}


/*----------Секция о нас----------*/

.about-me {
    display: flex;
    margin-top: 50px;
    margin-bottom: 40px;
}

.about-me .left {
    flex: 1 1 40%;
    padding-right: 40px;
}

.about-me .right {
    flex: 1 1 60%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 50px;
}

.about-me__image {
    width: 500px;
    margin-left: auto;
    transition: opacity 0.3s ease;
}

.about-me__image:hover {
    opacity: 0.7; /* Изменение прозрачности при наведении */
}

.about-me__title {
    font-size: 40px;
}

.about-me__description {
    font-size: 26px;
}


/*----------Секция преподаватели----------*/

.masters {
    padding-top: 40px;
}

.second-title {
    font-size: 32px;
    text-align: center;
}

.masters__list {
    display: flex;
    justify-content: space-around;
}

.master-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    border: 2px solid black;
    margin-bottom: 30px;
    width: 30%;
    padding: 20px 10px;
}


.master-wrapper img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.master-wrapper:hover img {
    transform: scale(1.1); /* Увеличение изображения */
    opacity: 0.8; /* Изменение прозрачности */
}



.master-image {
    width: 250px;
    margin-bottom: 20px;
}

.master-title {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
}

.master-text {
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
}


/*----------Секция обратная связь----------*/

.contact-me {
    padding: 20px 0;
}

.contact-me__form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.input__list {
    display: flex;
    gap: 20px;
}

.input-wrapper {
    width: 50%;
}

.input-wrapper.left {
    float: left;

}

.input-wrapper.right {
    float: right;

}

.textarea-wrapper {
    margin-top: 20px;
}

.label {
    position: relative;
    display: block;
    font-size: 20px;
}

.input {
    width: 100%;
    padding: 5px 5px 5px 20px;
}


/* 2.4. Правильность email и других данных */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

.textarea {
    width: 100%;
    padding: 5px;
}


.submit-me, .submit-price {
    display: block;
    height: 45px;
    padding: 0 20px;
    margin-top: 10px;

    border: none;
    background: rgb(118, 188, 33);
    outline: none;
    box-shadow: none;
    color: #fff;

    cursor: pointer;
}

.submit-me {
    margin-left: auto;
}


/*----------Секция с ценами (Работа с таблицами)----------*/

th, td {
    padding: 12px;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}


/*----------FAQ----------*/

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq {
    background: #fff;
    margin: 10px 0;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid black;
}

.faq h2 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}


/*----------Подвал сайта----------*/

.footer {
    display: flex;
    align-items: center;
    flex-direction: column;
    background: rgb(225, 225, 225, 50%);
    padding: 20px 0;
}

.socials {
    display: flex;
    gap: 10px;
}


/* 2.2. Пример всплывающей подсказки для социальных ссылок */
.social-element a {
    position: relative;
    display: inline-block;
}

.social-element a .tooltip {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Позиция подсказки */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-element a:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.social-element a[href*="vk.com"]::after {
    content: "VK";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-element a[href*="t.me"]::after {
    content: "Telegram";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-element a[href*="discordapp.com"]::after {
    content: "Discord";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.social-element a:hover::after {
    opacity: 1;
}





/* Стили для экрана загрузки */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный черный фон */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    visibility: hidden; /* Скрыт по умолчанию */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.loader {
    border: 16px solid #f3f3f3; /* Светлый серый цвет */
    border-top: 16px solid #76bc21; /* Зеленый цвет */
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Включаем видимость экрана загрузки */
.loader-wrapper.show {
    visibility: visible;
    opacity: 1;
}




/* Ограничиваем ширину контейнера для таблицы */
.table-responsive {
    max-height: 400px;
    overflow-y: auto;
}
