/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #444;
    line-height: 1.5;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    color: #001F46;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 30px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn--primary {
    background-color: #DFCC74;
    color: #333;
    border-radius: 0 15px;
}

.btn--primary:hover {
    background-color: #c9b55c;
  /*  background-color: #e8dba0;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2); */
}

.btn--dark {
    background-color: #001F46;
    color: #fff;
    border-radius: 0 15px;
}

.btn--dark:hover {
    background-color: #0a2a5a;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header__title {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-header--light .section-header__title {
    color: #fff;
}

.section-header__decor {
    width: 15px;
    height: 43px;
    margin: 0 auto;
    position: relative;
    background-image: url(../img/Separator-key.svg);
    background-repeat: no-repeat;
}

.section-header__decor::before,
.section-header__decor::after {
    /*content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 3px solid #DFCC74;
    border-radius: 50%;
    left: -6px;*/
}

.section-header__decor::before {
    /*top: -15px;*/
}

.section-header__decor::after {
  /*  bottom: -15px;
    width: 15px;
    height: 3px;
    background-color: #DFCC74;
    border: none;
    border-radius: 0;*/
}

/* Header */
.header {
    background-color: #252B5F;
    padding: 10px 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo__img {
   margin: 0 auto;
}
.header__nav{
    width: 1170px;
}
.nav__list {
    display: inline-flex;
    width: 100%;
    /*gap: 6em;*/
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
}
.nav__item{
    margin: 0;
    padding: 0;
    margin-right: 40px;
}

.nav__link {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
    padding: 5px 0;
    transition: color 0.3s;
}
    
/*
.nav__list {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.nav__link {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    padding: 5px 0;
    transition: color 0.3s;
}
*/
.nav__link--active,
.nav__link:hover {
    color: #DFCC74;
}

/* ===== HERO SECTION С СЛАЙДЕРОМ ФОНА ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #fff;
}

.hero__slider {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__slider .swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    font-size: 50px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__subtitle {
    font-size: 14px;
    margin-bottom: 30px;
    text-shadow: 0 4px 4px rgba(0,0,0,0.55);
}

.hero__btn {
    background-color: #DFCC74;
    color: #333;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.hero__btn:hover {
    background-color: #c9b55c;
}

.logo {
    display: inline-block;
    margin-bottom: 30px;
}

.logo__img {
    max-width: 200px;
    height: auto;
}

.hero__button-prev,
.hero__button-next {
    z-index: 3 !important;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: background 0.3s;
}

.hero__button-prev:hover,
.hero__button-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero__button-prev::after,
.hero__button-next::after {
    font-size: 20px;
}

.hero__pagination {
    z-index: 3 !important;
    bottom: 90px !important;
}

.hero__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 5px !important;
}

.hero__pagination .swiper-pagination-bullet-active {
    background: #DFCC74;
    transform: scale(1.2);
}

/* Facts */
.facts {
    position: relative;
    top: -70px;
    z-index: 3;
}

.facts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fact-card {
    background-color: #252B5F;
    color: #fff;
    padding: 30px 20px;
    border-radius: 0 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-end;
    justify-content: space-between;
    align-items: flex-end;
}

.fact-card__title {
    font-size: 24px;
    color: #fff;
    margin-bottom: 10px;
}

.fact-card__desc {
    font-size: 14px;
    line-height: 1.5;
}

.fact-card-text-wrapper{
    width: 75%;
    padding: 0 10px 0 10px;
}

.fact-card-icon-wrapper{
    width: 25%;
}

.fact-card-icon::before{
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.fact-graduation-cap::before{
    background-image: url(../img/fact-icon-1.svg);
}
.fact-people::before{
    background-image: url(../img/fact-icon-2.svg);
}
.fact-book::before{
    background-image: url(../img/fact-icon-3.svg);
}

/* About */
.about {
    display: block;
    padding: 60px 0;
    width: auto;
    height: auto;
    background-image: url(../img/bg-emblema.svg);
    background-repeat: no-repeat;
    background-size: auto;
    background-position: right;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about__subtitle {
    font-size: 24px;
    margin: 20px 0 10px;
}

.about__description {
    margin-bottom: 20px;
}

.about__principles {
    list-style: disc;
    padding-left: 20px;
}

.about__principles li {
    margin-bottom: 10px;
}

.about__form {
    background-color: #F2F5F9;
    padding: 30px;
    border-radius: 0 30px;
}

.about__form-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #F0F0F0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background-color: #fff;
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: #999;
}

.form__checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    width: 100%;
}

.form__checkbox {
    width: auto;
}

/* Stats */
.stats {
    background: linear-gradient(rgba(37,43,95,0.8), rgba(37,43,95,0.8)), url('../img/bg-people.jpg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 60px 0;
    color: #fff;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item{
    padding: 0 40px;
}

.stat-item__icon{
    content: '';
    display: inline-block;
    width: 35px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.stat-time{
    background-image: url(../img/fact-icon-time.svg);
}
.stat-student{
    background-image: url(../img/fact-icon-students.svg);
}
.stat-project{
    background-image: url(../img/fact-icon-projects.svg);
}
.stat-experiens{
    background-image: url(../img/fact-icon-experiens.svg);
}

.stat-item__number {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 10px;
}

.stat-item__label {
    font-size: 15px;
    line-height: 1.4;
}

/* Ecosystem */
.ecosystem {
    padding: 60px 0;
    background-color: #fff;
}

.ecosystem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ecosystem-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    transition: 0.3s;
}
.ecosystem-card:hover .ecosystem-card__wrap-content{
    top: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.ecosystem-card:hover .ecosystem-card__title{
    transition: 0.3s;
    top: 0;
}

.ecosystem-card__image {
    height: 240px;
    background-color: #ddd;
    background-repeat: no-repeat;
    background-size: 100% auto;
}
.card-primary{
    background-image: url(../img/primary_school.jpg);
}
.card-summer{
    background-image: url(../img/summer_school.jpg);
}
.card-profession{
    background-image: url(../img/man_profession.jpg);
}
.ecosystem-card__wrap-content{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(38,43,96,0.7);
    padding: 20px;
    margin: 0;
    transition: 0.3s;
}

.ecosystem-card__wrap-content:hover .ecosystem-card__desc{
    display: block;
}
.ecosystem-card__wrap-content:hover .ecosystem-card__title {
    top: 50%;
}

.ecosystem-card__title {
    color: #fff;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ecosystem-card__desc{
    display: none;
    color: #DFCC74;
    text-align: center;
    font-family: Oswald, sans-serif;
}

/* Features */
.features {
    padding: 60px 0;
    background-color: #F2F5F9;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 0 30px;
    text-align: center;
    border: 3px solid transparent;
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: #DFCC74;
}

.feature-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 10px;
    content: '';
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon_pansion{
    background-image: url(../img/benefits-icon_pansion.svg);
}
.icon_search-work{
    background-image: url(../img/benefits-icon_search-work.svg);
}
.icon_opening{
    background-image: url(../img/benefits-icon_opening.svg);
}
.icon_travels{
    background-image: url(../img/benefits-icon_travels.svg);
}
.icon_targets{
    background-image: url(../img/benefits-icon_targets.svg);
}
.icon_endaument{
    background-image: url(../img/benefits-icon_endaument.svg);
}
.icon_profile{
    background-image: url(../img/benefits-icon_profile.svg);
}
.icon_sport{
    background-image: url(../img/benefits-icon_sport.svg);
}
.icon_theater{
    background-image: url(../img/benefits-icon_theater.svg);
    width: 80px;
    background-position: bottom;
}
.icon_work-of-teachers{
    background-image: url(../img/benefits-icon_work-of-teachers.svg);
}
.icon_interesting-people{
    background-image: url(../img/benefits-icon_interesting-people.svg);
}
.icon_hand-made{
    background-image: url(../img/benefits-icon_hand-made.svg);
}
.icon_usefull{
    background-image: url(../img/benefits-icon_usefull.svg);
}
.icon_history-school{
    background-image: url(../img/benefits-icon_history-school.svg);
}
.icon_programm-of-art{
    background-image: url(../img/benefits-icon_programm-of-art.svg);
}

.feature-card__title {
    font-size: 20px;
    margin-bottom: 15px;
    width: 75%;
    margin: 0 auto;
}
.feature-card__desc:before{
    content: "----------";
    background-repeat: repeat-x;
    display: block;
    margin: 0 auto;
}

.feature-card__desc {
    font-size: 13px;
    line-height: 1.5;
    width: 85%;
    margin: 0 auto;
}

/* ===== ОСНОВНЫЕ СТИЛИ СЕКЦИИ ===== */
.teachers {
    padding: 60px 0;
    background-color: #fff;
}

.teachers__intro {
    max-width: 540px;
    margin: 0 auto 20px;
    font-size: 15px;
    text-align: center;
}

.teachers__title,
.administrative__title {
    margin: 40px auto;
    font-size: 24px;
    text-align: center;
}

/* ===== КОНТЕЙНЕРЫ СЛАЙДЕРОВ ===== */
.administrative__box,
.teachers__box {
    position: relative;
}

.teachers__box {
    margin-top: 30px;
}

.administrative__slider,
.teachers__slider {
    width: 100%;
    padding: 20px 40px 50px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===== ОБЩИЕ СТИЛИ ДЛЯ КАРТОЧЕК ===== */
.administrative-card,
.teacher-card {
    height: 100%;
    padding: 30px 20px;
    background-color: #fff;
    border: 3px solid transparent;
    border-radius: 0 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    text-align: center;
    transition: all 0.3s;
    box-sizing: border-box;
}

.administrative-card:hover,
.teacher-card:hover {
    border-color: #DFCC74;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
}

.administrative-card__photo,
.teacher-card__photo {
    width: 150px;
    height: 150px;
    min-width: 150px;
    margin: 0 auto 20px;
    background-color: #ccc;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.administrative-card__photo img,
.teacher-card__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.administrative-card__name,
.teacher-card__name {
    min-height: 52px;
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.administrative-card__role,
.teacher-card__role {
    margin: 0;
    padding-bottom: 5px;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.administrative__slider .swiper-slide,
.teachers__slider .swiper-slide {
    height: auto;
    padding: 15px;
    box-sizing: border-box;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none;
}

.swiper-button-prev,
.swiper-button-next {
    width: 60px;
    height: 60px;
    margin-top: -20px;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.swiper-button-prev {
    left: -40px !important;
    background-image: url('../img/arrow-left.svg');
}

.swiper-button-next {
    right: -40px !important;
    background-image: url('../img/arrow-right.svg');
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(rgba(37, 43, 95, 0.8), rgba(37, 43, 95, 0.8)), url('../img/bg-people.jpg') center/cover no-repeat;
    color: #fff;
}

.testimonials__intro {
    max-width: 540px;
    margin: 0 auto 20px;
    font-size: 15px;
    color: #fff;
    text-align: center;
}

.testimonials__box {
    position: relative;
}

.testimonials__slider {
    width: 100%;
    padding: 0 40px 50px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.testimonials__slider.swiper {
    padding-top: 40px;
}

.testimonials__slider .swiper-slide {
    height: auto;
    padding: 15px;
    box-sizing: border-box;
}

.testimonial-card {
    height: 100%;
    padding: 30px 20px;
    background-color: #fff;
    color: #444;
    border-radius: 0 30px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.testimonial-card__photo {
    width: 110px;
    height: 110px;
    margin: -85px auto 20px;
    border: 5px solid #fff;
    border-radius: 50%;
    background-color: #ccc;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.testimonial-card__name {
    margin: 0 0 5px;
    font-size: 20px;
    color: #001F46;
    line-height: 1.3;
}

.testimonial-card__role {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2D2D2D;
    line-height: 1.4;
}

.testimonial-card__text {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    flex-grow: 1;
}

.testimonials__box .swiper-pagination {
    position: absolute;
    bottom: -28px !important;
    left: 0;
    width: 100%;
    z-index: 10;
}

.testimonials__box .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #8C8D8E;
    border-radius: 12px;
}

.testimonials__box .swiper-pagination-bullet-active {
    background: #DFCC74;
}

/* News */
.news {
    padding: 60px 0;
    background-color: #F2F5F9;
}
.news__intro{
    text-align: center;
    max-width: 540px;
    margin: 0 auto 20px;
    font-size: 15px;
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: #fff;
    overflow: hidden;
}
/*
.news-card__image {
    height: 240px;
    background-color: #ccc;
}*/

.news-card__date {
    display: block;
    padding: 15px 20px 0;
    font-size: 14px;
    color: #001F46;
    margin-bottom: 5px;
}
.news-card__date::before{
    width: 14px;
    height: 14px;
    margin: 0 10px 0px 0;
    content: '';
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(../img/calendar.svg);
}

.news-card__title {
    font-size: 18px;
    padding: 0 20px;
    margin-bottom: 10px;
    color: #001F46;
}

.news-card__excerpt {
    font-size: 14px;
    padding: 0 20px;
    margin-bottom: 20px;
    color: #444;
}

.news-card__link {
    margin: 0 20px 20px;
    display: inline-block;
    padding: 15px 25px;
}

.news__more {
    text-align: center;
}

/* FAQ */
.faq {
    padding: 60px 0;
    background-color: #fff;
    background-image: url(../img/bg-school-vector.svg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-position-x: 80%;
}

.faq__intro {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 20px;
    font-size: 15px;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 70px;
}

.faq-item {
    margin-bottom: 15px;
    border: 3px solid #DFCC74;
    border-radius: 0 30px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.faq-item__question {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #000;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
    padding: 20px 10px 20px 30px;
    transition: all 0.3s ease;
}

.faq-item__question::-webkit-details-marker {
    visibility: hidden;
}

.faq-item__question::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15px;
    width: 50px;
    height: 50px;
    font-size: 30px;
    color: #DFCC74;
    background-image: url(../img/icon-accordeon-maker.svg);
    background-repeat: no-repeat;
    transition: 0.8s;
    transition: ease-in-out  0.8ms;
    transition: all 0.3s ease;
}

details[open] .faq-item__question::after {
    content: '';
    background-image: url(../img/icon-accordeon-maker-open.svg);
    transition: ease-in-out  0.8ms;
}

.faq-item__answer {
    margin: 5px 40px 30px 30px;
    font-size: 14px;
    color: #444;
    padding: 0 0 0 20px;
    border-left: 4px solid #C5CBE0;
    transition: ease-in-out  0.8ms;
}

.get__question{
    margin: 55px;
}

/* Contact */
.contact {
    background: linear-gradient(rgba(37,43,95,0.8), rgba(37,43,95,0.8)), url('../img/bg-contacts.webp') center/cover no-repeat;
    padding: 60px 0;
    color: #fff;
}

.contact__intro {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 20px;
    font-size: 15px;
    color: #fff;
}

.contact__wrapper {
    display: block;
}

.contact__info {
    padding: 0 30px 30px 30px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-item {
    margin-bottom: 30px;
    width: 30%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;

}
.contact__info-icon{
    margin: 0 0 20px;
    border: 8px solid #fff;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-item__label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact-item__value {
    font-size: 14px;
    color: #fff;
    font-style: normal;
    max-width: 70%;
    text-align: center;
}

.contact__form {
    padding: 30px;
    border-radius: 0 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: space-between;
    gap: 20px;
}

.contact__form .form__input{
    width: 48%;
}
.contact__form .form__textarea {
    min-height: 170px;
    border: 0;
    resize: none;
}

.contact__form textarea::placeholder {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact__form .form__input,
.contact__form .form__textarea {
    background-color: #fff;
    border: none;
}

.contact__form .btn {
    margin: 0 auto;
}

/* MAP*/
.map{
    height: 240px;
    border-top: 6px solid #DFCC74;
}
.map iframe{
    height: 100%;
}


/* ===== ПОПАП С ИКОНКОЙ ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup {
    position: relative;
    width: 90%;
    max-width: 520px;
    background-color: #fff;
    border-radius: 0 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 5px solid #dfcc74;
}

.popup-overlay.active .popup {
    transform: scale(1);
}

/* Кнопка закрытия */
.popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #DFCC74;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.popup__close:hover {
    background: #DFCC74;
}

.popup__close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #001F46;
    transition: background-color 0.3s ease;
}

.popup__close:hover span {
    background-color: #fff;
}

.popup__close span:first-child {
    transform: rotate(45deg);
}

.popup__close span:last-child {
    transform: rotate(-45deg);
}

/* Контент */
.popup__content {
    padding: 70px 45px 50px;
    text-align: center;
}

/* Иконка (декоративный элемент) */
.popup__icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 25px;
    background-image: url('../img/icon-constraction.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.7;
}

/* Текст */
.popup__text {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 35px;
    position: relative;
}

/* "Извините" шрифтом Oswald */
.popup__sorry {
    font-family: 'Oswald', sans-serif;
    display: block;
    margin-bottom: 5px;
    font-size: 28px;
    color: #001F46;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Пунктирная линия под "Извините" */
.popup__dotted-line {
    display: block;
    width: 60px;
    height: 2px;
    margin: 15px auto 20px;
    background: repeating-linear-gradient(
        to right,
        #DFCC74 0px,
        #DFCC74 6px,
        transparent 6px,
        transparent 12px
    );
}

.popup__link {
    color: #001F46;
    text-decoration: underline;
    word-break: break-all;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
}

.popup__link:hover {
    color: #DFCC74;
}

/* Кнопка (обновлённый стиль как на скриншоте) */
.popup__button {
    display: inline-block;
    padding: 16px 45px;
    background-color: transparent;
    color: #001F46;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    border: 2px solid #001F46;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0 15px;
    min-width: 160px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.popup__button:hover {
    background-color: #001F46;
    color: #fff;
}

/* Адаптация */
@media (max-width: 480px) {
    .popup__content {
        padding: 60px 25px 40px;
    }
    
    .popup__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }
    
    .popup__sorry {
        font-size: 24px;
    }
    
    .popup__dotted-line {
        width: 50px;
        margin: 12px auto 18px;
    }
    
    .popup__text {
        font-size: 14px;
    }
    
    .popup__close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .popup__button {
        padding: 14px 35px;
        min-width: 140px;
        font-size: 13px;
    }
}


/* Footer */
.footer {
    background-color: #F2F5F9;
    padding: 60px 0 20px;
    border-top: 6px solid #DFCC74;

}

.footer__container {
    display: flex;
    flex-direction: column;
}

.footer__logo {
    text-align: center;
    margin: 0 auto;
    margin-bottom: 40px;
}

.footer__logo-img {
    width: 230px;
    height: 230px;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer__col-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #000;
}

.footer__list li {
    margin-bottom: 10px;
}

.footer__list a {
    font-size: 14px;
    font-weight: 200;
    color: #000;
    transition: color 0.3s;
}

.footer__list a:hover {
    color: #DFCC74;
}

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #C5CBE0;
}

.footer__copyright {
    font-size: 14px;
    color: #001F46;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 100;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(37, 43, 95, 0.95);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .header__container {
        position: relative;
    }
    
    .hamburger {
        display: block;
        margin-left: auto;
    }
    
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #252B5F;
        z-index: 95;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .header__nav.active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .nav__item {
        margin-right: 0;
        width: 100%;
    }
    
    .nav__link {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 768px) {
    .header__nav {
        width: 100%;
        max-width: none;
    }
}

.page_under_construction{
    margin: 100px 0 0;
    padding: 150px 0 0;
    height: 70vh;
    background-image:url(../img/bg-school-vector.svg);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: auto;
}


/* ============================================ */
/* ========== АДАПТИВНЫЕ СТИЛИ =============== */
/* ============================================ */

/* Адаптация слайдеров - 992px */
@media (max-width: 992px) {
    .administrative__slider,
    .teachers__slider {
        padding: 20px 30px 50px;
    }

    .testimonials__slider {
        padding: 0 30px 50px;
    }
}

/* Адаптация сеток и общих элементов - 1024px */
@media screen and (min-width: 980px) and (max-width: 1179px) {
    .facts__grid,
    .ecosystem__grid,
    .features__grid,
    .teachers__grid,
    .testimonials__grid,
    .news__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about__content {
        grid-template-columns: 1fr 1fr;
    }

    .stats__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
    }

    .contact-item__value{
        min-width: 100%;
    }

    .hero__title{
        font-size: 38px;
    }

    .footer__nav{
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Адаптация планшетов - ДО 979px */
@media screen and (min-width: 768px) and (max-width: 979px) {
    .hero__title{
        font-size: 32px;
    }
    .fact-card__title{
        font-size: 20px;
    }
    .fact-card-icon::before{
        height: 35px;
        width: 35px;
    }
    .about__subtitle{
        font-size: 22px;
    }
    .about__description, .about__principles{
        font-size: 14px;
    }
    .stats__grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .ecosystem__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news__grid{
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__info{
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-item__value{
        max-width: 100%;
    }


}

/* Адаптация мобилки - ДО 767px */
@media screen and (min-width: 480px) and (max-width: 767px) {
    /* Header */
    .header__container {
        flex-direction: column;
        gap: 15px;
    }

    .nav__list {
        justify-content: center;
    }

    /* Hero */
    .hero__title {
        font-size: 36px;
    }

    .hero__button-prev,
    .hero__button-next {
        width: 40px;
        height: 40px;
    }
    
    .hero__button-prev::after,
    .hero__button-next::after {
        font-size: 16px;
    }

    /* Сетки */
    .facts__grid,
    .features__grid,
    .teachers__grid,
    .testimonials__grid,
    .news__grid,
    .stats__grid,
    .footer__nav {
        grid-template-columns: 1fr;
    }

    .ecosystem__grid{
        grid-template-columns: repeat(2,  1fr);
    }

    .footer__nav {
        gap: 20px;
    }

    .ecosystem-card__image{
        background-repeat: no-repeat;
        background-size: 100% auto;

    }


    /* Слайдеры */
    .administrative__slider,
    .teachers__slider {
        padding: 20px 20px 45px;
    }
    
    .administrative__slider .swiper-slide,
    .teachers__slider .swiper-slide {
        padding: 12px;
    }
    
    .swiper-button-prev {
        left: 5px;
        display: none !important;
    }
    
    .swiper-button-next {
        right: 5px;
        display: none !important;
    }

    /* Карточки учителей */
    .administrative-card,
    .teacher-card {
        padding: 25px 15px;
    }
    
    .administrative-card__photo,
    .teacher-card__photo {
        width: 120px;
        height: 120px;
        min-width: 120px;
    }
    
    .administrative-card__name,
    .teacher-card__name {
        min-height: 48px;
        font-size: 18px;
    }
    
    .administrative-card__role,
    .teacher-card__role {
        font-size: 13px;
    }

    /* Слайдер отзывов */
    .testimonials__slider {
        padding: 0 20px 45px;
    }
    
    .testimonials__slider .swiper-slide {
        padding: 12px;
    }
    
    .testimonial-card {
        padding: 25px 15px;
    }
    
    .testimonial-card__photo {
        width: 100px;
        height: 100px;
        margin-top: -75px;
    }
    
    .testimonial-card__name {
        font-size: 18px;
    }
    
    .testimonial-card__role,
    .testimonial-card__text {
        font-size: 13px;
    }

    /* Пагинация отзывов */
    .testimonials__box .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
   
}

/* Адаптация мобильных устройств - 480px */
@media screen and (min-width: 1px) and (max-width: 479px){
    /* Hero */
    .hero__title {
        font-size: 24px;
    }
    
    .hero__pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
    
    .logo__img {
        max-width: 150px;
    }
    .facts__grid{
        grid-template-columns: 1fr;
    }
    .about{
        padding-top: 0;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .section-header{
        margin-bottom: 20px;
    }

    .stats__grid{
        grid-template-columns: 1fr;
    }
    .ecosystem__grid{
        grid-template-columns: 1fr;
    }

    .ecosystem-card__image {
        background-repeat: no-repeat;
        background-size: 100% auto;
    }
    .fact-card-icon::before{
        width: 35px;
        height: 35px;
    }

    .features__grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .news__grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .contact__info{
        flex-direction: column;
    }
    .contact-item{
        width: 100%;
    }

    .contact__form .form__input{
        width: 100%;

    }
    
    .footer__nav{
        grid-template-columns: repeat(2, 1fr);
    }

    /* Карточки учителей */
    .administrative__slider .swiper-slide,
    .teachers__slider .swiper-slide {
        padding: 10px;
    }
    
    .administrative-card,
    .teacher-card {
        padding: 20px 12px;
    }
    
    .administrative-card__photo,
    .teacher-card__photo {
        width: 100px;
        height: 100px;
        min-width: 100px;
    }
    
    .administrative-card__name,
    .teacher-card__name {
        min-height: 44px;
        font-size: 16px;
    }
    
    .administrative-card__role,
    .teacher-card__role {
        font-size: 12px;
    }

    /* Слайдер отзывов */
    .testimonials__slider .swiper-slide {
        padding: 10px;
    }
    
    .testimonial-card {
        padding: 20px 12px;
    }
    
    .testimonial-card__photo {
        width: 90px;
        height: 90px;
        margin-top: -65px;
        border-width: 4px;
    }
    
    .testimonial-card__name {
        font-size: 16px;
    }
    
    .testimonial-card__role,
    .testimonial-card__text {
        font-size: 12px;
    }

    /* Пагинация отзывов */
    .testimonials__box .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
    

}