/* ============================================================
   ProSkill IT Academy — Modern Design System (2026)
   ============================================================ */
:root {
    --bg: #06080f;
    --bg-2: #0a0e1a;
    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #eef1f8;
    --muted: #94a0b8;
    --dim: #5c6780;

    --brand-1: #4f7cff;
    --brand-2: #22d3ee;
    --accent: #34d399;
    --danger: #f87171;

    --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
    --radius: 18px;
    --radius-sm: 12px;

    --font-head: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-glow: 0 0 60px rgba(79, 124, 255, 0.25);
    --tr: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(79, 124, 255, 0.35); }

/* ---- Background decor ---- */
.bg-mesh {
    position: fixed;
    inset: -6%;
    z-index: -2;
    background:
        radial-gradient(600px 400px at 12% -5%, rgba(79, 124, 255, 0.16), transparent 60%),
        radial-gradient(700px 500px at 95% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(79, 124, 255, 0.08), transparent 60%);
    animation: meshDrift 26s ease-in-out infinite alternate;
}
@keyframes meshDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(1.5%, -1%) scale(1.04); }
    100% { transform: translate(-1.5%, 1%) scale(1.02); }
}
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 10%, transparent 75%);
}
/* Naqsh alohida qatlamda — transform bilan suriladi (GPU, repaint yo'q) */
.bg-grid::before {
    content: '';
    position: absolute;
    inset: -60px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    will-change: transform;
    animation: gridPan 24s linear infinite;
}
@keyframes gridPan {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(56px, 56px, 0); }
}

/* Suzuvchi rangli sharlar (aurora) */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.bg-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.62;
    will-change: transform;
}
.orb-1 {
    width: 420px; height: 420px;
    top: -8%; left: -6%;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.55), transparent 70%);
    animation: orbFloat1 22s ease-in-out infinite;
}
.orb-2 {
    width: 360px; height: 360px;
    top: 18%; right: -8%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.45), transparent 70%);
    animation: orbFloat2 27s ease-in-out infinite;
}
.orb-3 {
    width: 300px; height: 300px;
    bottom: 6%; left: 22%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.32), transparent 70%);
    animation: orbFloat3 31s ease-in-out infinite;
}
.orb-4 {
    width: 260px; height: 260px;
    top: 52%; left: 48%;
    background: radial-gradient(circle, rgba(147, 97, 255, 0.3), transparent 70%);
    animation: orbFloat1 35s ease-in-out infinite reverse;
}
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(70px, 60px) scale(1.15); }
    66%      { transform: translate(-40px, 90px) scale(0.9); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-90px, 70px) scale(1.2); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%      { transform: translate(100px, -60px) scale(1.1); }
    75%      { transform: translate(-60px, -30px) scale(0.95); }
}

/* Yuqoridan pastga tushuvchi nur chiziqlari */
.bg-beams {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.bg-beams span {
    position: absolute;
    top: -40%;
    width: 1px;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.55), transparent);
    animation: beamFall 9s linear infinite;
}
.bg-beams span:nth-child(1) { left: 18%; animation-delay: 0s; }
.bg-beams span:nth-child(2) { left: 54%; animation-delay: 3.4s; height: 28%; }
.bg-beams span:nth-child(3) { left: 82%; animation-delay: 6.1s; height: 34%; }
@keyframes beamFall {
    0%   { transform: translateY(0); opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { transform: translateY(350vh); opacity: 0; }
}

/* ---- Intro ekrani ---- */
.intro { display: none; }
html.has-intro { overflow: hidden; }
html.has-intro body { overflow: hidden; }
html.has-intro .intro {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}
.intro.done { pointer-events: none; }

.intro-rings { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.intro-rings span {
    position: absolute;
    border: 1px solid rgba(79, 124, 255, 0.35);
    border-radius: 50%;
    width: 260px; height: 260px;
    animation: ringPulse 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.intro-rings span:nth-child(2) { animation-delay: 0.6s; }
.intro-rings span:nth-child(3) { animation-delay: 1.2s; }
@keyframes ringPulse {
    0%   { transform: scale(0.4); opacity: 0; }
    25%  { opacity: 0.8; }
    100% { transform: scale(3.6); opacity: 0; }
}

.intro-inner { position: relative; z-index: 3; text-align: center; padding: 0 24px; }

.intro-logo {
    width: 92px; height: 92px;
    margin: 0 auto 28px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: var(--grad);
    box-shadow: 0 20px 60px rgba(79, 124, 255, 0.45);
    animation: introLogo 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.intro-logo img { width: 58px; height: 58px; object-fit: contain; }
@keyframes introLogo {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.intro-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 4.6vw, 52px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    max-width: min(92vw, 16ch);
    margin: 0 auto;
}
.intro-title .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(-70deg) scale(0.9);
    filter: blur(12px);
    animation: wordIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(0.45s + var(--i) * 0.16s);
}
@keyframes wordIn {
    to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}

.intro-bar {
    width: 220px;
    height: 3px;
    margin: 38px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.5s ease 1.1s forwards;
}
.intro-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.8);
    animation: barFill 1.7s cubic-bezier(0.65, 0, 0.35, 1) 1.15s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
@keyframes barFill { to { width: 100%; } }

/* Fon = 4 ta ustun. Yopilishda ular ketma-ket yuqoriga ko'tariladi va sayt ochiladi. */
.intro-curtain { position: absolute; inset: 0; display: flex; z-index: 1; pointer-events: none; }
.intro-curtain span {
    flex: 1;
    background-image: radial-gradient(ellipse at 50% 40%, #101a33 0%, #06080f 65%);
    background-size: 100vw 100vh;
    background-repeat: no-repeat;
    will-change: transform;
}
.intro-curtain span:nth-child(1) { background-position: 0 0; }
.intro-curtain span:nth-child(2) { background-position: -25vw 0; }
.intro-curtain span:nth-child(3) { background-position: -50vw 0; }
.intro-curtain span:nth-child(4) { background-position: -75vw 0; }

.intro.done .intro-inner,
.intro.done .intro-rings {
    animation: introContentOut 0.45s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
@keyframes introContentOut {
    to { opacity: 0; transform: translateY(-40px) scale(0.94); filter: blur(8px); }
}
.intro.done .intro-curtain span {
    animation: curtainUp 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.intro.done .intro-curtain span:nth-child(1) { animation-delay: 0.35s; }
.intro.done .intro-curtain span:nth-child(2) { animation-delay: 0.43s; }
.intro.done .intro-curtain span:nth-child(3) { animation-delay: 0.51s; }
.intro.done .intro-curtain span:nth-child(4) { animation-delay: 0.59s; }
@keyframes curtainUp {
    to { transform: translateY(-101%); }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.02em; }

.grad-text {
    background: linear-gradient(120deg, var(--brand-1), var(--brand-2), var(--brand-1));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 5s ease-in-out infinite alternate;
}
@keyframes gradShift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.section { padding: 110px 0; position: relative; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--brand-2);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}
.section-title { font-size: clamp(30px, 4.5vw, 46px); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 17px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--tr);
    white-space: nowrap;
}
.btn-primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 8px 30px rgba(79, 124, 255, 0.35);
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(79, 124, 255, 0.5); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: var(--card-hover); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); }

/* ---- Navbar ---- */
@keyframes navIn {
    from { opacity: 0; transform: translate(-50%, -24px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
.nav {
    animation: navIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1320px, calc(100% - 32px));
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(8, 11, 20, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 19px;
}
.nav-logo img { width: 38px; height: 38px; margin-right: 10px; border-radius: 10px; object-fit: contain; flex-shrink: 0; }
.nav-logo span { color: var(--brand-2); margin-left: 0.28em; }
/* Rasmiy logotip (daraxt + so'z belgisi bitta rasmda) */
.nav-logo-full img { width: auto; height: 34px; margin: 0; border-radius: 0; }
@media (max-width: 480px) { .nav-logo-full img { height: 30px; } }
.footer-logo { display: block; width: auto; height: 58px; margin-bottom: 16px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; min-width: 0; }
.nav-links a {
    display: block;
    white-space: nowrap;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: var(--tr);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--card-hover); }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-burger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 32px));
    z-index: 99;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: rgba(8, 11, 20, 0.95);
    backdrop-filter: blur(18px);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    padding: 13px 18px;
    border-radius: 14px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
}
.nav-mobile a:hover { background: var(--card-hover); }

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 0 90px;
}
.hero-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 13.5px;
    color: var(--muted);
    margin-bottom: 26px;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.06;
    margin-bottom: 22px;
}
.hero-desc { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 36px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat .num {
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat .lbl { color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; }
.hero-card {
    position: relative;
    border-radius: 28px;
    border: 1px solid var(--border-strong);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
    transform: rotate(2deg);
    transition: var(--tr);
}
.hero-card:hover { transform: rotate(0deg) scale(1.02); }
.hero-card img { width: 100%; height: auto; display: block; }
.hero-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, transparent 55%, rgba(6, 8, 15, 0.85));
}

.float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid var(--border-strong);
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(14px);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    animation: floaty 5s ease-in-out infinite;
}
.float-chip i { color: var(--brand-2); }
.chip-1 { top: 8%; left: -30px; }
.chip-2 { bottom: 18%; right: -24px; animation-delay: 1.2s; }
.chip-3 { bottom: -20px; left: 12%; animation-delay: 2.4s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* ---- Course filters & cards ---- */
.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn,
.branch-btn {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--tr);
}
.filter-btn:hover, .branch-btn:hover { color: var(--text); border-color: var(--border-strong); }
.branch-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}
.filter-btn.active,
.branch-btn.active {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(79, 124, 255, 0.35);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
    position: relative;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(10px);
    transition: var(--tr);
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(79, 124, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--card-hover); }
.card:hover::before { opacity: 1; }

.course-icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.18), rgba(34, 211, 238, 0.12));
    border: 1px solid rgba(79, 124, 255, 0.3);
    color: var(--brand-2);
    font-size: 22px;
    margin-bottom: 20px;
    transition: var(--tr);
}
.card:hover .course-icon { transform: scale(1.12) rotate(-6deg); }
.card:hover .bento-icon { transform: scale(1.1) rotate(6deg); }
.bento-icon { transition: var(--tr); }
.mentor-img { transition: var(--tr); }
.mentor-card:hover .mentor-img { transform: scale(1.07); }
.badge { animation: badgePulse 2.8s ease-in-out infinite; }
@keyframes badgePulse { 50% { transform: scale(1.06); } }
.section-tag i { animation: tagBlink 2.4s ease-in-out infinite; }
@keyframes tagBlink { 50% { opacity: 0.45; } }
.course-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.course-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

.course-meta { display: flex; gap: 16px; margin-bottom: 22px; }
.course-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}
.course-meta i { color: var(--brand-2); font-size: 12px; }

.course-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-2);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14.5px;
    transition: var(--tr);
}
.course-cta:hover { gap: 14px; }

.badge {
    position: absolute;
    top: 20px; right: 20px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-new { background: rgba(52, 211, 153, 0.15); color: var(--accent); border: 1px solid rgba(52, 211, 153, 0.35); }
.badge-hot { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.3); }

/* ---- Partners (marquee) ---- */
.marquee {
    overflow: hidden;
    padding: 8px 0;
    /* chetlarda logolar yumshoq so'nadi */
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; gap: 18px; padding-right: 18px; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.partner-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    height: 96px;
    padding: 20px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    backdrop-filter: blur(10px);
    text-decoration: none;
    transition: var(--tr);
}
.partner-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    background: var(--card-hover);
}
.partner-card img {
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.7);
    opacity: 0.75;
    transition: var(--tr);
}
.partner-card:hover img { filter: none; opacity: 1; }
.partner-text {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: var(--tr);
}
.partner-card:hover .partner-text,
.partner-text:hover { color: var(--text); }

.partner-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 44px;
    padding: 28px 34px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
}
.partner-cta h3 { font-size: 19px; margin-bottom: 6px; }
.partner-cta p { color: var(--muted); font-size: 14.5px; }

@media (max-width: 640px) {
    .partner-card { min-width: 150px; height: 84px; padding: 16px 20px; }
    .partner-text { font-size: 16px; }
    .partner-cta { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    .marquee { overflow-x: auto; }
}

/* ---- News ---- */
.news-img {
    margin: -30px -30px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--tr);
}
.news-card:hover .news-img img { transform: scale(1.06); }
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    color: var(--brand-2);
    font-weight: 600;
    margin-bottom: 12px;
}

/* ---- Why / bento ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bento .card { text-align: left; }
.bento-icon {
    width: 52px; height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--grad);
    color: #fff;
    font-size: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(79, 124, 255, 0.35);
}
.bento h3 { font-size: 19px; margin-bottom: 10px; }
.bento p { color: var(--muted); font-size: 14.5px; }

/* ---- Mentors (marquee — hamkorlar bo'limidagidek aylanadi) ---- */
.mentors-marquee {
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.mentors-track {
    display: flex;
    width: max-content;
    animation: mentorsScroll 60s linear infinite;
}
/* Faqat mentor kartasi ustiga sichqoncha kelganda to'xtaydi */
.mentors-track.paused { animation-play-state: paused; }
.mentors-marquee:has(.mentor-card:hover) .mentors-track { animation-play-state: paused; }
.mentors-row { display: flex; gap: 22px; padding-right: 22px; }
@keyframes mentorsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* 30% rasm / 70% ma'lumot. gap 1fr ustunidan olinadi — aks holda karta kengligidan oshib ketadi */
.mentor-card {
    flex: 0 0 470px;
    display: grid;
    grid-template-columns: 30% 1fr;
    gap: 20px;
    align-items: center;
    padding: 22px;
    text-align: left;
}
.mentor-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    padding: 3px;
    background: var(--grad);
    box-shadow: 0 10px 30px rgba(79, 124, 255, 0.28);
    overflow: hidden;
}
.mentor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}
.mentor-info { min-width: 0; }
.mentor-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.mentor-role {
    display: inline-block;
    margin: 8px 0 10px;
    padding: 4px 13px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 600;
}
.mentor-desc {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mentor-social { display: flex; gap: 10px; min-height: 38px; }
.mentor-social a {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    transition: var(--tr);
}
.mentor-social a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }

/* ---- Forms ---- */
.form-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: 44px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 9px;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: rgba(6, 8, 15, 0.6);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    transition: var(--tr);
    appearance: none;
}
.form-control::placeholder { color: var(--dim); }
.form-control:focus {
    outline: none;
    border-color: var(--brand-1);
    box-shadow: 0 0 0 4px rgba(79, 124, 255, 0.18);
}
select.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a0b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
}
select.form-control option { background: var(--bg-2); color: var(--text); }
.form-hint { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }
.form-hint a { color: var(--brand-2); text-decoration: none; }

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: rgba(8, 14, 18, 0.95);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    max-width: 380px;
}
.toast.show { transform: translateY(0); }
.toast.error { border-color: rgba(248, 113, 113, 0.4); }
.toast i { font-size: 22px; color: var(--accent); }
.toast.error i { color: var(--danger); }
.toast strong { font-family: var(--font-head); display: block; font-size: 15px; }
.toast p { color: var(--muted); font-size: 13.5px; }

/* ---- CTA band ---- */
.cta-band {
    position: relative;
    border-radius: 30px;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(500px 250px at 15% 0%, rgba(79, 124, 255, 0.25), transparent 60%),
        radial-gradient(500px 250px at 85% 100%, rgba(34, 211, 238, 0.18), transparent 60%),
        var(--bg-2);
    padding: 70px 40px;
    text-align: center;
    overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 32px; }

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border);
    background: rgba(5, 7, 13, 0.8);
    padding: 70px 0 30px;
    margin-top: 60px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; margin-bottom: 50px; }
.footer-grid h3 { font-size: 17px; margin-bottom: 18px; }
.footer-grid p { color: var(--muted); font-size: 14.5px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 16px;
    transition: var(--tr);
}
.footer-social a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 11px; }
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14.5px;
    transition: var(--tr);
}
.footer-links a:hover { color: var(--brand-2); padding-left: 5px; }

.footer-contact li {
    display: flex;
    gap: 13px;
    margin-bottom: 15px;
    color: var(--muted);
    font-size: 14.5px;
    list-style: none;
}
.footer-contact i { color: var(--brand-2); margin-top: 4px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--dim);
    font-size: 13.5px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.footer-bottom a:hover { color: var(--brand-2); }

/* ---- Reveal animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.98);
    filter: blur(6px);
    transition:
        opacity 0.8s ease var(--rd, 0s),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--rd, 0s),
        filter 0.8s ease var(--rd, 0s);
    will-change: opacity, transform, filter;
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

/* Sahifa yuklanganda hero elementlari ketma-ket kirib keladi */
@keyframes heroIn {
    from { opacity: 0; transform: translateY(30px); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.hero .hero-badge,
.hero h1,
.hero .hero-desc,
.hero .hero-actions,
.hero .hero-stats {
    animation: heroIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero h1 { animation-delay: 0.12s; }
.hero .hero-desc { animation-delay: 0.24s; }
.hero .hero-actions { animation-delay: 0.36s; }
.hero .hero-stats { animation-delay: 0.48s; }

@keyframes heroCardIn {
    from { opacity: 0; transform: rotate(6deg) scale(0.92); filter: blur(8px); }
    to { opacity: 1; transform: rotate(2deg) scale(1); filter: blur(0); }
}
.hero-visual .hero-card { animation: heroCardIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards; }

/* Kurs kartalari filtri uchun silliq o'tish */
.card.filter-hide {
    opacity: 0;
    transform: scale(0.94);
    pointer-events: none;
}
#courses-grid .card { transition: var(--tr), opacity 0.35s ease, filter 0.8s ease var(--rd, 0s); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---- Back to top ---- */
.to-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 90;
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    color: var(--text);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: var(--tr);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--grad); border-color: transparent; }

/* ---- FAQ accordion (umumiy) ---- */
.faq-item { margin-bottom: 14px; cursor: pointer; }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 16px;
}
.faq-q i { color: var(--brand-2); transition: var(--tr); flex: 0 0 auto; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14.5px;
    transition: max-height 0.45s ease, margin 0.45s ease;
}
.faq-item.open .faq-a { max-height: 400px; margin-top: 14px; }
.faq-a ul, .faq-a ol { padding-left: 20px; margin-top: 8px; }
.faq-a li { margin-bottom: 6px; }

/* ---- Hujjat sahifalari (privacy, terms) ---- */
.doc { max-width: 820px; margin: 0 auto; }
.doc-body {
    padding: 44px;
    border-radius: 26px;
    border: 1px solid var(--border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}
.doc-body h2 {
    font-size: 22px;
    margin: 34px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.doc-body > *:first-child h2, .doc-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.doc-body h3 { font-size: 17px; margin: 22px 0 10px; color: var(--brand-2); }
.doc-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.doc-body li { margin-bottom: 7px; }
.doc-body a { color: var(--brand-2); }
.doc-body strong { color: var(--text); }
.doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13.5px;
    color: var(--muted);
}
.doc-body th, .doc-body td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
.doc-body th { color: var(--text); background: rgba(255, 255, 255, 0.04); font-family: var(--font-head); }
.doc-body .info-box, .doc-body blockquote {
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(79, 124, 255, 0.3);
    background: rgba(79, 124, 255, 0.08);
    margin: 16px 0;
}

/* ---- Jarayon qadamlari ---- */
.step-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.step-flow .step { text-align: center; padding: 26px 16px; }
.step-num {
    width: 44px; height: 44px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad);
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
}
.step-flow h3 { font-size: 15px; margin-bottom: 8px; }
.step-flow p { color: var(--muted); font-size: 13px; }
@media (max-width: 1024px) { .step-flow { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .step-flow { grid-template-columns: 1fr 1fr; } .doc-body { padding: 26px 20px; } }

/* ---- Register page ---- */
.page-hero { padding: 170px 0 40px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 540px; margin: 0 auto; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-3, .bento { grid-template-columns: repeat(2, 1fr); }
    .hero-wrap { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 1280px) {
    .nav { padding: 11px 16px; gap: 10px; }
    .nav-links a { padding: 8px 10px; font-size: 13.5px; }
    .nav-cta .btn { padding: 10px 18px !important; font-size: 14px; }
}
@media (max-width: 1120px) {
    .nav-links, .nav-cta .btn { display: none; }
    .nav-burger { display: block; }
}
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
    .grid-3, .bento, .form-row { grid-template-columns: 1fr; }
    .section { padding: 80px 0; }
    .hero { padding-top: 130px; }
    .hero-stats { gap: 26px; }
    .form-shell { padding: 28px 22px; }
    .float-chip { display: none; }
    .toast { left: 16px; right: 16px; max-width: none; }
    .mentor-card { flex-basis: 310px; gap: 14px; padding: 16px; }
    .mentor-name { font-size: 15.5px; }
    .mentor-desc { font-size: 12.5px; -webkit-line-clamp: 3; line-clamp: 3; }
    .mentors-row { gap: 14px; padding-right: 14px; }
    .bg-orbs .orb { filter: blur(50px); opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
    .mentors-track, .bg-mesh, .bg-grid, .bg-orbs .orb, .bg-beams span { animation: none; }
    .mentors-marquee { overflow-x: auto; }
    .bg-beams { display: none; }
    .intro-title .w, .intro-logo, .intro-bar, .intro-bar i, .intro-rings span {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}

/* ============================================================
   NEW SECTIONS & PAGES (2026 update)
   ============================================================ */

/* ---- Page Hero (for sub-pages) ---- */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
}
.page-hero-content h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}
.page-hero-content p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Stats Band ---- */
.stats-band {
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(79,124,255,0.08), rgba(34,211,238,0.06));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-box {
    padding: 20px;
}
.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.stat-value {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}
.stat-label {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- Testimonials Carousel ---- */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}
.testimonials-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0 20px;
}
.testimonials-track::-webkit-scrollbar { display: none; }
.testimonial-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--tr);
}
.testimonial-card:hover {
    border-color: var(--border-strong);
    background: var(--card-hover);
}
.testimonial-stars {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 3px;
}
.testimonial-text {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.testimonial-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-hover);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 18px;
}
.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}
.testimonial-author span {
    color: var(--brand-2);
    font-size: 0.82rem;
}
.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.tst-prev, .tst-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tr);
    font-size: 16px;
}
.tst-prev:hover, .tst-next:hover {
    background: var(--brand-1);
    border-color: var(--brand-1);
    color: #fff;
}

/* Testimonials Grid (full page) */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.testimonial-full-card {
    padding: 32px 28px;
}

/* ---- Gallery ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    gap: 16px;
}
.gallery-big {
    grid-row: span 2;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,8,15,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 28px;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 22px;
    margin-top: 28px;
    text-align: center;
}
.gallery-cta p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---- FAQ ---- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: var(--tr);
}
.faq-item:hover {
    border-color: var(--border-strong);
}
.faq-q {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    gap: 16px;
}
.faq-q i {
    color: var(--brand-1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-q i {
    transform: rotate(45deg);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    color: var(--muted);
    line-height: 1.7;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-a {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* ---- Location / Map ---- */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}
.location-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.location-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    flex: 1;
}
.loc-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.loc-item:last-child {
    border-bottom: none;
}
.loc-item i {
    color: var(--brand-1);
    font-size: 20px;
    margin-top: 3px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.loc-item strong {
    display: block;
    margin-bottom: 4px;
}
.loc-item p, .loc-item a {
    color: var(--muted);
    font-size: 0.95rem;
}
.loc-item a:hover {
    color: var(--brand-2);
}
.location-socials {
    display: flex;
    gap: 12px;
}
.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 380px;
}
.map-full {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

/* ---- Teachers Page ---- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.teacher-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: flex-start;
}
.teacher-photo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
}
.teacher-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.teacher-photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dim);
    font-size: 28px;
}
.teacher-info h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.teacher-specialty {
    color: var(--brand-2);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.teacher-bio {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
.teacher-contacts {
    display: flex;
    gap: 10px;
}
.teacher-contacts a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: var(--tr);
    font-size: 14px;
}
.teacher-contacts a:hover {
    background: var(--brand-1);
    border-color: var(--brand-1);
    color: #fff;
}

/* ---- Partners Page ---- */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.partner-detail-card {
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.partner-logo-wrap {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.partner-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0.7);
    transition: filter 0.3s ease;
}
.partner-detail-card:hover .partner-logo-wrap img {
    filter: none;
}
.partner-detail-card h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
}
.partner-link {
    color: var(--brand-2);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---- About Page ---- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.about-card {
    text-align: center;
    padding: 40px 28px;
}
.about-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    max-width: 700px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-dot {
    position: absolute;
    left: -33px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brand-1);
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--brand-1);
}
.timeline-content {
    padding: 24px;
}
.timeline-year {
    display: inline-block;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.timeline-content h3 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.timeline-content p {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Director */
.director-card {
    display: flex;
    gap: 40px;
    padding: 40px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.director-photo {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border);
}
.director-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.director-info h3 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin-bottom: 4px;
}
.director-role {
    color: var(--brand-2);
    font-weight: 600;
    margin-bottom: 16px;
}
.director-info p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

/* ---- Contact Page ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-card {
    padding: 32px;
}
.contact-info-card h3, .contact-social-card h3 {
    font-family: var(--font-head);
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.contact-item:last-child {
    border-bottom: none;
}
.contact-item i {
    color: var(--brand-1);
    font-size: 18px;
    margin-top: 3px;
    width: 22px;
    text-align: center;
}
.contact-item strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.9rem;
}
.contact-item p, .contact-item a {
    color: var(--muted);
    font-size: 0.9rem;
}
.contact-item a:hover {
    color: var(--brand-2);
}
.contact-social-card {
    padding: 24px 32px;
}
.contact-socials {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-socials a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
    transition: var(--tr);
}
.contact-socials a:hover {
    border-color: var(--brand-1);
    background: var(--card-hover);
}
.contact-socials a i {
    font-size: 20px;
    color: var(--brand-2);
}
.contact-form-col .card {
    padding: 32px;
}
.contact-form .form-group {
    margin-bottom: 18px;
}
.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--tr);
    outline: none;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--brand-1);
    box-shadow: 0 0 0 3px rgba(79,124,255,0.15);
}

/* ==========================================================================
   INNER PAGES (About, Contact, Teachers, Testimonials, FAQ, News)
   ========================================================================== */

/* ---- Page Hero ---- */
.page-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at center top, rgba(79, 124, 255, 0.08) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}
.page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.page-hero-content p {
    font-size: 1.1rem;
    color: var(--muted);
}

/* ---- CTA Band ---- */
.cta-band {
    background: linear-gradient(135deg, rgba(79, 124, 255, 0.1), rgba(0, 0, 0, 0));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.cta-band h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}
.cta-band p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* ---- Testimonials Page ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.testimonial-full-card {
    padding: 40px 30px;
}

/* ---- About Page ---- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.about-card {
    text-align: center;
    padding: 40px 30px;
}
.about-icon {
    width: 64px;
    height: 64px;
    background: rgba(79, 124, 255, 0.1);
    color: var(--brand-1);
    font-size: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 19px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-dot {
    position: absolute;
    left: 10px; top: 10px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--brand-1);
    border: 4px solid var(--bg);
}
.timeline-content {
    padding: 30px;
}
.timeline-year {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brand-1);
    font-size: 1.2rem;
    margin-bottom: 12px;
}

/* Director Card */
.director-card {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.director-photo {
    flex-shrink: 0;
}
.director-photo img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.director-info h3 { font-size: 1.8rem; margin: 0 0 4px 0; }
.director-role { color: var(--brand-1); font-weight: 600; margin-bottom: 16px; }
.director-contacts { margin-top: 24px; display: flex; gap: 12px; }

/* ---- Teachers Page ---- */
.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}
.teacher-card {
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.teacher-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo-placeholder { font-size: 48px; color: var(--dim); }
.teacher-specialty { color: var(--brand-1); font-weight: 600; margin-bottom: 16px; }
.teacher-bio { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; flex: 1; }
.teacher-contacts { display: flex; justify-content: center; gap: 12px; margin-top: auto; }
.teacher-contacts a {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text); border: 1px solid var(--border);
    transition: var(--tr);
}
.teacher-contacts a:hover { background: var(--brand-1); border-color: var(--brand-1); color: #fff; transform: translateY(-3px); }

/* ---- Contact Page ---- */
.map-full {
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.info-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    transition: var(--tr);
}
.info-card:hover { border-color: var(--border-strong); transform: translateX(5px); }
.info-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(79, 124, 255, 0.1);
    color: var(--brand-1);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.info-text h4 { margin: 0 0 6px 0; font-size: 1.1rem; }
.info-text p, .info-text a { color: var(--muted); font-size: 1rem; margin: 0; line-height: 1.5; }

/* ---- News Page ---- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}
.news-img {
    height: 220px;
    background: var(--border);
    overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--tr); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.news-date { color: var(--dim); font-size: 0.9rem; margin-bottom: 12px; font-weight: 500; }
.news-content h3 { margin: 0 0 16px 0; font-size: 1.3rem; line-height: 1.4; }
.news-content p { color: var(--muted); font-size: 1rem; margin-bottom: 24px; flex: 1; }

/* ---- FAQ Page ---- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.filter-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 24px;
    border-radius: 99px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--tr);
}
.filter-btn:hover { border-color: var(--brand-1); }
.filter-btn.active { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }

.faq-item {
    margin-bottom: 16px;
    padding: 0;
    overflow: hidden;
}
.faq-q {
    padding: 24px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--tr);
}
.faq-q:hover { background: var(--card-hover); }
.faq-q i { color: var(--brand-1); transition: transform 0.3s ease; }
.faq-a {
    padding: 0 30px 24px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    display: none;
}
.faq-a ul, .faq-a ol { margin-left: 20px; margin-top: 10px; }
.faq-a li { margin-bottom: 8px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-q i { transform: rotate(180deg); }


/* ---- Responsive for new sections ---- */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .gallery-big { grid-row: span 2; }
    .location-grid { grid-template-columns: 1fr; }
    .map-wrap { min-height: 300px; }
    .about-grid { grid-template-columns: 1fr; }
    .director-card { flex-direction: column; text-align: center; }
    .director-photo { margin: 0 auto; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-value { font-size: 2.2rem; }
    .testimonial-card { flex: 0 0 280px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
    .gallery-big { grid-row: span 1; }
    .teachers-grid { grid-template-columns: 1fr; }
    .teacher-card { flex-direction: column; align-items: center; text-align: center; }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }
    .page-hero { padding: 120px 0 40px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-icon { width: 44px; height: 44px; font-size: 18px; }
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .partners-grid { grid-template-columns: 1fr; }
}

/* ---- Lightbox ---- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 8, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.open {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.lightbox.open .lightbox-content img {
    transform: scale(1);
    opacity: 1;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 10;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: var(--tr);
    backdrop-filter: blur(10px);
}
.lightbox-close {
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover {
    background: rgba(248, 113, 113, 0.3);
    border-color: rgba(248, 113, 113, 0.5);
    transform: rotate(90deg);
}
.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(79, 124, 255, 0.3);
    border-color: rgba(79, 124, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; }
}

/* ---- Partner text fallback improvement ---- */
.partner-text {
    position: relative;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: var(--tr);
    letter-spacing: -0.01em;
}
.partner-card:hover .partner-text,
.partner-text:hover {
    color: var(--text);
    text-shadow: 0 0 20px rgba(79, 124, 255, 0.3);
}

/* ---- WOW Preloader ---- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.preloader-bg {
    position: absolute;
    inset: 0;
    background: #030407;
    z-index: 1;
    transition: opacity 0.8s ease;
}
.preloader-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.preloader-logo-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
}
.preloader-logo {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    object-fit: contain;
    filter: drop-shadow(0 10px 26px rgba(34, 211, 238, 0.35));
    animation: logoPulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}
.preloader-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.35) 0%, rgba(79, 124, 255, 0.18) 45%, transparent 72%);
    z-index: 1;
    border-radius: 50%;
    animation: glowPulse 2s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}
@keyframes logoPulse {
    0% { transform: scale(1); filter: drop-shadow(0 8px 20px rgba(34, 211, 238, 0.25)); }
    100% { transform: scale(1.06); filter: drop-shadow(0 14px 36px rgba(34, 211, 238, 0.55)); }
}
@keyframes glowPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.preloader-text {
    font-size: 3rem;
    font-family: var(--font-head);
    font-weight: 700;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}
.preloader-text .w {
    opacity: 0;
    transform: translateY(20px);
    animation: textFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * 0.15s + 0.2s);
}
@keyframes textFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.preloader-progress {
    width: 250px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.preloader-bar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    background: var(--grad);
    border-radius: 4px;
    box-shadow: 0 0 15px var(--brand-1);
    transition: width 0.1s linear;
}

/* Curtain effect */
.preloader-curtain {
    position: absolute;
    left: 0; right: 0;
    height: 50vh;
    background: #030407;
    z-index: 2;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader-curtain.top { top: 0; }
.preloader-curtain.bottom { bottom: 0; }

/* Loaded state */
body.loaded .preloader-content {
    opacity: 0;
    transform: scale(1.1);
}
body.loaded .preloader-bg {
    opacity: 0;
}
body.loaded .preloader-curtain.top {
    transform: translateY(-100%);
}
body.loaded .preloader-curtain.bottom {
    transform: translateY(100%);
}

@media (max-width: 768px) {
    .preloader-text { font-size: 1.8rem; gap: 8px; max-width: 18ch; margin-bottom: 30px; }
    .preloader-logo-wrap { width: 76px; height: 76px; margin-bottom: 26px; }
    .preloader-progress { width: 190px; }
}
