* {
    box-sizing: border-box;
}

:root {
    --bg: #0b0d12;
    --panel: rgba(20, 23, 31, 0.9);
    --panel-strong: #151923;
    --field: #0c1018;
    --field-soft: #1a1f2a;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f2f4f8;
    --muted: #a8b0bf;
    --accent: #c88cff;
    --accent-soft: rgba(200, 140, 255, 0.18);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(200, 140, 255, 0.10), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(94, 127, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #090b10 0%, #0d1016 100%);
}

button,
input,
select {
    font: inherit;
}

.page-shell {
    min-height: 100vh;
}

.hero {
    padding: 32px 20px 12px;
}

.hero-card,
.info-card,
.gallery-card {
    width: min(1120px, 100%);
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card {
    padding: 28px;
    border-radius: calc(var(--radius-xl) + 4px);
}

.language-switch {
    display: flex;
    width: fit-content;
    margin: 0 0 0 auto;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
}

.language-option {
    appearance: none;
    border: 0;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.language-option.is-active {
    color: #120915;
    background: linear-gradient(135deg, #f3ddff 0%, #c88cff 100%);
}

.hero-title {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-top: 12px;
}

.title-block {
    text-align: center;
}

.title-block h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.pfp {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.button {
    appearance: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 14px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.nav:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #120915;
    background: linear-gradient(135deg, #f3ddff 0%, #c88cff 100%);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
}

.section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0;
}

.section-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.03em;
}

.gallery-card {
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    gap: 10px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-xl);
}

.gallery-stage {
    border-radius: calc(var(--radius-xl) - 6px);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-stage img {
    width: 100%;
    max-height: 72vh;
    object-fit: contain;
    display: block;
}

.nav {
    appearance: none;
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 34px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-counter {
    text-align: center;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.pricing-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
    gap: 20px;
}

.info-card {
    border-radius: var(--radius-xl);
    padding: 24px;
}

.visual-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.money-image {
    width: 100%;
    max-width: 100%;
    display: block;
    border-radius: 18px;
}

.calculator-card {
    padding: 18px;
}

.calculator {
    display: grid;
    gap: 14px;
    padding: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22, 26, 37, 0.95), rgba(18, 22, 31, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.field {
    display: grid;
    gap: 8px;
}

label {
    color: #d9dfeb;
    font-size: 14px;
    font-weight: 600;
}

select,
input[type="number"] {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--field);
    color: var(--text);
    border-radius: 16px;
    padding: 15px 16px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

select:focus,
input[type="number"]:focus {
    border-color: rgba(200, 140, 255, 0.42);
    background: #0b0f16;
    box-shadow: 0 0 0 3px rgba(200, 140, 255, 0.08);
}

.checks-grid {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--field-soft);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.check:hover {
    border-color: var(--border);
}

.check input {
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.check span {
    line-height: 1.35;
}

.check[hidden] {
    display: none;
}

.total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 6px;
    padding: 20px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(58, 48, 80, 0.95), rgba(45, 38, 62, 0.98));
    border: 1px solid rgba(200, 140, 255, 0.18);
}

.total-label {
    color: #d5c5ec;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.total-value {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.info-list {
    margin: 0;
    padding-left: 22px;
    line-height: 1.8;
    color: #dce2ee;
}

.footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 10px 0 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 860px) {
    .hero-title {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pfp {
        margin: 0 auto;
    }

    .contacts {
        justify-content: center;
    }

    .pricing-layout {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        grid-template-columns: 1fr;
    }

    .nav {
        width: 100%;
        max-width: 160px;
    }

    .gallery-stage {
        min-height: 320px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 18px;
    }

    .hero-card,
    .info-card,
    .gallery-card {
        border-radius: 22px;
    }

    .hero-card,
    .info-card {
        padding: 18px;
    }

    .gallery-card {
        padding: 12px;
    }

    .calculator {
        padding: 10px;
    }

    .check {
        min-height: 54px;
        padding: 12px 14px;
    }

    .total-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-label-row label {
    flex: 1;
}

.help-trigger {
    appearance: none;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid rgba(200, 140, 255, 0.5);
    border-radius: 50%;
    color: #f4eaff;
    background: rgba(200, 140, 255, 0.13);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.help-trigger:hover,
.help-trigger:focus-visible {
    border-color: var(--accent);
    background: rgba(200, 140, 255, 0.28);
    outline: none;
    transform: translateY(-1px);
}

.check {
    justify-content: space-between;
}

.check-content {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    min-width: 0;
    cursor: pointer;
}

.info-list li {
    position: relative;
}

.info-help {
    width: 21px;
    height: 21px;
    margin-left: 6px;
    vertical-align: middle;
}

.help-popover {
    position: fixed;
    z-index: 20;
    width: min(460px, calc(100vw - 24px));
    max-height: min(680px, calc(100vh - 24px));
    overflow: auto;
    padding: 18px;
    border: 1px solid rgba(200, 140, 255, 0.32);
    border-radius: 20px;
    color: var(--text);
    background: rgba(17, 20, 29, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(16px);
}

.help-popover.is-compact {
    width: min(330px, calc(100vw - 24px));
}

.help-popover[hidden] {
    display: none;
}

.help-popover-content {
    display: grid;
    gap: 12px;
}

.help-title {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.help-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.help-media-wrap {
    display: grid;
    gap: 8px;
    margin: 0;
}

.help-media {
    display: block;
    width: 100%;
    max-height: 500px;
    border-radius: 13px;
    background: #090b10;
    object-fit: contain;
}

video.help-media {
    max-height: 260px;
}

.help-caption {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 560px) {
    .help-popover {
        padding: 14px;
        border-radius: 16px;
    }

    .help-media {
        max-height: 410px;
    }
}

.help-popover {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.help-popover.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.help-video-stack {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 13px;
    background: #090b10;
}

.help-video-stack .help-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    object-fit: contain;
    transition: opacity 0.32s ease;
}

.help-video-stack .help-video.is-active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .help-popover,
    .help-video-stack .help-video {
        transition: none;
    }
}