/* =========================================
   КОМПОНЕНТЫ: SWIPER NAVIGATION & PAGINATION
   ========================================= */
.swiper__nav { display: flex; }

.swiper-button-next,
.swiper-button-prev,
.front-slider .swiper-nav-bx .swiper-button-next {
  position: relative;
  left: 0; right: 0; top: 0;
  width: 46px; height: 46px;
  margin: 0 2px;
  border: 1px solid #000;
  color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1;
  width: 34px; height: 34px;
  background: hsla(0, 0%, 100%, 0.5);
}
.swiper-button-next img,
.swiper-button-prev img { position: relative; z-index: 2; }
.swiper-button-next img { transform: rotate(180deg); }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}
.pagination li {
  width: 40px;
  height: 40px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination li.current a {
  background-color: rgba(0, 0, 0, 0);
  color: var(--black);
  font-weight: 700;
  pointer-events: none;
}
.pagination a {
  width: 100%;
  display: block;
  padding: 10px;
  background-color: #ecf0ef;
  text-decoration: none;
  color: #314cba;
  text-align: center;
  font-size: 15px;
  font-weight: 400;
}
.pagination a:hover {
  color: var(--white);
  background-color: #173488;
}

/* =========================================
   КОМПОНЕНТЫ: PAGE SEARCH
   ========================================= */
.page-search { margin-bottom: 50px; }
.page-search .nav-links { display: flex; }
.page-search .list { display: flex; flex-direction: column; gap: 20px; }
.page-search .item { border: 1px solid #007aff; padding: 10px; }
.page-search .item__text { padding-top: 15px; border-top: 1px solid #007aff; margin-top: 15px; }
.page-search .item__title { display: flex; align-items: center; gap: 30px; }
.page-search .item__title .item__number {
  border-radius: 50%;
  background-color: lightblue;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}

/* =========================================
   КОМПОНЕНТЫ: TABS (Вкладки)
   ========================================= */
.tabs { width: 100%; }

.tabs-labels { display: flex; gap: 15px; }
@media (max-width: 768px) {
  .tabs-labels { overflow: auto; padding-bottom: 8px; padding-right: 35px; margin-bottom: -8px; }
}

.tabs-labels__item { padding: 10px 20px; white-space: nowrap; background: #ddd; border-radius: 0; cursor: pointer; }
@media (max-width: 768px) { .tabs-labels__item { padding: 10px; } }

.tabs-labels__item.active { background: #fff !important; box-shadow: 0 4px 10px rgba(53, 64, 71, 0.14); pointer-events: none; }
.tabs-labels__item.active > * { pointer-events: all; }

.tabs-labels__item .page-title { font-size: 2em; margin-bottom: 0; }
@media (max-width: 768px) { .tabs-labels__item .page-title { font-size: 1.4em; } }

.tabs-scrollable { position: relative; }
.tabs-scrollable::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: 2; display: block;
  width: 70px; height: 100%; background: linear-gradient(90deg, hsla(0, 0%, 98.4%, 0), #fff);
  transition: 0.3s; pointer-events: none;
}

.tabs-contents { position: relative; width: 100%; background: #fff; border-radius: 0; box-shadow: 0 4px 10px rgba(53, 64, 71, 0.14); }
.tabs-contents__item { display: none; width: 100%; padding: 5px 15px 15px; }
@media (max-width: 768px) { .tabs-contents__item { padding: 10px; } }
.tabs-contents__item.active { display: block; }

/* =========================================
   КОМПОНЕНТЫ: FORMS (Contact Form 7)
   ========================================= */
.form-wrap form { text-align: left; width: 100%; display: flex; flex-direction: column; gap: 15px; }
.form-wrap form .input-base p, .form-wrap form .input-base span { display: block; }

.form-wrap .input-base input,
.form-wrap .input-base textarea {
  padding: 15px; height: auto; display: block; width: 100%;
  font-size: 1rem; font-weight: 400; line-height: 1.2; color: #000;
  background-color: #fff; background-clip: padding-box;
  border: 1px solid #ced4da; border-radius: 0;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-wrap .input-base input:required:valid,
.form-wrap .input-base textarea:required:valid { border-color: green; }
.form-wrap .input-base input:focus { border-color: red; }

.form-wrap .input-base textarea { display: block; margin: 0; width: 100%; min-height: 120px; box-sizing: border-box; resize: vertical; }

.form-wrap form .label-check { position: relative; padding-left: 24px; }
.form-wrap form .label-check br { display: none; }
.form-wrap form .label-check a { color: var(--main-color, #4e1528); }
.form-wrap form .label-check .wpcf7-form-control-wrap { position: static; }
.form-wrap form .label-check .wpcf7-list-item { margin-left: 0; }
.form-wrap form .label-check input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }

.form-wrap form .label-check input + span { position: absolute; top: 0.2em; left: 0; width: 16px; height: 16px; }
.form-wrap form .label-check input + span::before {
  content: ""; position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%;
  border: 1px solid #959c9b; border-radius: 2px; box-sizing: border-box; transition: 0.3s;
}
.form-wrap form .label-check input + span::after {
  content: ""; display: block; width: 7px; height: 4px; position: absolute; top: 50%; left: 50%;
  color: var(--main-color, #4e1528); border: 1px solid; border-width: 0 0 1px 1px;
  transition: 0.3s; opacity: 0; transform: translate(-50%, -75%) rotate(-45deg);
}
.form-wrap form .label-check input:checked + span::after { opacity: 1; }
.form-wrap form .label-check input:checked + span::before { border-color: var(--main-color, #4e1528); }

.form-wrap form .button-wrapper,
.form-wrap form .button-wrapper > p { position: relative; display: flex; align-items: center; width: 100%; margin: 0; }
.form-wrap form .button-wrapper .btn {
  font-size: 1rem; border: 0; padding: 15px; color: #fff; background-color: #173488;
  min-width: 200px; display: block; text-align: center; transition: background-color 0.3s ease; cursor: pointer;
}
.form-wrap form .button-wrapper .btn:hover { background-color: #112767; }

.form-wrap form .wpcf7-spinner { position: absolute; right: 24px; margin: 0; }
.form-wrap form .wpcf7-response-output { text-align: center; margin: 18px 0 0 !important; border-radius: 15px; }
.form-wrap form .wpcf7-response-output:empty { display: none; }

/* =========================================
   КОМПОНЕНТЫ: DROPDOWN (Выпадающие меню)
   ========================================= */
.dropdown {
  display: flex;
  align-items: center;
  gap: 3px;
  position: relative;
}
.dropdown__content {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translate(-35%, 0);
  z-index: 10;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}
.dropdown__content.active {
  display: block;
}
.dropdown__content a {
  font-size: 14px;
  font-weight: 400;
  color: #16181b;
  padding: 5px 10px;
  display: block;
  width: 100%;
}
.dropdown__content a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}