/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 1;
}

.btn--primary {
  background: var(--main-blue);
  color: var(--white);
  padding: 10px 28px 12px 32px;
  font-size: 18px;
  line-height: 26px;
}

.btn--primary:hover {
  background: var(--dark-blue);
}

.btn--primary-sm {
  background: var(--main-blue);
  color: var(--white);
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  height: 36px;
  border-radius: var(--radius-md);
}

.btn--primary-sm:hover {
  background: var(--dark-blue);
}

.btn--outline {
  background: transparent;
  color: var(--dark-blue);
  border: 1px solid var(--main-blue);
  padding: 10px 28px 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.btn--outline:hover {
  background: var(--main-blue);
  color: var(--white);
}

.btn--outline .btn__icon,
.btn--outline .btn__icon--sm {
  color: var(--dark-blue);
  transition: color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  filter: brightness(0) saturate(100%) invert(55%) sepia(18%) saturate(748%) hue-rotate(131deg) brightness(92%) contrast(87%);
}

.btn--outline:hover .btn__icon,
.btn--outline:hover .btn__icon--sm {
  color: var(--white);
  filter: brightness(0) invert(1);
  transform: rotate(45deg);
}

.btn--ghost {
  color: var(--dark-blue);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  gap: 8px;
}

.btn--ghost:hover {
  color: var(--main-blue);
}

.btn--ghost-sm {
  color: var(--dark-blue);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  gap: 4px;
}

.btn--ghost-sm:hover {
  color: var(--main-blue);
}

.btn--white {
  background: var(--white);
  color: var(--dark-blue);
  padding: 10px 28px 12px 32px;
  font-size: 18px;
  line-height: 26px;
  width: 244px;
  height: 48px;
}

.btn--white .btn__icon {
  /* white SVG → #4E9096 (same as text) */
  filter: brightness(0) saturate(100%) invert(55%) sepia(18%) saturate(748%) hue-rotate(131deg) brightness(92%) contrast(87%);
  transition: filter 0.2s ease;
}

.btn--white:hover {
  background: var(--grey-100);
  color: var(--black);
}

.btn--white:hover .btn__icon {
  /* → #292929 (same as hover text) */
  filter: brightness(0) saturate(100%);
}

.btn__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.btn__icon--sm {
  width: 20px;
  height: 20px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: var(--text-muted-link);
  transition: color 0.2s ease;
}

.link-arrow .btn__icon,
.link-arrow img {
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: brightness(0) saturate(100%) invert(18%) sepia(4%) saturate(500%) hue-rotate(201deg);
  width: 20px;
  height: 20px;
}

.link-arrow:hover .btn__icon,
.link-arrow:hover img {
  transform: rotate(45deg);
  filter: brightness(0) saturate(100%) invert(55%) sepia(18%) saturate(748%) hue-rotate(131deg) brightness(92%) contrast(87%);
}

.link-arrow:hover {
  color: var(--main-blue);
}

.link-arrow--blue {
  color: var(--dark-blue);
}

.link-arrow--blue:hover {
  color: var(--main-blue);
}

.pager__btn {
  width: 50px;
  height: 50px;
  border-radius: 71.14582824707031px;
  border: 1px solid var(--grey-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5.691666603088379px 11.383333206176758px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pager__btn:hover {
  border-color: var(--main-blue);
  background: rgba(127, 191, 196, 0.12);
}

.pager__btn svg {
  width: 9px;
  height: 7.71px;
  stroke: var(--grey-300);
  fill: none;
}

.pager__btn:hover svg {
  stroke: var(--main-blue);
}

.tag-check {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  border-radius: 100px;
  font-size: 14px;
  line-height: 1.3em;
  color: var(--black);
}

.tag-check img {
  width: 24px;
  height: 24px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pager__count {
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: var(--main-blue);
}

.stars {
  display: flex;
  gap: 4px;
}

.stars img {
  width: 16px;
  height: 16px;
  max-width: none;
  border: none;
  outline: none;
  box-shadow: none;
}

.field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--grey-250);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--black);
  font-size: 16px;
  line-height: 24px;
}

.field input::placeholder {
  color: var(--grey-600);
}

.field--soft {
  border: none;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  border-radius: 6px;
}

.field--textarea {
  height: auto;
  align-items: flex-start;
  min-height: 126px;
}

.field--textarea textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  resize: vertical;
  min-height: 102px;
}

.field--textarea textarea::placeholder {
  color: var(--grey-600);
}

.rating-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rating-field__label {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--black);
}

.rating {
  display: flex;
  gap: 8px;
  align-items: center;
}

.rating__star {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent url("../assets/icons/rating-star.svg") center / 32px 32px no-repeat;
  cursor: pointer;
}

.rating__star.is-active {
  background-image: url("../assets/icons/rating-star-filled.svg");
}

.modal--review .modal__backdrop {
  background: rgba(41, 41, 41, 0.66);
}

.modal__dialog--review {
  max-width: 375px;
  padding: 40px 16px;
  background: var(--grey-100);
  border-radius: 12px;
  gap: 0;
}

.modal__head--review {
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-right: 36px;
}

.modal__head--review .modal__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.4em;
  font-weight: 600;
}

.modal__head--review .modal__sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-600);
}

.modal__form--review {
  gap: 20px;
}

.modal__form--review .modal__fields {
  gap: 12px;
}

.modal__form--review .checkbox {
  gap: 12px;
}

.modal__form--review .checkbox__label {
  font-size: 14px;
  line-height: 1.3em;
}

.modal__form--review .modal__submit {
  border-radius: 6px;
}

@media (min-width: 700px) {
  .modal__dialog--review {
    max-width: 663px;
    padding: 64px;
  }

  .modal__head--review {
    margin-bottom: 28px;
    padding-right: 40px;
  }

  .modal__head--review .modal__title {
    font-size: 28px;
    line-height: 1.4em;
  }

  .rating-field__label {
    font-size: 18px;
    line-height: 26px;
  }

  .modal__form--review {
    gap: 28px;
  }

  .modal__form--review .checkbox {
    gap: 16px;
  }

  .modal__form--review .checkbox__label {
    font-size: 16px;
    line-height: 24px;
  }
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.checkbox__box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--grey-250);
  border-radius: var(--radius-sm);
  background: var(--white);
  appearance: none;
  margin-top: 2px;
}

.checkbox__box:checked {
  background: var(--main-blue);
  border-color: var(--main-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 10px;
}

.checkbox__label {
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-600);
}

.checkbox__label a {
  color: var(--dark-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.checkbox__label a:hover {
  color: var(--main-blue);
}

/* Consult modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal[hidden] {
  display: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(41, 41, 41, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 28px 20px;
  box-shadow: 0 16px 48px rgba(41, 41, 41, 0.18);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--grey-100);
  border-radius: 100px;
  cursor: pointer;
}

.modal__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-right: 40px;
}

.modal__icon {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--main-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3em;
  color: var(--black);
}

.modal__sub {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--grey-600);
}

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

.modal__fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal__submit {
  width: 100%;
  height: 48px;
}

@media (min-width: 700px) {
  .modal__dialog {
    padding: 40px 36px;
  }

  .modal__head {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  border: 1px solid var(--grey-250);
  background: var(--white);
  color: var(--dark-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(41, 41, 41, 0.12);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scroll-top[hidden] {
  display: none !important;
}

.scroll-top:hover {
  background: var(--main-blue);
  color: var(--white);
  border-color: var(--main-blue);
}

@media (min-width: 1440px) {
  .scroll-top {
    right: 32px;
    bottom: 32px;
  }
}

.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border-radius: var(--radius-xl);
  flex-shrink: 0;
  box-shadow: none;
  backdrop-filter: blur(4.5px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  box-shadow: 0 4px 16px rgba(41, 41, 41, 0.08);
}

a:hover {
  text-decoration: none;
}

.footer__col a:hover,
.footer__social:hover,
.footer__dev-link:hover {
  opacity: 0.85;
}

.footer__social {
  transition: opacity 0.2s ease;
}

.footer__social:hover {
  opacity: 0.85;
}

.chip__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip__icon img,
.chip__icon svg {
  width: 28px;
  height: 28px;
}

.chip__text {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--black);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .chip__text {
    font-size: 18px;
    line-height: 26px;
  }
}