.experts-page {
  --experts-blue: #123b70;
  --experts-blue-dark: #07274c;
  --experts-cyan: #1c9fc3;
  --experts-orange: #ef8b37;
  --experts-ink: #16243a;
  --experts-muted: #5e6b7c;
  background: #f4f7fa;
  color: var(--experts-ink);
}

.experts-page .container {
  max-width: 1240px;
}

.experts-intro {
  padding: 72px 0 36px;
}

.experts-intro__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 54px;
  align-items: center;
  overflow: hidden;
  padding: 48px 52px;
  border: 1px solid rgba(18, 59, 112, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(19, 47, 79, .09);
}

.experts-intro__panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  content: "";
  background: linear-gradient(180deg, var(--experts-cyan), var(--experts-blue) 58%, var(--experts-orange));
}

.experts-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--experts-cyan);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.experts-intro h2,
.experts-directory h2 {
  margin: 0;
  color: var(--experts-blue-dark);
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.13;
}

.experts-intro__content p {
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--experts-muted);
  font-size: 17px;
  line-height: 1.75;
}

.experts-intro__content p + p {
  margin-top: 8px;
  font-size: 15px;
}

.experts-pdf {
  display: flex;
  min-width: 214px;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-radius: 14px;
  background: var(--experts-blue);
  box-shadow: 0 10px 28px rgba(18, 59, 112, .2);
  color: #fff;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.experts-pdf:hover,
.experts-pdf:focus {
  transform: translateY(-2px);
  background: var(--experts-blue-dark);
  box-shadow: 0 14px 32px rgba(18, 59, 112, .28);
  color: #fff;
}

.experts-pdf > .fa {
  font-size: 28px;
}

.experts-pdf strong,
.experts-pdf small {
  display: block;
}

.experts-pdf strong {
  font-size: 15px;
  letter-spacing: .01em;
}

.experts-pdf small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}

.experts-directory {
  padding: 44px 0 100px;
}

.experts-directory__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.experts-directory__heading > p {
  margin: 0 0 4px;
  color: var(--experts-muted);
  font-size: 16px;
  line-height: 1.65;
}

.experts-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.experts-search {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
}

.experts-search > .fa {
  position: absolute;
  left: 19px;
  color: #758499;
  font-size: 16px;
  pointer-events: none;
}

.experts-search input {
  width: 100%;
  height: 58px;
  padding: 0 52px 0 50px;
  border: 1px solid #d7e0e9;
  border-radius: 999px;
  outline: 0;
  background: #fff;
  color: var(--experts-ink);
  font-size: 16px;
  box-shadow: 0 7px 24px rgba(19, 47, 79, .05);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.experts-search input:focus {
  border-color: var(--experts-cyan);
  box-shadow: 0 0 0 4px rgba(28, 159, 195, .12), 0 7px 24px rgba(19, 47, 79, .05);
}

.experts-search__clear {
  position: absolute;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #edf2f6;
  color: var(--experts-blue);
  font-size: 22px;
  line-height: 1;
}

.experts-results {
  flex: 0 0 auto;
  min-width: 104px;
  color: var(--experts-muted);
  font-size: 14px;
  text-align: right;
}

.experts-results span {
  color: var(--experts-blue);
  font-size: 20px;
  font-weight: 700;
}

.experts-filters {
  flex: 0 1 390px;
  min-width: 280px;
  margin: 0;
}

.experts-filter-control {
  display: block;
  width: 100%;
}

.experts-filter-control__select {
  position: relative;
  display: block;
}

.experts-filter-control .select2-container {
  display: block;
  width: 100% !important;
}

.experts-filter-control .select2-container--bootstrap .select2-selection--single {
  height: 58px;
  padding: 0 50px 0 17px;
  border: 1px solid #d6e0e9;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(19, 47, 79, .05);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.experts-filter-control .select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: #30465f;
  font-size: 14px;
  font-weight: 600;
  line-height: 56px;
}

.experts-filter-control .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
  right: 17px;
  height: 56px;
}

.experts-filter-control .select2-container--bootstrap.select2-container--focus .select2-selection,
.experts-filter-control .select2-container--bootstrap.select2-container--open .select2-selection {
  border-color: var(--experts-cyan);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(28, 159, 195, .12), 0 7px 24px rgba(19, 47, 79, .05);
}

.experts-filter-control .select2-container + .fa {
  display: none;
}

.experts-filter-control select {
  width: 100%;
  height: 58px;
  padding: 0 50px 0 17px;
  border: 1px solid #d6e0e9;
  border-radius: 999px;
  outline: 0;
  appearance: none;
  background: #fff;
  color: #30465f;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 7px 24px rgba(19, 47, 79, .05);
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.experts-filter-control select:focus {
  border-color: var(--experts-cyan);
  box-shadow: 0 0 0 4px rgba(28, 159, 195, .12), 0 7px 24px rgba(19, 47, 79, .05);
}

.experts-filter-control__select > .fa {
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--experts-blue);
  font-size: 18px;
  pointer-events: none;
  transform: translateY(-50%);
}

.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.expert-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 230px;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 112, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(14, 42, 75, .07);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .24s ease, transform .24s ease, box-shadow .25s ease, border-color .25s ease;
}

.expert-card:hover {
  z-index: 1;
  border-color: rgba(28, 159, 195, .38);
  box-shadow: 0 18px 42px rgba(14, 42, 75, .14);
  transform: translateY(-5px);
}

.expert-card.is-filtering {
  opacity: 0;
  transform: translateY(10px);
}

.expert-card[hidden] {
  display: none;
}

.expert-card__visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #e7f4f7, #dbe6f1);
}

.expert-card__visual::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 44%;
  content: "";
  background: linear-gradient(transparent, rgba(7, 39, 76, .16));
  pointer-events: none;
}

.expert-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .9), transparent 34%),
    linear-gradient(145deg, #e7f4f7, #cad9e9);
  color: rgba(18, 59, 112, .74);
}

.expert-card__placeholder span {
  display: flex;
  width: 68px;
  height: 68px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(18, 59, 112, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
}

.expert-card__photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.expert-card__photo.has-error {
  display: none;
}

.expert-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 21px 20px 19px;
}

.expert-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.expert-card__tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #eaf6f8;
  color: #167c98;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .055em;
  line-height: 1.35;
  text-transform: uppercase;
}

.expert-card__tag.category-bariatrica { background: #fff0df; color: #9a4e08; }
.expert-card__tag.category-urgenza { background: #fde7e7; color: #a4262c; }
.expert-card__tag.category-colon-retto { background: #e5f6f7; color: #126f7c; }
.expert-card__tag.category-fegato { background: #e9f4e4; color: #39702b; }
.expert-card__tag.category-pancreas { background: #fff4ca; color: #80620a; }
.expert-card__tag.category-peritoneo { background: #e9edf9; color: #415a93; }
.expert-card__tag.category-surrene { background: #f4e8fa; color: #75418b; }
.expert-card__tag.category-parete { background: #e7f0fb; color: #2d5f97; }
.expert-card__tag.category-esofago-stomaco { background: #f9e7ef; color: #95456a; }
.expert-card__tag.category-proctologica { background: #e5f4ed; color: #2d7052; }
.expert-card__tag.category-senologica { background: #fde8f2; color: #9b3867; }
.expert-card__tag.category-tiroide { background: #eee8fb; color: #5d4699; }
.expert-card__tag.category-generale { background: #edf1f5; color: #4a5c70; }

.expert-card h3 {
  margin: 0 0 11px;
  color: var(--experts-blue-dark);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.018em;
  line-height: 1.24;
}

.expert-card__workplace,
.expert-card__city {
  display: flex;
  gap: 8px;
  margin: 0;
  color: var(--experts-muted);
  font-size: 12px;
  line-height: 1.42;
}

.expert-card__workplace + .expert-card__city {
  margin-top: 5px;
}

.expert-card__workplace .fa,
.expert-card__city .fa {
  width: 12px;
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--experts-cyan);
  text-align: center;
}

.expert-card__email {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 13px;
  color: var(--experts-blue);
  font-size: 12px;
  font-weight: 600;
}

.expert-card__email:hover,
.expert-card__email:focus {
  color: var(--experts-cyan);
}

.expert-card__email .fa {
  margin-right: 5px;
}

.experts-empty {
  padding: 64px 20px;
  border: 1px dashed #c6d3df;
  border-radius: 18px;
  background: rgba(255, 255, 255, .58);
  color: var(--experts-muted);
  text-align: center;
}

.experts-empty > .fa {
  color: #a8b9c9;
  font-size: 32px;
}

.experts-empty h3 {
  margin: 16px 0 6px;
  color: var(--experts-blue-dark);
  font-size: 23px;
}

.experts-empty p {
  margin: 0 0 18px;
}

.experts-reset {
  padding: 10px 17px;
  border: 0;
  border-radius: 999px;
  background: var(--experts-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 1199px) {
  .experts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .experts-intro {
    padding: 42px 0 24px;
  }

  .experts-intro__panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 26px 30px;
    border-radius: 18px;
  }

  .experts-pdf {
    width: 100%;
    justify-content: center;
  }

  .experts-directory {
    padding: 34px 0 70px;
  }

  .experts-directory__heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .experts-tools {
    display: block;
  }

  .experts-search {
    margin-top: 12px;
  }

  .experts-results {
    margin-top: 12px;
    text-align: left;
  }

  .experts-filter-control {
    width: 100%;
  }

  .experts-filters {
    min-width: 0;
  }

  .experts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .expert-card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .expert-card__body {
    padding: 18px 15px 17px;
  }

  .expert-card h3 {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .experts-page *,
  .experts-page *::before,
  .experts-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
