/* 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;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background-image: url(./img/main_img.png);
    background-size: cover;
    animation: img_scroll_anim 30s infinite;
}

@keyframes img_scroll_anim {
    0% {
        background-image: url(./img/main_img.png);
    }

    12.5% {
        background-image: url(./img/main_img.png);
    }

    25% {
        background-image: url(./img/main_2_img.png);
        background-position: 50% 50%;
    }

    37.5% {
        background-image: url(./img/main_2_img.png);
        background-position: 50% 50%;
    }

    50% {
        background-image: url(./img/main_3_img.png);
    }

    62.5% {
        background-image: url(./img/main_3_img.png);
    }

    75% {
        background-image: url(./img/main_4_img.png);
    }

    87.5% {
        background-image: url(./img/main_4_img.png);
    }

    100% {
        background-image: url(./img/main_img.png);
    }
}

.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;
    padding-top: 5vh;
}

.hero-content>div {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1vh;
    margin-left: 10vw;
}

.hero-content>div>div {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 1vh;
}

.hero-content>div>div:nth-child(1) {
    animation: titleReveal_zero 1.5s ease-out;
}

.hero-content>div>div:nth-child(2) {
    animation: titleReveal_one 2s ease-out;
}

.hero-content>div>div:nth-child(3) {
    animation: titleReveal_two 2.5s ease-out;
}

.hero-content>div>div:nth-child(4) {
    animation: titleReveal_free 3s ease-out;
}

.hero-content>div>div:nth-child(5) {
    animation: titleReveal_four 3.5s ease-out;
}

.hero-content>div>div:nth-child(6) {
    animation: titleReveal_five 4s ease-out;
}

@keyframes titleReveal_zero {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleReveal_one {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    10% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleReveal_two {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    20% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleReveal_free {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    40% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleReveal_four {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    60% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes titleReveal_five {
    0% {
        opacity: 0;
        transform: translateX(500px);
    }

    80% {
        opacity: 0;
        transform: translateX(500px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content>div>div>div {
    width: 4vh;
    height: 4vh;
    border-radius: 0.5vh;
    border: 3px solid var(--accent);
    background-image: url(./img/tick.png);
    background-size: cover;
}

.hero-content>div>div>span {
    font-size: 2vh;
    font-weight: bold;
    text-align: start;
    color: white;
    width: 80%;
}

@media (max-width: 700px) {

    .hero-content>div {
        margin-left: 7.5vw;
    }

}

.hero h1 {
    font-size: 3rem;
    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;
    margin-top: 2vh;
}

.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%;
}

.button_two {
    display: inline-block;
    padding: 0.5rem 1rem;
    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;
    margin-top: 2vh;
}

.button_two::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_two:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.button_two: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: 2rem;
    }

    .container {
        padding: 4vw;
    }

    .hero-content>div>div>span {
        font-weight: normal;
    }

}

/* --- название каталогов --- */
.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);
}

@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%;
    }
}

/* ========== ПОЧЕМУ НАДА ВЫБРАТЬ НАС ========== */

.why_choose_us_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;
}

/* зеркальное 1 */

.why_choose_us_block_cl {
    width: 80%;
    height: 65vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 1vh;
    box-shadow: 5px 5px 10px black;
    overflow: hidden;
    background-color: #120e29;
}

.why_choose_us_block_cl>div:nth-child(1) {
    width: 50%;
    height: 100%;
    background-size: 150%;
    background-position: 0% 0%;
    background-repeat: no-repeat;
    animation: image_movement 12s ease infinite;
}

@keyframes image_movement {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.why_choose_us_block_cl>div:nth-child(1)>div {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #120e2907, #120e2903, #120e297e, #120e29);
}

.why_choose_us_block_cl>div:nth-child(2) {
    width: 47.5%;
    height: 95%;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-top: 1%;
    padding-bottom: 2.5%;
    padding-right: 2.5%;
}

.why_choose_us_block_cl>div:nth-child(2)>span:nth-child(1) {
    font-size: 3vh;
    text-indent: 3vw;
    text-align: justify;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

.why_choose_us_block_cl>div:nth-child(2)>span:nth-child(2) {
    font-size: 2.5vh;
    text-align: justify;
    color: white;
    text-indent: 3vw;
    padding-bottom: 1vh;
    border-bottom: 2px solid var(--gray_line_color);
    line-height: 1.4;
}

/* зеркальное 2 */

.why_choose_us_block_two_cl {
    width: 80%;
    height: 65vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 1vh;
    box-shadow: 5px 5px 10px black;
    overflow: hidden;
    background-color: #120e29;
}

.why_choose_us_block_two_cl>div:nth-child(2) {
    width: 50%;
    height: 100%;
    background-size: 150%;
    background-position: 0% 0%;
    background-repeat: no-repeat;
    animation: image_movement_two 12s ease infinite;
    color: #1a153359;
}

@keyframes image_movement_two {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 0% 100%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 100% 0%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.why_choose_us_block_two_cl>div:nth-child(2)>div {
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #120e2907, #120e2903, #120e297e, #120e29);
}

.why_choose_us_block_two_cl>div:nth-child(1) {
    width: 47.5%;
    height: 95%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    padding-top: 1%;
    padding-bottom: 2.5%;
    padding-left: 2.5%;
}

.why_choose_us_block_two_cl>div:nth-child(1)>span:nth-child(1) {
    font-size: 3vh;
    font-weight: bold;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
    text-align: end;
}

.why_choose_us_block_two_cl>div:nth-child(1)>span:nth-child(2) {
    line-height: 1.4;
    font-size: 2.5vh;
    text-align: justify;
    text-indent: 3vw;
    color: white;
    padding-bottom: 1vh;
    border-bottom: 2px solid var(--gray_line_color);
}

@media (max-width: 1000px) {

    .why_choose_us_block_cl {
        width: 90%;
    }

    .why_choose_us_block_two_cl {
        width: 90%;
    }

    .why_choose_us_block_cl {
        flex-direction: column;
        height: 100vh;
    }

    .why_choose_us_block_cl>div:nth-child(1) {
        width: 100%;
        height: 50%;
    }

    .why_choose_us_block_cl>div:nth-child(2) {
        width: 95%;
        height: 50%;
        padding-left: 2.5%;
        padding-right: 2.5%;
    }

    .why_choose_us_block_two_cl {
        flex-direction: column;
        height: 100vh;
    }

    .why_choose_us_block_two_cl>div:nth-child(2) {
        width: 100%;
        height: 50%;
        order: 1;
    }

    .why_choose_us_block_two_cl>div:nth-child(1) {
        order: 2;
        width: 95%;
        height: 50%;
        padding-left: 2.5%;
        padding-right: 2.5%;
    }

    .why_choose_us_block_cl>div:nth-child(1) {
        background-size: cover;
    }

    .why_choose_us_block_two_cl>div:nth-child(2) {
        background-size: cover;
    }
}

@media (max-width: 700px) {

    .why_choose_us_block_cl {
        height: 50vh;
    }

    .why_choose_us_block_cl>div:nth-child(1) {
        height: 100%;
    }

    .why_choose_us_block_cl>div:nth-child(2) {
        position: absolute;
        padding-top: 2.5%;
        padding-left: 5%;
        padding-right: 5%;
    }

    .why_choose_us_block_cl>div:nth-child(2)>span:nth-child(1) {
        font-size: 2.25vh;
        padding: 1.5vh;
        padding-left: 3vh;
        padding-right: 3vh;
        border-radius: 2vh;
        backdrop-filter: blur(24px);
        text-shadow: 2px 2px 5px black;
    }

    .why_choose_us_block_cl>div:nth-child(2)>span:nth-child(2) {
        display: none;
    }

    .why_choose_us_block_two_cl {
        height: 50vh;
    }

    .why_choose_us_block_two_cl>div:nth-child(2) {
        height: 100%;
    }

    .why_choose_us_block_two_cl>div:nth-child(1) {
        position: absolute;
        padding-top: 10%;
        padding-left: 10%;
        padding-right: 10%;
    }

    .why_choose_us_block_two_cl>div:nth-child(1)>span:nth-child(1) {
        font-size: 2.25vh;
        padding: 1.5vh;
        padding-left: 3vh;
        padding-right: 3vh;
        border-radius: 2vh;
        backdrop-filter: blur(24px);
        text-shadow: 2px 2px 5px black;
    }

    .why_choose_us_block_two_cl>div:nth-child(1)>span:nth-child(2) {
        display: none;
    }

    .button {
        padding: 0.5rem 1rem;
        border-radius: 25px;
        font-size: 1.8vh;
    }

}

/* --- смотреть далее --- */

#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);
}