/* Globals */

.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);
}

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

.list--scroll {
  margin: 0 -20px;
  list-style: none;
  padding: 0;
  display: flex;
  gap: var(--spacing-xxs);
  overflow-x: auto;
  white-space: nowrap;
  z-index: 999;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.list--scroll::-webkit-scrollbar {
  display: none;
}

.item--scroll:last-child {
  margin-right: 20px;
}

.item--scroll:first-child {
  margin-left: 20px;
}

/* Dealer-info */

.dealer-info.section {
  margin: 0;
}

.dealer-info__inner {
  background: var(--color-white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 30px 20px 16px 20px;
  border-bottom: 2px solid var(--color-light-gray);
}

.dealer-info--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-back {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
}

.btn-back--image {
  rotate: 90deg;
  margin-left: 4px;
}

.dealer-info__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dealer-info__badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-micro);
  margin-top: 8px;
}

.dealer-info__logo {
  width: auto;
  height: auto;
  max-width: 80px;
  max-height: 80px;
  border-radius: var(--radius-xs);
  background-color: transparent;
  padding: 0;
}

.dealer-rating {
  cursor: pointer;
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grade-content-header {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.dealer-rating__stats {
  display: flex;
  align-items: center;
}

.dealer-rating__number {
  font-weight: var(--weight-black);
  font-size: var(--text-xxl);
  margin-right: 4px;
}

.circle {
  margin: 0 4px;
  opacity: 50%;
}

.rating_grade-image {
  background: var(--color-white);
  opacity: 50%;
  padding: 6px;
  border-radius: var(--radius-xs);
}

.dealer-rating__stars {
  display: flex;
  gap: 2px;
}

.star {
  position: relative;
}

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

.star-bg {
  opacity: 0.3;
}

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

.empty-star img {
  opacity: 0.3;
}

.stars-container {
  position: relative;
  display: inline-flex;
  gap: 2px;
}

.stars-background {
  display: flex;
  gap: 2px;
}

.stars-background .star-icon {
  opacity: 0.3;
}

.stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 2px;
  overflow: hidden;
  white-space: nowrap;
}

.stars-fill .star-icon {
  filter: brightness(0) saturate(100%) invert(0%) sepia(100%) saturate(0%) hue-rotate(0deg);
}

.dealer-map__container {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.dealer-map {
  width: 100%;
  height: 165px;
}

.dealer-info-btn {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: var(--spacing-micro);
}

.dealer-info--text {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
}

/* Rating */

.rating-detailed_breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xxs);
  margin-top: var(--spacing-sm);
}

.rating-detailed_row {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxs);
  font-size: var(--text-md);
}

.rating-detailed_label {
  width: 18px;
  font-weight: var(--weight-semibold);
  text-align: right;
  font-size: var(--text-sm);
}

.rating-detailed_bar {
  flex: 1;
  height: 8px;
  background: var(--color-light-gray);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.rating-detailed_bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-dark-bg) 0%, #333 100%);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.rating-detailed_count {
  width: 40px;
  text-align: right;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

.rating-detailed_summary {
  background: var(--color-light-gray);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: var(--weight-regular);
  margin: 8px 0px;
}

.rating-detailed--text {
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  text-align: center;
}

.rating-detailed--stars {
  display: flex;
  justify-content: center;
}

/* Advice */

.advice__header {
  margin-bottom: 16px;
}

.advice-btn {
  display: flex;
  align-items: center;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  margin-top: 4px;
}

.advice_subtitle-image {
  margin-left: 6px;
  background: var(--color-light-gray);
  border-radius: 20px;
}

.advice--item {
  width: 292px;
  height: 175px;
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: 16px 16px 45px 16px;
  white-space: normal;
  flex-shrink: 0;
}

.advice_card-image {
  margin-bottom: 10px;
}

.advice_card-text {
  font-weight: var(--weight-medium);
  font-size: var(--text-md);
}

/* Service */

.service__badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-micro);
  margin-top: 8px;
  font-weight: var(--weight-medium);
}

.service__badge-image {
  margin-right: 4px;
}

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

.service__categories--item {
  padding: 9px 12px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  background: var(--color-light-gray);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.service__categories--btn {
  display: flex;
  align-items: center;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  cursor: pointer;
  text-decoration: none;
}

.service__categories--btn-image {
  margin-left: 4px;
}

/* Reviews */
.reviews__categories-title {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  margin-bottom: 8px;
}

.category-btn {
  padding: 6px;
  background: var(--color-light-gray);
  border-radius: var(--radius-xs);
  text-align: left;
}

.reviews__categories--item-image {
  margin-right: 2px;
}

.reviews__categories--item-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
}

.reviews__categories--item-content {
  font-size: var(--text-xs);
  margin-left: 4px;
}

.reviews_button-faq {
  display: inline-flex;
  align-items: center;
  width: auto;
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  margin-top: 6px;
}

.reviews_sort {
  font-weight: var(--weight-medium);
  position: relative;
}

.review_author {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

.review_card {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.review_card:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-light-gray);
}

.review_card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.review_header {
  display: flex;
  align-items: center;
  margin: 6px 6px 16px 0px;
}

.review_rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-micro);
  background: var(--color-light-gray);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  padding: 4px 8px;
  border-radius: var(--radius-xxs);
}

.review_date {
  font-size: var(--text-sm);
  font-weight: 400;
  margin-left: 4px;
}

.review_photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
}

.review_photos-grid::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.review_photos-grid::-webkit-scrollbar-track {
  background: var(--color-light-gray);
  border-radius: 2px;
}

.review_photos-grid::-webkit-scrollbar-thumb {
  background: var(--color-gray);
  border-radius: 2px;
}

.review_photo-item {
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.review_photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.review_photo:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.comment_text {
  font-size: var(--text-md);
  margin-bottom: 16px;
}

.load_more_btn {
  display: 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;
}

.load_more_btn:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.sort--btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--color-light-gray);
  color: var(--color-black);
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.sort--btn.active {
  border: 2px solid var(--color-dark-bg);
}

.sort--btn-arrow {
  transition: transform 0.2s ease;
}

.sort--btn.active .sort--btn-arrow {
  transform: rotate(180deg);
}

.sort--dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: var(--color-white);
  border-radius: var(--radius-xs);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.sort--dropdown.show {
  display: block;
}

.sort--option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-xxs);
  text-align: left;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.sort--option:hover {
  background: var(--color-light-gray);
}

.reviews__categories--item button.active {
  background: var(--color-dark-bg);
  color: var(--color-white);
}

.reviews__categories--item button.active .reviews__categories--item-image {
  filter: brightness(0) invert(1);
}

.reviews__categories--item button.active .reviews__categories--item-content {
  color: var(--color-white);
}

/* Photos */

.photos__item {
  flex: 0 0 auto;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.dealer--photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.2s ease;
}

.dealer--photo:hover {
  transform: scale(1.05);
}

.dealer-photos_container {
  margin-top: var(--spacing-sm);
}

/* Analogue */

.analogue--list {
  margin-top: var(--spacing-sm);
}

.analogue--item-list {
  gap: var(--spacing-xxs);
}

.analogue--item {
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  width: 360px;
  height: auto;
  padding: 16px;
  white-space: normal;
  flex-shrink: 0;
}

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

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

.analogue--item-header-rating {
  display: flex;
  align-items: center;
}

.analogue--item-header-average-rating {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin: 0px 8px;
}

.analogue--item-header-rating {
  margin: 4px 0;
}

.analogue--item-header-total-reviews {
  font-size: var(--text-sm);
  opacity: 50%;
}

.analogue--item-working-hours {
  font-size: var(--text-sm);
  opacity: 50%;
}

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

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

.analogue--item-header-grade {
  display: flex;
  align-items: center;
}

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

.analogue--item-header-grade .star {
  position: relative;
  width: 16px;
  height: 16px;
}

.analogue--item-header-grade .star img {
  width: 16px;
  height: 16px;
}

.analogue--item-header-grade .partial-star {
  position: relative;
  overflow: hidden;
}

.analogue--item-header-grade .star-bg {
  opacity: 0.3;
}

.analogue--item-header-grade .star-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fill-percentage);
  overflow: hidden;
}

.analogue--item-header-grade .empty-star img {
  opacity: 0.3;
}

/* History */

.history--item {
  background: var(--color-light-gray);
  border-radius: var(--radius-md);
  width: 194px;
  height: 174px;
  padding: 8px;
  white-space: normal;
  flex-shrink: 0;
}

.history--item-list {
  gap: var(--spacing-xxs);
}

.history--item-logo {
  height: 46px;
  width: auto; 
  max-width: 46px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background-color: transparent;
  padding: 0;
}

.history--item-rating {
  display: flex;
  align-items: center;
}

.history--item-average_rating {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
}

.history--item-star_image {
  width: 16px;
  height: 16px;
  margin: 0px 4px;
}

.history--item-total_reviews {
  font-size: var(--text-sm);
  opacity: 50%;
}

.history--list {
  margin-top: var(--spacing-sm);
}

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

.history--item-subtitle {
  display: flex;
  align-items: center;
}

.history--item-subtitle {
  font-size: var(--text-sm);
}

.history--item-subtitle-image {
  margin-right: 4px;
}

/* Menu_bottom */

.menu_bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 700;
}

.menu_bottom__inner {
  background: #fff;
  padding: 16px;
  border-radius: 32px 32px 0 0;
}

.menu_bottom-nav-item--image {
  width: 24px;
  height: 24px;
}

.menu_bottom-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.menu_bottom-nav--item {
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: var(--weight-medium);
  font-size: var(--text-xs);
}

.btn.btn--green {
  background: var(--color-green);
  color: var(--color-black);
}

/* Sticky Navigation */

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-bottom: 8px;
}

.sticky-nav__inner{
  background: var(--color-white);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 16px 20px;
}

.info_nav--item {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.nav--link {
  display: block;
  text-decoration: none;
  color: var(--color-black);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* Bottom-sheet */

.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  opacity: 0;
  pointer-events: none;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  transition: 0.1s linear;
  z-index: 1000;
}

.bottom-sheet.show {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet .sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.5;
  background: #000;
}

.bottom-sheet .content {
  width: 100%;
  position: relative;
  background: #fff;
  max-height: 100vh;
  height: 50vh;
  max-width: 1024px;
  padding: 24px;
  transform: translateY(100%);
  border-radius: 36px 36px 0 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
  transition: 0.3s ease;
}

.bottom-sheet.show .content {
  transform: translateY(0%);
}

.bottom-sheet.dragging .content {
  transition: none;
}

.bottom-sheet.fullscreen .content {
  border-radius: 0;
  overflow-y: hidden;
}

.bottom-sheet .header {
  display: flex;
  justify-content: center;
}

.header .drag-icon {
  cursor: grab;
  user-select: none;
  margin-top: -15px;
}

.header .drag-icon span {
  height: 5px;
  width: 31px;
  display: block;
  background: #f5f5f5;
  border-radius: 100px;
}

.bottom-sheet .body {
  height: 100%;
  overflow-y: auto;
  padding: 0 0 40px;
  scrollbar-width: none;
}

.bottom-sheet .body::-webkit-scrollbar {
  width: 0;
}

.bottom-sheet .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  position: relative;
  margin-bottom: 16px;
}

.bottom-sheet .modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  flex: 1;
}

.bottom-sheet .modal-close {
  background: #f5f5f5;
  border: none;
  border-radius: 12px;
  font-size: 24px;
  cursor: pointer;
  padding: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0;
  z-index: 1;
}

body:has(.bottom-sheet.show) {
  pointer-events: none;
  overflow: hidden;
  height: 100dvh;
}

/* Bottom-sheet working-hours */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 800;
  justify-content: center;
  align-items: flex-end;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 0;
  width: 100%;
  max-width: none;
  max-height: 80vh;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
}

.modal-overlay.show .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 24px 16px;
  position: relative;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  text-align: center;
  flex: 1;
}

.modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.working-hours-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.working-hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.working-hours-day {
  font-size: 16px;
  font-weight: 500;
}

.working-hours-time {
  font-size: 16px;
}

.modal-overlay {
  transition: background-color 0.3s ease;
}

.modal-overlay:not(.show) {
  background: rgba(0, 0, 0, 0);
}

/* Bottom-sheet contacts */

.contact-button-image {
  margin-right: 4px;
}

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

.contact-button {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.contact-button.primary {
  background: #000;
  color: #fff;
}

.contact-divider {
  width: 100%;
  height: 2px;
  background: #f5f5f5;
  border-radius: 16px;
  margin: 8px 0;
}

.contact-messengers {
  display: flex;
  gap: 12px;
  width: 100%;
}

.contact-button.messenger {
  flex: 1;
  background: #000;
  color: #fff;
  gap: 8px;
}

.contact-buttons a {
  text-decoration: none;
  display: block;
  width: 100%;
}

.contact-buttons a.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.contact-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #666;
}

a.contact-button {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  text-align: center;
  transition: background-color 0.2s ease;
}

a.contact-button.primary {
  background: #000;
  color: #fff;
}

/* Bottom-sheet form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-description {
  font-size: var(--text-md);
  color: var(--color-gray);
  line-height: 1.4;
  margin-bottom: 20px;
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-black);
}

.form-input,
.form-textarea {
  padding: 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: var(--color-white);
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-dark-bg);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-select-wrapper {
  position: relative;
  width: 100%;
}

.form-select {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  background: var(--color-white);
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-select:hover {
  border-color: var(--color-dark-bg);
}

.form-select-text {
  font-size: var(--text-md);
  color: var(--color-black);
}

.form-select-arrow {
  transition: transform 0.2s ease;
}

.form-select-wrapper.active .form-select {
  border-color: var(--color-dark-bg);
}

.form-select-wrapper.active .form-select-arrow {
  transform: rotate(180deg);
}

.form-select-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: var(--color-white);
  border: 2px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.form-select-dropdown.show {
  display: block;
}

.form-select-option {
  display: block;
  width: 100%;
  padding: 12px;
  background: none;
  border: none;
  border-radius: var(--radius-xxs);
  text-align: left;
  font-size: var(--text-md);
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--color-black);
}

.form-select-option:hover {
  background: var(--color-light-gray);
}

.form-select-wrapper input[type="hidden"] {
  display: none;
}

.btn-submit {
  background: var(--color-dark-bg);
  color: var(--color-white);
  border: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
}

.btn-submit:hover:not(:disabled) {
  background: #333;
}

.btn-submit:disabled {
  background: var(--color-gray);
  cursor: not-allowed;
}

.form-agreement {
  text-align: center;
}

.agreement-text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 768px) {
  .contact-form {
      gap: 16px;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
      padding: 14px;
      font-size: var(--text-sm);
  }
  
  .form-select-arrow {
      width: 14px;
      height: 14px;
  }
  
  .form-select-dropdown {
      padding: 6px;
  }
  
  .form-select-option {
      padding: 10px;
      font-size: var(--text-sm);
  }
  
  .btn-submit {
      padding: 14px;
      font-size: var(--text-sm);
  }
}

/* Fullscreen gallery */

.fullscreen-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 2000;
  display: none;
  opacity: 0;
}

.fullscreen-gallery.active {
  display: block;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fullscreen-gallery__top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 100;
}

.fullscreen-gallery__close {
  width: 40px;
  height: 40px;
  background: #F8F8F8;
  border: none;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.fullscreen-gallery__close img {
  width: 20px;
  height: 20px;
}

.fullscreen-gallery__counter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #333333;
  font-size: 15px;
  font-weight: 400;
}

.fullscreen-gallery__counter.hidden {
  display: none;
}

.fullscreen-gallery__spacer {
  width: 40px;
  visibility: hidden;
}

.fullscreen-gallery__photo-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: calc(100% - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.fullscreen-gallery__image {
  max-width: 70%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.fullscreen-gallery__nav {
  position: fixed;
  width: 48px;
  height: 48px;
  background: #F8F8F8;
  border: none;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 90;
  top: 50%;
  transform: translateY(-50%);
}

.fullscreen-gallery__nav img {
  width: 20px;
  height: 20px;
}

.fullscreen-gallery__prev {
  left: 20px;
}

.fullscreen-gallery__next {
  right: 20px;
}

.fullscreen-gallery__prev img {
  transform: rotate(180deg);
}

.fullscreen-gallery__nav.disabled {
  opacity: 0.3;
  cursor: default;
  background: #F0F0F0;
}

.fullscreen-gallery__nav.hidden {
  display: none;
}

.footer {
  margin-bottom: 170px;
}

@media (max-width: 768px) {
    .fullscreen-gallery__top-bar {
        height: 50px;
        padding: 0 16px;
    }
    
    .fullscreen-gallery__photo-container {
        height: calc(100% - 50px);
        padding: 16px;
    }
    
    .fullscreen-gallery__image {
        max-width: 85%;
        max-height: 85%;
    }
    
    .fullscreen-gallery__close {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    
    .fullscreen-gallery__nav {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }
    
    .fullscreen-gallery__prev {
        left: 16px;
    }
    
    .fullscreen-gallery__next {
        right: 16px;
    }
    
    .fullscreen-gallery__counter {
        font-size: 14px;
    }
    
    .fullscreen-gallery__spacer {
        width: 36px;
    }
}

@media (max-width: 480px) {
    .fullscreen-gallery__top-bar {
        height: 45px;
        padding: 0 12px;
    }
    
    .fullscreen-gallery__photo-container {
        height: calc(100% - 45px);
        padding: 12px;
    }
    
    .fullscreen-gallery__image {
        max-width: 90%;
        max-height: 90%;
    }
    
    .fullscreen-gallery__close {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .fullscreen-gallery__nav {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }
    
    .fullscreen-gallery__prev {
        left: 12px;
    }
    
    .fullscreen-gallery__next {
        right: 12px;
    }
    
    .fullscreen-gallery__counter {
        font-size: 13px;
    }
    
    .fullscreen-gallery__spacer {
        width: 32px;
    }
    
    .fullscreen-gallery__close img,
    .fullscreen-gallery__nav img {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1200px) {
    .fullscreen-gallery__image {
        max-width: 60%;
        max-height: 75%;
    }
    
    .fullscreen-gallery__nav {
        width: 56px;
        height: 56px;
    }
    
    .fullscreen-gallery__close {
        width: 44px;
        height: 44px;
    }
    
    .fullscreen-gallery__counter {
        font-size: 16px;
    }
    
    .fullscreen-gallery__prev {
        left: 40px;
    }
    
    .fullscreen-gallery__next {
        right: 40px;
    }
    
    .fullscreen-gallery__spacer {
        width: 44px;
    }
}

.fullscreen-gallery__photo-container {
  touch-action: pan-y pinch-zoom;
}

.fullscreen-gallery {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Success Modal */

.modal-body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.success-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.success-text-wrapper {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.success-message {
  font-size: var(--text-md);
  color: var(--color-gray);
  line-height: 1.4;
  margin: 0;
  text-align: left;
  display: block;
  width: 100%;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 32px 0;
}

.btn-success {
  background: var(--color-dark-bg);
  color: var(--color-white);
  border: none;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease;
  margin-top: auto;
}

.btn-success:hover {
  background: #333;
}

#successModal .content {
  height: 70vh !important;
  min-height: 450px;
  max-height: 650px;
}

#successModal .body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#successModal .modal-body {
  flex: 1;
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
    #successModal .content {
        height: 75vh !important;
        min-height: 500px;
        max-height: 700px;
    }
    
    .success-message {
        font-size: var(--text-sm);
    }
    
    .success-text-wrapper {
        margin-bottom: 20px;
    }
    
    .success-icon {
        margin: 12px 0 28px 0;
    }
}

@media (max-width: 480px) {
    #successModal .content {
        height: 80vh !important;
        min-height: 550px;
        max-height: 750px;
    }
    
    #successModal .modal-body {
        padding: 0 16px 16px 16px;
    }
    
    .success-text-wrapper {
        margin-bottom: 16px;
    }
    
    .success-icon {
        margin: 8px 0 24px 0;
    }
}

.bottom-sheet .content {
  max-height: 100vh;
}

.bottom-sheet.fullscreen .content {
  height: 100vh !important;
}

@keyframes slideUpHigher {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(30%);
    }
}

.bottom-sheet.show #successModal .content {
  animation: slideUpHigher 0.3s ease;
}

@media (max-width: 480px) {
  .review_photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (min-width: 768px) {
  .review_photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

.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;
}


.no_logo_history {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    background-color: var(--color-light-gray);
    font-weight: var(--weight-bold);
    font-size: 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
}

.history--item-logo-wrapper {
    display: block;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.history--item-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background-color: transparent;
}






.menu_bottom {
  display: none;
}

@media (max-width: 1150px) {
  .menu_bottom {
    display: block;
  }
}