:root {
  color-scheme: dark;
  --bg: #080a0a;
  --ink: #eff3ea;
  --muted: #a7b0a3;
  --soft: #747d72;
  --panel: #111614;
  --panel-strong: #18201c;
  --steel: #56616a;
  --olive: #69754e;
  --khaki: #b7af83;
  --amber: #d6a13a;
  --red: #b64b3f;
  --line: rgba(206, 217, 195, 0.18);
  --line-hot: rgba(214, 161, 58, 0.42);
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px),
    linear-gradient(135deg, rgba(105, 117, 78, 0.26), transparent 36rem),
    linear-gradient(225deg, rgba(86, 97, 106, 0.16), transparent 34rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 10, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-hot);
  border-radius: 6px;
  background: #121715;
  box-shadow: inset 0 0 0 6px rgba(214, 161, 58, 0.08);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span::before,
.brand-mark span::after {
  position: absolute;
  background: var(--amber);
  content: "";
}

.brand-mark::before {
  width: 18px;
  height: 2px;
}

.brand-mark::after {
  width: 2px;
  height: 18px;
}

.brand-mark span::before,
.brand-mark span::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0.75;
}

.brand-mark span::before {
  transform: translate(-12px, -12px);
}

.brand-mark span::after {
  transform: translate(12px, 12px);
}

.brand-copy {
  min-width: 0;
}

.brand strong {
  display: block;
  overflow: hidden;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.cart-button {
  display: inline-flex;
  min-width: 50px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #121715;
}

.cart-icon {
  position: relative;
  width: 16px;
  height: 14px;
  border: 2px solid var(--khaki);
  border-top: 0;
  transform: translateY(2px);
}

.cart-icon::before {
  position: absolute;
  top: -9px;
  left: 2px;
  width: 8px;
  height: 7px;
  border: 2px solid var(--khaki);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 56px) 58px;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 76vh, 760px);
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action,
.ghost-button,
.product-card button {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.primary-action {
  color: #10110d;
  background: var(--amber);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(17, 22, 20, 0.78);
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 420px;
  margin: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 10, 10, 0.2), transparent 54%),
    linear-gradient(0deg, rgba(8, 10, 10, 0.2), transparent 36%);
  content: "";
  pointer-events: none;
}

.hero-metrics {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  width: min(460px, calc(100% - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 16, 15, 0.86);
  backdrop-filter: blur(12px);
}

.hero-metrics div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--ink);
  font-size: 1.12rem;
}

.hero-metrics span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-panel {
  border-bottom: 1px solid var(--line);
}

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: thin;
}

.chip {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--muted);
  background: #101412;
}

.chip.is-active {
  border-color: var(--line-hot);
  color: var(--ink);
  background: rgba(214, 161, 58, 0.12);
}

.catalog-section,
.compare-section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.result-count {
  flex: 0 0 auto;
  margin: 0;
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) repeat(4, minmax(145px, 200px));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, 0.74);
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: #090b0b;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--line-hot);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 32, 28, 0.92), rgba(13, 16, 15, 0.96));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.22);
}

.drone-preview {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 48%, rgba(214, 161, 58, 0.15), transparent 44%),
    #0b0f0d;
  background-size: 26px 26px, 26px 26px, auto, auto;
}

.drone-shape {
  position: absolute;
  inset: 32px 16%;
  opacity: 0.94;
}

.drone-shape::before,
.drone-shape::after {
  position: absolute;
  inset: 0;
  content: "";
}

.drone-shape::before {
  background:
    radial-gradient(circle at 16% 22%, transparent 0 18px, var(--khaki) 19px 22px, transparent 23px),
    radial-gradient(circle at 84% 22%, transparent 0 18px, var(--khaki) 19px 22px, transparent 23px),
    radial-gradient(circle at 16% 78%, transparent 0 18px, var(--khaki) 19px 22px, transparent 23px),
    radial-gradient(circle at 84% 78%, transparent 0 18px, var(--khaki) 19px 22px, transparent 23px),
    linear-gradient(90deg, transparent 10%, var(--olive) 10% 90%, transparent 90%),
    linear-gradient(transparent 46%, var(--olive) 46% 54%, transparent 54%);
}

.drone-shape::after {
  width: 72px;
  height: 38px;
  margin: auto;
  border: 1px solid rgba(239, 243, 234, 0.23);
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(90deg, #202820, #87906d 48%, #202820);
  box-shadow: 0 0 0 7px rgba(214, 161, 58, 0.05);
}

.drone-preview[data-type="vtol"] .drone-shape::before {
  background:
    linear-gradient(90deg, transparent 8%, var(--khaki) 8% 24%, transparent 24% 76%, var(--khaki) 76% 92%, transparent 92%),
    linear-gradient(transparent 46%, var(--olive) 46% 54%, transparent 54%),
    radial-gradient(circle at 12% 50%, transparent 0 20px, var(--khaki) 21px 24px, transparent 25px),
    radial-gradient(circle at 88% 50%, transparent 0 20px, var(--khaki) 21px 24px, transparent 25px);
}

.drone-preview[data-type="cargo"] .drone-shape {
  inset: 24px 12%;
}

.drone-preview[data-type="cargo"] .drone-shape::after {
  width: 96px;
  height: 52px;
  border-radius: 8px;
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--ink);
  background: rgba(9, 11, 11, 0.74);
  font-size: 0.72rem;
  font-weight: 850;
}

.status-badge[data-status="Хит"] {
  border-color: var(--line-hot);
  color: var(--amber);
}

.status-badge[data-status="Под заказ"] {
  border-color: rgba(182, 75, 63, 0.48);
  color: #e08f83;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.product-title-row {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.product-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.16;
}

.purpose {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.price {
  flex: 0 0 auto;
  color: var(--amber);
  font-weight: 900;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spec {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.18);
}

.spec span {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
}

.spec strong {
  display: block;
  margin-top: 3px;
  font-size: 0.92rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-card button,
.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #111614;
}

.product-card button:hover,
.ghost-button:hover {
  border-color: var(--line-hot);
}

.product-card .buy-button {
  color: #10110d;
  border-color: transparent;
  background: var(--amber);
}

.compare-button.is-selected {
  border-color: var(--line-hot);
  color: var(--amber);
}

.compare-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-height: 124px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(17, 22, 20, 0.64);
}

.empty-state {
  grid-column: 1 / -1;
  margin: auto;
  max-width: 680px;
  color: var(--muted);
  text-align: center;
}

.compare-card {
  min-width: 0;
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 12px;
  background: rgba(9, 11, 11, 0.5);
}

.compare-card strong {
  display: block;
  margin-bottom: 8px;
}

.compare-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #080a0a;
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong,
.site-footer a {
  color: var(--ink);
}

@media (max-width: 1180px) {
  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: 820px;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-visual {
    min-height: 360px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-top: 2px;
  }

  main {
    padding-top: 14px;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding-bottom: 160px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .hero-lead {
    margin-top: 18px;
  }

  .hero-actions a {
    flex: 1 1 150px;
  }

  .hero-visual {
    min-height: 270px;
  }

  .hero-metrics {
    right: 0;
    bottom: 20px;
    left: 0;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-metrics div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .toolbar,
  .product-grid,
  .compare-strip {
    grid-template-columns: 1fr;
  }

  .search-field {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .cart-button {
    min-width: 44px;
  }

  .hero {
    padding-bottom: 172px;
  }

  .hero-visual {
    min-height: 220px;
  }

  .card-actions,
  .spec-grid {
    grid-template-columns: 1fr;
  }
}
