/* ===========================================================================
   NR Automotive — Shared theme used by subpages
   =========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --surface: #161616;
  --surface-2: #1d1d1d;
  --border: #262626;
  --border-strong: #353535;
  --text: #f4f4f4;
  --text-2: #b4b4b4;
  --text-3: #7a7a7a;
  --red: #E11D2E;
  --red-2: #b9121f;
  --yellow: #FFCD00;
  --maxw: 1320px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

.display, h1, h2, h3, h4 {
  font-family: "Oswald", "Manrope", sans-serif;
  font-weight: 600; letter-spacing: -0.005em;
  text-transform: uppercase; line-height: 0.95; margin: 0;
}
.mono { font-family: "JetBrains Mono", monospace; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.red { color: var(--red); }
.yellow { color: var(--yellow); }

/* ===== NAV ===== */
nav.main {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s, background 0.25s;
}
nav.main::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 38%, var(--yellow) 38%, var(--yellow) 42%, var(--red) 42%, var(--red) 100%);
  opacity: 0.85;
}
nav.main.scrolled {
  background: rgba(8,8,8,0.98);
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.6);
}
nav.main .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px; gap: 24px;
}
.logo-slot { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.logo-mark {
  width: 110px; height: 78px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(225,29,46,0.18));
  transition: transform 0.25s;
}
.logo-mark:hover { transform: scale(1.03); }
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; gap: 5px; }
.logo-text .tag {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: var(--text-3); letter-spacing: 0.18em; text-transform: uppercase;
}
.logo-text .tag.primary {
  color: var(--text); font-size: 11px; font-weight: 500;
}
.logo-text .tag.primary::before { content: "▸ "; color: var(--red); }

.nav-links {
  display: flex; gap: 4px;
  align-items: stretch; flex: 1; justify-content: center;
  align-self: stretch; margin: 0 20px;
}
.nav-links a {
  position: relative; padding: 0 20px;
  display: inline-flex; align-items: center;
  font-family: "Oswald", sans-serif;
  font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2); transition: color .15s;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 20px; right: 20px; bottom: 28px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.current::after { transform: scaleX(1); }
.nav-links a.current { color: var(--text); }
.nav-links a.divider {
  pointer-events: none; padding: 0; width: 1px; height: 22px;
  background: var(--border-strong); align-self: center; margin: 0 8px;
}
.nav-links a.divider::after { display: none; }

.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; margin-left: auto; }
.nav-phone {
  display: flex; flex-direction: column; align-items: flex-end;
  line-height: 1; padding-right: 18px;
  border-right: 1px solid var(--border-strong);
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.nav-phone:hover { opacity: 0.85; }
.nav-phone .lbl {
  font-family: "JetBrains Mono"; font-size: 9px;
  color: var(--text-3); letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: 6px;
  white-space: nowrap;
}
.nav-phone .num {
  font-family: "Oswald", sans-serif; font-weight: 600;
  font-size: 17px; color: var(--text); letter-spacing: 0.02em;
  white-space: nowrap;
}

.cta-btn {
  background: var(--red); color: #fff;
  padding: 12px 22px; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: background .15s;
}
.cta-btn:hover { background: var(--red-2); }
.cta-btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--text); }
.cta-btn.ghost:hover { background: var(--surface); }
.cta-btn.yellow-btn { background: var(--yellow); color: #000; }
.cta-btn .arrow { font-family: "Oswald"; font-size: 16px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { border-color: var(--red); }
.nav-toggle .bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after, .nav-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars span { top: 6px; display: block; }
.nav-toggle .bars::after { top: 12px; }

.mobile-drawer {
  position: fixed; inset: 0; background: rgba(10,10,10,0.97);
  backdrop-filter: blur(20px); z-index: 100;
  display: flex; flex-direction: column;
  padding: 24px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
body.menu-open .mobile-drawer { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 50px; }
.drawer-head .logo-mark { width: 90px; height: 64px; }
.drawer-close {
  width: 48px; height: 48px; background: transparent;
  border: 1px solid var(--border-strong); color: var(--text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: "Oswald"; font-size: 22px;
}
.drawer-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  font-family: "Oswald", sans-serif; font-size: 26px; font-weight: 600;
  text-transform: uppercase; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.drawer-nav a .idx { font-family: "JetBrains Mono"; font-size: 11px; color: var(--text-3); letter-spacing: 0.15em; }
.drawer-foot { margin-top: auto; padding-top: 30px; border-top: 1px solid var(--border); }
.drawer-cta {
  background: var(--red); color: #fff; padding: 18px; text-align: center;
  font-family: "Oswald"; font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px;
  display: flex; justify-content: center; gap: 10px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

/* ===== FOOTER ===== */
.site-footer { background: #000; border-top: 1px solid var(--border); padding: 64px 0 32px; margin-top: 80px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 50px; border-bottom: 1px solid var(--border);
}
.footer-grid h5 {
  font-family: "JetBrains Mono"; font-size: 10px; color: var(--text-3);
  letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 18px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 14px; color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-brand .blurb { color: var(--text-2); font-size: 14px; margin: 18px 0 0; max-width: 320px; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: "JetBrains Mono"; font-size: 11px; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 28px 0 0;
  font-family: "JetBrains Mono"; font-size: 11px;
  color: var(--text-3); letter-spacing: 0.12em; text-transform: uppercase;
}
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { color: var(--red); margin: 0 8px; }
.breadcrumb .here { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1180px) { .nav-phone { display: none; } }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  nav.main .row { height: 88px; }
  .logo-mark { width: 96px; height: 68px; }
}
@media (max-width: 980px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav.main .row { height: 76px; }
  nav.main .nav-cta { display: none; }
  .logo-slot { gap: 10px; min-width: 0; flex: 1; }
  .logo-mark { width: 64px; height: 46px; flex-shrink: 0; }
  .logo-text { display: flex; min-width: 0; }
  .logo-text .tag { font-size: 8px; letter-spacing: 0.12em; }
  .logo-text .tag.primary { font-size: 9px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; padding-bottom: 32px; }
  .footer-grid > .footer-brand { grid-column: 1 / -1; }
  .footer-grid > .footer-contacts-col { grid-column: 1 / -1; }
  .footer-grid h5 { font-size: 13px; }
  .footer-grid li { font-size: 12px; margin-bottom: 8px; }
  .footer-brand .blurb { max-width: none; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .container { padding: 0 18px; }
}

/* ===== Car price block (with optional old price strike-through) ===== */
.car-price-block {
  display: flex; flex-direction: column; align-items: flex-end;
  white-space: nowrap;
}
.car-old-price {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: var(--red);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}
@media (max-width: 720px) {
  .car-old-price { font-size: 10px; }
}

/* ===== Footer contacts: 2 sub-cols (phones | addresses) ===== */
.footer-contacts-col { min-width: 0; }
.footer-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.footer-contacts-grid .contact-col { min-width: 0; }
.footer-contacts-grid .contact-op { margin-bottom: 12px; }
.footer-contacts-grid .op-label {
  font-family: "JetBrains Mono"; font-size: 10px;
  color: var(--yellow); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 3px;
}
.footer-contacts-grid .op-num {
  display: block; color: var(--text); font-size: 13px;
  margin-bottom: 2px; white-space: nowrap;
}
.footer-contacts-grid .op-wa {
  display: inline-block; color: var(--yellow); font-size: 12px;
}
.footer-contacts-grid .contact-email {
  margin-top: 6px; font-size: 12px;
  word-break: break-word;
}
.footer-contacts-grid .contact-addr { margin-bottom: 14px; }
.footer-contacts-grid .addr-label {
  color: var(--text); font-weight: 600; font-size: 12px;
  margin-bottom: 3px;
}
.footer-contacts-grid .addr-text {
  color: var(--text-2); font-size: 12px; line-height: 1.5;
}
@media (max-width: 480px) {
  .footer-contacts-grid { gap: 12px; }
  .footer-contacts-grid .op-num { font-size: 12px; }
  .footer-contacts-grid .addr-text { font-size: 11px; }
}
