.hero {
  position: relative;
  min-height: 45rem;
  overflow: hidden;
  padding-block: 6rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 6rem;
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #11111175;
  pointer-events: none;
}

.hero__content,
.hero__filter {
  position: relative;
  z-index: 1;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  color: white;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero__subtitle {
  margin: 0;
  max-width: 36rem;
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.hero__action {
  margin-top: 0.25rem;
}

.hero__filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__filter .auction-filter {
  margin-bottom: 0;
}

.filter {
  border-radius: 1.5rem;
  background-color: white;
  padding: 1rem;
  box-shadow: 0 0.625rem 0.75rem rgb(0 0 0 / 10%);
}

.filter__fields {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.filter__field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.filter__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}

.filter__field select,
.filter__range select {
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23798383' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.875rem;
  padding-right: 2.5rem;
  cursor: default;
}

.filter__range {
  display: flex;
  gap: 0.5rem;
}

.filter__range select {
  flex: 1 1 0;
  min-width: 0;
}

.filter__submit {
  flex-shrink: 0;
  width: 13.125rem;
}

.filter__meta {
  margin: 0;
  color: white;
  font-size: 0.875rem;
  font-weight: 400;
}

.filter__meta strong {
  font-weight: 600;
}

.lead .wpcf7 form .wpcf7-response-output {
  color: white;
}

.lead {
  padding-block: 5rem;
}

.lead__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 4rem;
  border-radius: 2.5rem;
  background-color: var(--text);
}

.lead__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 50rem;
  text-align: center;
  color: white;
}

.lead__title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.lead__subtitle {
  margin: 0;
  color: #a3a3a3;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.lead__form {
  width: 100%;
}

.lead__form .wpcf7-form {
  display: flex;
  gap: 1rem;
  align-items: end;
}

.lead__form p {
  margin: 0;
}

.lead__form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  color: #a3a3a3;
}

.lead .wpcf7-spinner {
  position: absolute;
}

@media (max-width: 768px) {
  .lead .wpcf7-spinner {
    position: relative;
  }
}

.lead__form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.lead__form input[type="text"],
.lead__form input[type="tel"],
.lead__form input[type="email"] {
  width: 100%;
  border: none;
  border-radius: 999px;
  background-color: white;
  color: var(--text);
}

.lead__form input[type="text"]::placeholder,
.lead__form input[type="tel"]::placeholder,
.lead__form input[type="email"]::placeholder {
  color: var(--gray);
}

.lead__form input[type="submit"],
.lead__form .wpcf7-submit {
  width: 100%;
  line-height: 1.3125 !important;
  border: 2px solid var(--primary) !important;
}

.lead__form .wpcf7-not-valid-tip {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: none;
  color: var(--primary);
}

.lead__form .wpcf7-response-output {
  margin: 0;
  border-radius: var(--rounded);
}

.lead__form input[type="submit"]:hover,
.lead__form .wpcf7-submit:hover {
  border-color: white;
}

.purchase {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
  padding-block: 7.5rem;
}

.purchase__header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.purchase__title {
  margin: 0;
  font-size: 3.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.purchase__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray);
}

.purchase__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: clip;
}

.purchase__card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 12rem;
  padding: 2rem;
  border: 1px solid #eeebde;
  border-radius: 1.5rem;
  background-color: var(--bg-gray);
  overflow: hidden;
}

.purchase__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.purchase__number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.purchase__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background-color: white;
  color: var(--primary);
}

.purchase__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.purchase__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.purchase__card-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.purchase__card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.575;
  color: var(--gray);
}

.articles {
  padding-block: 7.5rem;
  background-color: var(--bg-gray);
}

.articles__inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.articles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.articles__intro {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.articles__title {
  margin: 0;
  font-size: 3.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.articles__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray);
}

.articles__all {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 400ms;
}

.articles__all:hover,
.articles__all:focus,
.articles__all:active {
  color: var(--text);
}

.articles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.articles__item {
  min-width: 0;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 3.75rem;
  padding-block: 7.5rem;
}

.about__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about__intro {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.about__title {
  margin: 0;
  font-size: 3.125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.about__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray);
}

.about__all {
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 400ms;
}

.about__all:hover,
.about__all:focus,
.about__all:active {
  color: var(--text);
}

.about__body {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.about__media {
  flex: 0 0 43.75rem;
  max-width: 43.75rem;
  overflow: hidden;
  border-radius: 1.5rem;
}

.about__image {
  display: block;
  width: 100%;
  height: 25rem;
  max-width: none;
  object-fit: cover;
}

.about__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.about__content-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.about__content-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--gray);
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 12.5rem;
}

.about__stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
  white-space: nowrap;
}

.about__stat-label {
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--gray);
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .articles__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about__media {
    flex-basis: 36rem;
    max-width: 36rem;
  }

  .about__image {
    height: 22rem;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 38rem;
    padding-block: 4rem 3rem;
    gap: 3.5rem;
    justify-content: flex-end;
  }

  .filter__fields {
    flex-wrap: wrap;
  }

  .filter__field {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .filter__submit {
    width: 100%;
  }

  .lead {
    padding-block: 4rem;
  }

  .lead__card {
    padding: 2.5rem 2rem;
    border-radius: 2rem;
    gap: 2rem;
  }

  .lead__title {
    font-size: 1.875rem;
  }

  .lead__form .wpcf7-form {
    flex-wrap: wrap;
  }

  .lead__form .wpcf7-form > p {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .lead__form .wpcf7-form > p:has(input[type="submit"]),
  .lead__form .wpcf7-form > p:has(.wpcf7-submit) {
    flex: 1 1 100%;
  }

  .purchase,
  .articles,
  .about {
    padding-block: 5rem;
    gap: 2.5rem;
  }

  .purchase__title,
  .articles__title,
  .about__title {
    font-size: 2.5rem;
  }

  .purchase__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .articles__header,
  .about__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .about__body {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
  }

  .about__media {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .about__image {
    height: 20rem;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 32rem;
    padding-block: 3rem 2rem;
    gap: 2.5rem;
  }

  .hero__content {
    gap: 1rem;
  }

  .hero__title {
    font-size: 1.875rem;
  }

  .hero__subtitle {
    font-size: 0.9375rem;
  }

  .filter {
    border-radius: 1rem;
    padding: 0.875rem;
  }

  .filter__fields {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter__field {
    flex: 1 1 auto;
  }

  .filter__meta {
    font-size: 0.8125rem;
  }

  .lead {
    padding-block: 3rem;
  }

  .lead__card {
    padding: 1.75rem 1.25rem;
    border-radius: 1.5rem;
    gap: 1.5rem;
  }

  .lead__title {
    font-size: 1.5rem;
  }

  .lead__subtitle {
    font-size: 0.875rem;
  }

  .lead__form .wpcf7-form {
    flex-direction: column;
    align-items: stretch;
  }

  .lead__form .wpcf7-form > p {
    flex: 1 1 auto;
    width: 100%;
  }

  .purchase,
  .articles,
  .about {
    padding-block: 3.5rem;
    gap: 2rem;
  }

  .purchase__title,
  .articles__title,
  .about__title {
    font-size: 1.875rem;
  }

  .purchase__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .purchase__card {
    min-height: 0;
    padding: 1.5rem;
  }

  .purchase__number {
    font-size: 2rem;
  }

  .articles__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about__image {
    height: 16rem;
  }

  .about__content {
    gap: 1.5rem;
  }

  .about__content-title {
    font-size: 1.25rem;
  }

  .about__stats {
    gap: 1rem;
  }

  .about__stat {
    flex: 1 1 calc(50% - 0.5rem);
    width: auto;
    max-width: calc(50% - 0.5rem);
    min-width: 0;
  }

  .about__stat-value {
    font-size: 1.75rem;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 28rem;
  }

  .hero__action {
    width: 100%;
    text-align: center;
  }

  .about__stat {
    width: 100%;
  }
}

/* CF7 inserts line breaks around hidden fields in the submit paragraph. */
.lead__form .wpcf7-form > p:has(.wpcf7-submit) {
  display: flex;
  align-items: center;
  position: relative;
}
.lead__form .wpcf7-form > p:has(.wpcf7-submit) > br {
  display: none;
}
.lead__form .wpcf7-form > p:has(.wpcf7-submit) .wpcf7-spinner {
  position: absolute;
  right: 0;
  margin: 0;
}
