*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-deep: #080213;
    --bg-card: rgba(15, 3, 35, 0.92);
    --violet: #9333ff;
    --purple: #5b21ff;
    --bordo: #7f1d3a;
    --pink: #f472b6;
    --text-main: #f9f5ff;
    --text-soft: #d4c4ff;
    --neon-green: #5bffb7;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 0% 0%, rgba(147, 51, 234, 0.35), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.35), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.28), transparent 60%),
        var(--bg-deep);
    color: var(--text-main);
}

/* общая дымка по странице */
body::before {
    content: "";
    position: fixed;
    inset: -120px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 80%, rgba(148, 163, 253, 0.32), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(251, 113, 133, 0.3), transparent 60%);
    opacity: 0.65;
    filter: blur(32px);
    mix-blend-mode: screen;
    z-index: -1;
}

.page-wrapper {
    max-width: 1160px;
    margin: 24px auto 40px;
    padding: 16px;
}

/* TOP BAR */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 10%, #f9fafb, #e5e7eb 40%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 700;
    box-shadow:
        0 0 12px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(236, 72, 153, 0.8);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 13px;
    color: #e5e7eb;
}

.brand-sub,
.brand-realname {
    font-size: 12px;
    color: var(--text-soft);
}

.lang-switch {
    display: flex;
    gap: 8px;
}

.lang-btn {
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.3);
    background: rgba(15, 23, 42, 0.4);
    padding: 6px 14px;
    font-size: 11px;
    color: var(--text-soft);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease-out;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--violet), var(--bordo));
    color: #fff;
    box-shadow:
        0 0 12px rgba(147, 51, 234, 0.8),
        0 0 40px rgba(88, 28, 135, 0.9);
    border-color: transparent;
}

/* LAYOUT */

.layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ОБЩИЙ БЛОК С МИСТИКОЙ */

.mystic-block {
    position: relative;
    border-radius: 26px;
    padding: 24px 26px;
    background:
        radial-gradient(circle at 0% 0%, rgba(248, 250, 252, 0.08), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(251, 113, 133, 0.16), transparent 55%),
        linear-gradient(145deg, rgba(15, 3, 35, 0.98), rgba(44, 0, 36, 0.98));
    border: 1px solid rgba(248, 250, 252, 0.12);
    box-shadow:
        0 0 20px rgba(88, 28, 135, 0.9),
        0 0 45px rgba(190, 24, 93, 0.75);
    overflow: hidden;
}

/* внутренняя дымка */

.mystic-block::before {
    content: "";
    position: absolute;
    inset: -40px;
    background:
        radial-gradient(circle at 10% 20%, rgba(196, 181, 253, 0.48), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(251, 113, 133, 0.45), transparent 55%);
    opacity: 0.32;
    filter: blur(26px);
    mix-blend-mode: screen;
    pointer-events: none;
}

.mystic-block > * {
    position: relative;
    z-index: 1;
}

/* HERO */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1.4fr);
    gap: 28px;
    align-items: center;
}

.hero-photo-wrap {
    display: flex;
    justify-content: center;
}

.hero-photo-frame {
    padding: 4px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, var(--bordo), var(--violet), var(--pink));
    box-shadow:
        0 0 26px rgba(147, 51, 234, 0.95),
        0 0 60px rgba(190, 24, 93, 0.9);
}

.hero-photo {
    display: block;
    width: 100%;
    max-width: 260px;
    border-radius: 26px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-name {
    margin: 0;
    font-size: 30px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-role {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-soft);
}

.hero-bio,
.hero-mission {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
}

.hero-arcana {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* НЕОНОВЫЕ ПИЛЮЛИ */

.mystic-pill {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(126, 34, 206, 0.9));
    box-shadow:
        0 0 16px rgba(59, 130, 246, 0.9),
        0 0 32px rgba(129, 140, 248, 0.9);
    color: #f9fafb;
    font-size: 11px;
}

.pill-title {
    display: block;
    font-weight: 600;
}

.pill-sub {
    display: block;
    font-size: 10px;
    opacity: 0.9;
}

/* НЕОНОВАЯ РАМКА ДЛЯ БЛОКОВ */

.neon-border {
    position: relative;
    border-radius: 18px;
    padding: 14px 16px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(24, 6, 35, 0.98));
    border: 1px solid rgba(244, 244, 245, 0.14);
    box-shadow:
        0 0 16px rgba(147, 51, 234, 0.85),
        0 0 30px rgba(190, 24, 93, 0.75);
    overflow: hidden;
}

.neon-border::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        conic-gradient(from 0deg,
            rgba(244, 114, 182, 0.65),
            rgba(94, 234, 212, 0.75),
            rgba(129, 140, 248, 0.9),
            rgba(244, 114, 182, 0.65));
    opacity: 0.18;
    mix-blend-mode: screen;
    filter: blur(24px);
    pointer-events: none;
}

/* SECTION TITLES */

.section-title {
    margin: 0 0 14px;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* SERVICES */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.service-card h3 {
    margin: 0 0 6px;
    font-size: 14px;
}

.service-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-soft);
}

.note-free {
    margin-top: 16px;
    font-size: 13px;
    color: #f9a8d4;
}

/* EDUCATION */

.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.edu-card {
    text-align: center;
}

.edu-img {
    width: 100%;
    border-radius: 14px;
    display: block;
    margin-bottom: 6px;
}

.edu-card figcaption {
    font-size: 12px;
    color: var(--text-soft);
}

/* CONTACTS */

.contact-text,
.contact-note {
    font-size: 14px;
    color: #e2e8f0;
}

.contact-note {
    margin-top: 10px;
    color: #f9a8d4;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0;
}

.contact-btn {
    text-decoration: none;
    font-size: 13px;
    color: #f9fafb;
    display: inline-flex;
    align-items: center;
}

.payments {
    margin-top: 6px;
    font-size: 13px;
}

.payments-title {
    margin: 0 0 4px;
    font-size: 14px;
}

/* FOOTER */

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.5);
}

.footer-text {
    margin: 0;
    font-size: 12px;
    color: var(--text-soft);
}

.footer-link {
    color: #bae6fd;
    text-decoration: none;
    margin-left: 4px;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-logo {
    height: 32px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-photo-frame {
        max-width: 220px;
    }

    .services-grid,
    .edu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        padding: 10px;
        margin: 10px auto 24px;
    }

    .mystic-block {
        padding: 18px 16px;
    }

    .services-grid,
    .edu-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 24px;
    }

    .section-title {
        font-size: 17px;
    }

    .footer {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
}
