.stillage-page {
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.9);
    --panel: #ffffff;
    --panel-strong: #f3f5f7;
    --stroke: rgba(15, 23, 42, 0.12);
    --accent: #f7b733;
    --accent-2: #2bb8a0;
    --muted: #5b6472;
    --text: #0f172a;
    --glow: none;
    --radius: 20px;
    --font: 'Space Grotesk', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

html.stillage-embedded-frame,
body.stillage-embedded-frame {
    overflow: hidden;
}

.content.stillage-embedded-content {
    padding: 0;
}

.stillage-page.is-embedded.focus-load-table .hero,
.stillage-page.is-embedded.focus-load-table .section-overview,
.stillage-page.is-embedded.focus-calculator .hero,
.stillage-page.is-embedded.focus-calculator .section-overview,
.stillage-page.is-embedded.focus-calculator .section-load-table {
    display: none;
}

.stillage-page.is-embedded.focus-load-table .section-load-table,
.stillage-page.is-embedded.focus-calculator .section-calculator {
    margin-top: 0;
}

.stillage-page * {
    box-sizing: border-box;
}

.stillage-page h1,
.stillage-page h2,
.stillage-page p,
.stillage-page figure {
    margin: 0;
}

.stillage-page p {
    color: var(--muted);
    margin: 4px 0 16px 0;
}

.stillage-lang {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px auto;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stillage-page > .stillage-lang {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4;
    margin: 0;
}

.stillage-lang .lang-link {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.stillage-lang .lang-separator {
    color: rgba(15, 23, 42, 0.3);
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(247, 183, 51, 0.18);
    border: 1px solid rgba(247, 183, 51, 0.35);
    border-radius: 999px;
    padding: 6px 14px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 12px;
    color: #8a5a00;
}

.eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(247, 183, 51, 0.22);
}

.stillage-page h1 {
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.stillage-page.is-embedded h1 {
    display: none;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.9));
    box-shadow: var(--glow);
}

.hero-lead {
    margin-top: 18px;
    max-width: 58ch;
    font-size: 16px;
    line-height: 1.6;
}

.hero-visual {
    margin: 0;
}

.hero-visual img,
.summary-figure img,
.thanks-visual img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.cta {
    border: none;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.cta.primary {
    background: linear-gradient(120deg, #ffc542, #ff9d00);
    color: #1f1400;
    box-shadow: 0 10px 24px rgba(247, 183, 51, 0.28);
}

.cta.secondary {
    background: transparent;
    border: 1px solid var(--stroke);
    color: #334155;
}

.cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.15);
    text-decoration: none;
}

.section {
    margin-top: 28px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--glow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.card-head {
    margin-bottom: 16px;
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: start;
}

.overview-media,
.overview-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sub-section-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

.video-frame {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #dfe7ea;
    border: 1px solid var(--stroke);
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.feature-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    line-height: 1.6;
}

.feature-list li::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.load-table-wrap {
    overflow-x: auto;
}

.load-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.load-table th,
.load-table td {
    padding: 14px 16px;
    border: 1px solid var(--stroke);
    text-align: center;
    white-space: nowrap;
}

.load-table thead th,
.load-table tbody th {
    background: #20313b;
    color: #eff3f4;
    font-weight: 600;
}

.load-table tbody td {
    background: rgba(255, 255, 255, 0.7);
}

.builder-layout {
    display: grid;
    grid-template-columns: minmax(360px, 1.16fr) minmax(240px, 0.84fr);
    gap: 20px;
    align-items: stretch;
}

.summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.summary-panel {
    display: flex;
    flex-direction: column;
    background: var(--panel-strong);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 14px;
    height: 100%;
}

.config-panel {
    position: sticky;
    top: 24px;
}

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

.config-form {
    display: grid;
    gap: 16px;
}

.config-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    align-items: start;
}

.brace-inline {
    display: block;
}

.brace-inline.has-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 16px;
    align-items: start;
}

.brace-inline.has-step .field-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 30px;
    min-height: 48px;
}

.brace-inline.has-step .field-checkbox span {
    display: none;
}

.brace-inline.has-step .field-checkbox input {
    margin: 0;
}

.config-main {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    height: 100%;
}

.config-figure {
    margin: 0;
}

.config-figure img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--stroke);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    max-width: none;
    margin: 0;
    width: 100%;
}

.summary-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    width: 100%;
    height: 100%;
}

.summary-main {
    display: block;
}

.summary-copy {
    display: grid;
    gap: 14px;
    align-content: start;
}

.order-form {
    display: grid;
    gap: 12px;
    margin: 0;
    max-width: none;
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    width: 100%;
}

.order-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

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

.field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--muted);
    min-width: 0;
}

.field span,
.summary-item span,
.price-label,
.thanks-order-id span {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.field select,
.field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: inherit;
}

.field select:focus,
.field input:focus {
    outline: none;
    border-color: rgba(245, 180, 0, 0.7);
    box-shadow: 0 0 0 3px rgba(247, 183, 51, 0.18);
    background: #ffffff;
}

.field small {
    color: var(--muted);
}

.field-checkbox {
    align-content: start;
}

.field-checkbox input {
    width: 24px;
    height: 24px;
    padding: 0;
}

.field-step.is-hidden {
    display: none;
}

.summary-figure {
    margin: 0;
}

.summary-figure img {
    width: 100%;
    min-height: 360px;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--stroke);
    margin: 0;
    display: block;
}

.summary-image-note {
    margin: 8px 0 0 0;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.5;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-left: 4px solid #ff9d00;
}

.price-box {
    padding: 18px 20px;
    border-radius: 14px;
    background: #20313b;
    color: #f8f6f0;
    margin: 6px 0 14px 0;
}

.price-label {
    color: rgba(248, 246, 240, 0.7);
}

.price-value {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.price-subvalue {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.price-subvalue span {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 246, 240, 0.72);
}

.price-subvalue strong {
    font-size: 16px;
    font-weight: 600;
    color: #f8f6f0;
}

.summary-item {
    display: grid;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
}

.summary-item strong,
.thanks-order-id strong {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.2;
    word-break: break-word;
}

.order-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.order-note {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.4;
    max-width: 70ch;
}

.order-form .cta.primary {
    width: auto;
    justify-content: center;
    min-width: 220px;
}

.order-panel {
    margin-top: 20px;
}

.stillage-thanks {
    padding-bottom: 0;
}

.thanks-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 28px;
}

.thanks-copy {
    display: grid;
    gap: 20px;
}

.thanks-copy h1 {
    font-size: clamp(34px, 5vw, 60px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.thanks-order-id {
    display: inline-grid;
    gap: 4px;
    max-width: fit-content;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--stroke);
}

.thanks-summary {
    display: grid;
    gap: 16px;
}

.thanks-summary h2 {
    font-size: 24px;
    letter-spacing: -0.03em;
}

.thanks-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1100px) {
    .overview-grid,
    .builder-layout,
    .thanks-card {
        grid-template-columns: 1fr;
    }

    .config-panel {
        position: static;
    }
}

@media (max-width: 1320px) and (min-width: 1101px) {
    .builder-layout {
        grid-template-columns: minmax(380px, 1.22fr) minmax(220px, 0.78fr);
    }
}

@media (max-width: 760px) {
    .stillage-page > .stillage-lang {
        top: 12px;
        right: 12px;
    }

    .hero,
    .section,
    .thanks-card {
        padding: 16px;
    }

    .config-grid,
    .summary-grid,
    .thanks-summary-grid {
        grid-template-columns: 1fr;
    }

    .config-main {
        grid-template-columns: 1fr;
    }

    .config-row,
    .brace-inline.has-step {
        grid-template-columns: 1fr;
    }

    .brace-inline.has-step .field-checkbox {
        padding-top: 0;
    }

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

    .field-quantity {
        grid-column: auto;
    }

    .order-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .order-form .cta.primary {
        width: 100%;
    }

    .cta-row {
        flex-direction: column;
    }

    .cta {
        width: 100%;
        justify-content: center;
    }
}
