* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f6f7f9;
    color: #111;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    min-height: 100vh;
}

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

    .right {
        border-left: none !important;
    }
}

.left {
    padding: 18px 20px 30px;
}

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.h {
    font-size: 22px;
    font-weight: 800;
}

.link {
    text-decoration: none;
    color: #111;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

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

.card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #efefef;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

.card-body {
    padding: 14px 14px 16px;
}

.card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.card-desc {
    margin: 8px 0 12px;
    font-size: 13px;
    color: #444;
    line-height: 1.35;
    min-height: 34px;
}

.card-price {
    font-weight: 900;
}

.right {
    border-left: 1px solid #e7e7e7;
    background: #fff;
    padding: 18px;
}

.panel {
    position: sticky;
    top: 12px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.panel-title {
    font-weight: 900;
}

.section {
    border-top: 1px solid #eee;
    padding-top: 14px;
    margin-top: 14px;
}

.section-title {
    font-weight: 800;
    margin-bottom: 10px;
}

.input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    outline: none;
}

.area {
    min-height: 90px;
    resize: vertical;
}

.row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.row .input {
    margin-bottom: 0;
}

.btn {
    border: 1px solid #111;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 700;
}

.btn-light {
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
}

.btn-danger {
    border: 1px solid #c62828;
    background: #c62828;
    color: #fff;
}

.err {
    margin-top: 10px;
    color: #c62828;
    font-size: 13px;
}

.msg {
    margin-top: 10px;
    color: #0b6b2a;
    font-size: 13px;
}