:root {
  --red: #d71920;
  --red-dark: #a70f15;
  --ink: #121820;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 14px 40px rgba(16, 24, 40, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  color: var(--white);
  background: #20242a;
  font-size: 13px;
  font-weight: 600;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  box-shadow: 0 3px 20px rgba(0, 0, 0, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 118px;
  height: 42px;
  object-fit: contain;
}

.brand-logo + .fallback-mark {
  display: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 750;
}

.menu a {
  padding: 28px 0;
}

.menu a:hover {
  color: var(--red);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slider::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .38), rgba(0, 0, 0, .08)),
    linear-gradient(0deg, rgba(0, 0, 0, .32), rgba(0, 0, 0, 0));
}

.hero-slide {
  background-color: #f2f4f7;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .7s ease, transform 3.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-dots {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--red);
}

.hero-content {
  position: relative;
  display: flex;
  min-height: 620px;
  max-width: 1180px;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffdbdf;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: 84px;
  line-height: .95;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 28px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 500;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  color: var(--white);
  background: var(--red);
}

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

.btn.light {
  color: var(--ink);
  background: var(--white);
}

.btn.full {
  width: 100%;
}

.btn:disabled {
  cursor: wait;
  opacity: .72;
}

.quick-actions {
  position: relative;
  z-index: 5;
  margin-top: -44px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quick-grid a {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  font-weight: 800;
  text-align: center;
}

.quick-grid a:last-child {
  border-right: 0;
}

.quick-grid span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
}

.section {
  padding: 76px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section h2,
.band h2,
.lead-band h2 {
  margin-bottom: 0;
  font-size: 40px;
  line-height: 1.16;
}

.text-link {
  color: var(--red);
  font-weight: 800;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.car-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.car-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #f2f4f7;
}

.car-card > div {
  padding: 16px;
}

.car-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.car-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.model-card-media {
  display: block;
}

.model-summary {
  min-height: 52px;
  font-size: 14px;
  font-weight: 500 !important;
}

.model-hero {
  padding: 72px 0;
  background: linear-gradient(90deg, #151a21, #2a3038);
  color: var(--white);
}

.model-hero-layout {
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 48px;
  align-items: center;
}

.model-hero h1 {
  margin-bottom: 14px;
  font-size: 64px;
}

.model-hero p:not(.eyebrow) {
  max-width: 600px;
  color: #d7dbe2;
  font-size: 19px;
}

.model-hero img {
  width: 100%;
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.variant-list {
  display: grid;
  gap: 14px;
}

.variant-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.variant-card h3 {
  margin-bottom: 4px;
  font-size: 22px;
}

.variant-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.spec-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.spec-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-card strong {
  display: block;
  font-size: 21px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.highlight-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.highlight-card h3 {
  margin-bottom: 12px;
  color: var(--red);
}

.highlight-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: #344054;
}

.source-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.source-note a {
  color: var(--red);
  font-weight: 800;
}

.color-section {
  background: #fff;
}

.color-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #1f2937;
  margin-bottom: 20px;
}

.color-tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 14px;
  background: transparent;
  color: #1f2937;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.color-tabs button.is-active {
  border-color: var(--red);
}

.color-view {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
}

.color-price {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 21px;
  font-weight: 800;
}

.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.color-swatches button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: visible;
}

.color-swatches button.is-active {
  outline: 3px solid rgba(215, 25, 32, .22);
}

.color-swatches span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #d0d5dd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.color-swatches button::after {
  position: absolute;
  inset: 0;
  border: 2px solid #98a2b3;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.color-swatches button.is-active::after {
  border-color: var(--red);
  border-width: 3px;
}

.color-car-preview {
  text-align: center;
  background: #fff !important;
}

.color-car-preview img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}

.color-car-preview p {
  margin-top: 12px;
  color: #475467;
  font-weight: 700;
}

.toyota-gallery-section {
  background: #111827;
  color: var(--white);
}

.toyota-gallery-section .eyebrow {
  color: #ffb3b8;
}

.toyota-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 14px;
}

.toyota-gallery a {
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

.toyota-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .25s ease;
}

.toyota-gallery a:first-child {
  grid-row: span 2;
}

.toyota-gallery a:first-child img {
  height: 514px;
}

.toyota-gallery a:hover img {
  transform: scale(1.04);
}

.feature-group {
  padding-bottom: 54px;
}

.feature-group:last-child {
  padding-bottom: 0;
}

.feature-group .section-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(16, 24, 40, .07);
}

.feature-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2f4f7;
}

.feature-image-card div {
  padding: 18px;
}

.feature-image-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.feature-image-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-actions a {
  flex: 1;
  min-width: 110px;
  border: 1px solid var(--red);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--red);
  font-weight: 800;
  text-align: center;
}

.card-actions a:hover {
  color: var(--white);
  background: var(--red);
}

.band,
.lead-band {
  padding: 72px 0;
  background: var(--soft);
}

.band#calculator {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(10, 17, 27, .88), rgba(10, 17, 27, .58)),
    url("assets/banners/calculator-toyota-bg.webp") center / cover;
}

.band#calculator .eyebrow,
.band#calculator .calc-layout p {
  color: rgba(255, 255, 255, .82);
}

.band#calculator .calculator p,
.band#calculator .calculator-note {
  color: #475467;
}

.calc-layout,
.lead-layout {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 42px;
  align-items: center;
}

.calc-layout p,
.lead-layout p {
  color: var(--muted);
}

.calculator,
.lead-form {
  display: grid;
  gap: 16px;
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: var(--white);
}

.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.tax-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: var(--soft);
}

.tax-note strong {
  color: var(--red);
}

.result strong {
  color: var(--red);
  font-size: 24px;
}

.calculator-note {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.55;
}

.calculator-note a {
  color: var(--red);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-grid a {
  border-left: 4px solid var(--red);
  border-radius: 8px;
  padding: 22px;
  background: var(--soft);
  font-weight: 800;
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-nav {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: .2s ease;
}

.gallery-nav:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.handover-slider {
  position: relative;
}

.handover-slide {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.handover-slide.is-active {
  display: grid;
}

.handover-slide img {
  width: 100%;
  height: 255px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: #c8cdd5;
  cursor: pointer;
}

.gallery-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--red);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-grid article:hover {
  border-color: rgba(225, 15, 30, .34);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.news-grid a {
  display: block;
  height: 100%;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}

.news-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 18px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--soft);
}

.news-grid time {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-weight: 800;
}

.news-grid h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.32;
}

.news-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.lead-band {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 24, 32, .86), rgba(18, 24, 32, .58)),
    url("assets/banners/lead-land-cruiser-white.jpg") center / cover;
}

.lead-band .eyebrow,
.lead-band p {
  color: #f5c8cc;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  margin-right: 10px;
  color: #ff6a70;
  font-weight: 900;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.footer {
  padding: 48px 0 24px;
  color: #d7dbe2;
  background: #151a21;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}

.footer h2,
.footer h3 {
  color: var(--white);
  line-height: 1.25;
}

.footer a,
.footer p {
  display: block;
  margin: 0 0 8px;
  color: #d7dbe2;
}

.copyright {
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 18px;
  font-size: 14px;
}

.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  gap: 8px;
}

.floating-actions a {
  display: grid;
  min-width: 76px;
  min-height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-weight: 900;
}

.floating-actions .facebook-link {
  background: #1877f2;
}

.thank-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 17, 27, .68);
}

.thank-modal[hidden] {
  display: none;
}

.thank-modal__box {
  position: relative;
  width: min(100%, 430px);
  border-radius: 10px;
  padding: 30px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  text-align: center;
}

.thank-modal__box h2 {
  margin: 6px 0 12px;
  font-size: 28px;
}

.thank-modal__box p:not(.eyebrow) {
  margin-bottom: 22px;
  color: var(--muted);
}

.thank-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .topbar-inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
  }

  .hero,
  .hero-content {
    min-height: 560px;
  }

  h1 {
    font-size: 56px;
    line-height: 1;
  }

  .section h2,
  .band h2,
  .lead-band h2 {
    font-size: 34px;
  }

  .quick-grid,
  .car-grid,
  .spec-grid,
  .highlight-grid,
  .color-view,
  .toyota-gallery,
  .feature-image-grid,
  .service-grid,
  .news-grid,
  .footer-grid,
  .calc-layout,
  .lead-layout,
  .model-hero-layout,
  .variant-card {
    grid-template-columns: 1fr;
  }

  .model-hero h1 {
    font-size: 46px;
  }

  .toyota-gallery a:first-child {
    grid-row: auto;
  }

  .toyota-gallery img,
  .toyota-gallery a:first-child img {
    height: 240px;
  }

  .quick-actions {
    margin-top: 0;
  }

  .quick-grid a {
    justify-content: flex-start;
    min-height: 66px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .gallery-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .handover-slide {
    grid-template-columns: 1fr;
  }

  .handover-slide img {
    height: 260px;
  }

  .floating-actions {
    right: 10px;
    bottom: 10px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero p:not(.eyebrow) {
    font-size: 18px;
  }

  h1 {
    font-size: 44px;
  }

  .section h2,
  .band h2,
  .lead-band h2 {
    font-size: 29px;
  }

  .section,
  .band,
  .lead-band {
    padding: 54px 0;
  }

  .calculator,
  .lead-form {
    padding: 18px;
  }
}
