.frontend-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: linear-gradient(140deg, #fbfaf6 0%, #f7f4eb 48%, #faf8f3 100%);
}

.frontend-shell.course-shell {
    background:
        radial-gradient(circle at 15% 12%, rgba(212, 175, 55, 0.16), transparent 30%),
        radial-gradient(circle at 86% 88%, rgba(212, 175, 55, 0.14), transparent 32%),
        linear-gradient(140deg, #ffffff 0%, #f9f8f4 48%, #ffffff 100%);
}

.frontend-shell-content {
    position: relative;
    z-index: 1;
}

.frontend-gold-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.frontend-gold-shape {
    position: absolute;
    pointer-events: none;
}

.frontend-gold-bg .shape-blob {
    top: 92px;
    inset-inline-start: -150px;
    width: 520px;
    height: 520px;
    border-radius: 44% 56% 61% 39% / 45% 39% 61% 55%;
    background:
        conic-gradient(
            from 210deg,
            rgba(212, 175, 55, 0) 0deg,
            rgba(212, 175, 55, 0.24) 110deg,
            rgba(241, 222, 101, 0.3) 176deg,
            rgba(212, 175, 55, 0) 305deg
        );
    opacity: 0.8;
    filter: blur(2px);
    animation: frontendGoldFloat 13s ease-in-out infinite alternate;
}

.frontend-gold-bg .shape-frame {
    inset-inline-end: 4%;
    bottom: 12%;
    width: 340px;
    height: 340px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.48);
    background:
        radial-gradient(circle at 30% 30%, rgba(241, 222, 101, 0.22), transparent 58%),
        radial-gradient(circle at 72% 68%, rgba(212, 175, 55, 0.18), transparent 62%);
    box-shadow:
        0 0 26px rgba(212, 175, 55, 0.2),
        inset 0 0 34px rgba(212, 175, 55, 0.1);
    transform: rotate(30deg);
    animation: frontendGoldFrame 9s ease-in-out infinite;
}

.frontend-gold-bg .shape-orb {
    top: 36%;
    inset-inline-end: 18%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.46), rgba(241, 222, 101, 0.32) 30%, rgba(212, 175, 55, 0.12) 62%, rgba(212, 175, 55, 0) 100%);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    opacity: 0.74;
    animation: frontendGoldPulse 10s ease-in-out infinite;
}

.course-shell .frontend-gold-bg .shape-blob {
    top: 120px;
    inset-inline-start: -140px;
    width: 520px;
    height: 520px;
    border-radius: 44% 56% 61% 39% / 45% 39% 61% 55%;
    background:
        conic-gradient(
            from 210deg,
            rgba(212, 175, 55, 0) 0deg,
            rgba(212, 175, 55, 0.22) 110deg,
            rgba(241, 222, 101, 0.28) 175deg,
            rgba(212, 175, 55, 0) 300deg
        );
    filter: blur(2px);
    opacity: 0.8;
    animation: frontendGoldFloat 13s ease-in-out infinite alternate;
}

.course-shell .frontend-gold-bg .shape-frame {
    inset-inline-end: 6%;
    bottom: 14%;
    width: 330px;
    height: 330px;
    border-radius: 28px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background:
        radial-gradient(circle at 30% 30%, rgba(241, 222, 101, 0.2), transparent 58%),
        radial-gradient(circle at 72% 68%, rgba(212, 175, 55, 0.16), transparent 62%);
    box-shadow:
        0 0 24px rgba(212, 175, 55, 0.16),
        inset 0 0 36px rgba(212, 175, 55, 0.09);
    transform: rotate(34deg);
    animation: frontendGoldFrame 9s ease-in-out infinite;
}

.course-shell .frontend-gold-bg .shape-orb {
    inset-inline-end: clamp(14px, 8vw, 110px);
    top: clamp(110px, 16vh, 220px);
    width: 190px;
    height: 190px;
    border-radius: 0;
    clip-path: polygon(50% 0%, 90% 22%, 100% 66%, 72% 100%, 28% 100%, 0 66%, 10% 22%);
    background:
        linear-gradient(
            135deg,
            rgba(241, 222, 101, 0.62) 0%,
            rgba(212, 175, 55, 0.2) 48%,
            rgba(184, 138, 27, 0.68) 100%
        );
    box-shadow:
        0 0 28px rgba(212, 175, 55, 0.28),
        inset 0 0 20px rgba(255, 255, 255, 0.22);
    opacity: 0.88;
    animation: frontendGoldDiamond 11s ease-in-out infinite alternate;
}

@keyframes frontendGoldFloat {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate3d(54px, 16px, 0) rotate(12deg) scale(1.06);
    }
    100% {
        transform: translate3d(18px, -24px, 0) rotate(20deg) scale(0.98);
    }
}

@keyframes frontendGoldFrame {
    0% {
        transform: rotate(30deg) translate3d(0, 0, 0) scale(1);
        opacity: 0.58;
    }
    50% {
        transform: rotate(40deg) translate3d(-13px, -8px, 0) scale(1.04);
        opacity: 0.86;
    }
    100% {
        transform: rotate(32deg) translate3d(11px, 10px, 0) scale(0.98);
        opacity: 0.62;
    }
}

@keyframes frontendGoldPulse {
    0% {
        transform: translate3d(0, 0, 0) scale(0.95);
        opacity: 0.54;
    }
    50% {
        transform: translate3d(-10px, 14px, 0) scale(1.08);
        opacity: 0.88;
    }
    100% {
        transform: translate3d(12px, -8px, 0) scale(0.98);
        opacity: 0.62;
    }
}

@keyframes frontendGoldDiamond {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
        opacity: 0.74;
    }
    50% {
        transform: translate3d(-10px, 12px, 0) rotate(18deg) scale(1.08);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(10px, -12px, 0) rotate(36deg) scale(0.98);
        opacity: 0.78;
    }
}

.site-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(95%, 1200px);
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 175, 55, 0.24);
    z-index: 1200;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    transition: top 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.site-nav.scrolled {
    top: 12px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-nav-brand {
    text-decoration: none;
    color: #050505;
    font-size: 1.5rem;
    font-weight: 900;
    white-space: nowrap;
}

.site-nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav-menu a {
    text-decoration: none;
    color: #050505;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.site-nav-menu a:hover {
    color: #d4af37;
    text-decoration: none;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-nav-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    background: #050505;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.site-nav-lang {
    border: none;
    background: none;
    color: #050505;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 6px;
}

.site-nav-mobile {
    display: none;
    width: 30px;
    height: 20px;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
}

.site-nav-mobile span {
    display: block;
    width: 100%;
    height: 2px;
    background: #050505;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav-mobile.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.site-nav-mobile.active span:nth-child(2) {
    opacity: 0;
}

.site-nav-mobile.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.site-footer {
    --footer-gold: #d4af37;
    --footer-gold-soft: #f1de65;
    --footer-white: #ffffff;
    position: relative;
    background: #020202;
    color: #fff;
    padding: 0 5% 30px;
    border-radius: 38px 38px 0 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
    overflow: hidden;
}

.site-footer .footer-accent-line {
    width: 100%;
    height: 2px;
    margin: 0 0 34px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0), rgba(212, 175, 55, 0.95), rgba(212, 175, 55, 0));
}

.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.9fr 1.2fr;
    gap: 30px;
    text-align: start;
}

[dir="ltr"] .site-footer .footer-inner {
    text-align: left;
}

[dir="rtl"] .site-footer .footer-inner {
    text-align: right;
}

.site-footer .footer-heading {
    margin: 0 0 14px;
    color: var(--footer-gold-soft);
    font-size: 1.85rem;
    font-weight: 900;
    line-height: 1.2;
}

.site-footer .footer-contact-block,
.site-footer .footer-channels-block,
.site-footer .footer-links-block,
.site-footer .footer-payment-block {
    display: grid;
    gap: 12px;
}

.site-footer .footer-value {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.8;
    word-break: break-word;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-value i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--footer-gold);
}

.site-footer .footer-value:hover {
    color: var(--footer-gold-soft);
    transform: translateX(-2px);
}

.site-footer .footer-value-primary {
    color: var(--footer-gold-soft);
    font-size: 1.18rem;
    font-weight: 800;
}

.site-footer .footer-muted-link {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-size: 1.34rem;
    line-height: 1.9;
    font-weight: 600;
    opacity: 0.96;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-muted-link:hover {
    color: var(--footer-gold-soft);
    transform: translateX(-2px);
}

.site-footer .footer-payments-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.site-footer .footer-pay-icon {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.07);
    font-size: 2rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.site-footer .footer-pay-icon i {
    color: var(--footer-white);
}

.site-footer .footer-pay-icon:hover {
    transform: translateY(-2px);
    border-color: rgba(241, 222, 101, 0.85);
    background: rgba(212, 175, 55, 0.17);
}

.site-footer .footer-pay-icon.pay-visa i {
    color: #1a1f71;
}

.site-footer .footer-pay-icon.pay-mastercard i {
    color: #ff5f00;
}

.site-footer .footer-pay-icon.pay-paypal i {
    color: #009cde;
}

.site-footer .footer-pay-icon.pay-apple i {
    color: #f5f5f5;
}

.site-footer .footer-social-row {
    margin-top: 8px;
    display: flex;
    gap: 12px;
}

.site-footer .footer-social {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--footer-white);
    font-size: 1.7rem;
    border: 1px solid rgba(212, 175, 55, 0.45);
    background: rgba(212, 175, 55, 0.1);
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-footer .footer-social i {
    transition: transform 0.2s ease;
}

.site-footer .footer-social.social-telegram i {
    color: #2aabee;
}

.site-footer .footer-social.social-instagram i {
    color: #e1306c;
}

.site-footer .footer-social.social-whatsapp i {
    color: #25d366;
}

.site-footer .footer-social:hover {
    transform: translateY(-3px);
    filter: brightness(1.06);
    background: var(--footer-gold-soft);
    border-color: var(--footer-gold-soft);
}

.site-footer .footer-signature {
    max-width: 1200px;
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(212, 175, 55, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.site-footer .footer-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--footer-gold-soft);
}

.site-footer .footer-copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    opacity: 1;
    font-size: 1rem;
    font-weight: 700;
}

@media (max-width: 992px) {
    .frontend-gold-bg .shape-blob {
        width: 420px;
        height: 420px;
        inset-inline-start: -140px;
    }

    .frontend-gold-bg .shape-frame {
        width: 250px;
        height: 250px;
        inset-inline-end: -16px;
        bottom: 14%;
    }

    .frontend-gold-bg .shape-orb {
        width: 134px;
        height: 134px;
        inset-inline-end: 10%;
    }

    .course-shell .frontend-gold-bg .shape-blob {
        width: 420px;
        height: 420px;
        top: 116px;
        inset-inline-start: -132px;
    }

    .course-shell .frontend-gold-bg .shape-frame {
        width: 250px;
        height: 250px;
        inset-inline-end: -8px;
        bottom: 15%;
    }

    .course-shell .frontend-gold-bg .shape-orb {
        width: 160px;
        height: 160px;
        inset-inline-end: 12px;
        top: 128px;
        opacity: 0.78;
    }

    .site-nav {
        border-radius: 24px;
        padding: 12px 16px;
    }

    .site-nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        left: 0;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        border: 1px solid rgba(212, 175, 55, 0.3);
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);
        flex-direction: column;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        overflow: hidden;
    }

    .site-nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav-menu a {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
    }

    .site-nav-mobile {
        display: flex;
    }
}

@media (max-width: 992px) {
    .site-footer .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer .footer-payment-block {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .frontend-gold-bg .shape-blob {
        width: 350px;
        height: 350px;
        top: 126px;
        inset-inline-start: -120px;
        opacity: 0.72;
    }

    .frontend-gold-bg .shape-frame {
        width: 200px;
        height: 200px;
        bottom: 16%;
    }

    .frontend-gold-bg .shape-orb {
        width: 104px;
        height: 104px;
        top: 42%;
        inset-inline-end: 4%;
        opacity: 0.62;
    }

    .course-shell .frontend-gold-bg .shape-blob {
        width: 360px;
        height: 360px;
        inset-inline-start: -110px;
        top: 130px;
        opacity: 0.7;
    }

    .course-shell .frontend-gold-bg .shape-frame {
        width: 210px;
        height: 210px;
        inset-inline-end: -10px;
        bottom: 18%;
    }

    .course-shell .frontend-gold-bg .shape-orb {
        width: 126px;
        height: 126px;
        inset-inline-end: 8px;
        top: 126px;
        opacity: 0.72;
    }

    .site-nav {
        width: 94%;
    }

    .site-nav-brand {
        font-size: 1.2rem;
    }

    .site-nav-start {
        padding: 8px 14px;
        font-size: 0.82rem;
    }

    .site-footer {
        padding: 0 5% 24px;
        border-radius: 26px 26px 0 0;
    }

    .site-footer .footer-accent-line {
        margin-bottom: 26px;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .site-footer .footer-value {
        justify-content: center;
    }

    .site-footer .footer-muted-link:hover,
    .site-footer .footer-value:hover {
        transform: none;
    }

    .site-footer .footer-payments-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .site-footer .footer-social-row {
        justify-content: center;
    }

    .site-footer .footer-signature {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 520px) {
    .site-footer .footer-heading {
        font-size: 1.55rem;
    }

    .site-footer .footer-muted-link {
        font-size: 1.2rem;
    }

    .site-footer .footer-payments-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .frontend-gold-shape {
        animation: none !important;
    }
}
