@import url("brand.css");

/* ==========================================================================
   Mostamir's Biology — Public Website
   ========================================================================== */

.site-body { background: var(--mb-cream-100); overflow-x: hidden; }

/* ----------------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 248, 243, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background var(--mb-speed) var(--mb-ease), border-color var(--mb-speed) var(--mb-ease), box-shadow var(--mb-speed) var(--mb-ease);
}
.site-header.is-solid {
    background: rgba(255, 252, 250, .96);
    border-bottom-color: var(--mb-line);
    box-shadow: 0 8px 26px -22px rgba(92, 7, 22, .45);
}
.site-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand__mark { width: 44px; height: 44px; border-radius: 14px; box-shadow: var(--mb-sh-sm); flex: 0 0 44px; }
.site-brand__name {
    font-family: var(--mb-font-display);
    font-weight: 800;
    font-size: 1.06rem;
    color: var(--mb-wine-800);
    line-height: 1.15;
    display: block;
}
.site-brand__sub {
    display: block;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mb-red-600);
    font-weight: 600;
}
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav__link {
    padding: 9px 15px;
    border-radius: var(--mb-r-pill);
    color: var(--mb-ink-soft);
    font-size: .92rem;
    font-weight: 500;
    transition: all var(--mb-speed) var(--mb-ease);
}
.site-nav__link:hover { color: var(--mb-red-700); background: var(--mb-red-50); }
.site-nav__link.is-active { color: var(--mb-red-700); background: var(--mb-cream-200); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-burger {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--mb-line);
    background: #fff;
    color: var(--mb-red-700);
    font-size: 1.3rem;
    place-items: center;
}
.site-mobile {
    display: none;
    border-top: 1px solid var(--mb-line);
    background: var(--mb-cream-50);
    padding: 10px 22px 20px;
    animation: mb-drop .32s var(--mb-ease) both;
}
.site-mobile.is-open { display: block; }
.site-mobile a {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid var(--mb-line-soft);
    color: var(--mb-wine-700);
    font-weight: 500;
}
.site-mobile .btn { margin-top: 16px; width: 100%; }
/* ------------------------------------------------------------------- Hero */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 6vw, 84px) 0 clamp(40px, 6vw, 70px);
    background: var(--mb-grad-soft);
}
.hero__blob-a { top: -90px; left: -60px; width: 380px; height: 380px; background: #F7C4CA; }
.hero__blob-b { bottom: -130px; right: 6%; width: 330px; height: 330px; background: #F8E2D7; }
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(26px, 5vw, 58px);
    align-items: center;
}
.hero__title { margin: 18px 0 16px; letter-spacing: -.02em; }
.hero__title em { font-style: normal; color: var(--mb-red-600); }
.hero__lead { font-size: 1.08rem; color: var(--mb-ink-soft); max-width: 560px; line-height: 1.85; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero__visual { position: relative; display: grid; place-items: center; min-width: 0; }
.hero__img { display: block; width: min(100%, 500px); aspect-ratio: 1; object-fit: cover; object-position: center 38%; border: 1px solid rgba(92, 7, 22, .08); border-radius: 20px; box-shadow: 0 24px 54px -32px rgba(46, 10, 18, .42); }
.hero__badge {
    position: absolute;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 16px;
    background: #fff;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-r-md);
    box-shadow: var(--mb-sh-md);
    font-size: .82rem;
    font-weight: 600;
    color: var(--mb-wine-700);
}
.hero__badge span { font-size: 1.15rem; }
.hero__badge--a { top: 8%; left: -2%; animation: mb-float 6s var(--mb-ease) infinite; }
.hero__badge--b { bottom: 10%; right: -2%; animation: mb-float 8s var(--mb-ease) infinite .6s; }

/* ------------------------------------------------------------------ Stats */
.stats-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    background: #fff;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-r-xl);
    box-shadow: var(--mb-sh-md);
    overflow: hidden;
    margin-top: -34px;
}
.stats-strip__item {
    padding: 26px 20px;
    text-align: center;
    border-right: 1px solid var(--mb-line-soft);
    transition: background var(--mb-speed) var(--mb-ease);
}
.stats-strip__item:last-child { border-right: none; }
.stats-strip__item:hover { background: var(--mb-cream-50); }
.stats-strip .stat, .stat-value {
    font-family: var(--mb-font-display);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 800;
    color: var(--mb-red-700);
    line-height: 1.1;
}
.stat-label { font-size: .86rem; color: var(--mb-muted); font-weight: 500; margin-top: 4px; }
/* --------------------------------------------------------- Course cards */
.p-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-r-lg);
    overflow: hidden;
    box-shadow: var(--mb-sh-sm);
    transition: transform var(--mb-speed) var(--mb-ease), box-shadow var(--mb-speed) var(--mb-ease), border-color var(--mb-speed) var(--mb-ease);
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--mb-sh-md); border-color: var(--mb-red-200); }
.p-card__media {
    position: relative;
    height: 132px;
    background: var(--mb-grad-brand);
    display: grid;
    place-items: center;
    color: #fff;
    overflow: hidden;
}
.p-card__media::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .28) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: .6;
}
.p-card__media .ico { font-size: 2.4rem; position: relative; z-index: 1; }
.p-card__tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(255, 255, 255, .93);
    color: var(--mb-red-700);
    padding: 5px 12px;
    border-radius: var(--mb-r-pill);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.p-card__state {
    position: absolute; bottom: 12px; right: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(46, 10, 18, .55);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--mb-r-pill);
    font-size: .72rem;
    font-weight: 600;
}
.p-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.p-card__title { font-size: 1.2rem; }
.p-card__desc { color: var(--mb-ink-soft); font-size: .92rem; }
.p-card__meta {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    font-size: .8rem; color: var(--mb-muted);
    margin-top: auto; padding-top: 6px;
}
.p-card__foot {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--mb-line-soft);
    background: var(--mb-cream-50);
}
.p-card__price { font-family: var(--mb-font-display); font-weight: 800; color: var(--mb-red-700); }

/* --------------------------------------------------------- Feature band */
.feature-band { position: relative; overflow: hidden; background: var(--mb-grad-cta); color: #fff; }
.feature-band h2, .feature-band h3 { color: #fff; }
.feature-band .mb-section__head p { color: rgba(255, 255, 255, .82); }
.feature-band .mb-blob { opacity: .3; }
.feature-card {
    position: relative;
    z-index: 1;
    padding: 26px;
    border-radius: var(--mb-r-lg);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform var(--mb-speed) var(--mb-ease), background var(--mb-speed) var(--mb-ease);
}
.feature-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .17); }
.feature-card h3 { font-size: 1.08rem; margin: 14px 0 8px; }
.feature-card p { color: rgba(255, 255, 255, .85); font-size: .92rem; }

/* ------------------------------------------------------------ Testimonial */
.quote-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    background: #fff;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-r-lg);
    box-shadow: var(--mb-sh-sm);
    transition: transform var(--mb-speed) var(--mb-ease), box-shadow var(--mb-speed) var(--mb-ease);
}
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--mb-sh-md); }
.quote-card__mark { font-family: var(--mb-font-display); font-size: 2.6rem; color: var(--mb-red-200); line-height: .5; }
.quote-card__text { color: var(--mb-ink-soft); font-size: .95rem; line-height: 1.8; flex: 1; }
.mb-rating { color: #E0A22B; letter-spacing: 2px; font-size: .95rem; }
.quote-card__author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--mb-line-soft); }
.quote-card__author strong { display: block; color: var(--mb-wine-800); }
.quote-card__author small { color: var(--mb-muted); }

/* --------------------------------------------------------------- CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--mb-r-xl);
    background: var(--mb-grad-cta);
    color: #fff;
    padding: clamp(34px, 5vw, 64px);
    text-align: center;
    box-shadow: var(--mb-sh-lg);
}
.cta-band h2 { color: #fff; max-width: 720px; margin: 0 auto 14px; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 640px; margin: 0 auto 26px; }
/* ---------------------------------------------------------------- Footer */
.site-footer {
    position: relative;
    border-top: 3px solid #D86C78;
    background: linear-gradient(135deg, #281017 0%, #3A111C 58%, #481722 100%);
    color: rgba(255, 255, 255, .74);
    padding: clamp(38px, 5vw, 60px) 0 0;
    margin-top: clamp(40px, 6vw, 80px);
}
.site-footer h4 {
    color: #fff;
    font-size: .84rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.site-footer h4::after {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin-top: 9px;
    border-radius: 2px;
    background: #E17B85;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, .85fr));
    gap: clamp(22px, 3.6vw, 42px);
}
.footer-about { max-width: 380px; }
.footer-brand { display: flex; align-items: center; gap: 12px; width: fit-content; margin-bottom: 15px; text-decoration: none; }
.footer-about img { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 13px; box-shadow: 0 5px 18px rgba(0, 0, 0, .2); }
.footer-brand > span { min-width: 0; }
.footer-about .name {
    font-family: var(--mb-font-display);
    font-weight: 800;
    font-size: 1.02rem;
    color: #fff;
    display: block;
    line-height: 1.4;
}
.footer-brand small { display: block; margin-top: 3px; color: #E9A0A7; font-size: .72rem; }
.footer-about p { max-width: 360px; color: rgba(255, 255, 255, .68); font-size: .86rem; line-height: 1.75; }
.footer-link { display: block; padding: 6px 0; color: rgba(255, 255, 255, .72); font-size: .86rem; transition: color var(--mb-speed) var(--mb-ease), transform var(--mb-speed) var(--mb-ease); }
.footer-link:hover { color: #fff; transform: translateX(3px); }
.footer-contact { display: flex; align-items: flex-start; gap: 9px; padding: 6px 0; font-size: .84rem; overflow-wrap: anywhere; }
.footer-contact .ico { flex: 0 0 18px; color: #F0949F; }
.social-row { display: flex; gap: 8px; margin-top: 18px; }
.social-row a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1rem;
    transition: all var(--mb-speed) var(--mb-ease);
}
.social-row a:hover { background: #fff; border-color: #fff; color: var(--mb-red-700); transform: translateY(-2px); }
.footer-bottom {
    margin-top: clamp(28px, 4vw, 44px);
    min-height: 66px;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: .84rem;
}
.footer-bottom__legal { display: flex; align-items: center; gap: 18px; min-width: 0; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255, 255, 255, .8); }
.footer-bottom a:hover { color: #fff; }
.footer-credit { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.footer-credit strong { color: #fff; font-weight: 700; }

/* ------------------------------------------------------- Maintenance page */
.maintenance-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background: linear-gradient(145deg, #fff9f5 0%, #f8e9e4 55%, #f4dfe0 100%);
}
.maintenance-content { width: min(100%, 620px); text-align: center; }
.maintenance-brand { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 44px; text-align: left; }
.maintenance-brand img { width: 44px; height: 44px; border-radius: 12px; }
.maintenance-brand strong, .maintenance-brand small { display: block; }
.maintenance-brand strong { color: var(--mb-wine-800); font-family: var(--mb-font-display); font-size: .95rem; }
.maintenance-brand small { margin-top: 2px; color: var(--mb-muted); font-size: .7rem; }
.maintenance-symbol { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border: 1px solid var(--mb-red-100); border-radius: 18px; background: #fff; color: var(--mb-red-700); font-size: 1.7rem; box-shadow: var(--mb-sh-sm); }
.maintenance-content h1 { margin-bottom: 12px; color: var(--mb-wine-800); font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.25; }
.maintenance-content > p { max-width: 500px; margin: 0 auto; color: var(--mb-ink-soft); font-size: .98rem; line-height: 1.8; white-space: pre-line; }
.maintenance-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 8px 12px; border: 1px solid rgba(122, 10, 28, .12); border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--mb-wine-700); font-size: .76rem; font-weight: 700; }
.maintenance-status::before { width: 7px; height: 7px; border-radius: 50%; background: #D86C78; content: ''; }

/* ------------------------------------------------------------ Responsive */
@media (max-width: 992px) {
    .hero__grid { grid-template-columns: 1fr; text-align: center; }
    .hero__lead { margin-left: auto; margin-right: auto; }
    .hero__actions, .hero__chips { justify-content: center; }
    .hero__visual { order: -1; }
    .hero__img { width: min(100%, 420px); }
    .hero__badge--a { left: 0; }
    .hero__badge--b { right: 0; }
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .site-nav, .site-header__actions .btn-soft { display: none; }
    .site-burger { display: grid; }
    .site-header__actions { margin-left: auto; }
    .site-shell { gap: 12px; }
}

@media (max-width: 768px) {
    .stats-strip { margin-top: -22px; border-radius: var(--mb-r-lg); }
    .stats-strip__item { padding: 20px 14px; }
    .hero__badge { display: none; }
    .p-card__media { height: 112px; }
    .cta-band { padding: 34px 22px; border-radius: var(--mb-r-lg); }
}

@media (max-width: 480px) {
    .site-brand__sub { display: none; }
    .site-brand__name { font-size: .98rem; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stats-strip__item:nth-child(2n) { border-right: none; }
    .stats-strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--mb-line-soft); }
    .p-card__foot { flex-direction: column; align-items: stretch; }
    .p-card__foot .btn { width: 100%; }
}




@media (max-width: 600px) {
    .site-shell { padding: 8px 12px; }
    .site-brand { min-width: 0; gap: 8px; }
    .site-brand__name { font-size: .9rem; overflow-wrap: anywhere; }
    .site-brand__mark { width: 36px; height: 36px; flex-basis: 36px; border-radius: 11px; }
    .site-header__actions { gap: 6px; }
    .site-header__actions > .btn:not(.btn-soft) { min-height: 44px; padding: 8px 10px; font-size: .78rem; }
    .hero { padding-top: 24px; }
    .hero__visual { order: -1; margin-bottom: 8px; }
    .hero__img { width: min(100%, 260px); border-radius: 16px; }
    .hero__title { font-size: clamp(1.75rem, 7vw, 2.4rem); margin: 14px 0 12px; }
    .hero__lead { font-size: .96rem; line-height: 1.65; }
    .hero__actions { gap: 9px; margin-top: 20px; }
    .hero__actions .btn { width: 100%; justify-content: center; }
    .hero__chips { justify-content: flex-start; gap: 7px; margin-top: 18px; }
    .stats-strip__item { padding: 14px 8px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: stretch; gap: 10px; font-size: .76rem; }
    .footer-bottom__legal { justify-content: space-between; gap: 8px 14px; }
    .footer-credit { align-self: flex-end; }
}
@media (max-width: 360px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
}
.footer-credit { color: #fff; font-weight: 600; }
.site-burger .mb-icon { --mb-icon-size: var(--mb-icon-md); }
.footer-contact .mb-icon { --mb-icon-size: var(--mb-icon-sm); }
