/* Globals */
* {
  box-sizing: border-box;
}

.section {
  margin-bottom: 8px;
}

.inner {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
}

.section-title {
  font-size: var(--text-xxl);
  font-weight: var(--weight-bold);
}

.group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Dealer-search */

.dealer-search--title {
  font-size: 32px;
  font-weight: var(--weight-bold);
  line-height: 1.05;
  text-align: center;
}

.button-container {
  display: flex;
  gap: 8px;
  width: 100%;
}

.dealer-search--btn{
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0px;
  background: var(--color-white);
  color: var(--color-black);
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
  border: none;
  cursor: pointer;
  border: 2px solid var(--color-light-gray);
  transition: all 0.2s ease;
}

.dealer-search--btn:focus,
.dealer-search--btn:hover {
  border-color: var(--color-dark-bg);
}

/* About */

.about__inner {
  background: var(--color-dark-bg);
  border-radius: var(--radius-xl);
  padding: 30px 20px;
}

.about__title {
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
  line-height: 1.05;
}

.about__subtitle {
  font-weight: 400;
  font-size: 16px;
  color: #fff;
}

.about-btn__inner {
  padding: 11px 9px;
  background: var(--color-green);
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}

.about-btn-content-image {
  width: 72px;
  height: 42px;
}

.about-btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-btn-content-text {
  font-size: 14px;
}

.about-btn-content-title {
  font-weight: 600;
}

.about-btn-item {
  color: #fff;
  padding: 10px 8px;
  background: var(--color-dark-bg);
  border-radius: 12px;
}

.about__items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about__item {
  background: #fff;
  border-radius: 36px;
  padding: 24px;
  color: #101010;
}

.about__item--text-left {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about__item--text-left .about__item-content {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.about__item--text-left .about__item-text {
  flex: 1;
}

.about__item--text-left .about__item-icon {
  width: 126px;
  height: auto;
  align-self: flex-end;
}

.about__item--image-left {
  display: flex;
  flex-direction: column;
}

.about__item--image-left .about__item-main-icon {
  width: 80px;
  height: auto;
  margin-bottom: 16px;
}

.about__item-number {
  font-size: 59px;
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 11px;
  word-break: keep-all;
  white-space: nowrap;
}

.about__item-desc {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.8;
  line-height: 1.3;
}

.about__items-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .about__item-full {
    width: 100%;
  }
  
  .about__items {
    gap: 12px;
  }
  
  .about__item {
    padding: 20px;
  }
  
  .about__item-number {
    font-size: 52px;
  }
  
  .about__item-desc {
    font-size: 15px;
  }
  
  .about__items-row {
    gap: 12px;
  }
  
  .about__item--text-left .about__item-icon {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .about__item-number {
    font-size: 48px;
  }
  
  .about__item-desc {
    font-size: 14px;
  }
  
  .about__item {
    padding: 16px;
  }
  
  .about__items-row {
    gap: 10px;
  }
  
  .about__item--text-left .about__item-icon {
    width: 80px;
  }
  
  .about__item--image-left .about__item-main-icon {
    width: 60px;
  }
}

/* Top-dealers */

.dealers-catalog__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.dealers-catalog-city-sorting,
.city-sorting-btn {
  font-size: 24px;
  font-weight: 700;
}

.city-sorting-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}


/* Quick-choice */

.quick-choice_items-title {
  font-size: 16px;
  opacity: 80%;
  font-weight: 500;
  margin-bottom: 8px;
}

.brand-item-btn {
  display: block;
  padding: 9px 12px;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
  transition: transform 0.5s ease 0.5s;
}

.brand-item-btn:hover {
  box-shadow: 0 0 0 2px var(--color-black);
}

.quick-choice_items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-micro);
  row-gap: var(--spacing-xxs);
}

.quick-choice_brand-item {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Pop-brands */

.pop-brands_items-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
}

.pop-brands_item {
  white-space: nowrap;
  flex-shrink: 0;
  width: 25%;
}

@media (max-width: 768px) {
  .pop-brands_item {
    width: 50%;
  }
}

.pop-brands_item-letter {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 14px;
}

.pop-brands_item-btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.5s ease 0.5s;
}

.pop-brands_item-btn:hover {
  opacity: 50%;
}

.pop-brands_item-list {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}

.pop-brands-btn {
  display: inline-block;
  padding: 16px;
  background: var(--color-light-gray);
  color: var(--color-black);
  text-align: center;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
  border: none;
  cursor: pointer;
  width: 100%;
  transition: transform 0.5s ease 0.5s;
}

.pop-brands-btn:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* Dealer-search dropdown */

.dealer-search-dropdown {
  position: relative;
  flex: 1;
}

.dealer-search-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  margin-top: 8px;
}

.dealer-search-dropdown-content.show {
  display: block;
}

.dealer-search-scroll-container {
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.dealer-search-scroll-container {
  scrollbar-width: none; 
  -ms-overflow-style: none;
}

.dealer-search-scroll-container::-webkit-scrollbar {
  display: none;
}

.dealer-search-option {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--color-black);
}

.dealer-search-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1001;
}

.dealer-search-backdrop.show {
  display: block;
}

/* Faq */

.faq-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.faq-item {
  border-bottom: 2px solid var(--color-light-gray);
}

.faq-question {
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--color-black);
  transition: color 0.2s ease;
}

.faq-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  transform: rotate(90deg);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-arrow {
  transform: rotate(-90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer-content {
  padding: 8px 0 16px 0;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 14px 0;
  }
  
  .faq-answer-content {
    padding: 6px 0 14px 0;
  }
  
  .faq-arrow {
    width: 18px;
    height: 18px;
  }
}

.no_logo {
  width: 80px;
  height: 80px;
  background-color: var(--color-light-gray);
  font-weight: var(--weight-bold);
  font-size: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dealer-search-dropdown-content-top {
  width: 200px;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  margin-top: 8px;
}

.dealer-search-dropdown-content-top.show {
  display: block;
}

.top-dealers-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.top-dealers--item-list {
  gap: var(--spacing-xxs);
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.top-dealers--item {
  width: 100%;
  height: auto;
  padding: 16px;
  white-space: normal;
  flex-shrink: 0;
  border-bottom: 2px solid var(--color-light-gray);
}

.top-dealers--item:last-child {
  border-bottom: none;
}

.top-dealers--item-header {
  display: flex;
  align-content: center;
  justify-content: space-between;
}

.top-dealers--item-header-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-md);
}

.top-dealers--item-header-rating {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  margin: 4px 0;
}

.top-dealers--item-header-average-rating {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin: 0 8px;
  white-space: nowrap;
}

.top-dealers--item-header-total-reviews {
  font-size: var(--text-sm);
  opacity: 50%;
  white-space: nowrap;
}

.top-dealers--item-working-hours {
  font-size: var(--text-sm);
  opacity: 50%;
  margin: 4px 0;
}

.top-dealers--item-adress {
  font-size: var(--text-sm);
}

.top-dealers--item-header-rating-image {
  margin-right: 4px;
}

.dealer-info__logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
}

/* Star rating styles */
.top-dealers--item-header-grade {
  display: flex;
  align-items: center;
}

.dealer-rating__stars {
  display: flex;
  gap: 1px;
  margin-right: 4px;
}

.dealer-rating__stars .star {
  position: relative;
  width: 16px;
  height: 16px;
}

.dealer-rating__stars .star img {
  width: 16px;
  height: 16px;
}

.dealer-rating__stars .full-star img {
  filter: none;
}

.dealer-rating__stars .partial-star {
  position: relative;
  overflow: hidden;
}

.dealer-rating__stars .star-bg {
  opacity: 0.3;
}

.dealer-rating__stars .star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fill-percentage);
  overflow: hidden;
}

.dealer-rating__stars .empty-star img {
  opacity: 0.3;
}






.loading-spinner {
  text-align: center;
  padding: 3rem;
  color: var(--color-black);
  font-size: 1rem;
  opacity: 0.5;
}

.error-message {
  text-align: center;
  padding: 3rem;
  color: #ff4444;
  font-size: 1rem;
}

.no-dealers-message {
  text-align: center;
  padding: 3rem;
  color: var(--color-black);
  opacity: 0.5;
  font-size: 1rem;
}

.dealer-search-dropdown {
    position: relative;
}