/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* background-color: #f5f5f5; */
  background-color: #e6e6fa82;
  padding: 0px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.navbar-brand {
  color: white;
  font-weight: bold;
}
.navbar-brand img {
  margin-right: 6px;
  height: 1.4rem;
}
.navbar-brand:hover {
  color: #fff;
}
.navbar-toggler.custom-toggler {
  color: transparent;
  position: absolute;
  right: 0px;
}
.custom-toggler .navbar-toggler-icon {
  width: 24px;
  height: 24px;
  display: block;
}
.header-section {
  background: linear-gradient(
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.7)
    ),
    url("https://localmaster.info/img/header-background.jpg") center/cover
      no-repeat;
  color: white;
}
.header-section header {
  margin: 0;
  padding: 0;
}

header {
  background: rgba(0, 0, 0, 0.65);
}

header.container-fluid.row {
  background: none;
}
.offcanvas {
  background: #f8f9fa;
}
.is-active-nav {
  background-color: #2d2046;
  color: white;
}
.offcanvas-body {
  margin-left: 10px;
  margin-top: 10px;
  font-size: 1.6rem;
}
/* 1. Цвет ссылок - белый */
.offcanvas-body a {
  font-size: 1.1rem;
  color: white;
  font-weight: bold;
  text-decoration: none;
  padding-left: 0.1rem;
}

@media (min-width: 992px) {
  #container-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
}
#container-header {
  margin: 0;
  padding: 0;
}

.header_description {
  color: #f9f9f9;
  font-size: 18px;
  line-height: 25px;
}

.offcanvas .list-unstyled {
  padding: 0;
  margin: 0;
}
.nav-link {
  color: #ffffff;
  margin: 0 10px;
}
.nav-link:hover {
  color: #fff;
}
.lead-text {
  color: white;
  text-shadow: 1px 4px 2px rgba(0, 0, 0, 0.4);
}
.btn-close {
  filter: invert(100%);
}
/* Стили шапки */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.header-hero {
  margin-top: 50px;
}

.header-hero h1 {
  margin-bottom: 10px;
}

.header-hero p {
  font-size: 16px;
  line-height: 1.6;
}

/* Стили секции поиска */
.search-section {
  width: 100%;
  padding: 10px;
}

.search-block {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  margin: 0 auto;
  max-width: 900px;
}

.search-block:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
#title-founded {
  color: #6c757d;
  font-size: 0.9rem;
}
a#title-founded {
  font-weight: 600;
  color: #264968;
  text-decoration-color: #2649684a;
}
#title-founded a {
  font-weight: 600;
  color: #264968;
  text-decoration-color: #2649684a;
}
.search-title {
  font-size: 16px;
  color: #333;
  margin-bottom: 12px;
  text-align: left;
  padding-left: 12px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 15px;
  padding: 0 12px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.search-row {
  display: flex;
  width: 90%;
  gap: 0;
  justify-content: center;
}

/* Tablet styles for search row */
@media (min-width: 768px) and (max-width: 991px) {
  .search-row {
    width: 100%;
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  flex: 3;
}

.search-field label {
  display: none;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}
.select-wrapper select {
  background: none;
}
.select-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.select-wrapper i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #4a6cf7;
  pointer-events: none;
}

/* Hide the default arrow */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Скрываем стандартную стрелку в select */
}

/* Remove the arrow in IE10 and IE11 */
select::-ms-expand {
  display: none;
}

select,
input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  font-size: 12px;
  color: #333;
  background-color: white;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  text-align: left;
}

/* Убираем скругления на стыках полей */
.search-row > .search-field:not(:last-child) > .select-wrapper > select,
.search-row > .search-field:not(:last-child) > input {
  border-radius: 0;
  border-right: none;
}

/* Для первого поля в ряду делаем скругление слева */
.search-row > .search-field:first-child > .select-wrapper > select,
.search-row > .search-field:first-child > input {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* Для последнего поля в ряду делаем скругление справа */
.search-row > .search-field:last-child > .select-wrapper > select,
.search-row > .search-field:last-child > input,
.search-row > .search-field:last-child > .search-button {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

select:focus,
input:focus {
  border-color: #4a6cf7;
  box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

select:disabled {
  background-color: #f5f5f5;
  color: #999;
}

.search-button {
  width: 100%;
  padding: 8px 15px;
  background-color: #4a6cf7;
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 0;
}

.search-button:hover {
  background-color: #3a5ce5;
}

.search-button:active {
  transform: translateY(0);
}

.search-input-field {
  flex: 3;
}

.search-button-field {
  flex: 2;
}

/* Стили для фильтров категорий */
.category-filters {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 10px;
  margin-top: 15px;
  justify-content: center;

  flex-wrap: wrap;
}
.category-filters a {
  text-decoration: none;
  color: black;
  min-width: 5rem;
}

.search-row a {
  text-decoration: none;
  height: 40px;
}

/* Tablet styles for category filters */
@media (min-width: 768px) and (max-width: 991px) {
  a,
  category-filter {
    min-width: 15%;
  }

  .category-filter {
    width: auto;
    height: 60px; /* Reduced height */
    padding: 5px 8px; /* Reduced padding */
  }

  .category-icon {
    width: 25px; /* Reduced width */
    height: 25px; /* Reduced height */
    font-size: 14px; /* Reduced font size */
  }

  .category-name {
    font-size: 10px; /* Reduced font size */
  }
}

.category-filter {
  width: auto;
  height: 70px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 5px 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-filter:hover {
  background-color: #e6e6fa;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.category-filter.active {
  background-color: #e6e6fa;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); */
}

.category-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  color: #4a6cf7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 16px;
}

.category-icon i {
  font-size: inherit;
}

.category-name {
  font-size: 12px;
}

/* Текст с результатом поиска */
.results-text {
  text-align: left;
  font-size: 16px;
  margin: 15px 0;
  color: #333;
}

/* Секция карточек */
.cards-section {
  width: 100%;
  padding: 10px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Карточка контакта и связанные стили */
.contact-card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.category-label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: #4a6cf7;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 0 0 8px 0;
  z-index: 1;
}

.share-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f5f5f5;
  color: #4a6cf7;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.share-button:hover {
  background-color: #4a6cf7;
  color: white;
  transform: translateY(-2px);
}

.share-button:active {
  transform: translateY(0);
}

.avatar-container {
  margin-right: 15px;
  margin-top: 15px;
  position: relative;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f5f5f5;
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
}

.contact-info {
  width: 100%;
  text-align: left;
  padding-top: 15px;
}

.name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
}

.verification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: #495057;
  border-radius: 50%;
  color: white;
  font-size: 8px;
  margin-left: 5px;
  vertical-align: middle;
}

.specialization {
  font-size: 12px;
  color: #4a6cf7;
  font-weight: 600;
  margin-bottom: 5px;
  background-color: rgba(74, 108, 247, 0.1);
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.description {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.contact-item i {
  color: #4a6cf7;
  margin-right: 8px;
  font-size: 14px;
}

.phone,
.location {
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phone:hover,
.location:hover {
  color: #4a6cf7;
}

.social-icons {
  display: flex;
  margin: 10px 0 0 0;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #333;
  margin-right: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: #4a6cf7;
  color: white;
  transform: translateY(-2px);
}

/* Адаптивность для десктопа */
@media (min-width: 768px) {
  .search-form {
    flex-direction: row;
    justify-content: center;
    padding: 0px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .search-block {
    padding: 20px;
    max-width: 100%;
  }

  .search-title {
    font-size: 18px;
    padding-left: 0px;
    text-align: left;
  }

  select,
  input,
  .search-button {
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-field label {
    display: none;
    font-size: 14px;
  }

  .search-row > .search-field:not(:last-child) > .select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #ccc;
    pointer-events: none;
  }

  .search-row > .search-field:not(:last-child) > input {
    border-right: none;
  }

  .search-row > .search-field:not(:last-child) > .select-wrapper > select {
    border-right: none;
  }

  /* Убираем скругления на стыках полей */
  .search-row > .search-field:not(:last-child) > .select-wrapper > select,
  .search-row > .search-field:not(:last-child) > input {
    border-radius: 0;
    height: 100%;
  }

  /* Для первого поля в ряду делаем скругление слева */
  .search-row > .search-field:first-child > .select-wrapper > select,
  .search-row > .search-field:first-child > input {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
  }

  /* Для последнего поля в ряду делаем скругление справа */
  .search-row > .search-field:last-child > .select-wrapper > select,
  .search-row > .search-field:last-child > input,
  .search-row > .search-field:last-child > .search-button {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
  }

  /* Равномерное распределение ширины */
  .search-field {
    width: auto;
    flex: 3;
  }

  .search-field.search-input-field {
    width: auto;
    flex: 3;
  }

  .search-field.search-button-field {
    width: auto;
    flex: 2;
  }

  .search-button {
    flex: 0 0 calc(2 / 11 * 100%); /* 2/11 of the container */
  }
}

/* Общие стили для category-filter */
.category-filter {
  width: auto;
  height: 70px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 5px 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-filter:hover {
  background-color: #e6e6fa;
  transform: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  color: #4a6cf7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  font-size: 16px;
}

.category-icon i {
  font-size: inherit;
}

.category-name {
  font-size: 12px;
}

/* Текст с результатом поиска */
.results-text {
  text-align: left;
  font-size: 16px;
  margin: 15px 0;
  color: #333;
}
.custom-footer {
  text-decoration: none;
  color: #999ea7;
  background: rgb(148 167 246 / 10%);
  width: 100%;
  margin-top: auto !important;
}

.custom-footer a {
  text-decoration: none;
  color: #6d78a8;
  font-size: 0.9rem;
  margin-top: auto;
}

.custom-footer p {
  color: #6d78a8;
  margin-top: auto;
  font-size: 0.9rem;
}
/* Адаптивность для мобильных устройств */
@media (max-width: 767px) {
  .form-select,
  .form-control,
  .btn {
    border-radius: 4px !important;
    border: none;
  }
  .search-block {
    border-radius: 2px;
    padding: 0px;
    background: none;
    box-shadow: none !important;
  }
  .search-row select {
    background: white;
  }
  .search-form select,
  input,
  button {
    height: 40px;
    border: rgba(74, 108, 247, 0.1);
  }
  .category-icon {
    background: rgba(74, 108, 247, 0.1);
  }

  .category-filters {
    gap: 5px;
    display: grid;
    grid-template-columns: repeat(4, minmax(min-content, 1fr));
  }
  .search-form {
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 0;
  }
  .search-field {
    flex: 1;
    width: 100%;
    margin-bottom: 2px;
    padding-left: 0;
    padding-right: 0;
  }
  .search-button {
    margin-top: 0;
    width: 100%;
    border-radius: 4px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .category-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .category-name {
    font-size: 10px;
  }
  .contact-card {
    padding: 12px;
  }
  .avatar {
    width: 60px;
    height: 60px;
  }
  .name {
    font-size: 16px;
  }
  .verification-badge {
    width: 14px;
    height: 14px;
    font-size: 7px;
  }
  .description {
    font-size: 11px;
  }
  .social-icon {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  select,
  input {
    border-radius: 4px;
  }
  .category-filter {
    width: auto;
    height: auto;
    background: white;
    padding: 5px;
  }
  .category-filters a {
    min-width: min-content;
  }
  .category-filter.active {
    background-color: #e6e6fa;
    box-shadow: 0 0 10px 0px #fff;
    border: 1px solid #4a6cf6;
  }
  .category-icon {
    width: 27px;
    height: 27px;
  }

  .search-row {
    flex-direction: column; /* Stack the items vertically */
    width: 100%; /* Take full width */
  }
  .search-field {
    flex: 1;
    width: 100%;
    margin-bottom: 4px;
    padding-left: 0;
    padding-right: 0;
  }
}

.dark-overlay {
  color: white;
  padding: 20px 0;
}

.vr {
  color: #b0c4de;
}

.container-recommend {
  color: black;
}

.container-recommend h1 {
  font-size: 1.2rem;
}

.container-recommend label {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 0px;
}

.form-control::placeholder {
  color: lightgray;
  opacity: 1;
}

#search-link {
  font-size: 1rem;
  height: 100%;
}
