:root {
  color-scheme: dark;
  --navy-950: #020b16;
  --navy-900: #061422;
  --navy-800: #0a1d31;
  --navy-700: #102840;
  --steel-200: #d9e2eb;
  --steel-300: #b9c6d4;
  --steel-500: #75869a;
  --yellow: #ffc400;
  --yellow-strong: #ffb400;
  --white: #ffffff;
  --line: rgba(217, 226, 235, 0.18);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--navy-950);
  color: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 84px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(2, 11, 22, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  width: clamp(150px, 17vw, 220px);
}

.brand img,
.site-footer img {
  width: 100%;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
  min-width: 0;
  color: var(--steel-200);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.header-call,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.header-call {
  gap: 10px;
  color: var(--white);
  white-space: nowrap;
}

.header-call svg,
.btn svg {
  width: 18px;
  height: 18px;
}

.header-call svg {
  color: var(--yellow);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(650px, calc(94vh - 84px), 820px);
  background: #061422;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./assets/partfix-hero-parts-generated.png") center right / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 48%, rgba(255, 196, 0, 0.12), transparent 25rem),
    linear-gradient(90deg, rgba(2, 11, 22, 0.99) 0%, rgba(2, 11, 22, 0.92) 30%, rgba(2, 11, 22, 0.44) 52%, rgba(2, 11, 22, 0.02) 100%),
    linear-gradient(180deg, rgba(2, 11, 22, 0.22), rgba(2, 11, 22, 0.08));
  content: "";
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  gap: clamp(26px, 3.8vw, 58px);
  align-items: center;
  width: min(calc(100% - 36px), var(--max));
  min-height: clamp(650px, calc(94vh - 84px), 820px);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 74px) 0 42px;
}

.hero-copy {
  min-width: 0;
  max-width: 610px;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(3.1rem, 6.1vw, 5.7rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.96;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
}

.hero h1::after {
  display: block;
  width: 78px;
  height: 5px;
  margin: 34px 0 0;
  background: var(--yellow);
  content: "";
}

.hero p {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--steel-200);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  gap: 10px;
  padding: 0 22px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--yellow);
  color: #07111d;
}

.btn-secondary {
  border: 2px solid var(--yellow);
  color: var(--white);
}

.hero-media {
  display: none;
}

.hero-media::before {
  position: absolute;
  inset: 10% -18% 4% 10%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.12), transparent 62%);
  content: "";
}

.hero-media img {
  width: 100%;
  height: min(620px, 72vh);
  max-height: 660px;
  border-radius: 0;
  object-fit: cover;
  object-position: center bottom;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.42));
}

.categories {
  padding: clamp(42px, 6vw, 74px) clamp(18px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(8, 28, 48, 0.96), rgba(2, 11, 22, 0.98)),
    var(--navy-900);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(28px, 1fr) auto minmax(28px, 1fr);
  gap: clamp(16px, 3vw, 42px);
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto clamp(28px, 4vw, 46px);
}

.section-heading span {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow));
}

.section-heading span:last-child {
  background: linear-gradient(90deg, var(--yellow), transparent);
}

.section-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  font-weight: 950;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

.section-heading.light h2 {
  color: #07111d;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px) 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.category-card:last-child {
  border-right: 0;
}

.category-card svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  color: #86a8ff;
}

.category-card svg path:nth-of-type(2n),
.category-card svg circle:nth-of-type(2n) {
  color: var(--yellow);
}

.category-card h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.04rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.category-card h3::after {
  display: block;
  width: 32px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--yellow);
  content: "";
}

.category-card p {
  margin: 16px 0 0;
  color: var(--steel-300);
  font-size: 0.92rem;
  line-height: 1.5;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  padding: clamp(58px, 8vw, 104px) max(18px, calc((100vw - var(--max)) / 2));
  background: #f7f9fc;
  color: #07111d;
}

.about-copy {
  padding-right: clamp(0px, 3vw, 28px);
}

.about-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  font-weight: 950;
  line-height: 1.02;
  text-transform: uppercase;
}

.about-copy h2::after,
.contact-copy h2::after {
  display: block;
  width: 76px;
  height: 4px;
  margin: 24px 0 0;
  background: var(--yellow);
  content: "";
}

.about-copy p {
  margin: 24px 0 0;
  color: #304154;
  font-size: 1.03rem;
}

.about-media {
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(5, 16, 27, 0.18);
}

.about-media img {
  width: 100%;
  border-radius: 8px;
}

.promise-section {
  padding: clamp(52px, 7vw, 86px) clamp(18px, 4vw, 54px);
  background: #ffffff;
  color: #07111d;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, var(--max));
  margin: 0 auto;
}

.promise-item {
  padding: 0 clamp(24px, 4vw, 48px);
  text-align: center;
  border-right: 1px solid rgba(7, 17, 29, 0.18);
}

.promise-item:last-child {
  border-right: 0;
}

.promise-item svg {
  width: 78px;
  height: 78px;
  margin: 0 auto 22px;
  color: #122b49;
}

.promise-item svg path:last-child {
  color: var(--yellow-strong);
}

.promise-item h3 {
  margin: 0;
  color: #132844;
  font-size: 1.22rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promise-item h3::after {
  display: block;
  width: 34px;
  height: 3px;
  margin: 13px auto 0;
  background: var(--yellow);
  content: "";
}

.promise-item p {
  margin: 18px 0 0;
  color: #405065;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(50px, 7vw, 82px) max(18px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(2, 11, 22, 0.98), rgba(7, 24, 40, 0.86)),
    var(--navy-900);
  border-top: 1px solid var(--line);
}

.contact-copy p {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--steel-200);
}

.contact-list {
  display: grid;
  gap: 18px;
  padding-left: clamp(0px, 4vw, 58px);
  border-left: 2px solid var(--yellow);
}

.contact-list a {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 52px;
  color: var(--white);
  font-size: 1.08rem;
  font-weight: 800;
}

.contact-list svg {
  width: 28px;
  height: 28px;
  color: var(--yellow);
  flex: 0 0 auto;
}

.site-footer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 30px clamp(18px, 4vw, 54px);
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 196, 0, 0.32);
  color: var(--steel-300);
}

.site-footer p {
  margin: 0;
}

.copyright {
  color: var(--steel-500);
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-content,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero::before {
    background-position: 64% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(2, 11, 22, 0.98), rgba(2, 11, 22, 0.78)),
      linear-gradient(180deg, rgba(2, 11, 22, 0.1), rgba(2, 11, 22, 0.58));
  }

  .hero-content {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-media::before {
    inset: 14px -12px -12px 14px;
  }

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

  .category-card:nth-child(2n) {
    border-right: 0;
  }

  .category-card:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .promise-grid {
    grid-template-columns: 1fr;
  }

  .promise-item {
    padding: 32px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 17, 29, 0.18);
  }

  .promise-item:first-child {
    padding-top: 0;
  }

  .promise-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .contact-list {
    padding-left: 0;
    border-left: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer img {
    width: 180px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: auto;
    padding: 12px 16px;
  }

  .brand {
    width: 142px;
  }

  .header-call {
    min-height: 42px;
    font-size: 0;
  }

  .header-call svg {
    width: 22px;
    height: 22px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.72rem;
    overflow-x: visible;
  }

  .hero-content {
    width: min(calc(100% - 28px), var(--max));
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 3.35rem);
  }

  .hero-media::before {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .section-heading span {
    display: none;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .category-card:nth-child(2n),
  .category-card:last-child {
    grid-column: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .category-card:first-child {
    border-top: 0;
  }

  .about-section,
  .contact-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .contact-list a {
    align-items: flex-start;
    font-size: 1rem;
  }
}
