/* ===========================================================================
   Pages — Premium, terms, privacy, contact, success, 404
   ---------------------------------------------------------------------------
   Loaded after base.css (tokens, theme toggle, footer). Everything here is
   what those pages share with each other and with the home page's look: the
   header, a night-sky page hero, cards, the legal document layout, pricing,
   the contact form, and the full-screen "scene" for 404 and payment success.
   =========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 104px;
    -webkit-text-size-adjust: 100%;
}

body.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: 'Noto Sans Georgian', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

a {
    color: var(--primary-text);
}

img {
    max-width: 100%;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0 16px;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1180px;
    min-height: 80px;
    margin: 0 auto;
    padding: 6px 12px 6px 18px;
    border: 1px solid var(--glass-border);
    border-top: 0;
    border-radius: 0 0 24px 24px;
    background: var(--glass-bg);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* logo.webp's artwork sits in the middle of a wide transparent canvas */
.sh-logo {
    display: inline-flex;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 14px;
}

.sh-logo img {
    height: 94px;
    width: auto;
    max-width: none;
    margin: -12px -42px;
    transition: transform 0.3s var(--ease-spring);
}

.sh-logo:hover img {
    transform: rotate(-3deg) scale(1.04);
}

.sh-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sh-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.sh-link .i {
    width: 19px;
    height: 19px;
}

.sh-link:hover {
    background: var(--surface-2);
}

.sh-link[aria-current="page"] {
    background: var(--primary-soft);
    color: var(--primary-text);
}

.sh-link.is-premium {
    background: linear-gradient(135deg, #FFE08A 0%, #FFB547 100%);
    color: #1B1F3B;
    box-shadow: 0 6px 16px rgba(255, 181, 71, 0.3);
}

.sh-link.is-premium:hover {
    filter: brightness(1.04);
}

.sh-link.is-premium[aria-current="page"] {
    box-shadow: 0 0 0 3px var(--gold-soft), 0 6px 16px rgba(255, 181, 71, 0.3);
}

/* ── Page hero: the night sky, smaller ───────────────────────────────────── */

.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    max-width: 1180px;
    margin: 16px auto 0;
    padding: 56px 24px 84px;
    border-radius: 32px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(120% 90% at 85% -10%, rgba(109, 74, 255, 0.55) 0%, transparent 55%),
        radial-gradient(90% 80% at 0% 100%, rgba(37, 99, 235, 0.45) 0%, transparent 60%),
        linear-gradient(165deg, #0B1026 0%, #151B52 50%, #231C66 100%);
    box-shadow: 0 30px 60px -24px rgba(35, 28, 102, 0.55);
}

.page-hero-wrap {
    padding: 0 16px;
}

.ph-sky {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ph-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.6px 1.6px at 22px 34px, #fff 50%, transparent 52%),
        radial-gradient(1px 1px at 74px 110px, rgba(255, 255, 255, 0.85) 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 140px 60px, rgba(255, 255, 255, 0.9) 50%, transparent 52%),
        radial-gradient(1px 1px at 190px 150px, rgba(255, 255, 255, 0.7) 50%, transparent 52%),
        radial-gradient(1.8px 1.8px at 250px 22px, #FFF3C4 50%, transparent 52%),
        radial-gradient(1px 1px at 300px 95px, rgba(255, 255, 255, 0.8) 50%, transparent 52%);
    background-size: 320px 180px;
    opacity: 0.85;
}

.ph-moon {
    position: absolute;
    top: 30px;
    right: 7%;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 64% 38%, rgba(214, 160, 50, 0.35) 0 6px, transparent 7px),
        radial-gradient(circle at 36% 64%, rgba(214, 160, 50, 0.28) 0 9px, transparent 10px),
        radial-gradient(circle at 35% 30%, #FFF8DC 0%, #FFE08A 45%, #FFC247 100%);
    box-shadow: 0 0 34px 8px rgba(255, 214, 107, 0.35), 0 0 110px 36px rgba(255, 194, 71, 0.13);
}

.ph-hills {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
}

.ph-hills .hill-back  { fill: rgba(9, 12, 38, 0.55); }
.ph-hills .hill-front { fill: rgba(7, 9, 28, 0.75); }

.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.page-eyebrow .i {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 auto 12px;
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.page-hero h1 .gold {
    background: linear-gradient(90deg, #FFE7A3 0%, #FFC247 45%, #FF9F6E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-lead {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(236, 240, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.12rem);
    line-height: 1.7;
}

.page-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFE08A 0%, #FFB547 100%);
    color: #1B1F3B;
    font-size: 0.92rem;
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(255, 181, 71, 0.35);
}

.page-chip .i {
    width: 18px;
    height: 18px;
}

/* ── Main column ─────────────────────────────────────────────────────────── */

.page-main {
    position: relative;
    z-index: 2;
    flex: 1;
    width: min(1120px, 100% - 32px);
    margin: -44px auto 0;
}

.card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--text-muted);
    font-weight: 800;
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary-text);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease-out), box-shadow 0.2s, filter 0.2s, background 0.2s;
}

.btn .i {
    width: 20px;
    height: 20px;
}

.btn:active {
    transform: scale(0.97);
}

.btn:disabled,
.btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.75;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-gold {
    background: linear-gradient(135deg, #FFE08A 0%, #FFC247 55%, #FFB547 100%);
    color: #1B1F3B;
    box-shadow: 0 10px 26px rgba(255, 181, 71, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(255, 181, 71, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
    border-color: var(--border-strong);
    background: var(--card-bg);
    color: var(--text-main);
}

.btn-ghost:hover {
    border-color: var(--primary-color);
}

.btn-block {
    width: 100%;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Legal documents ─────────────────────────────────────────────────────── */

.doc {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.doc-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding: 18px 12px 14px;
    scrollbar-width: thin;
}

.doc-toc-title {
    margin: 0 8px 10px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.doc-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-toc a {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.doc-toc a:hover {
    background: var(--surface-2);
    color: var(--text-main);
}

.doc-toc a.is-active {
    background: var(--primary-soft);
    color: var(--primary-text);
}

.doc-toc a .n {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: var(--surface-2);
    font-size: 0.75rem;
    font-weight: 900;
}

.doc-toc a.is-active .n {
    background: var(--primary-fill);
    color: #fff;
}

/* Phones get the contents as one collapsible block above the text */
.doc-toc-mobile {
    display: none;
}

.doc-body {
    padding: 40px 48px 44px;
}

.doc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.doc-meta .i {
    width: 17px;
    height: 17px;
}

.doc-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-intro {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.8;
}

.doc-body .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 14px;
    padding: 0;
    border: 0;
    color: var(--text-main);
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.35;
}

.doc-body .section-title span {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.28);
}

.doc-body p {
    margin: 0 0 14px;
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.85;
    opacity: 0.92;
}

.doc-body strong {
    color: var(--text-main);
    font-weight: 800;
}

.doc-body ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.doc-body li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.definition-box {
    margin: 8px 0 12px;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-2);
}

.definition-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 900;
}

.definition-box p {
    margin: 0 0 8px;
    font-size: 0.98rem;
}

.doc-help {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 20px 22px;
    border-radius: 22px;
    background: var(--primary-soft);
}

.doc-help p {
    flex: 1;
    margin: 0;
    opacity: 1;
}

/* ── Premium ─────────────────────────────────────────────────────────────── */

.status-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 820px;
    margin: 0 auto 20px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 181, 71, 0.5);
    border-radius: 22px;
    background: var(--gold-soft);
}

.status-banner[hidden] {
    display: none;
}

.status-banner .status-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFE08A, #FFB547);
    color: #1B1F3B;
}

.status-banner .status-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.status-banner strong {
    font-size: 1.02rem;
}

.status-banner span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 28px 28px;
}

.plan.is-featured {
    border: 2px solid #FFC247;
    background:
        linear-gradient(180deg, var(--gold-soft) 0%, var(--card-bg) 45%);
    box-shadow: 0 20px 50px rgba(255, 181, 71, 0.22), var(--shadow-md);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #FFE08A, #FFB547);
    color: #1B1F3B;
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(255, 181, 71, 0.4);
}

.plan-name {
    margin: 0 0 14px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.plan-price strong {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.plan-price .cur {
    font-size: 1.5rem;
    font-weight: 900;
}

.plan-price .per {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
}

.plan-note {
    min-height: 2.8em;
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.plan-note b {
    color: var(--gold-text);
}

.plan-features {
    flex: 1;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 0.98rem;
    line-height: 1.45;
}

.plan-features li:first-child {
    border-top: 0;
}

.plan-features .tick {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-text);
}

.plan.is-featured .plan-features .tick {
    background: linear-gradient(135deg, #FFE08A, #FFB547);
    color: #1B1F3B;
}

.plan-features .tick .i {
    width: 14px;
    height: 14px;
    stroke-width: 3;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 24px;
    max-width: 820px;
    margin: 24px auto 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-row .i {
    width: 18px;
    height: 18px;
    color: var(--primary-text);
}

.section {
    max-width: 960px;
    margin: 56px auto 0;
}

.section-head {
    margin-bottom: 22px;
    text-align: center;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.section-head p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

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

.feature {
    padding: 24px 22px;
}

.feature-ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary-text);
}

.feature-ico .i {
    width: 24px;
    height: 24px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 900;
}

.feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.faq details {
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: '';
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-right: 2.5px solid var(--text-muted);
    border-bottom: 2.5px solid var(--text-muted);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s var(--ease-out);
}

.faq details[open] summary::after {
    transform: rotate(225deg) translateY(-3px);
    border-color: var(--primary-color);
}

.faq details p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.75;
}

/* ── Contact ─────────────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.contact-form-card {
    padding: 32px;
}

.contact-form-card h2,
.contact-side h2 {
    margin: 0 0 6px;
    font-size: 1.3rem;
    font-weight: 900;
}

.contact-form-card > p {
    margin: 0 0 22px;
    color: var(--text-muted);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 800;
}

.field .req {
    color: #DC2626;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1.5px solid var(--border-strong);
    border-radius: 14px;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--ring);
}

.field input.is-prefilled {
    border-color: rgba(37, 99, 235, 0.45);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #DC2626;
}

.field-error {
    margin: 6px 0 0;
    color: #B91C1C;
    font-size: 0.85rem;
    font-weight: 700;
}

html[data-theme="dark"] .field-error {
    color: #FCA5A5;
}

.field-error[hidden] {
    display: none;
}

.form-status {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
}

.form-status.is-error {
    background: rgba(220, 38, 38, 0.1);
    color: #B91C1C;
}

html[data-theme="dark"] .form-status.is-error {
    color: #FCA5A5;
}

.form-status[hidden] {
    display: none;
}

.form-done {
    padding: 28px 8px 8px;
    text-align: center;
}

.form-done[hidden] {
    display: none;
}

.form-done .done-ico {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34D399, #10B981);
    color: #fff;
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.form-done .done-ico .i {
    width: 34px;
    height: 34px;
    stroke-width: 3;
}

.form-done h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 900;
}

.form-done p {
    margin: 0 auto 20px;
    max-width: 380px;
    color: var(--text-muted);
}

/* the info side is a small night sky of its own */
.contact-side {
    position: relative;
    overflow: hidden;
    padding: 30px 26px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(1.4px 1.4px at 30px 40px, rgba(255, 255, 255, 0.8) 50%, transparent 52%),
        radial-gradient(1px 1px at 150px 90px, rgba(255, 255, 255, 0.6) 50%, transparent 52%),
        radial-gradient(1.2px 1.2px at 260px 30px, rgba(255, 243, 196, 0.9) 50%, transparent 52%),
        radial-gradient(120% 70% at 90% 0%, rgba(109, 74, 255, 0.55) 0%, transparent 60%),
        linear-gradient(165deg, #0B1026 0%, #151B52 55%, #231C66 100%);
    background-size: 300px 180px, 300px 180px, 300px 180px, auto, auto;
}

.contact-side > p {
    margin: 0 0 20px;
    color: rgba(236, 240, 255, 0.82);
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}

a.contact-row:hover {
    background: rgba(255, 255, 255, 0.14);
}

.contact-row .c-ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    background: rgba(255, 194, 71, 0.18);
    color: #FFE08A;
}

.contact-row .c-ico .i {
    width: 21px;
    height: 21px;
}

.contact-row .c-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-row .c-text span {
    color: rgba(236, 240, 255, 0.72);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact-row .c-text strong {
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.contact-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 194, 71, 0.14);
    color: #FFE08A;
    font-size: 0.9rem;
    font-weight: 700;
}

.contact-note .i {
    width: 19px;
    height: 19px;
}

/* ── Footer spacing on these pages ───────────────────────────────────────── */

body.page > .site-footer {
    margin: 56px 16px 0;
}

/* ── Scroll to top ───────────────────────────────────────────────────────── */

.to-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s var(--ease-out), background 0.2s, color 0.2s;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--primary-gradient);
    color: #fff;
}

.to-top .i {
    width: 22px;
    height: 22px;
}

/* ── Scene pages: 404 and payment success ────────────────────────────────── */

/* html + body.scene outranks base.css's night-mode body background */
html body.scene {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 24px 16px 140px;
    overflow-x: hidden;
    font-family: 'Noto Sans Georgian', system-ui, sans-serif;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(120% 70% at 85% -10%, rgba(109, 74, 255, 0.55) 0%, transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(37, 99, 235, 0.45) 0%, transparent 60%),
        linear-gradient(165deg, #0B1026 0%, #151B52 50%, #231C66 100%);
    background-attachment: fixed;
}

.scene .ph-sky {
    position: fixed;
    z-index: 0;
}

.scene .ph-moon {
    top: 7%;
    right: 12%;
    width: 84px;
    height: 84px;
}

.scene .ph-hills {
    position: fixed;
    height: 130px;
}

.scene-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    padding: 40px 32px 34px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: sceneIn 0.6s var(--ease-out) both;
}

@keyframes sceneIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.scene-logo {
    display: inline-flex;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 16px;
}

.scene-logo img {
    height: 110px;
    width: auto;
    max-width: none;
    margin: -14px -50px;
}

.scene-ico {
    display: inline-grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FFE08A 0%, #FFB547 100%);
    color: #1B1F3B;
    font-size: 2.4rem;
    box-shadow: 0 0 0 8px rgba(255, 194, 71, 0.15), 0 16px 36px rgba(255, 181, 71, 0.4);
}

.scene-ico .i {
    width: 40px;
    height: 40px;
}

.scene-card .scene-code {
    margin: 0;
    font-size: clamp(4rem, 14vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #FFE7A3 0%, #FFC247 45%, #FF9F6E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.scene-card h1,
.scene-card h2 {
    margin: 6px 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
}

.scene-card p {
    margin: 0 auto 24px;
    max-width: 420px;
    color: rgba(236, 240, 255, 0.86);
    font-size: 1.02rem;
    line-height: 1.7;
}

.scene-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.scene-card .scene-foot {
    margin: 22px auto 0;
    color: rgba(236, 240, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
}

.scene .btn-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.scene .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
}

.scene-card .countdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -8px 0 18px;
    color: rgba(236, 240, 255, 0.75);
    font-size: 0.9rem;
    font-weight: 700;
}

.scene-card .countdown[hidden] {
    display: none;
}

/* ── Tablet ──────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .doc {
        grid-template-columns: 1fr;
    }

    .doc-toc {
        display: none;
    }

    .doc-toc-mobile {
        display: block;
        margin-bottom: 22px;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--surface-2);
    }

    .doc-toc-mobile summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 52px;
        padding: 0 16px;
        font-weight: 800;
        list-style: none;
        cursor: pointer;
    }

    .doc-toc-mobile summary::-webkit-details-marker {
        display: none;
    }

    .doc-toc-mobile summary::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2.5px solid var(--text-muted);
        border-bottom: 2.5px solid var(--text-muted);
        transform: rotate(45deg) translateY(-2px);
    }

    .doc-toc-mobile[open] summary::after {
        transform: rotate(225deg) translateY(-2px);
    }

    .doc-toc-mobile ol {
        margin: 0;
        padding: 0 8px 10px;
        list-style: none;
    }

    .doc-toc-mobile a {
        display: flex;
        gap: 10px;
        padding: 9px 8px;
        border-radius: 10px;
        color: var(--text-main);
        font-size: 0.92rem;
        font-weight: 700;
        text-decoration: none;
    }

    .doc-toc-mobile a .n {
        min-width: 22px;
        color: var(--primary-text);
        font-weight: 900;
    }

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

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

/* ── Phones ──────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    html {
        scroll-padding-top: 12px;
    }

    .site-header {
        position: relative;
        padding: 0;
    }

    .site-header-inner {
        min-height: 66px;
        padding: 4px 8px 4px 12px;
        border-radius: 0 0 22px 22px;
        border-left: 0;
        border-right: 0;
    }

    .sh-logo img {
        height: 74px;
        margin: -9px -33px;
    }

    .sh-nav {
        gap: 4px;
    }

    .sh-link {
        padding: 0 12px;
        font-size: 0.88rem;
    }

    .sh-link.is-home span {
        display: none;
    }

    .page-hero-wrap {
        padding: 0 12px;
    }

    .page-hero {
        margin-top: 12px;
        padding: 40px 18px 70px;
        border-radius: 26px;
    }

    .ph-moon {
        top: 18px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    .page-main {
        width: calc(100% - 24px);
        margin-top: -40px;
    }

    .card {
        border-radius: 24px;
    }

    .doc-body {
        padding: 24px 18px 28px;
    }

    .doc-body .section-title {
        margin-top: 30px;
        font-size: 1.12rem;
    }

    .doc-body .section-title span {
        width: 32px;
        height: 32px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .doc-body p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .definition-box {
        padding: 18px;
    }

    .doc-help {
        flex-direction: column;
        align-items: flex-start;
    }

    .plans {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .plan {
        padding: 28px 22px 22px;
    }

    .plan-note {
        min-height: 0;
    }

    .section {
        margin-top: 44px;
    }

    .contact-form-card {
        padding: 24px 18px;
    }

    .contact-side {
        padding: 24px 18px;
    }

    body.page > .site-footer {
        margin: 44px 0 0;
    }

    .scene-card {
        padding: 32px 20px 28px;
        border-radius: 28px;
    }
}

/* Payment success: a short fall of stars and paper, once */
.confetti {
    position: fixed;
    top: -16px;
    z-index: 5;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    pointer-events: none;
    animation: confettiFall 3s cubic-bezier(0.25, 0.6, 0.4, 1) forwards;
}

@keyframes confettiFall {
    0%   { opacity: 1; translate: 0 0; rotate: 0deg; }
    100% { opacity: 0.2; translate: 30px 105vh; rotate: 540deg; }
}

/* Pages without a hero (the Magic result) start below the header */
.page-main.no-hero {
    margin-top: 24px;
}
