:root {
    --bg: #080808;
    --panel: #121315;
    --panel-2: #1a1d22;
    --text: #f5f7fa;
    --muted: #a8b0bc;
    --line: rgba(255,255,255,.08);
    --accent: #ff8b16;
    --accent-2: #ffb357;
    --success: #1f9d5c;
    --danger: #c53b3b;
    --shadow: 0 18px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #050505 0%, #0b0d10 100%);
    color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { background: rgba(255,255,255,.08); padding: .15rem .4rem; border-radius: .4rem; }

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow-container { width: min(520px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 64px 0; }
.section-dark { background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding-bottom: 24px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 8, 10, .84);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.site-logo {
    display: block;
    width: auto;
    height: auto;
}
.site-logo-header {
    width: clamp(190px, 21vw, 260px);
    flex: 0 0 auto;
}
.site-logo-footer {
    width: min(280px, 100%);
    margin-bottom: 14px;
}
.brand-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}
.brand-copy strong {
    display: block;
    font-size: 1.05rem;
    line-height: 1.15;
}
.brand-copy small {
    display: block;
    color: var(--muted);
    margin-top: 0;
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.nav a {
    color: var(--muted);
    font-weight: 600;
}
.nav a:hover { color: var(--text); }

.flash-wrap { padding-top: 18px; }
.flash {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.04);
}
.flash-success { border-color: rgba(31,157,92,.4); }
.flash-error { border-color: rgba(197,59,59,.5); }

.hero {
    padding: 76px 0 48px;
    background:
        linear-gradient(120deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,0) 42%),
        linear-gradient(130deg, rgba(255,255,255,.04) 10%, transparent 10% 60%, rgba(164, 219, 255, .15) 60% 68%, transparent 68% 100%),
        linear-gradient(180deg, #090a0c 0%, #0b0d12 100%);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 36px;
    align-items: center;
}
.hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 18px;
}
.hero-copy p { color: var(--muted); font-size: 1.1rem; max-width: 700px; }
.eyebrow {
    display: inline-block;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.hero-actions, .admin-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-bullets { margin: 24px 0 0; padding-left: 18px; color: var(--muted); }
.hero-bullets li + li { margin-top: 10px; }
.hero-visual {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.hero-visual img { width: 100%; object-fit: contain; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, #f97400 100%);
    color: #111;
}
.btn-secondary {
    background: rgba(255,255,255,.06);
    color: var(--text);
    border: 1px solid var(--line);
}
.btn-danger {
    background: rgba(197,59,59,.12);
    color: #ffd0d0;
    border: 1px solid rgba(197,59,59,.35);
}
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-full { width: 100%; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.section-head h2, .page-head h1, .product-summary h1, .admin-card h2, .info-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}
.link-more { color: var(--accent-2); font-weight: 700; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card, .info-card, .detail-card, .admin-card, .table-card {
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.product-card { overflow: hidden; }
.card-image {
    display: block;
    background:
        linear-gradient(130deg, rgba(255,255,255,.04) 10%, transparent 10% 64%, rgba(164, 219, 255, .18) 64% 72%, transparent 72% 100%),
        linear-gradient(180deg, #101216 0%, #0a0b0d 100%);
    min-height: 290px;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}
.compact-image { min-height: 220px; }
.card-body { padding: 20px; }
.card-body h3 { margin: 12px 0 10px; font-size: 1.2rem; }
.card-body p { color: var(--muted); line-height: 1.55; }
.badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255,139,22,.12);
    color: var(--accent-2);
    border: 1px solid rgba(255,139,22,.22);
    font-size: .84rem;
    font-weight: 700;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}
.card-footer strong { font-size: 1.05rem; }

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.info-card, .detail-card, .admin-card, .table-card { padding: 24px; }
.info-card p, .detail-card p, .admin-card p { color: var(--muted); line-height: 1.6; }
.simple-list {
    padding-left: 18px;
    color: var(--muted);
}
.simple-list li + li { margin-top: 8px; }

.filter-bar {
    display: grid;
    grid-template-columns: 1.4fr .8fr auto auto;
    gap: 12px;
    margin-bottom: 24px;
}

input, select, textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    min-height: 48px;
    padding: 12px 14px;
    font: inherit;
}

select {
    cursor: pointer;
}

select option {
    color: #111111;
    background: #ffffff;
}

select option[value=""] {
    color: #666666;
}

textarea {
    min-height: auto;
    resize: vertical;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(255,139,22,.45);
    box-shadow: 0 0 0 3px rgba(255,139,22,.12);
}

label {
    display: grid;
    gap: 8px;
}

label span {
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.product-image-box {
    position: sticky;
    top: 100px;
    background:
        linear-gradient(130deg, rgba(255,255,255,.04) 10%, transparent 10% 64%, rgba(164, 219, 255, .18) 64% 72%, transparent 72% 100%),
        linear-gradient(180deg, #101216 0%, #0a0b0d 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}
.price-box {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    margin: 24px 0;
}
.price-box strong { font-size: 1.5rem; }
.price-box span, .product-short, .summary-text p { color: var(--muted); line-height: 1.6; }
.lead-form {
    margin-top: 26px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,139,22,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,139,22,.18);
}
.lead-form h2 { margin-top: 0; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.price-lines { display: grid; gap: 10px; }
.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--line);
}
.price-line span { color: var(--muted); }

.admin-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}
.admin-card {
    display: grid;
    gap: 16px;
}
.admin-login-page { min-height: calc(100vh - 220px); display: grid; align-items: center; }
.admin-form-grid {
    display: grid;
    gap: 22px;
}
.full-span { grid-column: 1 / -1; }
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
}
.checkbox-line input { width: 18px; min-height: 18px; }
.current-image-preview {
    width: min(380px, 100%);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.03);
}
.current-image-preview img { width: 100%; height: auto; }
.action-card { padding-top: 8px; }

.table-card { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}
.admin-table th, .admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.admin-table th { color: var(--muted); font-size: .9rem; }
.admin-table small { display: block; margin-top: 6px; color: var(--muted); }
.actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.actions-inline form { margin: 0; }
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    margin-right: 6px;
}
.status-on { background: rgba(31,157,92,.15); color: #b9ffd9; }
.status-off { background: rgba(197,59,59,.15); color: #ffd0d0; }
.status-featured { background: rgba(255,139,22,.15); color: #ffd3a3; }
.admin-bottom-grid { margin-top: 22px; }
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 42px 20px;
    border-radius: 24px;
    border: 1px dashed rgba(255,255,255,.16);
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0 44px;
    background: rgba(0,0,0,.25);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 22px;
    align-items: start;
}
.footer-brand-block { max-width: 420px; }
.site-footer p { color: var(--muted); line-height: 1.6; margin: .45rem 0; }
.site-footer h3 { margin: 0 0 10px; }

@media (max-width: 1024px) {
    .hero-grid,
    .product-grid,
    .two-columns,
    .detail-grid,
    .cards-grid,
    .compact-grid,
    .footer-grid,
    .filter-bar,
    .form-grid,
    .admin-head {
        grid-template-columns: 1fr;
    }
    .header-inner {
        flex-direction: column;
        justify-content: center;
        padding: 14px 0 18px;
    }
    .brand {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }
    .brand-copy {
        justify-items: center;
    }
    .product-image-box { position: static; }
}

@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .hero { padding-top: 54px; }
    .card-footer, .section-head, .header-inner, .nav { align-items: start; }
    .card-footer, .section-head, .nav { flex-direction: column; }
    .nav { width: 100%; gap: 10px; }
    .brand-copy strong { font-size: .98rem; }
    .brand-copy small { font-size: .92rem; }
}
