:root {
  --ink: #05070d;
  --ink-soft: #111827;
  --navy: #14171d;
  --red: #e60012;
  --red-soft: #ff4b55;
  --white: #f7fbff;
  --muted: #a9b9ca;
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(5, 10, 20, 0.66);
  --shadow: 0 24px 80px rgba(120, 0, 10, 0.26);
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--white);
  background: var(--ink);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.96), rgba(20, 23, 29, 0.86) 45%, #05070d 100%),
    var(--ink);
  color: var(--white);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-glow {
  display: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px clamp(22px, 4vw, 54px) 14px;
  border-bottom: 1px solid rgba(5, 7, 13, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  transition: transform 240ms ease, opacity 240ms ease;
}

.nav-shell {
  position: relative;
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-link {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 12px;
  min-width: 0;
  direction: rtl;
  color: var(--ink);
}

.brand-copy {
  display: grid;
  gap: 1px;
  text-align: center;
}

.brand-copy strong {
  direction: ltr;
  text-align: center;
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-copy small {
  display: none;
  color: #566171;
  font-size: 0.76rem;
}

.nav-links {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-links a {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  color: #151923;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: transparent;
  color: var(--red);
  transform: translateY(-1px);
}

.logo-slot {
  grid-column: 1;
  justify-self: start;
  width: 116px;
  min-width: 72px;
  height: 34px;
  border: 1px dashed rgba(5, 7, 13, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.62);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(5, 7, 13, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: block;
  direction: ltr;
  padding: 96px clamp(22px, 5vw, 76px) 36px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6f7f9 70%, #ffffff 100%);
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 106px;
  width: min(940px, 88vw);
  height: 96px;
  z-index: 1;
  opacity: 0.72;
  background:
    radial-gradient(ellipse at center, rgba(5, 7, 13, 0.18), transparent 68%),
    linear-gradient(90deg, transparent, rgba(230, 0, 18, 0.18), transparent);
  filter: blur(18px);
  transform: translateX(-50%);
  animation: roadPulse 4600ms ease-in-out infinite;
}

.hero-media,
.hero-media img {
  position: absolute;
}

.hero-media {
  left: 50%;
  bottom: 104px;
  z-index: 3;
  width: min(910px, 88vw);
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-media img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 34px 30px rgba(5, 7, 13, 0.24));
}

.hero-motion {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-motion span {
  position: absolute;
  left: -30%;
  width: 34%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(5, 7, 13, 0.18), rgba(230, 0, 18, 0.46), transparent);
  box-shadow: 0 0 20px rgba(230, 0, 18, 0.2);
  transform: rotate(-8deg);
  animation: scanDrive 5600ms linear infinite;
}

.hero-motion span:nth-child(1) {
  top: 34%;
}

.hero-motion span:nth-child(2) {
  top: 48%;
  animation-delay: 1350ms;
  opacity: 0.75;
}

.hero-motion span:nth-child(3) {
  top: 65%;
  animation-delay: 2850ms;
  opacity: 0.58;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1160px;
  margin: 0 auto;
  direction: ltr;
  text-align: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--red);
  font-weight: 900;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--red);
}

.eyebrow::before {
  display: none;
}

.hero-title {
  margin: 0;
  max-width: none;
  color: #07090d;
  font-size: 8.15rem;
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: 0;
  direction: ltr;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-title span {
  display: block;
  margin-top: 0;
  font-size: inherit;
  line-height: inherit;
  direction: ltr;
}

.mitsubishi-emblem {
  position: absolute;
  top: clamp(300px, 37vh, 370px);
  left: 50%;
  z-index: 2;
  width: clamp(160px, 20vw, 280px);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 20px 26px rgba(230, 0, 18, 0.24));
}

.mitsubishi-emblem img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-bottom {
  position: absolute;
  right: clamp(22px, 5vw, 76px);
  bottom: 34px;
  left: clamp(22px, 5vw, 76px);
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 22px;
  direction: ltr;
}

.hero-copy {
  direction: rtl;
  text-align: right;
  color: #171b24;
}

.hero-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  font-weight: 900;
}

.hero-copy p {
  margin: 0;
  color: #4a5362;
  font-size: 0.84rem;
  line-height: 1.85;
}

.hero-actions {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0;
}

.hero-plus {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(5, 7, 13, 0.2);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(5, 7, 13, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button svg,
.icon-button svg,
.hero-plus svg,
.service-item svg,
.contact-methods svg,
.read-more svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #07090d;
  color: var(--white);
  box-shadow: 0 14px 36px rgba(5, 7, 13, 0.18);
}

.button-primary:hover {
  background: var(--red);
}

.button-ghost {
  border-color: rgba(5, 7, 13, 0.2);
  background: #fff;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: rgba(230, 0, 18, 0.48);
  background: rgba(230, 0, 18, 0.08);
}

.drive-line {
  display: none;
}

.drive-line span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--red-soft), var(--white));
  animation: driveLine 2600ms ease-in-out infinite;
}

.about,
.magazine,
.contact {
  padding: clamp(84px, 12vw, 150px) clamp(18px, 5vw, 76px);
}

.about {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(230, 0, 18, 0.14), transparent 34%),
    linear-gradient(180deg, #05070d 0%, #101115 100%);
}

.about::before {
  content: "";
  position: absolute;
  inset: 54px clamp(18px, 5vw, 76px) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 0, 18, 0.4), transparent);
}

.about > * {
  position: relative;
}

.about-grid,
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.82fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
}

.section-title {
  max-width: 850px;
  margin: 0;
  font-size: 4.15rem;
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: 0;
}

.section-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(247, 251, 255, 0.75);
  font-size: 1.12rem;
  line-height: 2.05;
}

.service-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.service-item {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(230, 0, 18, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--red-soft), transparent);
}

.service-item svg {
  color: var(--red-soft);
}

.service-item h3 {
  margin: 16px 0 10px;
  font-size: 1.12rem;
}

.service-item p {
  margin: 0;
  color: rgba(247, 251, 255, 0.68);
  line-height: 1.9;
}

.about-visual {
  position: relative;
  align-self: stretch;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-badge {
  position: absolute;
  inset: auto 20px 20px;
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 7, 13, 0.74);
  backdrop-filter: blur(18px);
}

.visual-badge strong {
  direction: ltr;
  color: var(--red-soft);
  font-size: 1.45rem;
  font-weight: 900;
}

.visual-badge span {
  color: rgba(247, 251, 255, 0.78);
  line-height: 1.8;
}

.magazine {
  background: #f7fbff;
  color: var(--ink);
}

.magazine .section-kicker,
.magazine .section-lead {
  color: #4b617a;
}

.magazine .section-kicker::before {
  background: var(--red);
}

.magazine-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.magazine-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-width: 76px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid rgba(7, 27, 58, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #27384c;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.mag-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid rgba(7, 27, 58, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 70px rgba(5, 20, 42, 0.08);
  transition: transform 240ms ease, opacity 240ms ease, box-shadow 240ms ease;
}

.mag-card.is-hidden {
  display: none;
}

.mag-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 90px rgba(0, 77, 168, 0.16);
}

.mag-card.is-featured {
  grid-column: span 2;
}

.mag-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mag-card-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.mag-card-body span {
  justify-self: start;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(230, 0, 18, 0.1);
  color: #b00012;
  font-size: 0.82rem;
  font-weight: 900;
}

.mag-card h3 {
  margin: 0;
  color: #071221;
  font-size: 1.36rem;
  line-height: 1.55;
}

.mag-card p,
.mag-extra {
  margin: 0;
  color: #516276;
  line-height: 1.95;
}

.read-more {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(230, 0, 18, 0.24);
  border-radius: 8px;
  background: rgba(230, 0, 18, 0.06);
  color: #b00012;
  font-weight: 900;
  cursor: pointer;
}

.mag-extra {
  display: none;
  padding-top: 12px;
  border-top: 1px solid rgba(7, 27, 58, 0.1);
}

.mag-card.is-expanded .mag-extra {
  display: block;
}

.mag-card.is-expanded .read-more svg {
  transform: rotate(45deg);
}

.contact {
  background:
    linear-gradient(180deg, #f7fbff 0%, #101115 0%, #05070d 100%);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(247, 251, 255, 0.76);
  font-weight: 800;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(3, 8, 18, 0.62);
  color: var(--white);
  outline: none;
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form select {
  color-scheme: dark;
}

.contact-form textarea {
  min-height: 124px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(247, 251, 255, 0.38);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(230, 0, 18, 0.8);
  box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.14);
}

.form-status {
  grid-column: 1 / -1;
  min-height: 24px;
  margin: 0;
  color: var(--red-soft);
  font-weight: 800;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-methods a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 251, 255, 0.84);
}

.contact-methods svg {
  color: var(--red-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 76px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #030712;
  color: rgba(247, 251, 255, 0.62);
}

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

.site-footer strong {
  direction: ltr;
  color: var(--white);
}

.footer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-actions p {
  margin: 0;
  line-height: 1.8;
}

.footer-actions p strong {
  color: var(--white);
  font-weight: 900;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(230, 0, 18, 0.26);
  border-radius: 8px;
  background: rgba(230, 0, 18, 0.08);
  color: var(--red-soft);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 0, 18, 0.58);
  background: rgba(230, 0, 18, 0.14);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-social .telegram-icon {
  fill: currentColor;
  stroke: none;
}

.footer-social .stroke-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-footer a {
  color: var(--red-soft);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driveLine {
  0% {
    transform: translateX(120%);
  }
  55%,
  100% {
    transform: translateX(-280%);
  }
}

@keyframes scanDrive {
  0% {
    transform: translateX(0) rotate(-8deg);
  }
  100% {
    transform: translateX(360vw) rotate(-8deg);
  }
}

@keyframes roadPulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.52;
    transform: translateX(-50%) translateY(-10px);
  }
}

@media (max-width: 1040px) {
  .nav-shell {
    grid-template-columns: minmax(58px, auto) minmax(0, 1fr) 44px;
  }

  .menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
    border: 1px solid rgba(5, 7, 13, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 48px rgba(5, 7, 13, 0.12);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    min-width: 0;
  }

  .hero {
    min-height: 100svh;
    padding-top: 88px;
  }

  .hero-title {
    font-size: 6rem;
  }

  .hero-media {
    bottom: 138px;
    width: min(820px, 92vw);
  }

  .mitsubishi-emblem {
    top: 350px;
    width: clamp(165px, 22.5vw, 238px);
  }

  .section-title {
    font-size: 3.25rem;
  }

  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .about-visual {
    min-height: 520px;
  }

  .magazine-head {
    align-items: start;
    flex-direction: column;
  }

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

@media (max-width: 720px) {
  .site-header {
    padding: 12px 14px;
  }

  .nav-shell {
    min-height: 46px;
    gap: 8px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    max-width: 164px;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
  }

  .logo-slot {
    width: 58px;
    min-width: 58px;
    height: 38px;
  }

  .hero {
    min-height: 820px;
    padding: 82px 16px 28px;
  }

  .hero-title {
    font-size: 3.55rem;
    line-height: 0.9;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.76rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2.35rem;
  }

  .hero-media {
    bottom: 286px;
    width: 118%;
  }

  .mitsubishi-emblem {
    top: 250px;
    width: 155px;
  }

  .mag-card h3 {
    font-size: 1.18rem;
  }

  .hero-bottom {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    margin-top: 330px;
    gap: 14px;
  }

  .hero-actions {
    grid-column: auto;
    justify-content: stretch;
    width: 100%;
  }

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

  .hero-plus {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .magazine-filters {
    width: 100%;
  }

  .service-rail,
  .magazine-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .about,
  .magazine,
  .contact {
    padding: 72px 16px;
  }

  .about-visual {
    min-height: 430px;
  }

  .mag-card,
  .mag-card.is-featured {
    grid-column: auto;
  }

  .mag-card {
    grid-template-rows: 210px 1fr;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    padding: 24px 16px;
  }

  .footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 2.85rem;
  }

  .hero-media {
    bottom: 304px;
  }

  .mitsubishi-emblem {
    top: 232px;
    width: 130px;
  }

  .section-title {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
