header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    background: #fff;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
    width: 100%;
}

.headerContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.headerLogo {
    font-size: 24px;
    color: #C8102E;
    font-weight: bold;
}

.headerLogo img{
    height: 60px;
}

.headerList {
    display: flex;
    gap: 12px;
}

.headerList li{
    position: relative;
}

.headerList li a {
    display: inline-block;
    font-size: 14px;
    color: #002664;
    padding: 7px 7px;
    border: 1px solid transparent;
    transition: .4s;
    border-radius: 100px;
}

.headerList li a:hover {
    border: 1px solid #C8102E;
    color: #C8102E;
}


.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
    min-width: 250px;
    z-index: 999;
    opacity: 0;
    transition: .4s;
}

.submenuContent{
    background: #C8102E;
    margin-top: 0px;
    border-radius: 20px;
    padding: 10px;
}

.submenuContent li a {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
    padding: 10px 10px;
    width: calc(100% - 20px);
    display: block;
    transition: 0.3s;
}

.submenuContent li a:hover {
    color: #fff;
    border: 1px solid #fff;
}

.menuItem:hover .submenu {
    display: block;
    opacity: 1;
}

.headerRight {
    display: flex;
    align-items: center;
    gap: 18px;
}

.headerPhone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #C8102E;
    font-weight: bold;
    font-size: 18px;
}

.headerPhoneIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #C8102E;
}

.headerPhoneIcon img {
    width: 22px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.headerPhoneMobile,
.headerBtnMobile {
    display: none;
}

@media (max-width: 1380px) {
    .headerPhoneMobile,
    .headerBtnMobile {
        display: flex;
        text-align: center;
        margin-top: 15px;
    }

    .headerPhoneMobile .headerPhone{
        display: flex;
        align-items: center;
    }

    .headerPhoneMobile{
        display: flex;
        justify-content: center;
        width: 100%;
        align-items: center;
    }

    .headerPhone{
        display: flex;
        align-items: center;
    }

    .headerPhoneMobile .headerPhone {
        font-size: 18px;
    }

    .headerList li.menuItem a[href="#"] {
        display: none;
    }
}

@media (max-width: 1380px) {

    .headerContainer{
        flex-wrap: wrap;
    }

    .headerList {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 80px;
        left: 2%;
        width: 96%;
        padding: 10px 0;
        border-radius: 20px;
        background: #fff;
        gap: 10px;

        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;

        max-height: calc(100vh - 100px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; 
        overflow-y: auto;
    }

    .headerList.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .headerMenu{
        width: 100%;
    }

    .headerRight {
        display: none;
    }

    .menuItem{
        width: 100%;
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .menuItem a{
        display: inline-block;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .submenu {
        position: static;
        opacity: 1;
        display: block;
        padding: 0;
        min-width: 100%;
        margin-top: 0;
    }

    .submenuContent {
        background: #fff;
        padding: 0;
    }

    .submenuContent li a {
        padding: 8px 10px;
        font-size: 14px;
        width: calc(100% - 20px);
        color: #002664;
    }
}


.courseContent{
    display: flex;
    gap: 20px;
    align-items: stretch;
    justify-content: space-between;
    margin: 25px auto 0;
}

.courseTextContent{
    border-radius: 20px;
    padding: 35px;
    background: #fff;
    width: calc(100% - 430px);
}

.bgCloud{
    background: #EEF4FF;
}

.courseTextContent a{
    color: #002664;
    font-size: 24px;
    margin-bottom: 5px;
    transition: .4s;
    font-weight: bold;
}

.courseTextContent a:hover{
    color: #920c22;
}
 
.courseTextContent h3{
    color: #002664;
    font-size: 24px;
    margin-bottom: 5px;
}

.courseText p{
    margin-top: 15px;
    font-size: 14px;
    color: #575757;
}

.coursePrice{
    font-size: 24px;
    color: #C8102E;
    margin-top: 20px;
    font-weight: bold;
}

.courseImage{
    flex: 0 0 35%;
    border-radius: 20px;
    overflow: hidden;
    position: relative; /* для абсолютного img и меток */
  }

  .courseImage img.courseImg{
    position: absolute;
    inset: 0;              /* top:0;right:0;bottom:0;left:0; */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    z-index: 0;
  }

.courseImageTags{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 5px;
    position: absolute;
    left: 20px;
    top: 20px;
}

.courseImageTags{ position:absolute; left:20px; top:20px; display:flex; flex-direction:column; gap:5px; z-index: 2; }
.courseImageArrow{ position:absolute; bottom:20px; left:20px; z-index: 2; }

.courseImageTag{
    display: flex;
    padding: 5px 10px;
    background: #C8102E;
    color: #fff;
    font-size: 12px;
    border-radius: 60px;
}

.courseImageArrow{
    position: absolute;
    bottom: 20px;
    left: 20px;
}



@media(min-width: 320px) and (max-width: 860px){
    .courseContent{
        display: flex;
        justify-content: center;
        flex-wrap: wrap-reverse;
        gap: 15px;
        margin-top: 45px;
    }

    .courseContent:nth-child(2n){
        flex-wrap: wrap;
    }

    .courseTextContent{
        width: 100%;
    }

    .courseImage{
        width: 100%;
        height: 100%;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
    }
}

.applicationContainer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: stretch;
}

.applicationImage {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
}

.applicationImage img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.applicationFormContent {
    width: 560px;
    background: #002664;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.applicationFormText{
    color: #fff;
}

.applicationFormText h2{
    font-size: 32px;
}

.applicationFormText p{
    margin-top: 10px;
    font-size: 14px;
}

.applicationInput{
    width: calc(100% - 28px);
    background: #001941;
    padding: 14px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: #fff;
}

.applicationCheckboxContainer{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.applicationCheckboxContainer p{
    color: #fff;
    font-size: 14px;
}

.applicationCheckboxContainer p a{
    color: #fff;
    text-decoration: underline;
}

.applicationFormContent .btn{
    margin-top: 15px;
}


@media (max-width: 1024px) {
    .applicationContainer {
        gap: 15px;
    }

    .applicationFormContent {
        width: calc(100% - 30px);
    }

    .applicationImage img {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .applicationContainer {
        flex-direction: column;
        align-items: center;
    }

    .applicationImage {
        width: 100%;
        max-height: 280px;
    }

    .applicationImage img {
        height: auto;
        max-height: 280px;
        object-fit: cover;
    }

    .applicationFormContent {
        width: calc(100% - 40px);
        padding: 20px;
    }

    .applicationFormText h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .applicationFormText h2 {
        font-size: 22px;
    }

    .applicationFormText p {
        font-size: 13px;
    }

    .applicationCheckboxContainer p {
        font-size: 12px;
    }

    .applicationFormContent {
        padding: 15px;
    }

    .applicationImage img {
        max-height: 200px;
    }
}

.reviewsContainer{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}

.reviewItem{
    background: #fafafa;
    border-radius: 20px;
    padding: 20px;
}

.reviewHeader{
    display: flex;
    align-items: center;
    gap: 10px;
}

.reviewAva{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f2f2f2;
}

.reviewAva img{
    width: 55%;
}

.reviewHeader p{
    font-size: 18px;
    font-weight: bold;
    color: #C8102E;
}

.reviewPhoto{
    margin-top: 10px;
}

.reviewPhoto img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.reviewText{
    text-align: center;
    margin-top: 10px;
}

.reviewText p{
    font-size: 14px;
    margin-top: 5px;
    color: #575757;
    text-align: left;
}

@media(min-width: 320px) and (max-width: 680px){
    .reviewsContainer{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media(min-width: 680px) and (max-width: 980px){
    .reviewsContainer{
        grid-template-columns: repeat(2, 1fr);
    }
}


.mapSection { padding: 0; }
.mapWrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.mapCanvas {
    position: absolute;
    inset: 0;
}

.mapOverlay {
    position: relative;
    z-index: 2;
    width: 320px;
    max-width: calc(100% - 32px);
    margin: 24px;
    padding: 25px;
    background: #002664;
    border-radius: 14px;
}

.mapTitle {
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.mapList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.mapItem{
    display: grid;
    align-items: start;
    gap: 10px;
    margin-top: 10px;
}

.mapItemHead{
    display: flex;
    align-items: center;
    gap: 10px;
}

.mapItemHead h3{
    font-size: 16px;
    color: #fff;
    flex: 1;
    font-weight: unset;
}

.mapIcon {
    height: 20px; 
}

.mapIcon img{
    height: 100%;
}


.mapLink, .mapValue { font-size: 14px; color: #fff; text-decoration: none; }
.mapLink:hover { text-decoration: underline; }

@media (max-width: 680px) {
    .mapOverlay {
        position: relative;
        z-index: 2;
        width: calc(100% - 28px);
        margin: 0;
        margin-top: 20px;
        padding: 14px;
        border-radius: 14px;
    }

    .mapCanvas{
        position: relative;
        height: 40vw;
    }
}

/* page */

.pageContainer{
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-top: 20px;
}

.pageContent{
    flex: 1;
}

.pageBg{
    padding: 25px 30px;
    border-radius: 20px;
    background: #EEF4FF;
}

.coursePageTags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coursePageTag{
    padding: 5px 10px;
    font-size: 12px;
    color: #fff;
    background: #C8102E;
    border-radius: 20px;
}

.pageText{
    color: #575757;
    margin-top: 5px;
}

.pageText p{
    margin-top: 15px;
    font-size: 14px;
}

.pageImage{
    width: 560px;
}

.pageImage img{
    width: 100%;
    border-radius: 20px;
}

.coursePagePrice{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.coursePagePrice p{
    font-size: 24px;
    font-weight: bold;
    color: #C8102E;
}

@media(min-width: 320px) and (max-width: 780px){
    .pageContainer{
        display: flex;
        justify-content: center;
        flex-wrap: wrap-reverse;
        gap: 20px;
    }

    .pageContent{
        flex: 1;
    }

    .coursePageTags{
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .pageImage{
        width: 100%;
    }
}

@media(min-width: 780px) and (max-width: 980px){
    .pageImage{
        width: 320px;
    }
}


@media(min-width: 980px) and (max-width: 1200px){
    .pageImage{
        width: 480px;
    }
}

/* footer */

.footer {
    display: flex;
    justify-content: center;
    background-color: #002664;
    color: #fff;
    margin-top: 45px;
}

.footerTop {
    text-align: center;
    padding: 40px 0 25px 0;
}

.footerLogo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.footerLogo img{
    height: 160px;
}

.footerSubtitle {
    font-size: 14px;
    color: #AEAEAE;
    margin: 0;
    width: 460px;
    max-width: 100%;
    text-align: center;
}

.footerMenu {
    margin: 20px 0;
    flex-wrap: wrap;
}

.footerMenu a {
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    display: inline-block;
    padding: 5px 0;
}

.footerMenu a:hover {
    text-decoration: underline;
}

.footerSocials {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.socialCircle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #C8102E;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.socialCircle img{
    width: 15px;    
}

.socialCircle:hover {
    background: #920c22;
}

.footerDivider {
    height: 1px;
    background-color: #163A74;
    margin: 0 auto;
    width: 100%;
}

.footerBottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.footerLeft {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.footerLeft a {
    color: #fff;
    text-decoration: none;
}

.footerLeft a:hover {
    text-decoration: underline;
}

.footerRight {
    font-size: 14px;
    text-align: right;
}

.footerRight p{
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.footerRight a {
    text-decoration: underline;
    color: #fff;
    transition: .4s;
}

.footerRight a:hover{
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .footerSubtitle {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .footerBottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footerRight {
        text-align: center;
    }
    .footerMenu a {
        margin: 5px 10px;
    }
}

@media (max-width: 480px) {
    .footerLogo img {
        height: 98px;
    }
    .footerMenu {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footerLeft {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}



/* modals */

.modal {
    display: none;
    position: fixed;
    z-index: 9999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.modalContent {
    display: flex;
    justify-content: space-between;
    background-color: #fefefe;
    margin: 15% auto;
    width: 80%;
    max-width: 760px;
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modalFormContent{
    width: 60%;
    padding: 20px;
}

.modalContentHeader h2{
    font-size: 20px;
}

.modalContentHeader p{
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

.modalForm label{
    display: inline-block;
    margin-top: 15px;
    width: 100%;
}

.modalForm label p{
    font-size: 12px;
    color: #999;
}

.modalForm input{
    padding: 14px;
    width: calc(100% - 28px);
    border: 1px solid #ddd;
    font-size: 14px;
    margin-top: 6px;
    border-radius: 5px;
}

.modalForm input:focus{
    border: 1px solid #142B2F;
    color: #142B2F;
}

.modalSubmitContainer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.modalSubmitContainer p{
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

.modalSubmitContainer p a{
    text-decoration: underline;
}

.modalSubmitContainer p a:hover{
    text-decoration: none;
}

.modalImage{
    width: 40%;
    position: relative;
}

.modalImageMask{
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00000088;
}

.modalImage img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close {
    color: #fff;
    font-size: 28px;
    font-weight: unset;
    transition: .4s;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
}

.close:hover{
    transform: rotate(135deg);
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media(min-width: 320px) and (max-width: 720px){

    .modalContent {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap-reverse;
        width: 90%;
        max-width: 760px;
        margin-top: 100px;
    }
    
    .modalFormContent{
        display: block;
        width: 100%;
        padding: 20px;
    }
    
    .modalSubmitContainer{
        flex-wrap: wrap;
    }
    
    .modalSubmitContainer p{
        width: 100%;
        margin: 0;
        margin-top: 10px;
    }
    
    .modalImage{
        width: 100%;
        height: 160px;
        position: relative;
    }
}

#statusModal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.statusModalContent {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    width: 460px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.statusModalIcon {
    display: flex;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.statusIcon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    text-align: center;
}

.statusIcon.error {
    background-color: #dc3545;
}

.statusIcon img{
    width: 40%;
}

.statusModalContent p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media(min-width: 320px) and (max-width: 550px){
    .statusModalContent{
        width: calc(90% - 20px);
        padding: 40px 10px;
    }
}

.labelCheckbox{
    display: flex !important;
    align-items: center;
    text-align: left;
    margin-top: 15px;
    width: 100%;
}

.labelCheckbox input{
    width: auto !important;
    margin: 0 !important;
}

.labelCheckbox p{
    margin-left: 10px;
    font-size: 14px !important;
    font-weight: unset !important;
    color: #666;
    margin-top: 0 !important;
}

.labelCheckbox p a{
    color: #41695f
}



.newsContainer{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 35px;
}

.newsItem{
    transition: .4s;
}

.newsItem img{
    width: 100%;
    aspect-ratio: 3/2; 
    object-fit: cover;
    border-radius: 10px;
}

.newsItem h3{
    color: #C8102E;
    margin-top: 15px;
    font-weight: bold;
    font-size: 16px;
    transition: .4s;
}

.dateContainer{
    display: flex;
    align-items: center;
    margin-top: 5px;
    gap: 6px;
}

.dateContainer img{
    width: 20px;
    height: 20px;
    border-radius: 0;
}

.dateContainer p{
    font-size: 14px;
    color: #666666;
}

.newsItem:hover{
    transform: translateY(-10px);
}

.newsItem:hover .newsItem h3{
    color: #3F4C5A;
}

@media(min-width: 320px) and (max-width: 720px){
    .newsContainer{
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-top: 35px;
    }
}

.certificatesContainer{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.certificateItem{
    border-radius: 10px;
    overflow: hidden;
}

.certificateItem img{
    width: 100%;
}

.fancybox__container {
    z-index: 9999 !important;
}

@media(min-width: 320px) and (max-width: 550px){
   .certificatesContainer{
        grid-template-columns: repeat(2, 1fr);
    } 
}

@media(min-width: 550px) and (max-width: 780px){
   .certificatesContainer{
        grid-template-columns: repeat(3, 1fr);
    } 
}

@media(min-width: 780px) and (max-width: 980px){
   .certificatesContainer{
        grid-template-columns: repeat(4, 1fr);
    } 
}

.popularProgramTitle{
    color: #C8102E;
    font-size: 20px;
    margin-top: 20px;
}

.popularPrograms{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.programItem{
    width: calc(100% - 20px);
    padding: 10px 15px;
    background: #EEF4FF;
    border-radius: 10px;
    font-size: 14px;
    color: #001941;
    transition: .4s;
}

.programItem:hover{
    color: #C8102E;
}


.socialFixed{
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    left: 0;
    top: 25%;
    transform: translateY(50%);
    padding: 20px 10px;
    background: #C8102E;
    border-radius: 0 20px 20px 0;
    z-index: 999;
}

.socialFixed .socialCircle{
    z-index: 999;
}

@media(min-width: 320px) and (max-width: 550px){
    .socialFixed{
        padding: 10px 5px;
    }

    .socialFixed .socialCircle{
        width: 30px;
        height: 30px;
    }
}

.footnote{
    margin-top: 20px;
}

.footnote h3{
    font-size: 16px;
    color: #002664;
    margin-bottom: 10px;
}

.footnote p{
    margin-left: 20px;
    color: #575757;
}