:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --paper: #fff;
  --text: #121b2c;
  --muted: #526179;
  --line: #e0e7f1;
  --blue: #084fea;
  --blue-dark: #063caf;
  --tint: #eaf1ff;
  font: 16px/1.45 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
a { color: var(--blue-dark); text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #6d9cff; outline-offset: 3px; }
[hidden] { display: none !important; }
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner, .shell { max-width: 1336px; margin: auto; padding: 0 34px; }
.top-inner { min-height: 73px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 780; white-space: nowrap; letter-spacing: -.025em; }
.brand img { display: block; border-radius: 12px; }
nav { display: flex; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.nav-link, .switch-button { padding: .5rem .85rem; border: 0; background: transparent; border-radius: 10px; white-space: nowrap; font-size: .9rem; font-weight: 680; }
.nav-link[aria-current], .switch-button[aria-pressed=true] { color: var(--blue-dark); background: white; box-shadow: 0 1px 5px #1a326c1c; }
.telegram-link { justify-self: end; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 12px; font-size: .9rem; font-weight: 720; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 386px; margin-top: 25px; padding: 48px 52px; color: #fff; background: radial-gradient(ellipse at 2% 110%, #2334ac, #10152a 70%); border-radius: 24px; display: flex; align-items: center; }
.hero-image { inset: 0 0 0 38%; position: absolute; z-index: -2; background: url('./media/lineup.jpg') right 57% / cover no-repeat; }
.hero::after { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 30%, #121a40 37%, #14182ad6 46%, #15172e00 72%); }
.hero-copy { max-width: 430px; }
.hero-copy h1 { margin: 0 0 12px; max-width: 540px; font-size: clamp(2.7rem, 6vw, 4.9rem); line-height: .96; letter-spacing: -.07em; font-weight: 810; }
.hero-copy p { margin: 0 0 21px; max-width: 290px; color: #dae3ff; font-size: 1rem; }
.primary, .secondary, .show-more { display: inline-flex; align-items: center; justify-content: center; min-height: 43px; padding: .65rem 1rem; border-radius: 12px; border: 1px solid transparent; font-size: .95rem; font-weight: 720; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary, .show-more { background: #fff; border-color: var(--line); color: var(--blue-dark); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-secondary { color: #eef4ff; font-weight: 720; font-size: .9rem; padding: .6rem .5rem; }
.hero-secondary:hover { color: #a7c7ff; }
.features { margin: 28px 0 34px; }
.view-all { font-weight: 680; white-space: nowrap; padding: 6px 0; font-size: .92rem; }
.featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-card { min-width: 0; background: #fff; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; padding: 0; text-align: left; }
.feature-card:hover { border-color: #8db1ff; box-shadow: 0 6px 16px #2c57a217; }
.feature-media { background-color: #e8eef9; display: block; position: relative; }
.feature-media img { display: block; width: 100%; height: 163px; object-fit: contain; object-position: center; padding: 8px; }
.feature-copy { display: grid; gap: .22rem; padding: 12px 14px; }
.feature-copy strong { font-size: 1rem; letter-spacing: -.025em; overflow-wrap: anywhere; }
.feature-copy b { font-size: .94rem; color: var(--blue-dark); }
.catalog { margin: 38px 0 40px; scroll-margin-top: 16px; }
.section-title { margin: 0 0 18px; display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-title h1, .section-title h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.45rem); letter-spacing: -.045em; line-height: 1.15; }
.section-title p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.switch { display: flex; background: #e9eef7; border-radius: 13px; padding: 4px; }
.category-list { display: flex; gap: 10px; overflow-x: auto; margin: -4px 0 20px; padding: 6px 3px 11px; scrollbar-color: #b6c6e5 transparent; scrollbar-width: thin; }
.category { flex: 0 0 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; min-height: 102px; font-size: .86rem; font-weight: 690; text-align: center; line-height: 1.18; }
.category img { width: 62px; height: 49px; object-fit: contain; border-radius: 8px; background: #edf2fa; }
.category[aria-pressed=true] { color: var(--blue-dark); background: var(--tint); border-color: #8db1ff; }
.category:hover, .secondary:hover, .show-more:hover { border-color: #8db1ff; }
.filters { display: grid; grid-template-columns: minmax(230px, 2.2fr) minmax(112px, 1fr) minmax(112px, 1fr) minmax(140px, 1fr); gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 14px; margin: 0 0 14px; }
.filters label { display: grid; gap: 5px; min-width: 0; }
.filters label span { font-size: .875rem; font-weight: 700; }
input, select { width: 100%; min-width: 0; min-height: 43px; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfe; color: var(--text); font-size: 1rem; }
select { appearance: none; padding-right: 1.9rem; background-image: linear-gradient(45deg, transparent 50%, #526179 50%), linear-gradient(135deg, #526179 50%, transparent 50%); background-position: calc(100% - 15px) center, calc(100% - 10px) center; background-size: 5px 5px; background-repeat: no-repeat; }
.results { display: grid; gap: 8px; }
.results.grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.list-header { display: grid; grid-template-columns: 1fr 152px 32px; padding: 3px 17px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.list-header span:nth-child(2) { text-align: right; }
.model { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.model summary { list-style: none; display: grid; grid-template-columns: 1fr 152px 32px; align-items: center; gap: 0; cursor: pointer; padding: 10px 16px; }
.model summary::-webkit-details-marker { display: none; }
.model summary:hover, .model[open] summary { background: #eaf1ff; }
.model-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.model-identity img { width: 44px; height: 44px; flex: 0 0 44px; background: #edf2fa; border-radius: 9px; object-fit: contain; }
.model-identity span { min-width: 0; }
.model-identity strong, .model-identity small { display: block; overflow-wrap: anywhere; }
.model-identity small { color: var(--muted); font-size: .82rem; }
.money { text-align: right; font-weight: 740; white-space: nowrap; font-variant-numeric: tabular-nums; }
.expand { position: relative; justify-self: end; width: 10px; height: 10px; transform: rotate(45deg); border: solid var(--blue); border-width: 0 2px 2px 0; margin: -4px 5px 0 0; }
.model[open] .expand { transform: rotate(225deg); margin-top: 5px; }
.table-wrap { overflow-x: auto; }
.prices { border-collapse: collapse; width: 100%; background: #fff; text-align: left; }
.prices th, .prices td { border-top: 1px solid var(--line); padding: 11px 15px; font-size: .9rem; vertical-align: middle; }
.prices th { font-weight: 620; color: var(--muted); white-space: nowrap; background: #f8faff; }
.prices td:last-child, .prices th:last-child { text-align: right; }
.prices td { min-width: 78px; }
.prices .price-button { padding: .3rem .55rem; background: var(--tint); border: 0; color: var(--blue-dark); border-radius: 7px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; padding: 0; min-width: 0; }
.tile:hover { border-color: #8db1ff; }
.tile img { display: block; width: 100%; height: 150px; object-fit: contain; background: #eef2f8; }
.tile-copy { display: grid; gap: 3px; padding: 12px 14px; overflow-wrap: anywhere; }
.tile-copy small { color: var(--muted); font-size: .8rem; }
.tile-copy b { color: var(--blue-dark); }
.notice { padding: 20px; border: 1px solid var(--line); background: white; border-radius: 14px; }
.notice p:last-child { margin-bottom: 0; }
.show-more { display: flex; margin: 17px auto 0; }
.cabinet { padding: 34px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { display: grid; gap: 5px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 17px; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat strong { font-size: 1.2rem; }
.cabinet .table-wrap { background: white; border: 1px solid var(--line); border-radius: 14px; }
.cabinet h2 { font-size: 1.35rem; }
.history-filter { display: flex; align-items: end; gap: 8px; max-width: 610px; margin-bottom: 12px; }
.history-filter label { display: grid; gap: 5px; width: 100%; font-size: .9rem; font-weight: 680; }
#history-results { display: flex; gap: 7px; flex-wrap: wrap; }
#history-table { margin-bottom: 18px; }
.dialog-section { padding: 24px; }
dialog { width: min(700px, calc(100% - 24px)); max-height: 92vh; padding: 0; border: 0; background: white; color: var(--text); box-shadow: 0 20px 80px #07143755; border-radius: 18px; }
dialog::backdrop { background: #10182aaa; }
.dialog-photo { display: block; width: 100%; height: min(28vh, 250px); object-fit: contain; background: #eef2f8; }
.dialog-section h2 { margin: 0 42px .25rem 0; letter-spacing: -.025em; overflow-wrap: anywhere; line-height: 1.2; }
.dialog-section p { color: var(--muted); }
.dialog-section .big-money { color: var(--blue-dark); font-size: 1.45rem; font-weight: 770; }
.dialog-specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.dialog-specs dt { color: var(--muted); }
.dialog-specs dd { margin: 0; }
.photo-source { font-size: .82rem; margin-bottom: 0; }
.close { position: absolute; right: 12px; top: 12px; width: 38px; height: 38px; padding: 0; font-size: 1.55rem; line-height: 1; background: #fff; border: 1px solid var(--line); border-radius: 50%; }
.footer-link { border: 0; background: transparent; padding: 0; color: var(--blue-dark); text-align: left; }
footer { border-top: 1px solid var(--line); padding: 14px 0 22px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) {
  .top-inner, .shell { padding: 0 14px; }
  .top-inner { gap: 8px; grid-template-columns: 1fr auto; min-height: 62px; }
  .brand { gap: 7px; font-size: .92rem; }
  .brand img { width: 32px; height: 32px; border-radius: 9px; }
  .telegram-link { display: none; }
  .nav-link, .switch-button { padding: .45rem .6rem; }
  .hero { border-radius: 17px; min-height: 260px; margin-top: 14px; padding: 27px 19px; }
  .hero-copy { max-width: 255px; }
  .hero-actions { gap: 4px; display: grid; justify-items: start; }
  .hero-secondary { padding-left: 0; }
  .feature-media img { height: 109px; }
  .featured { grid-template-columns: 1fr 1fr; gap: 8px; }
  .feature-copy { padding: 8px 10px; }
  .feature-copy strong { font-size: .88rem; }
  .feature-copy b { font-size: .85rem; }
  .hero-image { left: 44%; background-position: right 58%; }
  .hero::after { background: linear-gradient(90deg,transparent 37%,#151f52f0 45%,#20275fc0 56%,#12152a10 100%); }
  .hero-copy p { max-width: 210px; font-size: .92rem; }
  .catalog { margin-top: 26px; }
  .section-title { align-items: end; gap: 7px; }
  .section-title p { font-size: .85rem; }
  .filters { grid-template-columns: 1fr 1fr; padding: 10px; gap: 9px; }
  .filters .search-label { grid-column: 1 / -1; }
  .filters label:last-child { grid-column: 1 / -1; }
  .model summary, .list-header { grid-template-columns: 1fr 106px 18px; padding-left: 9px; padding-right: 10px; }
  .model-identity { gap: 8px; }
  .model-identity img { width: 37px; height: 37px; flex-basis: 37px; }
  .model-identity strong, .model-identity small { font-size: .83rem; }
  .model .money { font-size: .9rem; }
  .results.grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .tile img { height: 105px; }
  .stats { grid-template-columns: 1fr; }
  .prices th, .prices td { padding: 8px 9px; }
  footer { flex-direction: column; }
}
