:root {
    --bg: #08100b;
    --panel: #101913;
    --line: rgba(125, 255, 178, .18);
    --line-strong: rgba(125, 255, 178, .48);
    --phos: #7dffb2;
    --phos-soft: #b9ffd6;
    --phos-dim: #55a97c;
    --amber: #ffc46b;
    --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
}

body.crt {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 460px at 50% -10%, rgba(125, 255, 178, .08), transparent 65%),
        linear-gradient(rgba(125, 255, 178, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(125, 255, 178, .035) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
    color: var(--phos);
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1.65;
}

.crt-wrap {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

.crt-header {
    border-bottom: 1px solid var(--line);
    background: rgba(8, 16, 11, .9);
}

.crt-header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.crt-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--phos-soft);
    text-decoration: none;
}

.crt-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--line-strong);
    background: rgba(125, 255, 178, .12);
    color: var(--phos);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
}

.crt-brand-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.crt-brand-text small {
    display: block;
    color: var(--phos-dim);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .16em;
}

.crt-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.crt-nav form {
    margin: 0;
}

.crt-user {
    color: var(--phos-dim);
    font-size: 11px;
    letter-spacing: .08em;
}

.crt-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--phos-soft);
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.crt-link:hover {
    color: var(--phos);
    text-decoration: underline;
}

.crt-main {
    width: min(1040px, calc(100% - 40px));
    flex: 1;
    margin: 0 auto;
    padding: 44px 0 60px;
}

.crt-panel-head {
    max-width: 640px;
    margin-bottom: 26px;
}

.crt-kicker {
    margin: 0 0 12px;
    color: var(--amber);
    font-size: 11px;
    letter-spacing: .22em;
}

.crt-panel-head h1,
.crt-card h1 {
    margin: 0 0 10px;
    color: #eafff2;
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    text-transform: uppercase;
}

.crt-sub {
    margin: 0;
    color: #94ad9f;
    font-size: 13px;
    line-height: 1.8;
}

.crt-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.crt-card {
    padding: 26px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.crt-card h2 {
    margin: 0 0 4px;
    color: var(--phos-soft);
    font-size: 16px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.crt-card-sub {
    margin: 0 0 18px;
    color: #7f9a8c;
    font-size: 11px;
}

.crt-card-foot {
    margin: 16px 0 0;
    color: #6f8b7c;
    font-size: 10px;
    letter-spacing: .06em;
}

.crt-form {
    display: grid;
    gap: 14px;
}

.crt-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.crt-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.crt-field > span {
    color: var(--phos-dim);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.crt-field small {
    color: #6f8b7c;
    font-size: 10px;
}

.crt-field input,
.crt-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(125, 255, 178, .22);
    border-radius: 2px;
    background: rgba(4, 10, 7, .65);
    color: #eafff2;
    font-family: inherit;
    font-size: 13px;
}

.crt-field textarea {
    resize: vertical;
    line-height: 1.65;
}

.crt-field input:focus,
.crt-field textarea:focus {
    border-color: var(--phos);
    box-shadow: 0 0 0 3px rgba(125, 255, 178, .12);
    outline: none;
}

.crt-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.crt-btn-primary {
    background: var(--phos);
    color: #04120a;
    box-shadow: 0 0 22px rgba(125, 255, 178, .22);
}

.crt-btn-primary:hover {
    background: var(--phos-soft);
}

.crt-btn-ghost {
    background: transparent;
    color: var(--phos);
}

.crt-btn-ghost:hover {
    background: rgba(125, 255, 178, .12);
}

.crt-alert {
    margin-bottom: 18px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    font-size: 12px;
}

.crt-alert ul {
    margin: 0;
    padding-left: 18px;
}

.crt-alert-success {
    border-color: rgba(125, 255, 178, .45);
    background: rgba(125, 255, 178, .08);
    color: var(--phos-soft);
}

.crt-alert-error {
    border-color: rgba(255, 107, 107, .5);
    background: rgba(255, 107, 107, .08);
    color: #ffc9c9;
}

.crt-grid-proposal {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
}

.crt-product-media {
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(125, 255, 178, .18);
    background: linear-gradient(180deg, rgba(125, 255, 178, .06), transparent), var(--tape);
}

.crt-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.crt-product-empty {
    color: rgba(4, 12, 8, .7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2em;
}

.crt-product-body {
    padding-top: 16px;
}

.crt-product-brand {
    margin: 0 0 4px;
    color: var(--amber);
    font-size: 10px;
    letter-spacing: .2em;
}

.crt-product-body h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.crt-product-kicker {
    margin: 0 0 10px;
    color: var(--phos-dim);
    font-size: 10px;
    letter-spacing: .14em;
}

.crt-product-summary {
    margin: 0 0 14px;
    color: #94ad9f;
    font-size: 12px;
    line-height: 1.8;
}

.crt-product-price {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--phos);
    font-size: 14px;
    letter-spacing: .08em;
}

.crt-product-price span {
    display: block;
    margin-bottom: 3px;
    color: #6f8b7c;
    font-size: 9px;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.crt-confirm {
    max-width: 620px;
    margin: 20px auto;
    text-align: center;
}

.crt-confirm .crt-sub {
    margin-bottom: 24px;
}

.crt-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.crt-footer {
    display: flex;
    width: min(1040px, calc(100% - 40px));
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    color: #6f8b7c;
    font-size: 9px;
    letter-spacing: .2em;
}

@media (max-width: 860px) {
    .crt-grid-2,
    .crt-grid-proposal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .crt-wrap,
    .crt-main,
    .crt-footer {
        width: calc(100% - 28px);
    }

    .crt-header-inner {
        min-height: 68px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .crt-nav {
        width: 100%;
        justify-content: space-between;
    }

    .crt-main {
        padding: 30px 0 44px;
    }

    .crt-card {
        padding: 20px;
    }

    .crt-field-row {
        grid-template-columns: 1fr;
    }
}
