/* ========================================
   UTCB Admitere – Responsive Styles
   ======================================== */

/* ── Tablet: ≤ 1024px ── */
@media (max-width: 1024px) {
    :root {
        --fs-5xl: 2.55rem;
        --fs-4xl: 2.15rem;
        --fs-3xl: 1.9rem;
    }

    .container {
        padding: 0 var(--space-lg);
    }

    .section {
        padding: var(--space-4xl) 0;
    }

    /* Header */
    .header__nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.85rem;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 20px 48px rgba(21, 35, 49, 0.14);
        overflow: visible;
        z-index: 1005;
    }

    .header__nav.open {
        display: flex;
    }

    .header__nav-primary {
        display: grid;
        gap: 0.65rem;
    }

    .header__nav-primary a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 52px;
        padding: 0.8rem 1rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.84);
        border: 1px solid rgba(65, 87, 109, 0.1);
        box-shadow: 0 10px 24px rgba(21, 35, 49, 0.05);
        font-size: 0.98rem;
        text-align: center;
    }

    .header__nav-primary a::after,
    .header__nav-secondary a::after {
        display: none;
    }

    .header__nav-secondary {
        display: none;
    }

    .header__cta {
        font-size: 1.05rem;
        padding: 0.95rem 1.2rem;
    }

    .header__menu-btn {
        display: flex;
    }

    .header__cta-desktop {
        display: none;
    }

    .header-main {
        left: var(--space-lg);
        right: var(--space-lg);
        width: auto;
        transform: none;
        overflow: visible;
    }

    /* Hero */
    .hero__title {
        font-size: var(--fs-4xl);
    }

    .hero {
        min-height: 680px;
    }

    .hero__tape-bar {
        bottom: 14px;
        height: auto;
    }

    .hero__tape-center {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        gap: 0.85rem;
        width: min(calc(100% - 1.5rem), 840px);
        padding: 0.65rem 1.4rem;
        min-height: 54px;
    }

    .hero__tape-actions {
        gap: 0.5rem;
    }

    .hero__tape-btn {
        height: 32px;
        padding: 0 0.85rem;
        font-size: 0.72rem;
    }

    .hero__tape-stats {
        gap: 0.75rem;
        margin-left: 0;
    }

    .hero-stat-mini__val {
        font-size: 1.15rem;
    }

    .hero-stat-mini__lbl {
        font-size: 0.45rem;
    }

    /* Preinscriere */
    .preinscriere__frame {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .preinscriere__form-wrap {
        max-width: none;
        margin-left: 0;
    }

    /* Concept */
    .concept-wip__grid {
        grid-template-columns: 1fr;
    }

    .concept-wip__title {
        max-width: none;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about__highlights {
        max-width: none;
        margin-left: 0;
    }

    .about__highlight {
        min-height: 0;
    }

    /* Faculties */
    .facultati__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Locuri */
    .locuri__highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

/* ── Mobile: ≤ 768px ── */
@media (max-width: 768px) {
    :root {
        --fs-5xl: 2.05rem;
        --fs-4xl: 1.65rem;
        --fs-3xl: 1.4rem;
        --fs-2xl: 1.35rem;
        --space-5xl: 4rem;
        --space-4xl: 3rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    /* Header top */
    .header-top {
        display: none;
    }

    .header-main {
        left: var(--space-md);
        right: var(--space-md);
        top: 0.875rem;
        width: auto;
        transform: none;
        height: 64px;
        border-radius: 18px;
    }

    .header-main::after {
        left: 16px;
        right: 16px;
        bottom: -14px;
        height: 24px;
    }

    /* Hero */
    .hero {
        min-height: 620px;
        height: 100svh;
        padding: 0;
    }

    .hero__main-image {
        object-position: 54% 56%;
        transform: none;
        filter: none;
    }

    .hero__tape-bar {
        left: 0.875rem;
        right: 0.875rem;
        bottom: 4.3rem;
        height: auto;
        aspect-ratio: 860 / 390;
        filter: drop-shadow(0 10px 20px rgba(18, 30, 14, 0.18));
    }

    .hero__tape-center {
        position: absolute;
        top: 23%;
        bottom: 19%;
        left: 10%;
        right: 10%;
        width: auto;
        height: auto;
        padding: 0;
        flex-direction: column;
        justify-content: center;
        gap: 0.85rem;
    }

    .hero__tape-actions,
    .hero__tape-stats {
        width: 100%;
        justify-content: center;
    }

    .hero__tape-actions {
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .hero__tape-btn {
        flex: 0 1 auto;
        justify-content: center;
        min-width: 138px;
        height: 34px;
        font-size: 0.74rem;
        padding: 0 0.9rem;
    }

    .hero__tape-stats {
        gap: 1rem;
        flex-wrap: nowrap;
        margin-left: 0;
        padding: 0.45rem 0.7rem 0.35rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .hero__mobile-links {
        position: absolute;
        left: 0.875rem;
        right: 0.875rem;
        bottom: 0.9rem;
        z-index: 4;
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        padding: 0.35rem 0.35rem 0.38rem;
        border-radius: 24px;
        background: rgba(16, 27, 38, 0.54);
        border: 1px solid rgba(255, 255, 255, 0.16);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        box-shadow: 0 12px 26px rgba(7, 16, 26, 0.18);
    }

    .hero__mobile-links::-webkit-scrollbar {
        display: none;
    }

    .hero__mobile-links a {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 34px;
        padding: 0 0.85rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #fff;
        font-size: 0.74rem;
        font-weight: 700;
        white-space: nowrap;
        text-decoration: none;
    }

    .hero-stat-mini {
        min-width: 58px;
    }

    .hero-stat-mini__val {
        font-size: 1.3rem;
        color: #35511d;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    .hero-stat-mini__lbl {
        font-size: 0.5rem;
        color: #35511d;
        opacity: 1;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    }

    /* Concept */
    .concept-wip {
        padding-top: var(--space-xl);
    }

    .concept-wip__frame {
        padding: 1.35rem;
        border-radius: 26px;
    }

    .concept-wip__title {
        font-size: clamp(1.9rem, 9vw, 2.55rem);
    }

    .concept-wip__title-line {
        white-space: normal;
    }

    .concept-wip__lead {
        font-size: var(--fs-base);
        line-height: 1.7;
    }

    .concept-wip__quote {
        padding: 1.1rem 1rem;
    }

    .concept-wip__quote p {
        font-size: 1rem;
    }

    .concept-wip__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .concept-wip__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Preinscriere */
    .preinscriere__frame {
        padding: 1.35rem;
        border-radius: 26px;
    }

    .preinscriere__steps {
        flex-direction: column;
        gap: 0.85rem;
        display: flex;
        max-width: none;
    }

    .preinscriere__title {
        max-width: none;
        font-size: clamp(1.95rem, 8vw, 2.45rem);
        line-height: 1;
    }

    .preinscriere__text {
        max-width: none;
        font-size: var(--fs-base);
        margin-bottom: 0.9rem;
    }

    .preinscriere__note {
        max-width: none;
        margin-bottom: 1rem;
    }

    .preinscriere__step {
        min-width: 0;
        align-items: center;
        text-align: left;
    }

    .preinscriere__step-num {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .preinscriere__step-text {
        font-size: var(--fs-sm);
        max-width: none;
        text-align: left;
    }

    /* About highlights */
    .about__highlights {
        grid-template-columns: 1fr;
    }

    /* Faculties */
    .facultati__grid {
        grid-template-columns: 1fr;
    }

    /* Locuri */
    .locuri__stats {
        grid-template-columns: 1fr;
    }

    .locuri__highlights {
        grid-template-columns: 1fr 1fr;
    }

    /* Documents */
    .documente-flow__notice,
    .documente-flow__block-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .documente-flow__steps,
    .documente-flow__docs,
    .documente-flow__footer {
        grid-template-columns: 1fr;
    }

    .documente-flow__step-text,
    .documente-flow__doc-text,
    .documente-flow__block-text {
        max-width: none;
    }

    /* Criterii */
    .criterii__hero-card {
        padding: 1.5rem;
    }

    .criterii__hero-text {
        max-width: none;
        font-size: var(--fs-base);
    }

    .criterii__grid {
        grid-template-columns: 1fr;
    }

    .criterii__formula {
        flex-direction: column;
    }

    .criterii__calculator {
        padding: 1.35rem;
    }

    .criterii__calculator-header,
    .criterii__result {
        flex-direction: column;
        align-items: flex-start;
    }

    .criterii__calculator-form {
        grid-template-columns: 1fr;
    }

    .criterii__result-explainer {
        max-width: none;
        text-align: left;
    }

    /* Form */
    .form__row {
        grid-template-columns: 1fr;
    }

    .preinscriere .form {
        padding: 1.1rem;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    /* Calendar */
    .calendar-flow__hero {
        grid-template-columns: 1fr;
    }

    .calendar-flow__stage {
        grid-template-columns: 1fr;
    }

    .calendar-flow__stage-rail {
        flex-direction: row;
        align-items: center;
    }

    .calendar-flow__stage-line {
        width: 100%;
        min-height: 2px;
        height: 2px;
        margin-left: 0;
    }
}

/* ── Small mobile: ≤ 480px ── */
@media (max-width: 480px) {
    :root {
        --fs-5xl: 1.65rem;
        --fs-4xl: 1.35rem;
        --fs-3xl: 1.2rem;
    }

    .header-top {
        display: none;
    }

    .header-main {
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
        width: auto;
        transform: none;
        border-radius: 14px;
        height: 52px;
    }

    .header__logo-img {
        height: 32px;
    }

    .header__logo-conexus {
        height: 22px;
        margin-right: 0;
    }

    .hero {
        min-height: 100svh;
    }

    .hero__main-image {
        object-position: 58% 58%;
        transform: none;
        filter: none;
    }

    .header__nav {
        top: calc(100% + 0.55rem);
        padding: 0.7rem;
        border-radius: 18px;
        overflow: visible;
    }

    .header__nav-primary a {
        min-height: 48px;
        font-size: 0.92rem;
    }

    .hero__tape-bar {
        left: 0.625rem;
        right: 0.625rem;
        bottom: 4.2rem;
    }

    .hero__tape-center {
        top: 21%;
        bottom: 18%;
        left: 8%;
        right: 8%;
        gap: 0.7rem;
    }

    .hero__tape-btn {
        min-width: 124px;
        height: 32px;
        font-size: 0.68rem;
    }

    .hero__tape-stats {
        gap: 0.7rem;
        padding: 0.35rem 0.55rem 0.25rem;
    }

    .hero__mobile-links {
        left: 0.625rem;
        right: 0.625rem;
        bottom: 0.7rem;
        gap: 0.45rem;
        padding: 0.32rem 0.32rem 0.36rem;
    }

    .hero__mobile-links a {
        min-height: 32px;
        padding: 0 0.72rem;
        font-size: 0.66rem;
    }

    .hero-stat-mini {
        min-width: 50px;
    }

    .hero-stat-mini__val {
        font-size: 1.08rem;
        color: #31481b;
    }

    .hero-stat-mini__lbl {
        color: #31481b;
    }

    .hero-stat-mini__lbl {
        font-size: 0.41rem;
    }

    .locuri__highlights {
        grid-template-columns: 1fr;
    }
}
