:root {
  --ka-red: #a00000;
  --ka-red-2: #d50000;
  --ka-dark: #07090d;
  --ka-gray: #f5f6f8;
  --ka-border: #e6e6e6;
  --ka-text: #161616;
  --ka-muted: #666;
  --ka-zalo: #0068ff;
}

.ka-home-page {
  background: #fff;
  color: var(--ka-text);
  overflow: hidden;
}

.ka-container {
  width: min(1240px, calc(100% - 32px));
  max-width: 1240px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.ka-hero {
  position: relative;
  min-height: 620px;
  background:
    radial-gradient(circle at 70% 42%, rgba(160,0,0,.38), transparent 34%),
    linear-gradient(90deg, #050608 0%, #11151b 48%, #050608 100%);
  overflow: hidden;
}

.ka-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .45;
}

.ka-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.ka-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ka-subtitle {
  color: #fff;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 8px;
  opacity: .9;
}

.ka-hero-title h1,
.ka-hero h1 {
  color: #fff;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .95;
  margin: 0 0 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

.ka-hero-title h1 span,
.ka-hero h1 span {
  color: #ff1e1e;
}

.ka-search-panel {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(0,0,0,.36);
}

.ka-search-panel h3 {
  margin: 0 0 14px;
  color: var(--ka-red);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.ka-search-panel input,
.ka-search-panel select {
  width: 100%;
  height: 46px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 0 14px;
  margin-bottom: 10px;
  color: #333;
}

.ka-search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ka-search-actions button,
.ka-search-actions a {
  height: 46px;
  border-radius: 8px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
}

.ka-search-actions button {
  background: var(--ka-red);
  color: #fff;
}

.ka-search-actions a {
  background: #fff;
  border: 1px solid var(--ka-zalo);
  color: var(--ka-zalo);
}

.ka-hero-visual {
  position: relative;
  min-height: 440px;
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.55)),
    url('/wp-content/uploads/khoiauto-hero.jpg') center/cover no-repeat;
  box-shadow:
    inset 0 0 120px rgba(0,0,0,.75),
    0 30px 80px rgba(0,0,0,.35);
}

.ka-hero-visual:after {
  content: "RIGHT PART • RIGHT CAR • RIGHT PRICE";
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  letter-spacing: .16em;
}

.ka-tech {
  position: absolute;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  text-transform: uppercase;
}

.ka-tech-1 { top: 32px; left: 28px; }
.ka-tech-2 { top: 86px; left: 76px; }
.ka-tech-3 { top: 140px; left: 36px; }
.ka-tech-4 { right: 28px; top: 56px; }

.ka-trust {
  position: relative;
  z-index: 4;
  margin-top: -46px;
}

.ka-trust-grid > .col {
  padding: 0 7px 14px;
}

.ka-trust-card {
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 38px rgba(0,0,0,.08);
  height: 100%;
}

.ka-icon {
  color: var(--ka-red);
  font-size: 30px;
  margin-bottom: 8px;
}

.ka-trust-card strong {
  display: block;
  color: #111;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.ka-trust-card p {
  margin: 4px 0 0;
  color: var(--ka-muted);
  font-size: 13px;
}

.ka-section {
  background: #fff;
}

.ka-products,
.ka-model-section {
  background: var(--ka-gray);
}

.ka-title {
  text-align: center;
  margin-bottom: 28px;
}

.ka-title h2,
.ka-title-row h2 {
  margin: 0;
  color: #111;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
}

.ka-title h2:after,
.ka-title-row h2:after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--ka-red);
  margin: 12px auto 0;
}

.ka-title h2 span {
  color: var(--ka-red);
}

.ka-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.ka-title-row h2:after {
  margin-left: 0;
}

.ka-title-row a {
  color: var(--ka-red);
  font-weight: 900;
  text-decoration: none;
}

.ka-step-card {
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
  height: 100%;
}

.ka-step-number {
  width: 44px;
  height: 44px;
  background: var(--ka-red);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.ka-step-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.ka-step-card p {
  color: var(--ka-muted);
  margin: 0;
}

.ka-brand-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.ka-brand-grid a {
  min-height: 108px;
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #111;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  transition: .25s ease;
}

.ka-brand-grid a:hover {
  color: var(--ka-red);
  border-color: var(--ka-red);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(160,0,0,.12);
}

.ka-model-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.ka-model-card {
  min-height: 150px;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.82)),
    url('/wp-content/uploads/khoiauto-model.jpg') center/cover no-repeat;
}

.ka-model-card strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
}

.ka-model-card span {
  display: block;
  color: rgba(255,255,255,.82);
}

.ka-home-page .product-small .box {
  background: #fff;
  border: 1px solid var(--ka-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.04);
  transition: .25s ease;
}

.ka-home-page .product-small .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(0,0,0,.09);
}

.ka-home-page .product-small .box-text {
  padding: 14px;
}

.ka-home-page .product-title a {
  color: #8b0000;
  font-weight: 800;
}

.ka-home-page .price,
.ka-home-page .price .amount {
  color: #111;
  font-weight: 900;
}

.ka-why {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.72)),
    url('/wp-content/uploads/khoiauto-garage.jpg') center/cover no-repeat;
}

.ka-why-grid {
  align-items: center;
}

.ka-why h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
}

.ka-why h2 span {
  color: #ff2a2a;
}

.ka-why-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ka-why-list div {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  border-radius: 16px;
  padding: 20px;
}

.ka-why-list strong {
  display: block;
  color: #fff;
  text-transform: uppercase;
}

.ka-why-list p {
  color: rgba(255,255,255,.72);
  margin-bottom: 0;
}

.ka-why-visual {
  min-height: 320px;
  border-radius: 22px;
  border: 1px solid rgba(0,174,255,.4);
  background:
    radial-gradient(circle, rgba(0,104,255,.16), transparent 46%),
    rgba(255,255,255,.04);
  display: grid;
  place-items: center;
}

.ka-why-visual span {
  color: #7ed7ff;
  border: 1px solid rgba(0,174,255,.5);
  border-radius: 18px;
  padding: 28px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.ka-zalo {
  color: #fff;
  background: linear-gradient(90deg, #970000, #e00000);
}

.ka-zalo h2 {
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}

.ka-zalo p {
  color: rgba(255,255,255,.82);
  margin: 0;
}

.ka-zalo a {
  background: #fff;
  color: var(--ka-red);
  border-radius: 10px;
  padding: 14px 24px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .ka-hero,
  .ka-hero-inner {
    min-height: auto;
  }

  .ka-hero {
    padding: 56px 0 90px;
  }

  .ka-brand-grid,
  .ka-model-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ka-title-row {
    display: block;
  }

  .ka-why-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ka-search-actions,
  .ka-brand-grid,
  .ka-model-grid {
    grid-template-columns: 1fr;
  }

  .ka-hero h1 {
    font-size: 36px;
  }

  .ka-hero-visual {
    min-height: 260px;
  }

  .ka-zalo a {
    display: inline-flex;
    margin-top: 16px;
  }
}