/* mag/entrance-mag.css */

/* 1. Основа */
body {
    margin: 0;
    background-color: #000317;
    color: white;
    font-family: 'Inter', Helvetica, sans-serif;
}

/* Переопределяем из base.css, если нужно */
a {
    text-decoration: none;
    color: inherit;
}

p {
    color: #fff;
}

a:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* 2. Структура */


.header__wrap, .header__drawer-desktop {
    background: #000317;
}

.entrance .header {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('img/isolation-mode.svg') no-repeat center center;
    background-size: cover;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    max-width: 1356px;
    margin: 0 auto;
    padding-bottom: 5rem;
    margin-bottom: 3rem;
}

main.entrance::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(179deg, rgba(0, 3, 23, 1) 1%, rgba(0, 7, 37, 1) 3%, rgba(0, 8, 43, 1) 7%, rgba(0, 11, 58, 1) 8%, rgba(1, 3, 27, 1) 10%, rgba(14, 22, 57, 1) 27%);
    z-index: -1;
    height: 404%;
}

.header-title, .header-title h1 {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    z-index: -99;
}

nav.nav-main {
    width: 94%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entrance .arrow-left-thick {
    position: relative;
    width: 24px;
    height: 24px;
    top: 0.3rem;
    margin-right: 0.5rem;
    filter: invert(1);
}

.entrance .back {
    font-family: "Inter-SemiBold", Helvetica;
    font-weight: 600;
    color: #ffffff;
    font-size: 24px;
    letter-spacing: 0;
    line-height: 30px;
    white-space: nowrap;
}

.nav-main a {
    font-family: "Inter-Regular", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 30px;
    white-space: nowrap;
    margin-left: .5rem;
}


img.banner {
    margin-top: 2rem;
    max-width: 100%;
    height: auto;
}

.frame {
    width: 502px;
    height: 286px;
    display: flex;
    right: 0;
    top: 4rem;
    position: absolute;
    flex-direction: column;
    gap: 44px;
    background-color: #ffffff33;
    border-radius: 5px;
    overflow: hidden;
    z-index: 1;
}

.frame .text-wrapper {
    margin-left: 64px;
    width: 398px;
    height: 83px;
    margin-top: 10px;
    font-family: "Inter-Regular", Helvetica;
    font-weight: 400;
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0;
    line-height: 28px;
}

.frame .element {
    margin-left: 64px;
    margin-bottom: 0;
    margin-top: 2rem;
    width: 398px;
    height: 88px;
    font-family: "Inter-SemiBold", Helvetica;
    font-weight: 600;
    color: #ffffff;
    font-size: 70px;
    letter-spacing: 0;
    line-height: 84px;
    white-space: nowrap;
}

.frame .span {
    font-family: "Inter-SemiBold", Helvetica;
    font-weight: 600;
    color: #ffffff;
    font-size: 70px;
    letter-spacing: 0;
    line-height: 84px;
}

.frame .text-wrapper-2 {
    display: block;
    margin-top: 0;
    font-size: 28px;
    line-height: 34.6px;
}


.buttons-row {
    bottom: 8rem;
    left: 7rem;
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 100px;
    transition: 0.3s all ease;
}

.btn-primary {
    background: white;
    color: #683dcb;
}



.btn-primary:hover {
    background: #e0e0e0;
}

.call-priem,
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.call-priem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 100px;
    transition: 0.3s all ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.progress {
    position: relative;
    top: -2px;
    left: 50%;
    overflow: hidden;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #949ae9 0%, rgba(148, 154, 233, 0) 100%);
    -webkit-background-clip: text !important;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Inter-SemiBold", Helvetica;
    font-weight: 600;
    color: transparent;
    font-size: 125.9px;
    text-align: center;
    opacity: 0.4;
    margin-bottom: 1rem;
    letter-spacing: 0;
    line-height: 125.9px;
    white-space: nowrap;
}

.info-tag {
    position: absolute;
    left: 8%;
    top: 10%;
    padding: 14px 32px;
    background-color: #1677e8;
    border-radius: 100px;
    font-weight: 500;
}

/* Указатель на "В авангарде" — адаптивная карточка */
.feature-banner {
    position: absolute;
    display: flex;
    justify-content: center;
    margin: 80px 0;
    bottom: 29%;
    right: 1%;
}

.banner-rotated {
    transform: rotate(3.08deg);
    background-color: #95de5bb3;
    border: 1px #fff solid;
    padding: 10px 40px;
    right: -6rem;
    z-index: 2;
    top: -1rem;
    position: relative;
    border-radius: 151.28px;
    box-shadow: 0 14px 23px rgba(57, 56, 107, 0.5);
}

.sec.banner-rotated {
    box-shadow: 0 14px 23px 0 rgba(57, 56, 107, 0.5);
    background: rgb(250 6 107 / 73%);
    transform: rotate(-6deg);
    right: 5rem;
    top: -5rem;
    position: relative;
}

.banner-text {
    font-size: 3rem;
    font-weight: 600;
    color: white;
    text-align: center;
}

.date-block {
    position: relative;
    display: flex;
    left: 2rem;
    justify-content: flex-end;
}

.date-tag {
    padding: 14px 32px;
    background-color: #1677e8;
    border-radius: 100px;
    font-weight: 500;
    font-size: 28px;
    margin-left: 1rem;
}


/* Дата-таймлайн (Ключевые даты 2026) */
.section {
    max-width: 1300px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    margin: 40px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .section-title {
        font-size: 2rem;
    }
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border: 2px solid #949ae9;
    border-radius: 5px;
}

.date {
    font-size: 2rem;
    font-weight: 700;
    color: #949ae9;
    margin-bottom: 8px;
}

.label {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.note {
    font-size: 1rem;
    opacity: 0.9;
}

/* Секция: Выбор программы */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 30px;
}

.program-card {
    background: linear-gradient(to bottom, #0e1639, #4d56db);
    padding: 30px;
    border-radius: 5px;
    color: white;
}

.program-card:nth-child(2) {
    background: linear-gradient(to bottom, #0e1639, #939598);
}

#documents .doc-card:last-child,
.program-card:nth-child(3) {
    background: linear-gradient(to bottom, #0e1639, #76d632);
}

.program-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.program-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.program-info {
    font-size: 1rem;
}

.program-card p {
    color: #fff;
}

/* Блок "Подготовительные курсы", кнопки и т.д. */
.action-box {
    background: #39386b;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    margin: 25px auto;
    max-width: 100%;
}


/* Документы и этапы */
.document-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    margin-top: 1.5rem;
}

#programs .document-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

#programs .doc-card:first-child {
    grid-column: span 3 / span 3;
}

#programs .doc-card:nth-child(2) {
    grid-column: span 3 / span 3;
}

#programs .doc-card:nth-child(3),
#programs .doc-card:nth-child(4),
#programs .doc-card:nth-child(5) {
    grid-column: span 2 / span 2;
}

#exams .entrance-tests,
#exams .faq-block,
#documents .document-grid {
    margin-top: 0;
    grid-template-columns: 1fr;

}

#exams .faq-block a>p,
#documents .document-grid a>p {
    font-size: 28px;
    line-height: 107%;
    margin: 1rem;
}

img.graph {
    width: 100%;
    margin-top: 1.5rem;
}

#exams .faq-item:last-child {
    background: linear-gradient(to left, #0e1639, #4d56db);
}

#admission .timeline-card {
    position: relative;
    border-radius: 17px;
}

#admission .timeline-card .label:nth-child(2) {
    margin-bottom: 2.5rem;
}

#admission .timeline-card .note {
    position: absolute;
    bottom: 1rem;
}

#admission .timeline-card .date-tag {
    padding: 14px 32px;
    position: absolute;
    top: -1.7rem;
    right: 1.5rem;
}

.before-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 26px;
    margin-top: 40px;
}



.doc-card {
    background: #39386b;
    padding: 20px;
    border-radius: 5px;
}

.doc-card a {
    display: block;
    padding: 0;
    text-align: center;
    background: unset;
}

.doc-card.label {
    font-size: unset;
    margin-bottom: unset;
    background: #4d56db;
}

/* Вступительные испытания — аккордеон */
.entrance-tests {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
}

.entrance-test {
    border: 2px solid #949ae9;
    border-radius: 5px;
    padding: 27px 20px;
    background: #0e1639;
}

.test-header {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.test-date {
    font-size: 2.5rem;
    font-weight: 700;
    color: #949ae9;
}

.test-note {
    font-size: 1rem;
    color: #fff;
    opacity: 0.9;
}

/* FAQ и подсказки */
.faq-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 26px;
    margin-top: 40px;
}

.faq-item {
    background: #39386b;
    padding: 20px;
    border-radius: 5px;
}

.faq-item strong {
    display: block;
    margin-bottom: 5px;
}

/* Финал: макет под галерею/футер */
.final-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #61b124, #0e1639);
    padding: 40px 20px;
    color: white;
    border-radius: 5px;
}

.final-banner-text {
    font-size: 1.5rem;
    text-align: center;
}

#before-study h3 {
    text-align: center;
    margin: 1rem;
}

#before-study p {
    margin-bottom: 0;
}

#before-study .faq-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 26px;
    margin-top: 26px;
}


/* Footer */
.footer {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1000px) {
    .document-grid {
        grid-template-columns: 1fr;
    }

    .frame {
        width: 100%;
        top: 0;
        left: 0;
        right: unset;
        gap: 29px;
    }

    .frame .element {
        margin-left: 64px;
        margin-top: -0.7rem;
        font-size: 70px;
        letter-spacing: 0;
        line-height: 18px;
    }

    .frame .span {
        font-size: 45px;
        line-height: 80px;
    }

    .frame .text-wrapper-2 {
        display: block;
        margin-top: 0;
        margin-left: 0.3rem;
        font-size: 19px;
        line-height: 29.6px;
    }

    .frame .text-wrapper {
        margin-left: 64px;
        margin-top: 0;
        font-size: 20px;
        line-height: 28px;
    }

    .banner-text {
        line-height: 0;
        font-size: 1rem;
    }

    .banner-rotated {
        transform: rotate(7deg);
        padding: 20px 30px;
        border-radius: 50px;
        right: 7rem;
        width: max-content;
        top: -40vh;
        position: absolute;
    }

    .sec.banner-rotated {
        transform: rotate(-6deg);
        right: 0rem;
        top: -40vh;
        position: absolute;
    }

    .buttons-row {
        bottom: 10.8rem;
        left: 4rem;
    }

    .feature-banner {
        margin: 80px 0;
        bottom: 29%;
        position: relative;
        right: unset;
        width: 100%;
    }

    .progress {
        position: relative;
        color: transparent;
        font-size: 51px;
        line-height: 40px;
        white-space: unset;
    }

    .nav-main a {
        display: none;
    }

    .nav-main a:first-child {
        display: block;
    }

    #programs .doc-card:nth-child(3), #programs .doc-card:nth-child(4), #programs .doc-card:nth-child(5) {
        grid-column: span 6;
    }

    .doc-card a {
        font-size: 0.9rem;
    }

    .date-tag {
        font-size: 15px;
    }

    .date-block {
        gap: 1rem;
        flex-direction: column;
    }




}