:root {
  color-scheme: dark;
  --bg: #0a1118;
  --panel: #101b24;
  --panel-raised: #17252e;
  --line: #293e47;
  --text: #edf6f4;
  --muted: #a5b7be;
  --accent: #72f5cf;
  --accent-ink: #06291f;
  --danger: #ff9e9e;
  --radius: 14px;
  --content: 1160px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { min-width: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.container { width: min(var(--content), calc(100% - 80px)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link { position: fixed; inset: 8px auto auto 8px; padding: .7rem; transform: translateY(-150%); z-index: 20; background: var(--panel); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 5; background: #0a1118f5; border-bottom: 1px solid #ffffff13; }
.nav-shell { min-height: 74px; display: flex; align-items: center; gap: clamp(24px, 5vw, 74px); }
.wordmark { display: inline-flex; gap: .64rem; align-items: center; font-size: 1.23rem; font-weight: 750; letter-spacing: .025em; white-space: nowrap; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #72f5cf40; border-radius: 8px; color: var(--accent); background: #72f5cf12; font-size: 1.12rem; line-height: 1; }
.nav-links { display: flex; gap: clamp(18px, 3.25vw, 40px); align-items: center; font-size: .94rem; color: var(--muted); }
.nav-links a:hover, .footer-inner > a:last-child:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: .45rem; margin-left: auto; }
.nav-actions .button { white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 44px; padding: .62rem 1.02rem; border: 1px solid transparent; border-radius: 9px; color: inherit; background: transparent; line-height: 1.35; font-weight: 650; font-size: .95rem; text-align: center; }
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover:not(:disabled) { background: #a2ffdf; }
.button-secondary { border-color: #39515a; background: #122029; }
.button-secondary:hover:not(:disabled) { border-color: #72f5cf99; background: #183039; }
.button-quiet { color: var(--muted); }
.button-quiet:hover:not(:disabled) { color: var(--text); background: var(--panel-raised); }
.button > span[aria-hidden] { display: none; }

.hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 86% 55%, #15302e95, #0c171e 39%, var(--bg) 74%); border-bottom: 1px solid #ffffff12; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; gap: clamp(26px, 4.4vw, 70px); min-height: 530px; padding-block: 55px; }
.hero h1 { font-size: clamp(3.2rem, 5.45vw, 5.15rem); font-weight: 780; line-height: 1.1; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero p { max-width: 29rem; margin-top: 1.32rem; color: var(--muted); font-size: 1.06rem; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9rem; }
.hero-actions .button { min-height: 49px; padding-inline: 1.25rem; }
.hero-art { position: relative; isolation: isolate; overflow: hidden; align-self: stretch; min-height: 360px; border: 1px solid #88c6b03d; border-radius: 20px; box-shadow: 0 24px 64px #0006; background: #12232c; }
.hero-art img { width: 100%; height: 100%; display: block; position: absolute; inset: 0; object-fit: cover; object-position: 54% 47%; }
.hero-art::after { content: ""; pointer-events: none; position: absolute; inset: 0; box-shadow: inset 0 0 45px #07151c3a; border-radius: inherit; }

.section { padding-block: 60px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 21px; }
.section h2 { font-size: clamp(1.75rem, 3.1vw, 2.45rem); line-height: 1.22; letter-spacing: -.045em; }
.section-heading .muted { margin-top: .48rem; }
.market-filters { display: flex; align-items: end; gap: 12px; }
.filter-field, .field { display: grid; gap: .43rem; min-width: 0; }
.filter-field > span, .field > span { font-size: .89rem; font-weight: 650; color: var(--muted); }
.filter-field input { width: 190px; }
.filter-field select { min-width: 125px; width: 100%; }
.filter-field input, .filter-field select, .field input:not([type=checkbox]), .field select, .field textarea {
  min-height: 44px; padding: .6rem .78rem; border: 1px solid #3b515b; border-radius: 8px; background: #0a151d; color: var(--text);
}
.filter-field input:focus, .filter-field select:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
input::placeholder, textarea::placeholder { color: #879aa3; opacity: 1; }
.filter-field select, .field select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #a5b7be 50%), linear-gradient(135deg, #a5b7be 50%, transparent 50%);
  background-position: right 14px center, right 8px center;
  background-repeat: no-repeat;
  background-size: 6px 6px;
}
.field textarea { resize: vertical; }
.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.offer-card { display: flex; flex-direction: column; gap: .9rem; min-width: 0; padding: 23px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.offer-card h3 { font-size: 1.23rem; overflow-wrap: anywhere; }
.offer-card .muted { font-size: .91rem; }
.offer-card .button { align-self: start; margin-top: auto; }
.offer-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.offer-specs div { min-width: 0; }
.offer-specs dt { font-size: .87rem; color: var(--muted); }
.offer-specs dd { margin: 0; overflow-wrap: anywhere; }
.offer-price { color: var(--accent); font-size: 1.14rem; font-weight: 700; }
.offer-price-label { display: block; color: var(--muted); font-size: .875rem; font-weight: 600; }
.empty-state { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; min-height: 112px; color: var(--muted); padding: 20px 25px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.partners { padding-top: 0; }
.partner-panel { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(25px, 6vw, 86px); padding: clamp(25px, 5vw, 57px); background: linear-gradient(113deg, #142c2b, #14242c 72%); border: 1px solid #47766c78; border-radius: 19px; }
.partner-content p { margin-top: .8rem; color: var(--muted); max-width: 27rem; }
.partner-content .button { margin-top: 1.35rem; }
.partner-grid { list-style: none; padding: 0; margin: 0; border-left: 1px solid #61908171; }
.partner-step { display: grid; gap: .26rem; position: relative; padding-left: 24px; margin-bottom: 1.6rem; }
.partner-step::before { content: ""; position: absolute; left: -4px; top: .52rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.partner-step:last-child { margin-bottom: 0; }
.partner-step span { font-size: .94rem; color: var(--muted); }
.lookup { padding-top: 0; }
.lookup-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(20px, 3.5vw, 39px); }
.lookup-panel h2 { font-size: clamp(1.5rem, 2.6vw, 2.02rem); }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 13px; }
.lookup-form .button { padding-inline: 1.55rem; }
.lookup-result { padding: 1rem; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); margin-top: 1rem; overflow-wrap: anywhere; }
.lookup-result dl { margin: .65rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); gap: .55rem; }
.lookup-result dd { margin: 0; }
.lookup-result dt { font-size: .87rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-inner > a:last-child { font-size: .9rem; color: var(--muted); }

.dialog-panel { width: min(580px, calc(100% - 28px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(19px, 4vw, 28px); border: 1px solid #3e5b63; border-radius: 17px; color: var(--text); background: var(--panel); box-shadow: 0 28px 100px #0008; overflow: auto; }
.dialog-panel::backdrop { background: #03090cbb; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 1.05rem; }
.dialog-header h2 { font-size: clamp(1.28rem, 4vw, 1.56rem); line-height: 1.25; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-raised); color: var(--text); line-height: 1; font-size: 1.4rem; }
.dialog-footer { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 1.05rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .84rem; }
.field-full { grid-column: 1 / -1; }
.form-feedback { color: var(--danger); font-size: .9rem; margin-top: .7rem; overflow-wrap: anywhere; }
.form-feedback:empty { display: none; }
.form-feedback[data-state=success] { color: var(--accent); }
.selected-offer { padding: .7rem .8rem; background: var(--panel-raised); border: 1px solid var(--line); border-radius: 8px; color: var(--accent); }
.rental-total { margin-right: auto; font-weight: 650; color: var(--accent); }
.customer-details, .customer-reference { min-width: 0; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.customer-details { margin: .8rem 0 0; }
.customer-details dt, .customer-reference { color: var(--muted); font-size: .9rem; }
.customer-details dd, .customer-reference strong { color: var(--text); font-family: ui-monospace, monospace; overflow-wrap: anywhere; }
.customer-details dd { margin: .2rem 0 0; }
.customer-reference strong { margin-inline-start: .5rem; }
.customer-password-form { display: grid; gap: .8rem; }
.customer-password-hint { font-size: .88rem; }
.ticket-panel > p { color: var(--muted); }
.ticket-details { display: grid; gap: .6rem; margin-bottom: 0; }
.ticket-details div { padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.ticket-details dt { font-size: .88rem; color: var(--muted); }
.ticket-details dd { margin: .16rem 0 0; font-family: ui-monospace, monospace; word-break: break-all; }

@media (max-width: 900px) {
  .container { width: calc(100% - 46px); }
  .hero-inner { min-height: 465px; padding-block: 40px; }
  .hero-art { min-height: 330px; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  html { scroll-padding-top: 20px; }
  .container { width: calc(100% - 32px); }
  .site-header { position: static; }
  .nav-shell { min-height: 63px; gap: 13px; flex-wrap: wrap; }
  .nav-links { gap: 12px; margin-left: auto; font-size: .88rem; }
  .nav-actions { margin-left: 0; }
  .nav-actions:not(:has(#customer-open:not([hidden]))), .nav-lookup { display: none; }
  .nav-actions .button { min-height: 38px; padding: .4rem .65rem; font-size: .88rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 32px 25px; gap: 24px; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 4.1rem); }
  .hero p { margin-top: .9rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.18rem; }
  .hero-art { min-height: 0; aspect-ratio: 1.72; border-radius: 13px; }
  .section { padding-block: 35px; }
  .partners, .lookup { padding-top: 0; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 13px; }
  .market-filters { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; }
  .filter-field input, .filter-field select { width: 100%; min-width: 0; }
  .offer-grid, .partner-panel { grid-template-columns: 1fr; }
  .partner-panel { gap: 24px; padding: 22px; }
  .partner-step { margin-bottom: .9rem; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form .button { justify-self: start; }
  .footer-inner { min-height: 68px; }
  .empty-state { padding: 16px; }
}
@media (max-width: 390px) {
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.offer-card-heading, .offer-card-footer, .lookup-result-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .65rem; }
.offer-card-footer { margin-top: auto; align-items: center; }
.offer-region { color: var(--muted); font-size: .9rem; }
.offer-description { color: var(--muted); overflow-wrap: anywhere; }
.status-badge { display: inline-flex; align-items: center; padding: .25rem .58rem; border-radius: 7px; font-size: .86rem; font-weight: 650; color: var(--muted); background: var(--panel-raised); }
.status-badge[data-status="approved"], .status-badge[data-status="active"], .status-badge[data-status="completed"] { color: var(--accent); background: #20524166; }
.status-badge[data-status="rejected"] { color: var(--danger); background: #572b3477; }
