:root {
    --bg-1: #091224;
    --bg-2: #101b32;
    --card: rgba(255, 255, 255, 0.08);
    --card-strong: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: #f7f9fc;
    --muted: rgba(247, 249, 252, 0.78);
    --soft: rgba(247, 249, 252, 0.58);
    --accent: #7aa2ff;
    --accent-2: #c8d8ff;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(122, 162, 255, 0.2), transparent 34%),
        radial-gradient(circle at bottom right, rgba(122, 162, 255, 0.14), transparent 28%),
        linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.placeholder-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.placeholder-card {
    width: min(100%, 960px);
    padding: 28px 34px 30px;
    border-radius: 34px;
    border: 1px solid var(--card-border);
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.07));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    text-align: center;
    animation: floatIn .8s ease both;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.project-logo {
    width: auto;
    height: calc(52px * 0.7);
    max-width: calc(240px * 0.7);
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(122, 162, 255, 0.18));
}

.language-switcher {
    position: relative;
    display: inline-flex;
}

.language-trigger {
    min-width: calc(148px * 0.7);
    height: calc(52px * 0.7);
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255,255,255,0.06);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
    backdrop-filter: blur(14px);
}

.language-trigger:hover,
.language-switcher.is-open .language-trigger {
    transform: translateY(-1px);
    border-color: rgba(122, 162, 255, 0.36);
    background: linear-gradient(180deg, rgba(122,162,255,0.16), rgba(255,255,255,0.06));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), 0 0 0 6px rgba(122,162,255,0.09);
}

.language-trigger-text {
    white-space: nowrap;
}

.language-chevron {
    width: calc(11px * 0.7);
    height: calc(11px * 0.7);
    border-right: 2px solid rgba(247,249,252,0.9);
    border-bottom: 2px solid rgba(247,249,252,0.9);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .22s ease;
    flex-shrink: 0;
}

.language-switcher.is-open .language-chevron {
    transform: rotate(225deg) translateY(-1px);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: calc(190px * 0.7);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(12, 21, 40, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 56px rgba(0,0,0,0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    z-index: 20;
}

.language-switcher.is-open .language-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.language-option:hover,
.language-option.is-active {
    background: linear-gradient(180deg, rgba(122,162,255,0.18), rgba(255,255,255,0.06));
}

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

.language-option-title {
    font-size: 0.96rem;
    font-weight: 700;
}

.language-option-note {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--soft);
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2.3rem, 6vw, 4.7rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.lead, .sublead {
    max-width: calc(760px * 0.7);
    margin-inline: auto;
    line-height: 1.58;
}

.lead {
    margin-bottom: 10px;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
    color: var(--text);
    font-weight: 600;
}

.sublead {
    margin-bottom: 28px;
    font-size: 1rem;
    color: var(--muted);
}

.social-section {
    margin-top: 8px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.035));
    border: 1px solid rgba(255,255,255,0.08);
}

.social-section-head {
    max-width: calc(700px * 0.7);
    margin: 0 auto 18px;
}

.social-kicker {
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.social-title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.08;
}

.social-intro {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 1rem;
}

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

.social-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-height: calc(210px * 0.7);
    padding: 24px;
    text-decoration: none;
    color: var(--text);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.11);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform .26s ease, border-color .26s ease, background .26s ease, box-shadow .26s ease;
}

.social-card::after {
    content: "";
    position: absolute;
    inset: auto -24% -52% auto;
    width: calc(140px * 0.7);
    height: calc(140px * 0.7);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(122, 162, 255, 0.32), transparent 70%);
    opacity: 0;
    transition: opacity .26s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(122, 162, 255, 0.34);
    background: linear-gradient(180deg, rgba(122,162,255,0.16), rgba(255,255,255,0.05));
    box-shadow: 0 18px 44px rgba(0,0,0,0.22);
}

.social-card:hover::after {
    opacity: 1;
}

.social-icon {
    position: relative;
    z-index: 1;
    width: calc(112px * 0.7);
    height: calc(112px * 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}

.social-icon img {
    width: calc(60px * 0.7);
    height: calc(60px * 0.7);
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.98;
    transition: transform .28s ease, filter .28s ease, opacity .28s ease;
}

.social-card:hover .social-icon img {
    transform: scale(1.08);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255,255,255,.55)) drop-shadow(0 0 18px rgba(122,162,255,.35));
    opacity: 1;
}

.social-icon.vk img { width: calc(62px * 0.7); height: calc(62px * 0.7); }
.social-icon.telegram img { width: calc(60px * 0.7); height: calc(60px * 0.7); }
.social-icon.threads img { width: calc(58px * 0.7); height: calc(58px * 0.7); }

.social-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.social-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.social-copy strong {
    font-size: 1.32rem;
    line-height: 1.08;
}

.social-description {
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.96rem;
}

.social-action {
    margin-top: auto;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: calc(44px * 0.7);
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 0.95rem;
    font-weight: 700;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: calc(900px * 0.7)) {
    .placeholder-card {
        padding: 26px 22px 22px;
        border-radius: 28px;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .social-card {
        min-height: 0;
    }
}

@media (max-width: calc(560px * 0.7)) {
    .placeholder-shell {
        padding: 16px;
    }

    .top-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .language-switcher {
        align-self: flex-end;
        width: 100%;
        justify-content: space-between;
    }

    .language-select {
        min-width: calc(128px * 0.7);
    }

    .social-section {
        padding: 18px;
    }
}

@media (max-width: calc(760px * 0.7)) {
    .top-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-logo {
        height: calc(44px * 0.7);
        max-width: calc(210px * 0.7);
    }

    .language-switcher {
        align-self: flex-end;
    }

    .language-trigger {
        min-width: calc(134px * 0.7);
        height: calc(48px * 0.7);
        padding-inline: 16px;
    }
}
