:root {
  color-scheme: dark;
  --bg: #090e18;
  --surface: #101725;
  --line: #253148;
  --ink: #f1f5ff;
  --muted: #a1aec6;
  --blue: #3268ff;
  --bright: #6b95ff;
  --radius: 10px;
  --pad: clamp(16px, 4vw, 58px);
  --mono: ui-monospace, 'Courier New', monospace;
  font: 16px/1.5 system-ui, -apple-system, 'Segoe UI', sans-serif;
  scrollbar-color: #455777 var(--bg);
  scrollbar-gutter: stable;
  background: var(--bg);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 2px solid #a7beff; outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(100% - var(--pad) * 2, 1280px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; padding: 10px; background: var(--surface); }
.site-header { border-bottom: 1px solid #1c2639; background: #0c111c; }
.header-inner { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: inline-flex; gap: 11px; align-items: center; font-size: 15px; line-height: 1.03; font-weight: 900; letter-spacing: .03em; flex-shrink: 0; }
.logo-shop { display: block; color: var(--bright); letter-spacing: .2em; font-size: .73em; margin-top: 4px; }
.head-links { display: flex; gap: 34px; color: var(--muted); font-weight: 600; font-size: .9375rem; }
.head-links a:hover, .footer-inner > a:last-child:hover { color: var(--ink); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; border-radius: 7px; border: 1px solid transparent; font-weight: 720; font-size: .9375rem; line-height: 1.25; text-align: center; transition: background .18s, border-color .18s, transform .18s; }
.button:active { transform: translateY(1px); }
.outline { background: #111a2b; color: var(--ink); border-color: #2b3a56; }
.outline:hover { background: #1a2841; border-color: #496493; }
.primary { background: #2358e9; color: white; }
.primary:hover { background: #1e49bf; }
.icon { display: inline-block; flex: 0 0 auto; color: inherit; }
.plane { width: 18px; height: 18px; background: currentColor; clip-path: polygon(3% 42%, 97% 4%, 80% 92%, 53% 70%, 37% 86%, 39% 61%, 78% 24%, 29% 56%); }
.magnify { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-inline: 1px 5px; }
.magnify::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: currentColor; transform: rotate(45deg); right: -5px; bottom: -2px; }
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: 27px; min-height: 475px; display: grid; align-items: center; border: 1px solid #273553; border-radius: 14px; background: radial-gradient(ellipse at 74% 48%, #152d65, #0d1931 41%, #080f1c 75%); }
.flat-lay { position: absolute; z-index: -1; inset: 0 0 0 45%; isolation: isolate; overflow: hidden; }
.work-mat { position: absolute; inset: -42% -20% -35% 12%; transform: rotate(-17deg); border: 1px solid #344d77; border-radius: 23px; box-shadow: inset 0 0 46px #080f21, 0 24px 70px #080e1dcf; background: repeating-linear-gradient(90deg, #172641 0 1px, #213453 1px 3px, #1d2c49 3px 12px); opacity: .73; }
.flat-lay img { position: absolute; width: auto; height: auto; object-fit: contain; filter: drop-shadow(6px 12px 9px #020510d9); }
.flat-lay .lay-deck { width: 83%; max-width: 610px; top: 8%; left: 10%; transform: rotate(-16deg); }
.flat-lay .lay-wheel { width: 63%; max-width: 440px; top: 44%; left: 10%; transform: rotate(-15deg); }
.flat-lay .lay-fork { width: 43%; max-width: 330px; top: 50%; left: 56%; transform: rotate(-51deg); }
.flat-lay .lay-clamp { width: 13%; max-width: 95px; top: 56%; left: 77%; transform: rotate(20deg); }
.hero-copy { padding: clamp(25px, 4.65vw, 65px); position: relative; }
.eyebrow { color: #a9c1ff; font: 700 .8125rem/1.5 var(--mono); letter-spacing: .105em; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.eyebrow span { display: inline-block; width: 21px; height: 2px; flex: 0 0 21px; background: #5a85ff; }
.hero h1 { font-size: clamp(3rem, 6.55vw, 6.0rem); font-weight: 950; line-height: .96; letter-spacing: -.062em; text-shadow: 0 5px 35px #05091455; }
.hero h1 em { font-style: normal; color: #5b86ff; }
.hero p { margin: 22px 0 24px; color: #b7c4dd; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero .button { min-height: 48px; padding-inline: 23px; }
.catalog { padding-block: 43px 55px; }
.catalog-heading, .catalog-controls, .product-bottom, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.15; letter-spacing: -.035em; }
.catalog-heading p { color: var(--muted); margin-top: 6px; }
.search { position: relative; display: flex; align-items: center; flex: 0 1 314px; min-width: 0; color: var(--muted); }
.search .magnify { position: absolute; left: 15px; pointer-events: none; }
input, select, textarea { min-width: 0; color: var(--ink); border: 1px solid var(--line); background: #0d1523; border-radius: 7px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: #9aa8c2; }
input:focus, select:focus, textarea:focus { border-color: #628aff; }
.search input { width: 100%; min-height: 44px; padding-inline: 42px; }
.search input::-webkit-search-cancel-button { appearance: none; }
.search .icon-button { position: absolute; right: 3px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; }
.icon-button:hover { background: #233554; color: var(--ink); }
.catalog-controls { margin-top: 22px; align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 42px; color: var(--muted); background: #101725; border: 1px solid var(--line); border-radius: 7px; padding: 6px 15px; font-size: .875rem; font-weight: 700; }
.filter:hover { color: var(--ink); border-color: #5873a1; }
.filter[aria-pressed=true] { color: #fff; background: #2358e9; border-color: #4077ff; }
select { min-height: 42px; padding-right: 32px; font-size: .875rem; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #a1aec6 50%), linear-gradient(135deg, #a1aec6 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.results { margin: 16px 0 13px; font-size: .875rem; color: var(--muted); min-height: 21px; }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.product:hover { border-color: #405d8d; }
.product-cover, .detail-media { aspect-ratio: 1.34; display: grid; place-items: center; background: radial-gradient(ellipse at center, #202e49, #111b2d 69%); overflow: hidden; }
.product-cover img, .detail-media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 11px; min-height: 0; }
.image-placeholder { color: var(--muted); font-size: .875rem; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px; }
.item-category { color: #91afff; font: 700 .79rem/1.45 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.product h3 { font-weight: 760; font-size: 1.06rem; overflow-wrap: anywhere; }
.product-spec { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.product-bottom { margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.price { font-size: 1.2rem; font-weight: 850; }
.card-action { font-size: .8125rem; padding-inline: 10px; }
.more { display: flex; margin: 24px auto 0; }
.order { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #101a2d; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); margin-bottom: 40px; }
.order p { max-width: 58ch; margin-top: 8px; color: var(--muted); }
.order .button { flex-shrink: 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); padding-block: 22px; }
.site-footer .logo { color: var(--ink); }
dialog { width: min(510px, calc(100% - 26px)); max-height: 90dvh; padding: 0; border: 1px solid #3a527a; border-radius: 13px; background: var(--surface); color: var(--ink); }
dialog::backdrop { background: #030712cf; }
.dialog-inner { position: relative; }
.dialog-close { position: absolute; top: 9px; right: 9px; z-index: 1; background: #0b1325; border-radius: 8px; }
.detail-media { aspect-ratio: 1.7; }
.detail-body { display: grid; gap: 10px; padding: 24px; }
.detail-body .button { justify-self: start; }
.description { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin { width: min(720px, 100% - var(--pad) * 2); margin: clamp(26px, 6vw, 74px) auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(17px, 4vw, 32px); margin-top: 18px; }
.admin form { display: grid; gap: 13px; }
.admin label, .admin .field { display: grid; gap: 6px; }
.admin label { font-weight: 650; }
.admin textarea { width: 100%; min-height: 112px; max-height: 300px; resize: none; field-sizing: content; }
.password-field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.password-field input { flex: 1 1 200px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin button[type=submit] { justify-self: start; }
.admin-head, .admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-list { padding: 0; margin: 12px 0 0; }
.admin-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.admin-list li span { overflow-wrap: anywhere; min-width: 0; }
.feedback { min-height: 24px; color: #a9cfff; }
.feedback[data-error] { color: #ffb6bc; }
.admin small { color: var(--muted); }
.admin input[aria-invalid=true], .admin textarea[aria-invalid=true], .admin select[aria-invalid=true] { border-color: #fa8d96; }
@media (max-width: 1000px) {
  .hero { min-height: 410px; }
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .hero { min-height: 370px; margin-top: 16px; }
  .flat-lay { left: 35%; opacity: .78; }
  .hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #070e1ce8, #070e1c6b 63%, #070e1c15); }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .head-links { display: none; }
  .catalog { padding-top: 31px; }
  .catalog-heading { align-items: start; flex-direction: column; }
  .search { flex: initial; width: min(100%, 400px); }
  .order { align-items: start; flex-direction: column; }
}
@media (max-width: 460px) {
  .header-inner { min-height: 63px; }
  .telegram { padding-inline: 10px; }
  .hero { min-height: 390px; align-items: end; }
  .flat-lay { inset: 0 -7% 36% 12%; opacity: .82; }
  .flat-lay .lay-deck { top: 6%; }
  .flat-lay .lay-wheel { top: 39%; }
  .flat-lay .lay-fork { top: 47%; }
  .flat-lay .lay-clamp { top: 49%; }
  .hero::after { background: linear-gradient(0deg, #080f1c 4%, #080f1ca3 50%, #080f1c05 100%); }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 3.6rem); }
  .hero p { margin-block: 14px 18px; }
  .eyebrow { font-size: .71rem; margin-bottom: 13px; }
  .desktop-break { display: none; }
  .catalog-controls { flex-direction: column; }
  .product-body { padding: 10px; }
  .product h3 { font-size: .94rem; }
  .product-bottom { gap: 6px; }
  .card-action { width: 100%; }
  .admin-head { align-items: start; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 335px) { .products { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; } }
@media (forced-colors: active) { :root { scrollbar-color: auto; } }
.listing-state { display: block; }
