@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Manrope:wght@400;500;600;700&family=Russo+One&display=swap');

:root {
  --bg-950: #060708;
  --bg-900: #0a0c0e;
  --bg-850: #0e1114;
  --bg-800: #13171c;
  --bg-700: #1a2128;
  --line: #222b34;
  --steel-100: #e8ecf0;
  --steel-200: #d3dae0;
  --steel-300: #b6c0c9;
  --steel-400: #8f9aa5;
  --steel-500: #6b7681;
  --steel-600: #4b555f;
  --brand-500: #f6a609;
  --brand-400: #ffb733;
  --brand-300: #ffd27a;
  --brand-glow: rgba(246, 166, 9, 0.25);
  --green: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-900);
  color: var(--steel-100);
  font-family: 'Manrope', -apple-system, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.font-display { font-family: 'Russo One', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 12, 14, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-glyph {
  width: 36px;
  height: 36px;
  background: var(--brand-500);
  color: var(--bg-950);
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  line-height: 1.1;
}
.logo-text span { color: var(--brand-400); }
.logo-sub {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 9px;
  color: var(--steel-500);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--steel-300);
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-400);
}
.nav-link.active {
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--brand-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--steel-300);
  transition: all 0.2s;
}
.phone-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-300);
}
.cart-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: var(--steel-300);
  transition: all 0.2s;
}
.cart-btn:hover {
  border-color: var(--brand-500);
  color: var(--brand-300);
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--brand-500);
  color: var(--bg-950);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-500);
  color: var(--bg-950);
  box-shadow: 0 0 24px var(--brand-glow);
}
.btn-primary:hover {
  background: var(--brand-400);
}
.btn-outline {
  border: 1px solid var(--line);
  background: rgba(19, 23, 28, 0.6);
  color: var(--steel-100);
}
.btn-outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-300);
}
.btn-sm {
  padding: 8px 14px;
  font-size: 11px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  padding-top: 140px;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,7,8,0.8) 0%, rgba(6,7,8,0.4) 50%, #0a0c0e 100%),
              linear-gradient(to right, rgba(6,7,8,0.85) 0%, transparent 60%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(246, 166, 9, 0.4);
  background: rgba(6, 7, 8, 0.7);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-300);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 900px;
  margin-bottom: 24px;
}
.hero-title span { color: var(--brand-500); }
.hero-lead {
  font-size: 17px;
  color: var(--steel-300);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 50px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  max-width: 720px;
}
.hero-stat {
  background: rgba(6, 7, 8, 0.85);
  padding: 16px 20px;
}
.stat-value {
  font-family: 'Russo One', sans-serif;
  font-size: 26px;
  color: var(--brand-400);
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-400);
  font-weight: 600;
  margin-top: 4px;
}

/* Marquee */
.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-950);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.marquee {
  display: flex;
  width: max-content;
  gap: 32px;
  animation: scroll-marquee 45s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--steel-500);
}
.marquee span b { color: var(--brand-400); font-weight: 600; }
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 80px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-950);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--brand-400);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.section-kicker::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--brand-500);
}
.section-title {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 15px;
  color: var(--steel-400);
  max-width: 640px;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--bg-850);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-2px);
}
.feature-num {
  font-family: 'Russo One', sans-serif;
  font-size: 13px;
  color: var(--steel-600);
  float: right;
}
.feature-title {
  font-family: 'Russo One', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  margin: 16px 0 10px;
  color: var(--steel-100);
}
.feature-text {
  font-size: 13px;
  color: var(--steel-400);
  line-height: 1.6;
}

/* Typical Part Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: 1fr; }
}
.showcase-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.specs-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}
.spec-cell {
  background: var(--bg-900);
  padding: 12px 16px;
}
.spec-k {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-500);
  font-weight: 700;
}
.spec-v {
  font-size: 14px;
  color: var(--steel-100);
  margin-top: 4px;
}

/* Bends Cards */
.bends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.bend-card {
  background: var(--bg-850);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.bend-card:hover {
  border-color: var(--brand-500);
  transform: translateY(-4px);
}
.bend-card-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.bend-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bend-card-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: 'Russo One', sans-serif;
  font-size: 36px;
  color: var(--brand-400);
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.bend-card-body {
  padding: 18px;
}
.bend-card-text {
  font-size: 13px;
  color: var(--steel-400);
  line-height: 1.5;
}
.bend-card-link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-400);
  margin-top: 12px;
  display: inline-block;
}

/* Table */
.table-wrap {
  background: var(--bg-850);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-x: auto;
  margin-top: 24px;
}
table.prod-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 13px;
}
table.prod-table th {
  background: rgba(10, 12, 14, 0.7);
  padding: 12px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel-500);
  border-bottom: 1px solid var(--line);
}
table.prod-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(34, 43, 52, 0.6);
}
table.prod-table tr.main-row {
  cursor: pointer;
  transition: background 0.15s;
}
table.prod-table tr.main-row:hover {
  background: rgba(19, 23, 28, 0.6);
}
table.prod-table tr.main-row.open {
  background: rgba(19, 23, 28, 0.85);
}
.table-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg-800);
  color: var(--steel-300);
}
.badge-brand {
  border-color: rgba(246, 166, 9, 0.4);
  background: rgba(246, 166, 9, 0.12);
  color: var(--brand-300);
}
.badge-green {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}

/* Expandable detail row */
tr.detail-row {
  background: rgba(10, 12, 14, 0.6);
}
tr.detail-row td {
  padding: 24px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
}
@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.detail-media img, .detail-media video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-850);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--steel-500);
  margin-right: 4px;
}
.filter-chip {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(19, 23, 28, 0.6);
  font-size: 12px;
  font-weight: 600;
  color: var(--steel-300);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-chip:hover {
  border-color: var(--brand-500);
  color: var(--brand-300);
}
.filter-chip.active {
  border-color: var(--brand-500);
  background: rgba(246, 166, 9, 0.15);
  color: var(--brand-300);
}
.filter-chip .count {
  background: var(--bg-700);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.search-input {
  flex: 1;
  min-width: 220px;
  height: 40px;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--steel-100);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.search-input:focus {
  border-color: var(--brand-500);
}
.sort-select {
  height: 40px;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--steel-100);
  font-family: inherit;
  font-size: 12px;
  outline: none;
}

/* Forms */
.form-card {
  background: var(--bg-850);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel-400);
  margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-800);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--steel-100);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--brand-500);
}
.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 8, 0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--bg-850);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 28px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--steel-400);
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
}
.modal-close:hover {
  border-color: var(--brand-500);
  color: var(--brand-300);
}

/* Footer */
.site-footer {
  background: var(--bg-950);
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
.footer-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--steel-500);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--steel-300);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--brand-300); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--steel-500);
}

/* ====== Значок пользователя (после входа) ====== */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 6px 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(246, 166, 9, 0.6);
  background: rgba(246, 166, 9, 0.1);
  box-shadow: 0 0 14px rgba(246, 166, 9, 0.18);
}
.auth-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
}
.auth-profile:hover .auth-name { color: #ffd27a; }
.auth-avatar {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-500);
  color: var(--bg-950);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.auth-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  border: 2px solid var(--bg-900);
}
.auth-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-300);
}
.auth-logout {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: rgba(255, 183, 51, 0.7);
  flex-shrink: 0;
}
.auth-logout:hover { color: #f87171; }
