/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0A0720 0%, #1a1533 50%, #2a1b4d 100%);
    display: flex;
    align-items: center;
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

@media (max-width: 800px) {
    .hero {
        padding-top: 25vh;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    aspect-ratio: 1;
    /* background: linear-gradient(45deg, var(--accent), var(--purple)); */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-image: url(./specialists/specialist_1.png);
    background-size: cover;
}

.hero-image::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, rgba(65, 105, 225, 0), var(--accent), rgba(65, 105, 225, 0));
}

/* .hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(65, 105, 225, 0.2), rgba(147, 0, 211, 0.3));
    animation: gradientMove 15s ease infinite;
} */

.hero-content {
    text-align: right;
}

.hero h1 {
    font-size: 5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: white;
    /* background: linear-gradient(to bottom, #fff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    line-height: 1.2;
    animation: titleReveal 1s ease-out;
}

.hero h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    animation: subtitleReveal 1s ease-out 0.3s backwards;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: textReveal 1s ease-out 0.6s backwards;
}


.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

section.visible .section-title {
    opacity: 1;
    transform: translateY(0);
}

/* Specialists Section */
.specialists {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.specialists.visible .specialists-grid {
    opacity: 1;
    transform: translateY(0);
}

.specialist-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.specialist-card:hover {
    transform: translateY(-10px);
    background: var(--gray_line_color);
}

/* Courses Section */
.courses {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.courses.visible .courses-grid {
    opacity: 1;
    transform: translateY(0);
}

.course-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.course-card:hover {
    transform: translateY(-10px);
    background: var(--gray_line_color);
}

/* Schedule Section */
.schedule {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.schedule.visible .calendar {
    opacity: 1;
    transform: translateY(0);
}

/* Contacts Section */
.contacts {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.contacts.visible .contacts-grid {
    opacity: 1;
    transform: translateY(0);
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--accent), var(--purple));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.button:hover::before {
    left: 100%;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes gradientMove {

    0%,
    100% {
        transform: translateX(50%);
    }

    50% {
        transform: translateX(30%);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes subtitleReveal {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* --- название каталогов --- */
.catalog_names_cl {
    font-size: 6vh;
    font-weight: bold;
    /* background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; */
    line-height: 1.2;
    animation: titleReveal 1s ease-out;
    text-align: center;
}

/* =============== НАШИ СПЕЦИАЛИСТЫ =============== */

.our_experts_cl {
    width: 100vw;
    height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0px 2rem;
    padding-top: 5vh;
    padding-bottom: 5vh;
}

.specialist_unit {
    width: 100%;
    height: 85%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3vw;
}

/* --- карточка специалиста --- */
.specialist_card_cl {
    width: 24%;
    height: 100%;
    border-radius: 1vw;
    box-shadow: 4px 4px 8px black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.specialist_card_cl>div:nth-child(1) {
    width: 100%;
    height: 75%;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Устанавливаем фоновое изображение */
    background-image: url(../static/specialists/specialist_1.png);
    background-size: cover;
    position: relative;
}

.specialist_card_cl>div:nth-child(1)::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, rgba(65, 105, 225, 0), var(--accent), rgba(65, 105, 225, 0));
}

.hover_zone_specialist_cl {
    width: 90%;
    height: 100%;
    padding: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: 300ms all;
    opacity: 0;
}

.hover_zone_specialist_cl:hover {
    cursor: pointer;
    opacity: 1;
    backdrop-filter: blur(5px);
}

.hover_zone_specialist_cl>span {
    text-align: justify;
    font-size: 2.25vh;
    color: white;
}

.hover_zone_specialist_cl>div {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(45deg, var(--accent), var(--purple));
    color: white;
    text-decoration: none;
    border-radius: 1vw;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hover_zone_specialist_cl>div::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.hover_zone_specialist_cl>div:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.hover_zone_specialist_cl>div:hover::before {
    left: 100%;
}

.specialist_card_cl>div:nth-child(2) {
    width: 100%;
    height: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 2vh;
}

/* --- имя и должность --- */

.specialist_card_cl>div:nth-child(2)>span:nth-child(1) {
    font-size: 3vh;
    color: white;
    text-shadow: 3px 3px 6px black;
}

.specialist_card_cl>div:nth-child(2)>span:nth-child(2) {
    font-size: 3vh;
    color: var(--accent);
}

/* =============== НАШИ КУРСЫ =============== */

.our_courses_cl {
    width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 5vh;
    padding-bottom: 5vh;
    gap: 4vh;
}

.course_catalog_cl {
    width: 100vw;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3vw;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (max-width: 1000px) {
    .our_experts_cl {
        padding: 0;
    }

    .specialist_card_cl {
        width: 30%;
    }

    .course_catalog_cl {
        padding: 0;
    }

    .course_unit_cl {
        width: 30%;
    }

}

@media (max-width: 700px) {
    .catalog_names_cl {
        font-size: 4vh;
        margin-top: 3vh;
        margin-bottom: 3vh;
    }

    .our_experts_cl {
        height: auto;
    }

    .specialist_unit {
        flex-direction: column;
    }

    .specialist_card_cl {
        width: 90%;
        height: 65vh;
    }

    .course_catalog_cl {
        flex-direction: column;
        align-items: center;
    }

    .course_unit_cl {
        width: 90%;
    }
}

/* =============== ТИТУЛНЫЙ ТЕКСТ =============== */

.service_title_text_cl {
    width: calc(100vw - 20vw);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5vh;
}

.service_title_text_cl>span {
    font-size: 6vh;
    font-weight: 700;
    color: white;
    text-align: center;
    text-shadow: 0 0 2px white, 0 0 4px white;
    padding-top: 5vh;
}

.cou_anim_1_cl>svg {
    position: absolute;
    left: 10vw;
    width: 7vh;
    height: 7vh;
    color: #554b19;
    transform: rotateZ(0deg);
    animation: cou_anim_1 5s infinite ease-in-out;
}

@keyframes cou_anim_1 {
    0% {
        transform: rotateZ(0deg);
    }

    50% {
        transform: rotateZ(180deg);
    }

    100% {
        transform: rotateZ(0deg);
    }
}

.cou_anim_2_cl>svg {
    position: absolute;
    right: 47vw;
    width: 6vh;
    height: 6vh;
    color: #4169e1;
    transform: translateY(5vh);
    animation: cou_anim_2 3s infinite ease-in-out;
}

@keyframes cou_anim_2 {
    0% {
        transform: translateY(5vh);
    }

    50% {
        transform: translateY(7vh);
    }

    100% {
        transform: translateY(5vh);
    }
}

.cou_anim_3_cl>svg {
    position: absolute;
    right: 10vw;
    width: 7vh;
    height: 7vh;
    color: #2a418e;
    transform: rotateZ(0deg);
    animation: cou_anim_3 5s infinite ease-in-out;
}

@keyframes cou_anim_3 {
    0% {
        transform: rotateZ(0deg);
    }

    50% {
        transform: rotateZ(-180deg);
    }

    100% {
        transform: rotateZ(0deg);
    }
}


/* ========== О НАС ========== */

.about_us_cl {
    width: 75vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
}

/* --- описание --- */

.about_us_description_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
}

.about_us_description_cl>div:nth-child(1) {
    width: 70vh;
    height: 70vh;
    background-image: url(../static/img/main_img.png);
    background-size: cover;
    border: 4px solid var(--accent);
    border-radius: 50%;
    overflow: hidden;
}

.about_us_description_cl>div:nth-child(2) {
    width: 47.5%;
    height: 80vh;
    padding-top: 2.5%;
    padding-bottom: 2.5%;
    padding-right: 2.5%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.about_us_description_cl>div:nth-child(2)>span:nth-child(1) {
    font-size: 3vh;
    font-weight: bold;
    color: var(--gray_text_color);
}

.about_us_description_cl>div:nth-child(2)>span:nth-child(2) {
    font-size: 3.5vh;
    font-weight: bold;
    color: var(--accent);
    margin-top: 2.5vh;
    margin-bottom: 1vh;
}

.about_us_description_cl>div:nth-child(2)>span:nth-child(3) {
    font-size: 2.5vh;
    font-weight: bold;
    color: white;
    margin-bottom: 1vh;
}

.about_us_description_cl>div:nth-child(2)>span:nth-child(4) {
    font-size: 2.5vh;
    color: white;
}

.about_us_description_cl>div:nth-child(2)>div:nth-child(5) {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
    margin-top: 3vh;
    font-size: 3vh;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 1.5px var(--accent), 0 0 3px var(--accent);
    animation: anim_description 5s infinite ease-in-out;
}

@keyframes anim_description {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(3vh);
    }

    100% {
        transform: translateY(0);
    }
}

@media (max-width: 1000px) {

    .about_us_cl {
        width: 90vw;
    }

    .about_us_description_cl {
        gap: 2.5vw;
    }

    .about_us_description_cl>div:nth-child(1) {
        width: 40vw;
        height: 40vw;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(1) {
        font-size: 2.5vh;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(2) {
        font-size: 3vh;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(3) {
        font-size: 2vh;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(4) {
        font-size: 2vh;
    }

    .about_us_description_cl>div:nth-child(2)>div:nth-child(5) {
        font-size: 2.5vh;
    }

}

@media (max-width: 700px) {
    .about_us_description_cl {
        gap: 2.5vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about_us_description_cl>div:nth-child(1) {
        width: 80vw;
        height: 80vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about_us_description_cl>div:nth-child(2) {
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(1) {
        text-align: center;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(2) {
        text-align: center;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(3) {
        text-align: center;
    }

    .about_us_description_cl>div:nth-child(2)>span:nth-child(4) {
        text-align: center;
    }

    .about_us_description_cl>div:nth-child(2)>div:nth-child(5) {
        text-align: center;
    }

    .about_us_description_cl>div:nth-child(2) {
        height: 60vh;
    }
}

/* =============== Квалификации и достижения =============== */

.qualifications_and_achievements_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: space-between;
    gap: 4vh;
    flex-wrap: wrap;
    border-radius: 2vh;
    background-color: var(--primary);
    padding: 2.5%;
}

.qualifications_and_achievements_cl>div {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.qualifications_and_achievements_cl>div>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
}

.qualifications_and_achievements_cl>div>div>div {
    width: 5vh;
    height: 5vh;
    background-size: cover;
    border-radius: 0.5vh;
    border-top-left-radius: 1.5vh;
    border-bottom-right-radius: 1.5vh;
}

.qualifications_and_achievements_cl>div>div>span {
    font-size: 3vh;
    font-weight: bold;
    color: white;
    text-align: center;
}

.qualifications_and_achievements_cl>div>span {
    font-size: 2.5vh;
    color: var(--gray_text_color);
    text-align: center;
}

@media (max-width: 700px) {
    .qualifications_and_achievements_cl {
        flex-direction: column;
        align-items: center;
    }

    .qualifications_and_achievements_cl>div {
        width: 90%;
    }
}

/* =============== Специализации =============== */

.specialization_cl {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;
}

.specialization_cl>div {
    width: 22.5vw;
    height: auto;
    padding: 4vh;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1vh;
    border-radius: 2vh;
    background-color: var(--primary);
}

.specialization_cl>div>div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vw;
}

.specialization_cl>div>div>div {
    width: 8vh;
    height: 8vh;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    border-radius: 50%;
}

.specialization_cl>div>div>span {
    width: 75%;
    font-size: 3vh;
    font-weight: bold;
    color: white;
}

.specialization_cl>div>span {
    font-size: 2.5vh;
    color: var(--gray_text_color);
}

@media (max-width: 1000px) {

    .specialization_cl {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 3vw;
    }

    .specialization_cl>div {
        width: 100%;
        height: auto;
    }

}

/* ========== Мотивационная реч ========== */

.motivational_speech_cl {
    width: 100%;
    padding: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
    border-radius: 3vh;
    background-color: var(--primary);
}

.motivational_speech_cl>span:nth-child(1) {
    font-size: 4vh;
    font-style: italic;
    color: var(--gray_text_color);
    text-indent: 4vw;
}

.motivational_speech_cl>span:nth-child(2) {
    text-align: end;
    font-size: 3vh;
    color: var(--accent);
}

@media (max-width: 700px) {
    .motivational_speech_cl>span:nth-child(1) {
        font-size: 2.5vh;
    }
}

/* --- смотреть далее --- */

#further_thanks_id, #further_texts_id, #further_video_id {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 25px;
}

#further_thanks_id > div, #further_texts_id > div, #further_video_id > div {
    padding: 10px;
    padding-left: 30px;
    padding-right: 30px;
    border: 2px dashed gray;
    border-radius: 10px;
    font-size: 3vh;
    color: gray;
    transition: 300ms all;
}

#further_thanks_id > div:hover, #further_texts_id > div:hover, #further_video_id > div:hover {
    cursor: pointer;
    border-color: var(--accent);
    color: var(--accent);
}