:root {
    --radius-card: 28px;
    --radius-control: 16px;
    --shadow-soft: 0 24px 70px rgba(11, 19, 36, 0.32);
    --shadow-button: 0 10px 26px rgba(11, 19, 36, 0.24);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

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

.site-shell {
    font-family: var(--font-family, 'Rubik', sans-serif);
    color: var(--color-primary, #003049);
    background:
        radial-gradient(1100px 620px at -8% -12%, rgba(252, 191, 73, 0.35), transparent 55%),
        radial-gradient(900px 500px at 112% 10%, rgba(214, 40, 40, 0.24), transparent 60%),
        linear-gradient(145deg, #081227 0%, #0f233f 45%, #1b2f4f 100%);
    padding: clamp(16px, 3vw, 36px);
    overflow-x: hidden;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.45;
    z-index: 0;
}

.bg-orb--one {
    width: clamp(220px, 34vw, 420px);
    height: clamp(220px, 34vw, 420px);
    background: rgba(247, 127, 0, 0.42);
    top: -120px;
    left: -100px;
}

.bg-orb--two {
    width: clamp(280px, 38vw, 480px);
    height: clamp(280px, 38vw, 480px);
    background: rgba(234, 226, 183, 0.38);
    bottom: -160px;
    right: -130px;
}

.page-shell {
    position: relative;
    z-index: 2;
    width: min(700px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 16px;
}

.page-shell > * {
    animation: rise-in 0.7s var(--ease-out) both;
}

.page-shell > *:nth-child(2) {
    animation-delay: 0.06s;
}

.page-shell > *:nth-child(3) {
    animation-delay: 0.12s;
}

.page-shell > *:nth-child(4) {
    animation-delay: 0.18s;
}

.page-shell > *:nth-child(5) {
    animation-delay: 0.24s;
}

.profile-card,
.actions-card,
.social-card,
.map-card,
.footer-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72));
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.profile-card {
    position: relative;
    padding: clamp(20px, 3vw, 28px);
    text-align: center;
}

.lang-switch {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.lang-switch:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
}

.lang-switch img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.profile-photo {
    max-width: 240px;
    width: clamp(120px, 34vw, 180px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 30px rgba(11, 19, 36, 0.24);
}

.profile-name {
    margin: 14px 0 6px;
    font-family: 'Space Grotesk', var(--font-family, 'Rubik', sans-serif);
    font-size: clamp(1.5rem, 3.8vw, 2.2rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--color-primary, #003049);
}

.profile-title {
    margin: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    color: rgba(0, 48, 73, 0.92);
}

.profile-title span {
    display: block;
    margin-top: 2px;
    opacity: 0.82;
}

.actions-card {
    padding: clamp(14px, 3vw, 22px);
    display: grid;
    gap: 10px;
}

.action-btn {
    --btn-bg: var(--color-accent, #f77f00);
    --btn-text: var(--color-surface, #eae2b7);
    width: 100%;
    min-height: 56px;
    border-radius: var(--radius-control);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(11, 19, 36, 0.06);
    background: var(--btn-bg);
    background: linear-gradient(170deg, var(--btn-bg), color-mix(in srgb, var(--btn-bg) 86%, #000 14%));
    color: var(--btn-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: var(--shadow-button);
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), filter 0.22s var(--ease-out);
}

.action-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.action-btn i {
    font-size: 1.1rem;
}

.action-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.03) brightness(1.03);
    box-shadow: 0 14px 30px rgba(11, 19, 36, 0.28);
}

.action-btn:focus-visible,
.lang-switch:focus-visible,
.social-link:focus-visible,
.logo-item:focus-visible {
    outline: 3px solid var(--color-secondary, #d62828);
    outline: 3px solid color-mix(in srgb, var(--color-secondary, #d62828) 82%, #fff 18%);
    outline-offset: 2px;
}

.action-accordion {
    border-radius: var(--radius-control);
    overflow: clip;
}

.action-accordion > summary {
    list-style: none;
    cursor: pointer;
}

.action-accordion > summary::-webkit-details-marker {
    display: none;
}

.action-btn--summary {
    justify-content: space-between;
    padding: 0 18px;
}

.accordion-arrow {
    transition: transform 0.24s var(--ease-out);
}

.action-accordion[open] .accordion-arrow {
    transform: rotate(180deg);
}

.action-accordion-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s var(--ease-out), margin-top 0.35s var(--ease-out);
}

.action-accordion-body > * {
    overflow: hidden;
}

.action-accordion[open] .action-accordion-body {
    grid-template-rows: 1fr;
    margin-top: 10px;
}

.qr-link {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(234, 226, 183, 0.78));
    border: 1px solid rgba(0, 48, 73, 0.1);
    padding: 16px;
}

.qr-image {
    max-width: 100%;
    width: min(320px, 82%);
    border-radius: 12px;
    border: 1px solid rgba(0, 48, 73, 0.12);
}

.social-card {
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 48, 73, 0.08);
    color: var(--social-color, var(--color-secondary, #d62828));
    text-decoration: none;
    font-size: 1.45rem;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), color 0.22s var(--ease-out);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-button);
    color: var(--color-primary, #003049);
}

.map-card {
    overflow: clip;
    padding: 10px;
}

.map-frame {
    width: 100%;
    height: min(46vh, 360px);
    border: 0;
    border-radius: 20px;
}

.footer-card {
    padding: 18px;
    text-align: center;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.logo-item {
    border-radius: 16px;
    border: 1px solid rgba(234, 226, 183, 0.2);
    background: linear-gradient(165deg, rgba(6, 20, 41, 0.92), rgba(0, 48, 73, 0.86));
    text-decoration: none;
    color: var(--color-surface, #eae2b7);
    padding: 12px 10px;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 8px;
    min-height: 110px;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out);
}

.logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(4, 12, 25, 0.45);
}

.logo-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.logo-item span {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.9);
}

.footer-phone {
    margin: 10px 0 6px;
    font-family: 'Space Grotesk', var(--font-family, 'Rubik', sans-serif);
    font-size: clamp(1.05rem, 3vw, 1.35rem);
    font-weight: 700;
    color: var(--color-secondary, #d62828);
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(0, 48, 73, 0.7);
}

@media (max-width: 640px) {
    .site-shell {
        padding: 12px;
    }

    .page-shell {
        gap: 12px;
    }

    .profile-card,
    .actions-card,
    .social-card,
    .map-card,
    .footer-card {
        border-radius: 22px;
    }

    .action-btn {
        min-height: 52px;
        font-size: 0.95rem;
    }

    .map-frame {
        height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-shell > *,
    .action-btn,
    .lang-switch,
    .social-link,
    .logo-item,
    .accordion-arrow,
    .action-accordion-body {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes rise-in {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
