:where(main) *:not(h1, h2, p, .text-block) {
  margin: 0 !important;
}

.main-wrapper {
  max-width: 1080px;
  margin: 0 auto !important;
  padding: 80px 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 900;
  margin-top: 0;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  letter-spacing: 2px;
  -webkit-text-stroke: 2px #000000;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 60px;
  height: 4px;
  background-color: #000000;
}

.center-title-wrapper {
  text-align: center;
  margin-bottom: 40px;
}
.center-title-wrapper .section-title::after {
  right: 50%;
  transform: translateX(50%);
}

.text-block {
  max-width: 900px;
  margin: 0 auto 60px auto;
  text-align: center;
}
.text-block p {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.8;
  font-weight: 400;
}

.intro-subtitle {
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: 1px;
  -webkit-text-stroke: 1px #000000;
}

.intro-block:not(.cars-grid) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
  grid-template-areas: "image text";
  overflow: visible;
}

.intro-text p {
  order: 2 !important;
  font-size: 17px;
  margin-bottom: 15px;
  line-height: 1.7;
  grid-area: text;
}

.intro-image {
  order: 1 !important;
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border: 1px solid #000000;
  grid-area: image;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px;
  margin-top: 20px;
}

.car-card {
  border: 1px solid #000000;
  background-color: #ffffff !important;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}
.car-card:hover {
  transform: translateY(-5px);
}
.car-card:hover::after {
  width: 100%;
}
.car-card:hover .car-image img {
  transform: scale(1.05);
}
.car-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  height: 5px;
  width: 0;
  background-color: #000000;
  z-index: 4;
  transition: width 0.4s ease-out;
}
.car-card h3 {
  font-size: 24px;
  font-weight: 900;
  /* a little air above and below the name (the page-wide margin reset needs the important) */
  margin: 14px 0 16px !important;
}

.car-image {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}
.car-image img {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.5s ease;
}

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 35px;
  background: #000000;
  color: #ffffff !important;
  border: 2px solid #000000;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
  width: 100%;
}
.btn-dark .arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.btn-dark .arrow svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: #000000;
  stroke-width: 2.2;
  transition: stroke 0.35s ease;
}
.btn-dark:hover {
  color: #000000 !important;
  background: #ffffff !important;
  border-color: #000000 !important;
}
.btn-dark:hover .arrow {
  background: #000000 !important;
}
.btn-dark:hover .arrow svg {
  stroke: #ffffff !important;
}

@media (max-width: 900px) {
  .intro-block:not(.cars-grid) {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    grid-template-areas: "text" "image";
  }
  .cars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .main-wrapper {
    padding: 48px 20px;
  }
}
@media (max-width: 600px) {
  .cars-grid {
    grid-template-columns: 1fr !important;
  }
  .section-title {
    font-size: 26px;
  }
}

/* The car-size buttons: taller and dark; on hover they turn light */
body .car-card .btn-dark {
  min-height: 56px;
  padding: 17px 35px;
  border-color: #111111;
  background: #111111;
  color: #ffffff !important;
}
body .car-card .btn-dark .arrow {
  background: #ffffff;
}
body .car-card .btn-dark .arrow svg {
  stroke: #111111;
}
body .car-card .btn-dark:hover,
body .car-card .btn-dark:focus-visible {
  border-color: #111111 !important;
  background: #ffffff !important;
  color: #111111 !important;
}
body .car-card .btn-dark:hover .arrow,
body .car-card .btn-dark:focus-visible .arrow {
  background: #111111;
}
body .car-card .btn-dark:hover .arrow svg,
body .car-card .btn-dark:focus-visible .arrow svg {
  stroke: #ffffff !important;
}

/* ===== the price list (javascript/price-list.js) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.price-list {
  margin-top: 90px !important;
}
.price-list .center-title-wrapper {
  margin-bottom: 36px !important;
}
.price-list .price-list__gap {
  margin-top: 70px !important;
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-top: 3px solid #d32f3b;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  text-align: center;
}
.price-table th,
.price-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #ececef;
  font-size: 16px;
}
.price-table thead th {
  background: #0a0a0a;
  color: #ffffff;
  font-weight: 800;
}
.price-table thead th small,
.price-table tbody th small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
}
.price-table thead th small {
  color: #b9b9c0;
}
.price-table tbody th {
  text-align: right;
  font-weight: 800;
}
.price-table tbody th small {
  color: #b3242f;
}
.price-table tbody td {
  font-weight: 700;
}
.price-table tbody tr {
  transition: background-color 0.2s ease;
}
.price-table tbody tr:hover {
  /* the soft reddish gradient (strongest at the start of the row, fading out); the cells inside stay transparent */
  background: linear-gradient(to left, rgba(211, 47, 59, 0.1), rgba(211, 47, 59, 0) 90%);
}
.price-table th,
.price-table td {
  background: transparent;
}
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}
.price-table tr.is-agent td[colspan] {
  color: #555555;
  font-weight: 600;
}

.price-note {
  max-width: 820px;
  margin: 18px auto 0 !important;
  color: #666666;
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.price-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px !important;
}

.price-cta {
  display: inline-block;
  padding: 11px 26px;
  border: 2px solid #111111;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.price-cta:hover,
.price-cta:focus-visible {
  border-color: #111111;
  background: #ffffff;
  color: #111111;
  transform: translateY(-2px);
}
.price-cta--ghost {
  background: transparent;
  color: #111111;
}
.price-cta--ghost:hover,
.price-cta--ghost:focus-visible {
  background: #111111;
  color: #ffffff;
}

.price-addons,
.price-travel {
  max-width: 860px;
  margin: 0 auto !important;
  list-style: none;
}
.price-addons li,
.price-travel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
  background: transparent;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.price-addons li:hover,
.price-travel li:hover {
  border-bottom-color: #111111;
  background: linear-gradient(to left, rgba(211, 47, 59, 0.1), rgba(211, 47, 59, 0) 90%);
  transform: translateX(-4px);
}
/* the boxes that hold the title and the text have no background of their own, so the gradient is not seen as a box behind them */
.price-addons li div,
.price-addons li strong,
.price-addons li span,
.price-travel li span {
  background: transparent !important;
}
.price-addons strong {
  display: block;
  font-size: 16px;
}
.price-addons span {
  display: block;
  margin-top: 2px;
  color: #666666;
  font-size: 13.5px;
  line-height: 1.6;
}
.price-addons em,
.price-travel em {
  flex-shrink: 0;
  padding: 4px 14px;
  border: 1px solid rgba(128, 128, 128, 0.4);
  border-radius: 999px;
  background: transparent;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.price-travel span {
  font-weight: 600;
}

@media (max-width: 600px) {
  .price-table th,
  .price-table td {
    padding: 12px 6px;
    font-size: 14px;
  }
  .price-addons li,
  .price-travel li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
