:root {
    --ink: #0f0f10;
    --ink-2: #3d3a36;
    --muted: #6d6860;
    --red: #e10600;
    --red-dark: #b80500;
    --red-soft: #ff4a3d;
    --paper: #f6f3ee;
    --card: #ffffff;
    --line: #e7e1d8;
    --line-2: #d6cec2;
    --black: #0d0d0e;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 1px 2px rgba(20, 16, 10, 0.05), 0 8px 28px rgba(20, 16, 10, 0.07);
    --wrap: min(1200px, calc(100% - 48px));
    --head: "Inter Tight", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
svg { width: 20px; height: 20px; flex: none; }

.ps-kicker {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Header */
.ps-top { position: sticky; top: 0; z-index: 50; background: rgba(13, 13, 14, 0.94); backdrop-filter: saturate(1.4) blur(10px); color: #fff; }
.ps-top-inner { width: var(--wrap); margin: 0 auto; min-height: 68px; display: flex; align-items: center; gap: 28px; }
.ps-brand img { height: 38px; width: auto; }
.ps-top-links { display: flex; gap: 24px; margin-left: auto; }
.ps-top-links a { color: #d8d3cb; text-decoration: none; font-weight: 500; font-size: 15px; }
.ps-top-links a:hover { color: #fff; }
.ps-cart-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 9px 14px 9px 12px;
    border: 1px solid #2f2f31;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.ps-top-links + .ps-cart-jump { margin-left: 0; }
.ps-cart-jump:hover { border-color: #55555a; }
.ps-cart-jump strong {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--red);
    border-radius: 999px;
    font-size: 12px;
}
.ps-cart-jump.bump strong { animation: bump 0.35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }

/* Hero */
.ps-hero {
    width: var(--wrap);
    margin: 0 auto;
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.ps-hero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; max-width: 13ch; }
.ps-hero h1 span { color: var(--red); }
.ps-lead { margin: 20px 0 0; max-width: 46ch; color: var(--ink-2); font-size: 19px; }
.ps-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 26px 0 0; list-style: none; }
.ps-chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}
.ps-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ps-hero-media { position: relative; margin: 0; }
.ps-hero-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.ps-hero-media figcaption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    max-width: 280px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    font-size: 14px;
    color: var(--ink-2);
}
.ps-hero-media figcaption strong { display: block; color: var(--ink); font-size: 15px; }

/* Shop layout */
.ps-shop {
    width: var(--wrap);
    margin: 0 auto;
    padding: 16px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}
.ps-flow { display: grid; gap: 20px; min-width: 0; }
.ps-flow form { display: grid; gap: 20px; }
.ps-step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.ps-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ps-step-head h2 { font-size: 24px; font-weight: 700; }
.ps-step-n {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}
.ps-step-note { margin: -8px 0 18px; color: var(--muted); font-size: 15px; }

/* Package cards */
.ps-packages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.ps-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ps-card.is-selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12); }
.ps-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ps-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ps-card-kicker { margin: 0 0 4px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.ps-card h3 { font-size: 22px; font-weight: 700; }
.ps-price { margin: 10px 0 2px; font-family: var(--head); font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.ps-credits { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.ps-credits strong { color: var(--red); }
.ps-perks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.ps-perks li { display: flex; gap: 9px; align-items: flex-start; }
.ps-perks li::before {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border-radius: 50%;
    background: #fde8e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23e10600' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.ps-card-action { margin-top: auto; }
.ps-add {
    width: 100%;
    padding: 13px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--black);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.ps-add:hover { background: #2a2a2d; }
.ps-card .ps-qty { display: none; }
.ps-card.is-selected .ps-add { display: none; }
.ps-card.is-selected .ps-qty { display: flex; }
.ps-qty {
    align-items: center;
    justify-content: space-between;
    border: 1.5px solid var(--line-2);
    border-radius: 999px;
    padding: 4px;
}
.ps-qty button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}
.ps-qty button:hover { background: #ece6dd; }
.ps-qty output { font-weight: 700; font-size: 17px; min-width: 2ch; text-align: center; }

/* Fields */
.ps-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-fields label, .ps-cardbox label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ps-span { grid-column: 1 / -1; }
.ps-row3 { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 14px; }
.ps-opt { display: none; }
input, select {
    width: 100%;
    min-height: 48px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    padding: 11px 14px;
    font-weight: 400;
    font-size: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236d6860' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px no-repeat; padding-right: 36px; }
input::placeholder { color: #a8a197; }
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 16, 0.1); }
input.is-invalid, select.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.1); }

/* Payment */
.ps-pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ps-pay-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 54px;
    border: 1.5px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}
.ps-pay-tabs button.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 16, 0.08); }
.ps-paypal-word { font-weight: 800; font-style: italic; color: #003087; font-size: 18px; letter-spacing: -0.01em; }
.ps-paypal-word b { color: #0079c1; }
.ps-cardbox { display: grid; gap: 14px; }
.ps-cardrow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ps-input-wrap { position: relative; }
.ps-brand-tag {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.ps-pay {
    margin-top: 18px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(225, 6, 0, 0.25);
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.ps-pay:hover { background: var(--red-dark); }
.ps-pay:active { transform: translateY(1px); }
.ps-pay:disabled { opacity: 0.6; cursor: wait; }
.ps-pay[hidden] { display: none; }
.ps-pay-link { display: inline-flex; width: auto; padding: 0 28px; }
#paypal-buttons { max-width: 100%; }
.ps-secure { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.ps-error {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: #fdecea;
    color: var(--red-dark);
    font-weight: 600;
    font-size: 15px;
}
.ps-error[hidden] { display: none; }
.ps-offline { border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; color: var(--ink-2); }
.ps-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Summary */
.ps-summary { position: sticky; top: 88px; display: grid; gap: 16px; }
.ps-summary-card {
    background: var(--black);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 20px 40px rgba(13, 13, 14, 0.18);
}
.ps-summary-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.ps-summary ul { list-style: none; padding: 0; margin: 0; }
.ps-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid #262628; }
.ps-line:first-child { padding-top: 0; }
.ps-line-name { font-weight: 600; }
.ps-line-meta { grid-column: 1; color: #a9a39a; font-size: 13.5px; }
.ps-line-amount { grid-row: 1; grid-column: 2; font-weight: 700; }
.ps-line-controls { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 6px; justify-self: end; }
.ps-line-controls button {
    width: 26px;
    height: 26px;
    border: 1px solid #3a3a3d;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    font-size: 15px;
}
.ps-line-controls button:hover { border-color: #77777c; }
.ps-line-controls span { min-width: 2ch; text-align: center; font-size: 14px; font-weight: 600; }
.ps-empty { color: #a9a39a; padding: 4px 0 16px; border-bottom: 1px solid #262628; font-size: 15px; }
.ps-totals { margin: 16px 0 0; display: grid; gap: 8px; }
.ps-totals div { display: flex; justify-content: space-between; align-items: baseline; }
.ps-totals dt { color: #c9c3ba; }
.ps-totals dd { margin: 0; font-weight: 600; }
.ps-grand { padding-top: 10px; }
.ps-grand dt { color: #fff; font-weight: 600; font-size: 17px; }
.ps-grand dd { font-family: var(--head); font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.ps-summary-cta {
    margin-top: 18px;
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.ps-summary-cta:hover { background: var(--red-dark); }
.ps-summary-cta.is-disabled { background: #2a2a2d; color: #8d877e; pointer-events: none; }
.ps-next {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.ps-next h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.ps-next ol { margin: 0; padding: 0; list-style: none; counter-reset: next; display: grid; gap: 12px; }
.ps-next li { counter-increment: next; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.ps-next li::before {
    content: counter(next);
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fde8e6;
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
}
.ps-help { margin: 0; text-align: center; color: var(--muted); font-size: 14px; }
.ps-help a { color: var(--ink); font-weight: 600; }

/* Why, FAQ, visit */
.ps-why, .ps-faq, .ps-visit { width: var(--wrap); margin: 0 auto; }
.ps-why { padding: 40px 0 24px; }
.ps-why-head { margin-bottom: 26px; }
.ps-why-head h2, .ps-visit h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; max-width: 20ch; }
.ps-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ps-why-grid figure { margin: 0; }
.ps-why-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ps-why-grid figcaption { padding: 14px 4px 0; color: var(--ink-2); font-size: 15px; }
.ps-why-grid figcaption strong { display: block; color: var(--ink); font-family: var(--head); font-size: 19px; margin-bottom: 4px; }
.ps-faq { padding: 56px 0 24px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; }
.ps-faq-list { display: grid; gap: 10px; }
.ps-faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.ps-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 28px 18px 0;
    position: relative;
    font-weight: 600;
    font-size: 17px;
}
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); }
.ps-faq details[open] summary::after { content: "−"; }
.ps-faq details p { margin: -4px 0 18px; color: var(--ink-2); }
.ps-visit {
    margin-top: 48px;
    margin-bottom: 64px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 40px;
    background: var(--black);
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
}
.ps-visit img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.ps-visit > div { padding: 36px 40px 36px 0; }
.ps-visit-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.ps-visit-links a {
    padding: 10px 16px;
    border: 1px solid #3a3a3d;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.ps-visit-links a:first-child { background: var(--red); border-color: var(--red); }

.ps-foot {
    background: var(--black);
    color: #a9a39a;
    padding: 28px max(24px, calc((100% - 1200px) / 2));
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}
.ps-foot img { height: 30px; width: auto; }
.ps-foot p { margin: 0; }
.ps-foot-links { margin-left: auto !important; }
.ps-foot a { color: #e3ddd4; }

.ps-mobilebar { display: none; }

/* Embed */
.ps-mode-embed { background: transparent; }
.ps-mode-embed .ps-top { position: static; }
.ps-mode-embed .ps-shop { padding-top: 24px; }
.ps-mode-embed .ps-summary { top: 16px; }

/* Receipt and embed-code pages */
.ps-receipt {
    width: min(720px, calc(100% - 32px));
    margin: 48px auto 72px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.ps-receipt h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-bottom: 14px; }
.ps-receipt h2 { font-size: 22px; margin: 28px 0 10px; }
.ps-receipt-lines { list-style: none; padding: 0; margin: 20px 0; }
.ps-receipt-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ps-check {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e7f6ec;
    color: #188a3f;
    margin-bottom: 18px;
}
.ps-check svg { width: 28px; height: 28px; }
.ps-code { background: var(--black); color: #fff; padding: 16px; border-radius: var(--radius-sm); overflow: auto; white-space: pre-wrap; font-size: 14px; }
.ps-key-list { padding-left: 18px; }

.pac-container { z-index: 10000; font-family: "Inter", sans-serif; border-radius: 12px; margin-top: 4px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.pac-item { padding: 6px 12px; }

:focus-visible { outline: 3px solid rgba(225, 6, 0, 0.45); outline-offset: 2px; }

@media (max-width: 1040px) {
    .ps-shop { grid-template-columns: 1fr; }
    .ps-summary { position: static; order: 2; }
    .ps-top-links { display: none; }
    .ps-top-links + .ps-cart-jump { margin-left: auto; }
}

@media (max-width: 760px) {
    :root { --wrap: calc(100% - 28px); }
    html { scroll-padding-top: 72px; }
    .ps-top-inner { min-height: 60px; }
    .ps-brand img { height: 32px; }
    .ps-hero { grid-template-columns: 1fr; gap: 26px; padding: 28px 0 20px; }
    .ps-lead { font-size: 17px; }
    .ps-step { padding: 20px 16px; border-radius: 16px; }
    .ps-packages, .ps-fields, .ps-cardrow { grid-template-columns: 1fr; }
    .ps-row3 { grid-template-columns: 1fr 1fr; }
    .ps-row3 label:first-child { grid-column: 1 / -1; }
    .ps-why-grid { grid-template-columns: 1fr; }
    .ps-faq { grid-template-columns: 1fr; gap: 0; padding-top: 32px; }
    .ps-visit { grid-template-columns: 1fr; gap: 0; }
    .ps-visit img { min-height: 200px; aspect-ratio: 16 / 9; }
    .ps-visit > div { padding: 24px; }
    .ps-foot { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 96px; }
    .ps-foot-links { margin-left: 0 !important; }
    .ps-receipt { padding: 24px 20px; }
    .ps-mobilebar:not([hidden]) {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 18px;
        background: var(--black);
        color: #fff;
        border-radius: 999px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    }
    .ps-mobilebar div { display: flex; flex-direction: column; line-height: 1.2; }
    .ps-mobilebar span { font-size: 12px; color: #a9a39a; }
    .ps-mobilebar strong { font-size: 18px; }
    .ps-mobilebar a { padding: 12px 22px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; }
    .ps-mode-embed .ps-mobilebar { display: none; }
}
