:root {
    --black: #080808;
    --gold: #d7a529;
    --gold-soft: #fff6df;
    --white: #fff;
    --ink: #151515;
    --muted: #756f64;
    --line: #e9e2d4;
    --soft: #fbfaf7;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
}
a { color: inherit; }
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}
.bar {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 900;
    font-size: 23px;
}
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand img.brand-logo-wide { width: min(250px, 58vw); height: auto; max-height: 62px; }
.brand small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav a, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border-radius: 999px;
    padding: 0 16px;
    text-decoration: none;
    font-weight: 800;
}
.nav a { color: #211f1b; }
.btn { background: var(--gold); color: #080808; border: 0; cursor: pointer; }
.btn.black { background: var(--black); color: #fff; }
.hero {
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 38px 20px 28px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
    align-items: center;
}
.headline h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 74px);
    line-height: .94;
    letter-spacing: 0;
}
.headline p { max-width: 650px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-panel {
    background: var(--black);
    color: #fff;
    border-radius: 18px;
    padding: 28px;
    min-height: 260px;
    display: grid;
    align-content: center;
    border: 1px solid #000;
}
.hero-panel strong { color: var(--gold); font-size: 46px; }
.hero-panel p { color: #f4e1ae; line-height: 1.7; }
.search {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 20px 0;
}
.search form {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr auto;
    gap: 10px;
}
input, select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 15px;
    font-size: 15px;
    background: #fff;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 54px; }
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}
.section-title h2 { margin: 0; font-size: 28px; }
.muted { color: var(--muted); }
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.card {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(0,0,0,.08); }
.photo {
    aspect-ratio: 4 / 3;
    background: var(--soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo span { color: var(--muted); font-weight: 800; }
.card-body { padding: 16px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--gold-soft);
    color: #4f3700;
    font-weight: 800;
    font-size: 12px;
}
.price { font-size: 23px; font-weight: 900; margin: 14px 0; }
.card-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.detail {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: start;
}
.gallery {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: var(--soft);
}
.gallery-main { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 0 0 10px; font-size: 42px; line-height: 1.05; }
.detail-box {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 18px;
}
.specs { white-space: pre-line; line-height: 1.7; color: #312f2b; }
.footer {
    border-top: 1px solid var(--line);
    padding: 26px 20px;
    text-align: center;
    color: var(--muted);
}
.chat-launcher {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 30;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    box-shadow: 0 14px 38px rgba(0,0,0,.2);
    font-size: 24px;
    cursor: pointer;
}
.chat-panel {
    position: fixed;
    right: 18px;
    bottom: 88px;
    z-index: 31;
    width: min(380px, calc(100vw - 36px));
    max-height: min(640px, calc(100vh - 112px));
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
    overflow: hidden;
    display: none;
}
.chat-panel.open { display: grid; grid-template-rows: auto 1fr auto; }
.chat-head {
    background: var(--black);
    color: #fff;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-head img { width: 34px; height: 34px; border-radius: 8px; background: #fff; }
.chat-title { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.chat-close { background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.chat-messages { padding: 14px; overflow-y: auto; display: grid; gap: 10px; }
.chat-bubble {
    border-radius: 14px;
    padding: 10px 12px;
    line-height: 1.45;
    max-width: 88%;
}
.chat-bubble.customer { justify-self: end; background: var(--gold); color: #080808; }
.chat-bubble.bot { justify-self: start; background: #f2eee5; color: #171717; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chat-actions a, .chat-actions button {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--black);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
}
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { border-radius: 12px; }
.chat-form button { border-radius: 12px; }
@media (max-width: 880px) {
    .bar { display: grid; padding: 14px 20px; }
    .hero-inner, .detail { grid-template-columns: 1fr; }
    .hero-panel { min-height: 190px; }
    .search form { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .headline h1, .detail h1 { font-size: 38px; }
}
