:root {
    --pgx-bg: #090812;
    --pgx-bg-soft: #151322;
    --pgx-card: rgba(255, 255, 255, .075);
    --pgx-card-strong: rgba(255, 255, 255, .12);
    --pgx-text: #f8f3ff;
    --pgx-muted: #cfc4dd;
    --pgx-pink: #ff6fd8;
    --pgx-violet: #8e6cff;
    --pgx-cyan: #67e8f9;
    --pgx-line: rgba(255, 255, 255, .16);
    --pgx-shadow: 0 28px 90px rgba(0, 0, 0, .4);
    --pgx-max-page: 1180px;
    --pgx-max-content: 1060px;
    --pgx-max-text: 780px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.pgx-page {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 111, 216, .28), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(103, 232, 249, .18), transparent 28rem),
        linear-gradient(180deg, #090812 0%, #130f22 48%, #08070d 100%);
    color: var(--pgx-text);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.pgx-wrap {
    width: min(var(--pgx-max-page), calc(100% - 40px));
    margin: 0 auto;
}

.pgx-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 8, 18, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--pgx-line);
}

.pgx-header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.pgx-logo {
    font-weight: 900;
    letter-spacing: -.04em;
    text-decoration: none;
    font-size: clamp(1.15rem, 2vw, 1.65rem);
}

.pgx-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.pgx-nav a {
    text-decoration: none;
    color: var(--pgx-muted);
    font-weight: 700;
    font-size: .88rem;
    padding: 8px 10px;
    border-radius: 999px;
}

.pgx-nav a:hover { color: var(--pgx-text); background: rgba(255, 255, 255, .08); }

.pgx-hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
    align-items: center;
    gap: clamp(42px, 6vw, 84px);
    padding: 76px 0 56px;
}

.pgx-kicker {
    margin: 0 0 14px;
    color: var(--pgx-cyan);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 900;
    font-size: .76rem;
}

.pgx-hero h1,
.pgx-section h2 {
    margin: 0 0 18px;
    line-height: .98;
    letter-spacing: -.06em;
}

.pgx-hero h1 {
    max-width: 850px;
    font-size: clamp(3.4rem, 7.65vw, 7.5rem);
}

.pgx-section h2 { font-size: clamp(2.1rem, 5vw, 4.4rem); }

.pgx-section h3 { margin: 28px 0 12px; font-size: 1.2rem; }

.pgx-lead {
    max-width: var(--pgx-max-text);
    color: #ffffff;
    font-size: clamp(1.12rem, 2vw, 1.5rem);
    font-weight: 650;
}

.pgx-hero-copy p:not(.pgx-kicker),
.pgx-section p {
    max-width: var(--pgx-max-text);
    color: var(--pgx-muted);
}

.pgx-hero-links {
    display: grid;
    gap: 12px;
    margin-top: 30px;
    max-width: 560px;
}

.pgx-hero-links-1 { grid-template-columns: minmax(0, 1fr); }
.pgx-hero-links-2,
.pgx-hero-links-3,
.pgx-hero-links-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pgx-button,
.pgx-ad-link,
.pgx-social-link {
    text-decoration: none;
    font-weight: 900;
}

.pgx-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 999px;
    color: #100816;
    background: linear-gradient(135deg, var(--pgx-pink), var(--pgx-cyan));
    box-shadow: 0 16px 44px rgba(255, 111, 216, .24);
}

.pgx-button-secondary { background: linear-gradient(135deg, #ffffff, #e7dcff); }

.pgx-hero-image,
.pgx-side-image,
.pgx-gallery-item {
    background: transparent;
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
}

.pgx-hero-image,
.pgx-side-image {
    margin: 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--pgx-shadow);
    border: 1px solid var(--pgx-line);
}

.pgx-hero-image img,
.pgx-side-image img,
.pgx-gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: cover;
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
}

.pgx-section { padding: 66px 0; }

main > .pgx-section,
main > .pgx-ad-block {
    margin-top: 26px;
    margin-bottom: 26px;
}

.pgx-hero + .pgx-section { margin-top: 8px; }

.pgx-card,
.pgx-ad-block {
    border: 1px solid var(--pgx-line);
    background: linear-gradient(180deg, var(--pgx-card), rgba(255, 255, 255, .045));
    box-shadow: var(--pgx-shadow);
}

.pgx-card {
    max-width: var(--pgx-max-content);
    padding: clamp(24px, 4vw, 46px);
    border-radius: 34px;
}

.pgx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: start;
    gap: 30px;
}

.pgx-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pgx-profile-grid div,
.pgx-stat-grid div,
.pgx-award-row,
.pgx-faq-item {
    border: 1px solid var(--pgx-line);
    background: rgba(255, 255, 255, .055);
    border-radius: 20px;
    padding: 16px;
}

.pgx-profile-grid strong,
.pgx-stat-grid strong {
    display: block;
    color: #ffffff;
    font-size: 1.05rem;
}

.pgx-profile-grid span,
.pgx-stat-grid span { color: var(--pgx-muted); }

.pgx-ad-block {
    max-width: var(--pgx-max-content);
    padding: 0;
    min-height: 150px;
    border-radius: 28px;
    overflow: hidden;
    background: #050505;
}

.pgx-ad-link {
    display: flex;
    width: 100%;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    padding: 28px 32px;
    background: linear-gradient(135deg, #050505 0%, #20102d 52%, #ff6fd8 150%);
    color: #ffffff;
    font-size: clamp(1.2rem, 3vw, 2rem);
}

.pgx-grid-2,
.pgx-grid-3 {
    display: grid;
    gap: 24px;
}

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

.pgx-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 32px;
}

.pgx-note { font-size: .95rem; }

.pgx-award-row {
    display: grid;
    gap: 6px;
    margin-top: 20px;
}

.pgx-award-row span { color: var(--pgx-cyan); font-weight: 900; }
.pgx-award-row em { color: var(--pgx-muted); font-style: normal; }

.pgx-gallery-grid {
    max-width: var(--pgx-max-content);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.pgx-gallery-item {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--pgx-line);
    background: transparent;
}

.pgx-gallery-item img { transition: transform .25s ease; }
.pgx-gallery-item:hover img { transform: scale(1.035); }

.pgx-faq-list {
    display: grid;
    gap: 12px;
}

.pgx-faq-item h3 { margin: 0 0 8px; }
.pgx-faq-item p { margin: 0; }

.pgx-inline-link {
    color: var(--pgx-cyan);
    font-weight: 900;
}

.pgx-social-grid,
.pgx-language-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.pgx-social-link,
.pgx-language-grid a {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pgx-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, .075);
    text-decoration: none;
    color: #ffffff;
}

.pgx-social-link:hover,
.pgx-language-grid a:hover { background: var(--pgx-card-strong); }

.pgx-footer {
    padding: 40px 0;
    border-top: 1px solid var(--pgx-line);
    color: var(--pgx-muted);
}

@media (max-width: 900px) {
    .pgx-header-inner,
    .pgx-hero,
    .pgx-split,
    .pgx-grid-2,
    .pgx-grid-3 {
        grid-template-columns: 1fr;
    }

    .pgx-header-inner { align-items: flex-start; padding: 16px 0; }
    .pgx-nav { justify-content: flex-start; }
    .pgx-hero { min-height: 0; padding-top: 44px; }
    .pgx-profile-grid,
    .pgx-stat-grid,
    .pgx-social-grid,
    .pgx-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pgx-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .pgx-wrap { width: min(100% - 26px, var(--pgx-max-page)); }
    .pgx-hero h1 { font-size: 3.4rem; }
    .pgx-hero-links,
    .pgx-profile-grid,
    .pgx-stat-grid,
    .pgx-social-grid,
    .pgx-language-grid { grid-template-columns: 1fr; }
    .pgx-card { padding: 22px; border-radius: 26px; }
}
