/* Site design system: dark, minimal, rounded cards. */
:root {
  --bg: #0b0b0c; --bg2: #111113; --fg: #f5f5f6; --muted: #9b9ba3; --dim: #6b6b73;
  --card: #161618; --card2: #1c1c1f; --border: #26262a; --border2: #34343a;
  --violet: #8b5cf6; --blue: #3b82f6; --green: #34d399; --red: #e31937;
  --grad: linear-gradient(90deg, #a855f7, #6366f1 50%, #3b82f6);
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.55; -webkit-font-smoothing: antialiased;
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
h4 { font-size: .95rem; }
[hidden] { display: none !important; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.section { padding: 72px 0; }
.section.tight { padding: 40px 0; }
.band { background: var(--bg2); border-block: 1px solid #18181b; }
.narrow { max-width: 820px; }
.center, .center-head { text-align: center; }
.center-head .sub { margin-inline: auto; }
.mx { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sub, .lead { color: var(--muted); font-size: 1.02rem; max-width: 62ch; }
.eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin: 0 0 12px; }
.link { color: var(--fg); border-bottom: 1px solid var(--border2); }
.link:hover { border-color: var(--fg); }

/* ---- promo bar + header ---- */
.promo { background: var(--grad); color: #fff; font-size: .82rem; font-weight: 600; text-align: center; padding: 7px 40px; position: relative; }
.promo a { color: #fff; }
.promo button { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: #fff; cursor: pointer; font-size: 14px; opacity: .8; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 11, 12, .82); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid #1b1b1e; }
.bar { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.brand img { border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 20px; flex: 1; color: var(--muted); font-size: .9rem; }
.nav > a:hover, .dd-toggle:hover { color: var(--fg); }
.nav > a.on { color: var(--fg); }
.head-right { display: flex; align-items: center; gap: 10px; }
.head-link { color: var(--muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.head-link:hover { color: var(--fg); }
.dropdown { position: relative; }
.dd-toggle { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 6px 0; }
.dd-menu { display: none; position: absolute; top: calc(100% + 8px); left: -12px; min-width: 250px; padding: 6px; background: #151517; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55); }
.dropdown.right .dd-menu { left: auto; right: 0; min-width: 190px; max-height: 70vh; overflow: auto; }
.dropdown.open .dd-menu { display: block; }
.dd-menu a { display: flex; flex-direction: column; padding: 9px 12px; border-radius: 10px; color: var(--fg); font-size: .9rem; }
.dd-menu a:hover { background: #222226; }
.dd-menu small { color: var(--muted); font-size: .78rem; }
.dd-menu.models { min-width: 300px; max-height: 72vh; overflow: auto; }
.dd-menu .grp { color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 8px 12px 2px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border2); background: #1a1a1d;
  color: var(--fg); font-weight: 600; font-size: .92rem; line-height: 1; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: #242428; border-color: #44444b; }
.btn.primary { background: #fff; color: #0b0b0c; border-color: #fff; }
.btn.primary:hover { background: #e7e7ea; }
.btn.block { display: flex; width: 100%; margin-top: 12px; }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn.lg { padding: 15px 26px; font-size: 1rem; }
.btn.grad, .ai-btn { background: var(--grad); border-color: transparent; color: #fff; }
.btn.grad:hover, .ai-btn:hover { filter: brightness(1.12); background: var(--grad); }
.ai-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: #fff !important; font-weight: 600; font-size: .8rem; padding: 5px 12px; border-radius: 999px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 12px; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; padding: 64px 0 32px; min-height: 560px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); margin-bottom: 20px; }
.hero .lead { font-size: 1.08rem; margin-bottom: 28px; }
.pill-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #3b3550; background: rgba(139, 92, 246, .08); border-radius: 999px; padding: 6px 14px; font-size: .8rem; color: #d9d0ff; margin-bottom: 24px;
  box-shadow: 0 0 24px rgba(139, 92, 246, .18); }
.hero-car img { width: 100%; max-height: 560px; object-fit: contain; -webkit-mask-image: radial-gradient(ellipse 50% 46% at 50% 56%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 46% at 50% 56%, #000 58%, transparent 100%); }
.hero-sub { color: var(--dim); font-size: .82rem; margin-top: 14px; }

/* ---- showcase marquee ---- */
.showcase-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.showcase-head h2 span { color: var(--dim); }
.marquee { position: relative; overflow: hidden; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: marquee 80s linear infinite; padding: 7px 0; }
.marquee-row.rev { animation-direction: reverse; animation-duration: 90s; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-row { animation: none; } }
.scard { width: 250px; flex: none; }
.scard .shot { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.scard .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.scard:hover .shot img { transform: scale(1.05); }
.who { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .82rem; min-width: 0; }
.who b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { color: var(--dim); font-size: .75rem; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: #fff; flex: none; }
.vip { display: inline-block; background: linear-gradient(90deg, #f59e0b, #ef4444); color: #fff; font-size: .62rem; font-weight: 800; padding: 1px 5px; border-radius: 4px; margin-left: 4px; vertical-align: middle; }

/* ---- editor showcase window ---- */
.window { margin-top: 34px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: #121214; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .85rem; flex-wrap: wrap; }
.window-bar .grow { flex: 1; }
.window-bar .chip { border: 1px solid var(--border2); border-radius: 8px; padding: 5px 10px; color: var(--muted); }
.window-bar .chip.on { background: #fff; color: #111; border-color: #fff; }
.window-body { display: grid; grid-template-columns: 220px 1fr 360px; min-height: 380px; }
.wpane { padding: 16px; position: relative; display: flex; align-items: center; justify-content: center; }
.wpane.left { background: #141416; border-right: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 10px; justify-content: flex-start; }
.wpane.left img { background: #f2f2ef; border-radius: 10px; padding: 6px; }
.wpane.mid img { max-height: 340px; width: auto; }
.wpane.right { padding: 12px; border-left: 1px solid var(--border); background: #141416; }
.wpane.right img { border-radius: 12px; }
.wpane .tag { position: absolute; font-weight: 800; font-size: 1.05rem; background: #0b0b0c; border: 1px solid var(--border2); border-radius: 10px; padding: 6px 12px; display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); white-space: nowrap; }
.wpane .tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); }
.fake-btn { border: 1px solid var(--border2); border-radius: 8px; padding: 7px; text-align: center; font-size: .78rem; color: var(--muted); }
.fake-btn.w { background: #fff; color: #111; border-color: #fff; }

/* ---- cards & grids ---- */
.grid { display: grid; gap: 18px; margin-top: 30px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.vehicles { grid-template-columns: repeat(3, 1fr); }
.grid.gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: #3a3a41; transform: translateY(-2px); }
.card > img { width: 100%; }
.pad { padding: 18px; }
.vcard .vimg { aspect-ratio: 1 / 1; overflow: hidden; background: #0d0d0e; }
.vcard .vimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vcard:hover .vimg img { transform: scale(1.04); }
.vcard .pad { display: flex; flex-direction: column; gap: 2px; background: #19191b; }
.vcard h3 { margin: 0; }
.vcard .go { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.vcard:hover .go { color: var(--fg); }
.checker { background-color: #141416; background-image: conic-gradient(#141416 25%, #19191c 0 50%, #141416 0 75%, #19191c 0); background-size: 20px 20px; }
.gcard { position: relative; }
.gcard .shot { aspect-ratio: 16 / 11; display: grid; place-items: center; overflow: hidden; }
.gcard .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gcard .shot img.flat { width: 74%; height: 74%; object-fit: contain; }
.gcard:hover .shot img { transform: scale(1.04); }
.gcard .pad { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
.gcard .corner { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; align-items: center; z-index: 1; }
.gcard .stats-mini { position: absolute; top: 10px; right: 12px; font-size: .75rem; color: var(--muted); background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 999px; z-index: 1; }
.chips { list-style: none; padding: 0; margin: 10px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .badge { font-size: .75rem; padding: 3px 10px; border-radius: 999px; background: #202024; border: 1px solid var(--border); color: var(--muted); }
.badge { display: inline-block; vertical-align: middle; font-weight: 500; }
.rounded { border-radius: var(--radius); width: 100%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* ---- steps ---- */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; text-align: center; }
.steps4 .n { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; font-weight: 800; margin: 0 auto 14px; }
.steps4 h3 { margin-bottom: 6px; }
.steps4 p { color: var(--muted); font-size: .88rem; margin: 0; }
.steps { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; }
.num { font-weight: 700; color: var(--violet); min-width: 32px; }

/* ---- requirements box ---- */
.req { margin: 30px auto 0; max-width: 820px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; margin: 14px 0; }
.req-grid div { display: flex; gap: 10px; font-size: .9rem; }
.ok { color: var(--green); font-weight: 700; font-size: .75rem; padding-top: 2px; }
.req-grid b { font-weight: 600; }

/* ---- FAQ / CTA ---- */
.faq { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }
.cta-box { text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,.18), transparent 60%), var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 56px 24px; }
.cta-box .sub { margin: 0 auto 24px; }
.kbd-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin-top: 26px; color: var(--muted); font-size: .82rem; }
.kbd-list kbd { background: #222226; border: 1px solid var(--border2); border-radius: 6px; padding: 1px 7px; font: 600 .75rem ui-monospace, monospace; color: var(--fg); margin-right: 6px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid #1b1b1e; margin-top: 40px; padding: 56px 0 32px; color: var(--muted); font-size: .88rem; }
.cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
.cols h4 { color: var(--fg); font-size: .85rem; }
.cols a { display: block; padding: 4px 0; }
.cols a:hover, .legal a:hover { color: var(--fg); }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #1b1b1e; font-size: .8rem; }
.legal a { margin-left: 14px; }

/* ---- gallery page ---- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip-link { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: .85rem; }
.chip-link.on, .chip-link:hover { background: var(--fg); color: #0b0b0c; border-color: var(--fg); }
.sub-filters .chip-link { font-size: .78rem; padding: 4px 12px; }
.sort { align-items: center; gap: 18px; }
.sort-link { color: var(--muted); font-size: .88rem; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.sort-link.on { color: var(--fg); border-color: var(--violet); }
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gallery-search input { width: min(420px, 100%); background: var(--card); border: 1px solid var(--border); color: var(--fg); padding: 10px 14px; border-radius: 10px; font: inherit; margin-top: 16px; }
.like-btn { background: var(--card); border: 1px solid var(--border); color: var(--fg); border-radius: 999px; padding: 4px 12px; margin: 0 8px; cursor: pointer; font: inherit; }
.like-btn.on { color: #ff5c7a; border-color: #ff5c7a; }
.viewer { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 35%, #2e2f34, #121214 75%); border: 1px solid var(--border); }
.wrap-detail { align-items: start; }
.rounded.flat { background: #f2f2ef; padding: 10px; margin: 20px 0 12px; max-width: 360px; }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; margin-top: 34px; }
.plans.three { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; text-align: left; }
.plan.hl { background: #fff; color: #111; border-color: #fff; }
.plan.hl .muted, .plan.hl .credits, .plan.hl .price small { color: #555; }
.plan.hl .ticks li::before { color: #059669; }
.plan.hl .btn { background: #111; color: #fff; border-color: #111; }
.plan.hl .gift { background: #f3f0ff; border-color: #e3dcff; }
.plan-tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.05rem; margin-bottom: 2px; }
.plan .tagline { font-size: .82rem; margin: 0 0 18px; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0; letter-spacing: -.03em; }
.price small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.credits { color: var(--muted); margin: 12px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); font-size: .9rem; }
.plan.hl .credits { border-color: #e5e5e5; }
.credits strong { color: inherit; }
.bonus { color: var(--green); font-weight: 600; }
.plan.hl .bonus { color: #059669; }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; font-size: .88rem; }
.ticks li::before { content: "✓"; color: var(--green); margin-right: 8px; font-weight: 700; }
.ticks.small { font-size: .82rem; gap: 4px; margin-bottom: 0; }
.gift { background: #1b1730; border: 1px solid #2f2750; border-radius: 12px; padding: 12px; margin: auto 0 16px; }
.gift-title { margin: 0 0 6px; font-weight: 700; font-size: .85rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 10px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; }
.table td.neg { color: #ff8a8a; } .table td.pos { color: var(--green); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }

/* ---- tools (photo / plates / submit / account) ---- */
.tool-hero { text-align: center; padding: 56px 0 10px; background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,.14), transparent 60%); }
.tool-hero .sub { margin-inline: auto; }
.tool { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 28px; align-items: start; }
.tool.rev { grid-template-columns: 380px 1fr; }
.tool-side { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.step span { width: 24px; height: 24px; border-radius: 50%; background: #2a2a2e; display: grid; place-items: center; font-size: .8rem; }
.input { width: 100%; background: #111113; border: 1px solid var(--border); color: var(--fg); padding: 10px 12px; border-radius: 10px; font: inherit; }
.drop { display: grid; place-items: center; min-height: 170px; border: 1.5px dashed var(--border2); border-radius: 14px; cursor: pointer; color: var(--muted); text-align: center; padding: 14px; overflow: hidden; background: #111113; }
.drop.over, .drop:hover { border-color: var(--violet); }
.drop img { max-height: 220px; border-radius: 8px; }
.center-row { justify-content: center; }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .85rem; }
.seg-row { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.seg { display: inline-flex; background: #111113; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 6px 10px; border-radius: 7px; font: inherit; cursor: pointer; }
.seg button.on { background: #fff; color: #111; }
.row-gap { display: flex; gap: 8px; align-items: center; }
.tool-side hr { border: 0; border-top: 1px solid var(--border); width: 100%; }
.plate-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 30px; }
.plate-frame { padding: 22px; border-radius: 16px; border: 1px solid var(--border); max-width: 100%; }
.plate-frame canvas { display: block; width: min(560px, 100%); height: auto; border-radius: 6px; box-shadow: 0 0 0 3px #2a2a2e; }
.plate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0 36px; }
.plate-card { margin: 0; border: 1px solid var(--border); border-radius: 14px; padding: 16px 14px 12px; }
.plate-card canvas, .plate-card img { width: 100%; height: auto; border-radius: 5px; display: block; box-shadow: 0 0 0 2px #2a2a2e; }
.plate-card figcaption { color: var(--muted); font-size: .8rem; margin-top: 10px; }
.steps-list { display: grid; gap: 10px; padding-left: 20px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0 30px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-size: 1.4rem; }
.bar-track { height: 6px; background: #2a2a2e; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar-track div { height: 100%; background: var(--grad); }
.mini-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.mini-plan { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.mini-plan.hl { border-color: var(--violet); }
.mini-plan span { font-size: 1.3rem; font-weight: 800; }
.mini-plan small { color: var(--muted); }
.tool-card .pad { display: flex; flex-direction: column; gap: 6px; height: 100%; }
.tool-ic { font-size: 1.5rem; }
.auth { max-width: 420px; display: flex; flex-direction: column; gap: 10px; }
.error { color: #ff6b6b; min-height: 1em; margin: 0; }
.gcard .actions { margin: 10px 0 0; }
button.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }

/* ---- modal / toast ---- */
.tw-modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.tw-modal { position: relative; background: #151517; border: 1px solid var(--border); border-radius: 18px; padding: 26px; width: min(440px, 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.tw-modal h3 { margin-top: 0; }
.tw-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; }
.tw-form { display: flex; flex-direction: column; gap: 10px; }
.tw-form input { background: #111113; border: 1px solid var(--border); color: var(--fg); padding: 11px 12px; border-radius: 10px; font: inherit; }
.tw-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: #fff; color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; transition: .25s; z-index: 120; pointer-events: none; }
.tw-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .window-body { grid-template-columns: 1fr 1fr; }
  .wpane.left { display: none; }
  .head-link.submit { display: none; }
}
@media (max-width: 960px) {
  .hero, .split, .split-2, .tool, .tool.rev { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 40px; }
  .grid.vehicles, .grid.gallery, .grid.three, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps4 { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .nav .hide-md { display: none; }
}
@media (max-width: 640px) {
  .plans, .plans.three, .mini-plans, .grid.two, .req-grid { grid-template-columns: 1fr; }
  .grid.vehicles, .grid.gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .window-body { grid-template-columns: 1fr; }
  .wpane.right { border-left: 0; }
  .nav { gap: 14px; font-size: .85rem; }
  .nav .hide-sm, .brand span, .head-right .lang { display: none; }
  .scard { width: 200px; }
  .section { padding: 52px 0; }
}

/* ---- mobile menu ---- */
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border2); background: #1a1a1d; cursor: pointer; position: relative; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, top .2s, opacity .2s; content: ""; }
.menu-btn span { top: 19px; }
.menu-btn span::before { top: -6px; left: 0; }
.menu-btn span::after { top: 6px; left: 0; }
.drawer-open .menu-btn span { background: transparent; }
.drawer-open .menu-btn span::before { top: 0; transform: rotate(45deg); }
.drawer-open .menu-btn span::after { top: 0; transform: rotate(-45deg); }
.drawer { display: none; }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav .dropdown, .nav .ai-pill { display: none; }
  .head-right .lang { display: none; }
  .drawer { display: block; position: fixed; inset: 60px 0 0; z-index: 39; background: rgba(11, 11, 12, .98); backdrop-filter: blur(10px);
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
  .drawer-open .drawer { opacity: 1; transform: none; pointer-events: auto; }
  .drawer-open { overflow: hidden; }
  .drawer > a { display: block; padding: 14px 4px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid #1d1d20; }
  .drawer-h { color: var(--dim); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: 20px 0 8px; }
  .drawer-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .drawer-models a { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px; font-size: .82rem; }
  .drawer-models img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
  .drawer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
  .drawer-langs a { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; color: var(--muted); }
  .drawer-langs a.on { color: var(--fg); border-color: var(--fg); }
}
@media (max-width: 640px) {
  .bar { gap: 12px; }
  .nav > a.hide-sm, .nav > a.hide-md { display: none; }
  .promo { font-size: .74rem; padding: 6px 34px; }
  .hero { padding-top: 24px; gap: 8px; }
  .hero .hero-car { margin: -8px -16px 0; }
  .hero-car img { height: 300px; object-fit: cover; object-position: 50% 58%; }
  .hero h1 { font-size: 2.3rem; }
  .btn.lg { width: 100%; }
  .actions.center-row .btn.lg { width: auto; flex: 1; }
  .gcard .pad { padding: 10px; }
  .gcard .pad strong { font-size: .9rem; }
  .gcard .stats-mini { display: none; }
  .steps4 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .req { padding: 18px; }
  .cta-box { padding: 36px 16px; }
  .kbd-list { display: none; }
  .cols { grid-template-columns: 1fr 1fr; }
  .cols > div:first-child { grid-column: 1 / -1; }
  .legal { flex-direction: column; }
  .legal a { margin: 0 14px 0 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .filters::-webkit-scrollbar { display: none; }
  .chip-link, .sort-link { white-space: nowrap; flex: none; }
  .gallery-head .actions { width: 100%; margin-top: 0; }
  .gallery-head .actions .btn { width: 100%; }
  input, select, textarea { font-size: 16px !important; } /* stop iOS zoom-on-focus */
}
/* comfortable tap targets on touch screens */
@media (pointer: coarse) {
  .chip-link, .sort-link, .dd-menu a, .cols a { min-height: 40px; display: inline-flex; align-items: center; }
  .cols a { display: flex; }
}
.who > div { min-width: 0; overflow: hidden; }
.who span { white-space: nowrap; }
.drawer-open .promo { display: none; }
