/* ===== БАЗА ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --pink: #ff6ad5;
    --gold: #ffd76f;
    --lilac: #b385ff;
    --dark-bg: #170321;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-soft: #f5f0ff;
    --radius-card: 32px;
}

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

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at 0% 0%, #ff9ef9 0, #2c0040 40%, #050013 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== КОСМО ФОН ===== */

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

.orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.65;
    mix-blend-mode: screen;
    animation: float 18s infinite alternate ease-in-out;
}

.orb-left {
    left: -120px;
    top: -80px;
    background: radial-gradient(circle at 30% 30%, #ffe184, #ff5bbd 60%, transparent 100%);
}

.orb-right {
    right: -140px;
    bottom: -120px;
    background: radial-gradient(circle at 70% 70%, #b57bff, #ff99f5 55%, transparent 100%);
    animation-delay: 4s;
}

@keyframes float {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-40px, 30px, 0);
    }
}

/* ===== КАРТОЧКА ===== */

.card-wrapper {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.business-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-card);
    padding: 24px 22px 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
        radial-gradient(circle at 0% 0%, rgba(255, 223, 186, 0.45), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(255, 149, 214, 0.35), transparent 60%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.18),
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 55px rgba(255, 182, 255, 0.5);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    color: var(--text-main);
    overflow: hidden;
}

/* лёгкая «шумовая» текстура внутри карточки */
.business-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.28) 0, transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.2) 0, transparent 55%),
        radial-gradient(circle at 60% 80%, rgba(255, 255, 255, 0.12) 0, transparent 55%);
    opacity: 0.35;
    mix-blend-mode: soft-light;
    pointer-events: none;
}

/* «звёздная пыль» */
.sparkles {
    position: absolute;
    inset: -30px;
    border-radius: inherit;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 0, transparent 55%);
    background-size: 4px 4px;
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: twinkle 7s infinite alternate ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes twinkle {
    from {
        opacity: 0.1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0.35;
        transform: translate3d(-10px, 14px, 0);
    }
}

/* ===== ШАПКА: ФОТО + ЛОГО ===== */

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.avatar-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-ring {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding: 3px;
    background:
        conic-gradient(from 180deg,
            #ffe18a 0deg,
            #ff9fd8 120deg,
            #b98fff 220deg,
            #ffe18a 360deg);
    box-shadow:
        0 0 32px rgba(255, 223, 140, 0.6),
        0 0 12px rgba(255, 174, 250, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    filter: saturate(0.9);
}

.avatar-name span {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(7, 0, 20, 0.55);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.45);
}

/* Логотип студии */
.studio-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 22px;
    padding: 4px;
    background: radial-gradient(circle at 0% 0%, #ffeb99, #ff4fd0 40%, #5115ff 100%);
    box-shadow:
        0 0 26px rgba(255, 195, 255, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.studio-logo img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
}

.studio-logo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 40px rgba(255, 255, 255, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* ===== ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ ===== */

.lang-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.lang-pill {
    border: none;
    background: transparent;
    color: var(--text-soft);
    font-size: 11px;
    padding: 6px 13px;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.lang-pill.active {
    background: linear-gradient(135deg, var(--gold), var(--pink));
    color: #2a0033;
    box-shadow: 0 0 16px rgba(255, 204, 128, 0.9);
    transform: translateY(-1px);
}

/* ===== ТЕКСТ ===== */

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

.brand-title {
    font-family: "Playfair Display", serif;
    font-size: 30px;
    margin: 2px 0 4px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff8e9;
    text-shadow:
        0 0 12px rgba(255, 234, 177, 0.8),
        0 0 32px rgba(253, 194, 255, 0.6);
}

.langs-line {
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: rgba(255, 250, 255, 0.85);
}

.desc-line {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.93);
    margin: 4px 0;
}

.contact-block {
    margin: 16px 0 18px;
}

.contact-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 250, 255, 0.9);
    margin: 3px 0;
}

.icon {
    font-size: 14px;
}

.phone-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

/* ===== КНОПКИ ===== */

.buttons-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn.primary {
    color: #2a0033;
    background-image: linear-gradient(90deg, #ffe68b, #ff7fda, #c184ff);
    background-size: 240% 100%;
    box-shadow:
        0 0 20px rgba(255, 206, 140, 0.8),
        0 0 40px rgba(255, 165, 244, 0.5);
    animation: shimmer 6s linear infinite;
}

.btn.secondary {
    color: #f3fff9;
    background: linear-gradient(135deg, #00b960, #008746);
    box-shadow: 0 0 18px rgba(0, 232, 129, 0.7);
}

.btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        rgba(255, 255, 255, 0.35),
        transparent 45%,
        transparent 55%,
        rgba(255, 255, 255, 0.25));
    transform: translateX(-120%);
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
    transition: transform 0.7s ease-out;
}

.btn:hover {
    transform: translateY(-1px);
}

@keyframes shimmer {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 200% 0;
    }
}

/* ===== АДАПТИВ ===== */

@media (max-width: 600px) {
    body {
        overflow-y: auto;
    }

    .card-wrapper {
        padding: 18px;
    }

    .business-card {
        padding: 20px 18px 22px;
        max-width: 390px;
    }

    .avatar-ring {
        width: 76px;
        height: 76px;
    }

    .brand-title {
        font-size: 24px;
    }

    .desc-line {
        font-size: 12px;
    }

    .buttons-row {
        gap: 8px;
    }
}
