:root {
    --bg: #fafbfa;
    --surface: #ffffff;
    --muted: #f0f4f1;
    --primary: #17321d;
    --secondary: #03d10c;
    --text: #1a1f1c;
    --subtle: #6b7870;
    --border: #e1e8e4;
    --shadow: 0 8px 24px rgba(23, 50, 29, .08);
    --shadow-sm: 0 4px 12px rgba(23, 50, 29, .06);
    --radius: 12px;
    --radius-sm: 8px;
    --focus: 0 0 0 3px rgba(3, 209, 12, .15);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

.header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid rgba(219, 231, 226, .75);
}

.header__inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.brand__logo {
    height: 38px;
    width: auto;
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 18px rgba(23, 50, 29, .18);
    position: relative;
}

.brand__mark:after {
    content: "";
    position: absolute;
    inset: 9px 8px 9px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .14);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--subtle);
    font-weight: 500;
}

.header__nav a {
    padding: 10px 10px;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.header__nav a:hover {
    background: var(--muted);
    color: var(--text)
}

.hero {
    position: relative;
    padding: 46px 0 26px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(23, 50, 29, .75), rgba(23, 50, 29, .55)),
        radial-gradient(1200px 560px at 20% 20%, rgba(3, 209, 12, .20), transparent 55%),
        radial-gradient(900px 520px at 80% 10%, rgba(3, 209, 12, .15), transparent 60%),
        url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero__bg:after {
    content: "";
    position: absolute;
    inset: -120px -160px auto auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 60%);
    transform: rotate(14deg);
}

.hero__content {
    position: relative;
    color: #fff
}

.h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.lead {
    margin: 14px 0 0;
    max-width: 700px;
    color: rgba(255, 255, 255, .90);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
}

.panel {
    position: relative;
    margin-top: 18px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(219, 231, 226, .75);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel__inner {
    padding: 16px
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 12px 12px 0 12px;
    background: linear-gradient(180deg, rgba(240, 244, 241, .75), rgba(255, 255, 255, 0));
}

.tab {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .9);
    color: var(--subtle);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.tab:hover {
    transform: translateY(-1px)
}

.tab[aria-selected="true"] {
    background: rgba(3, 209, 12, .08);
    border-color: rgba(3, 209, 12, .25);
    color: var(--primary);
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr .9fr .9fr 1.1fr;
    gap: 12px;
    padding: 12px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0
}

.label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--subtle);
}

.control {
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 14px;
    font-weight: 400;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.control:focus {
    border-color: rgba(3, 209, 12, .4);
    box-shadow: var(--focus)
}

.control::placeholder {
    color: #9ca8a1;
    font-weight: 400
}

.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--subtle) 50%), linear-gradient(135deg, var(--subtle) 50%, transparent 50%);
    background-position: calc(100% - 16px) 18px, calc(100% - 10px) 18px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px
}

.actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 12px 14px 12px;
}

.btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -.005em;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.btn:active {
    transform: translateY(1px)
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(3, 209, 12, .25);
    font-weight: 600;
}

.btn-primary:hover {
    background: #02b80a;
    box-shadow: 0 12px 28px rgba(3, 209, 12, .35);
}

.btn-secondary {
    background: rgba(3, 209, 12, .08);
    color: var(--primary);
    border-color: rgba(3, 209, 12, .2)
}

.btn-secondary:hover {
    background: rgba(3, 209, 12, .12)
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .95);
    font-weight: 500;
    font-size: 14px;
    margin-top: 18px;
}

.layout {
    padding: 18px 0 34px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 16px;
}

.sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar__header {
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar__title {
    font-weight: 700;
    letter-spacing: -.01em
}

.sidebar__body {
    padding: 14px
}

.hr {
    height: 1px;
    background: var(--border);
    margin: 14px 0
}

.card {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(3, 209, 12, .35)
}

.card__body {
    padding: 14px
}

.row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.space {
    justify-content: space-between
}

.muted {
    color: var(--subtle)
}

.kpi {
    font-weight: 600;
    letter-spacing: -.01em
}

.price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 18px
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--muted);
    border: 1px solid var(--border);
    font-weight: 500;
    font-size: 14px;
    color: var(--subtle);
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(3, 209, 12, .12), rgba(23, 50, 29, .06));
    border: 1px solid rgba(3, 209, 12, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.section-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 500;
    font-size: 14px;
    color: var(--subtle);
}

.step__dot {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--muted);
    color: var(--subtle);
    font-size: 11px;
    font-weight: 600;
}

.step[data-active="true"] {
    border-color: rgba(3, 209, 12, .3);
    background: rgba(3, 209, 12, .06);
    color: var(--primary);
    font-weight: 600;
}

.step[data-active="true"] .step__dot {
    border-color: rgba(3, 209, 12, .4);
    background: rgba(3, 209, 12, .12);
    color: var(--primary);
    font-weight: 700;
}

.suggest {
    position: relative;
}

.suggest__list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 6px;
    margin: 0;
    list-style: none;
    max-height: 280px;
    overflow: auto;
    z-index: 40;
    display: none;
}

.suggest__list[data-open="true"] {
    display: block
}

.suggest__item {
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.suggest__item:hover {
    background: var(--muted)
}

.suggest__code {
    color: var(--subtle);
    font-weight: 600
}

.dropdown {
    position: relative;
}

.dropdown__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    z-index: 40;
    display: none;
}

.dropdown__panel[data-open="true"] {
    display: block
}

.counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: var(--radius);
}

.counter:hover {
    background: var(--muted)
}

.counter__meta {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.counter__title {
    font-weight: 600;
    letter-spacing: -.01em
}

.counter__hint {
    font-size: 12px;
    color: var(--subtle);
    font-weight: 400
}

.counter__controls {
    display: flex;
    align-items: center;
    gap: 10px
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary);
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.icon-btn:hover {
    background: var(--muted)
}

.icon-btn:active {
    transform: translateY(1px)
}

.small {
    font-size: 12px;
    color: var(--subtle);
    font-weight: 400
}

.skeleton {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: linear-gradient(90deg, #f0f4f1 0%, #e5ebe8 40%, #f0f4f1 80%);
    background-size: 240% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
    height: 92px;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0
    }

    100% {
        background-position: 0 0
    }
}

.toast {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 12px 14px;
    min-width: 260px;
    max-width: 320px;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.toast[data-open="true"] {
    opacity: 1;
    transform: translateY(0)
}

.toast__title {
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 0
}

.toast__desc {
    margin: 6px 0 0;
    color: var(--subtle);
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4
}

.footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    color: var(--subtle);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

@media (max-width: 980px) {
    .form-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .form-grid .field[data-span="2"] {
        grid-column: span 2
    }

    .grid-2 {
        grid-template-columns: 1fr
    }

    .sidebar {
        position: relative;
        top: auto
    }
}

@media (max-width: 640px) {
    .h1 {
        font-size: 34px
    }

    .form-grid {
        grid-template-columns: 1fr 1fr
    }

    .form-grid .field[data-span="2"] {
        grid-column: span 2
    }

    .actions {
        justify-content: stretch
    }

    .btn {
        width: 100%
    }

    .dropdown__panel {
        right: auto;
        left: 0;
        width: min(340px, 92vw)
    }
}