section {
    padding: 60px 0;
}

.cards__wrap {
    display: flex;
    gap: 30px;
}

.cards__title {
    font-size: 36px;
    margin-bottom: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    max-width: 360px;
    width: 100%;
}
.card__title {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.card__descr {
    padding: 0;
    font-size: 16px;
    margin-bottom: 16px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

.card__btn {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #ff9549;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-family: inherit;
    color: #ffffff;
}

.card__btn:hover {
    background: #ff9549;
    color: #090b0b;
}

.card__img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    list-style-type: disc;
}

.prose li {
    position: relative;
    padding-inline-start: 1.625em;
    margin-top: .5em;
    margin-bottom: .5em;
}

.prose li:before {
    position: absolute;
    content: '';
    top: 7px;
    left: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #ff9549;
}

.container {
    max-width: 1423px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero {
  padding: 50px 0;
  padding-top: 150px;
  text-align: center;
  background-color: #090b0b;
}

.title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lead {
  font-size: 1.05rem;
  color: #b0b0b0;
  margin: 0 auto;
  line-height: 1.6;
  max-width: 820px;
}

.hero .trade-in__submit {
    margin-top: 30px;
    padding: 16px 32px;
}

.trade-in__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.2;
  text-align: center;
}

/* Selects Section */
.trade-in__selects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.trade-in__field {
  display: flex;
  flex-direction: column;
}

.trade-in__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a1a5a5;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.trade-in__label--required::after {
  content: "*";
  color: #ff9549;
  margin-left: 4px;
}

.trade-in__select {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  color: #a0a0a0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
  transition: all 0.2s;
  cursor: pointer;
}

.trade-in__select:focus {
  outline: none;
  border-color: #ff9549;
  color: #ffffff;
}

.trade-in__select option {
  background: #1e2222;
  color: #dbdbdb;
}

.trade-in__select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.03);
}

/* Placeholder Block */
.trade-in__placeholder {
  margin-top: 32px;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: trade-in-fadeIn 0.3s ease;
}

@keyframes trade-in-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trade-in__placeholder-icon {
  width: 48px;
  height: 48px;
  color: #888;
}

.trade-in__placeholder-text {
  font-size: 1rem;
  color: #a0a0a0;
  line-height: 1.5;
}

/* Your Car Section */
.trade-in__car {
  margin-top: 48px;
  padding-top: 48px;
  display: none;
}

.trade-in__car--visible {
  display: block;
  animation: trade-in-fadeIn 0.4s ease;
}

.trade-in__car-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 32px;
  text-align: center;
}

.trade-in__badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 44px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.trade-in__badge-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

.trade-in__badge-tag {
  border: 1px solid #ff9549;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-left: 8px;
}

.trade-in__badge-text {
  font-size: 0.9rem;
  color: #888;
  margin-top: 16px;
}

.trade-in__badge-link {
  margin-top: auto;
  margin-left: auto;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.trade-in__badge-link svg {
  color: #ff9549;
}

/* Form Modes */
.trade-in__mode {
  display: none;
  border: none;
}

.trade-in__mode--active {
  display: block;
  animation: trade-in-fadeIn 0.3s ease;
}

/* Form Fields */
.trade-in__input {
  width: 100%;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  color: #ffffff;
  transition: all 0.2s;
}

.trade-in__input::placeholder {
  color: #666666;
}

.trade-in__input:focus {
  outline: none;
  border-color: #ff9549;
}

.trade-in__input:hover {
  border-color: #ff9549;
}

/* Manual Mode Grid */
.trade-in__manual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.trade-in__manual-grid .trade-in__field {
  margin-bottom: 0;
}

.trade-in__field--full {
  grid-column: 1 / -1;
}

.trade-in__field--disabled {
  opacity: 0.6;
}

/* Validation Error States */
.trade-in__field--error .trade-in__input,
.trade-in__field--error .trade-in__select {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.06);
}

.trade-in__field--error .trade-in__input:focus,
.trade-in__field--error .trade-in__select:focus {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.12);
}

.trade-in__error {
  display: none;
  font-size: 0.8rem;
  color: #ff4444;
  margin-top: 6px;
  line-height: 1.4;
  animation: trade-in-shake 0.3s ease;
}

.trade-in__field--error .trade-in__error {
  display: block;
}

@keyframes trade-in-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

/* Form notice */
.trade-in__form-notice {
  display: none;
  padding: 14px 18px;
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 20px;
  animation: trade-in-fadeIn 0.3s ease;
}

.trade-in__form-notice--visible {
  display: block;
}

/* Checkbox */
.trade-in__checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  cursor: pointer;
}

.trade-in__checkbox {
  width: 20px;
  height: 20px;
  accent-color: #ff9549;
  cursor: pointer;
}

.trade-in__checkbox-label {
  font-size: 0.95rem;
  color: #dbdbdb;
  cursor: pointer;
}

/* Actions */
.trade-in__actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.trade-in__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid #ff9549;
  padding: 10px 32px;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  font-family: inherit;
  color: #ffffff;
  min-width: 200px;
}

.trade-in__submit:hover {
  background: #ff9549;
  color: #090b0b;
}

.trade-in__submit:active {
  transform: scale(0.97);
}

.trade-in__switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: #fff;
}

.trade-in__switch:hover {
  opacity: 0.8;
  color: #ff9549;
}

.trade-in__switch svg {
  width: 18px;
  height: 18px;
  color: #ff9549;
}

/* Responsive */
@media (max-width: 768px) {
  .trade-in__selects-grid,
  .trade-in__manual-grid {
    grid-template-columns: 1fr;
  }

  .trade-in__title {
    font-size: 1.8rem;
  }

  .trade-in {
    padding: 24px 16px 40px;
  }

  .trade-in__placeholder {
    padding: 32px 20px;
  }

  .trade-in__placeholder-text {
    font-size: 0.9rem;
  }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
