:root {
  --page-bg: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --soft-bg: #f2f2f7;
  --soft-text: #515154;
  --border: rgba(0, 0, 0, .06);
  --border-dark: rgba(0, 0, 0, .08);
  --shadow-soft: 0 18px 55px rgba(0, 0, 0, .045);
  --shadow-card: 0 24px 70px rgba(0, 0, 0, .07);
  --radius-card: 28px;
  --radius-hero: 32px;
  --radius-control: 16px;

  --highlight-gray: #f3f4f6;
  --highlight-yellow: #fff4c2;
  --highlight-blue: #e5efff;
  --highlight-gradient-light: linear-gradient(135deg, #ffffff 0%, #edf3ff 100%);
  --highlight-gradient-dark: linear-gradient(135deg, #171717 0%, #373737 100%);
  --highlight-dark-text: #fff;
  --highlight-dark-badge-bg: rgba(255, 255, 255, .14);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

.fs-12 {
  font-size: 12px;
}

.fs-13 {
  font-size: 13px;
}

.fs-14 {
  font-size: 14px;
}

h1,
h2,
h3,
.navbar-brand {
  letter-spacing: -.035em;
}

.form-control,
.form-select,
.btn {
  border-radius: var(--radius-control);
}

.btn-brand {
  background: linear-gradient(93deg, #1E5BF0, #3470FF 25.38%, #76A0FF 50.31%, #2864F5 67.83%, #4A7EFF 84.16%, #8AABFF);
  border: 0;
  color: #fff;
  box-shadow: none;
}

.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active,
.btn-brand:focus-visible {
  background: linear-gradient(93deg, #174ED6, #2864EB 25.38%, #668FEF 50.31%, #1D56DE 67.83%, #3C70EE 84.16%, #789AF0);
  border: 0;
  color: #fff !important;
  box-shadow: none !important;
  outline: none;
}

/* Навигация */
.nav-menu-link {
    border-color: transparent;
}

.nav-menu-link:hover,
.nav-menu-link.active {
    background: var(--bs-secondary-bg);
    border-color: transparent !important;
    color: var(--bs-body-color);
}
.navbar-blur {
  z-index: 1030;
  background: rgba(245, 245, 247, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar .nav-link.active {
  color: var(--text);
  font-weight: 600;
}

/* Hero */

.hero-box {
  min-height: 330px;
  color: #fff !important;
  background-image:
    url("/assets/img/bg.svg"),
    linear-gradient(120deg, #a1c4fd 0%, #2561F2 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-hero);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .06);
}
.company-hero-default {
  background-image:
    url("/assets/img/bg.svg"),
    linear-gradient(120deg, #a1c4fd 0%, #2561F2 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: var(--radius-hero);
}

/* Карточки */

.card-soft {
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.job-card,
.feature-card,
.tariff-card,
.audience-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.job-card {
  display: block;
  cursor: pointer;
}

.job-card:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.feature-card:hover,
.tariff-card:hover,
.audience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.job-card-highlight-gray {
  background: var(--highlight-gray);
}

.job-card-highlight-yellow {
  background: var(--highlight-yellow);
}

.job-card-highlight-blue {
  background: var(--highlight-blue);
}

.job-card-highlight-gradient-light {
  background: var(--highlight-gradient-light);
}

.job-card-highlight-gradient-dark {
  background: var(--highlight-gradient-dark);
  color: var(--highlight-dark-text);
}

.job-card-highlight-gradient-dark .text-muted,
.job-card-highlight-gradient-dark .text-dark {
  color: var(--highlight-dark-text) !important;
}

.job-card-highlight-gradient-dark .badge-soft {
  background: var(--highlight-dark-badge-bg);
  color: var(--highlight-dark-text);
}

.badge-soft {
  background: var(--soft-bg);
  color: var(--soft-text);
  font-weight: 500;
}

/* Фильтры */

#filters {
  position: relative;
  z-index: 1;
}

.filter-card {
  position: sticky;
  top: 88px;
  z-index: 1;
}

.filter-section + .filter-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.filter-check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}

.filter-check-input {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.filter-location-search {
  position: relative;
}

.filter-location-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 10;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.filter-location-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.filter-location-option:hover {
  background: #f8f9fa;
}

.filter-location-option input {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.filter-reset {
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: none;
}

#filters .form-control:focus,
#filters .form-select:focus,
.mobile-filter-offcanvas .form-control:focus,
.mobile-filter-offcanvas .form-select:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(29, 29, 31, .12);
}

#filters .form-check-input,
.mobile-filter-offcanvas .form-check-input {
  border-color: rgba(29, 29, 31, .35);
  box-shadow: none;
}

#filters .form-check-input:focus,
.mobile-filter-offcanvas .form-check-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(29, 29, 31, .12);
}

#filters .form-check-input:checked,
.mobile-filter-offcanvas .form-check-input:checked {
  background-color: var(--text);
  border-color: var(--text);
}

.filter-mobile-wrap {
  display: flex;
  justify-content: flex-start;
}

.filter-mobile-btn {
  position: fixed;
  bottom: 18px;
  left: 50%;
  z-index: 1030;
  width: auto !important;
  flex: 0 0 auto;
  transform: translateX(-50%);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.mobile-filter-offcanvas {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 1055 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.mobile-filter-offcanvas.offcanvas-start {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  transform: translateX(-100%);
}

.mobile-filter-offcanvas.offcanvas-start.show,
.mobile-filter-offcanvas.offcanvas-start.showing {
  transform: none;
}

.mobile-filter-offcanvas .offcanvas-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}

.mobile-filter-offcanvas .offcanvas-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 24px;
}

.mobile-filter-content {
  flex: 1 0 auto;
}

.mobile-filter-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 30px;
  padding-top: 16px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
}

/* Вакансии */

.vacancies-loading {
  min-height: 40px;
}

.vacancy-pagination-wrap {
  margin-top: 32px;
}

.vacancy-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 999px;
}

.vacancy-pagination-link,
.vacancy-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  background: transparent;
  color: #6c757d;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  text-decoration: none;
}

.vacancy-pagination-link {
  cursor: pointer;
}

.vacancy-pagination-link:hover {
  background: #f5f6f8;
  color: #212529;
}

.vacancy-pagination-link.active {
  background: var(--text);
  color: #fff;
}

.vacancy-pagination-next {
  font-size: 22px;
}

/* Тарифы */

.tariffs-hero-box {
  position: relative;
  min-height: 580px;
  overflow: hidden;
}

.tariffs-hero-decoration {
  position: relative;
  min-height: 500px;
}

.tariffs-hero-circle {
  position: absolute;
  top: 45px;
  right: -40px;
  width: 410px;
  height: 410px;
  background: var(--soft-bg);
  border-radius: 50%;
}

.tariffs-hero-card {
  position: absolute;
  z-index: 2;
  width: 310px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .12);
}

.tariffs-hero-card-first {
  top: 85px;
  right: 70px;
  transform: rotate(-4deg);
}

.tariffs-hero-card-second {
  top: 285px;
  right: 10px;
  transform: rotate(5deg);
}

.tariffs-hero-card-icon,
.feature-icon,
.step-number,
.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--soft-bg);
  border-radius: var(--radius-control);
  font-size: 22px;
}

.tariffs-hero-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
}

.tariff-card {
  overflow: hidden;
}

.tariff-card-popular {
  background: var(--text);
  color: var(--surface);
}

.workflow-step {
  position: relative;
  z-index: 2;
}

.step-number {
  margin: 0 auto 20px;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
  font-size: 17px;
  font-weight: 700;
}

.accordion-item {
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: 20px !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .035);
}

.accordion-button {
  padding: 22px 24px;
  background: var(--surface);
  font-weight: 600;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--text);
  background: var(--surface);
}

.accordion-body {
  padding: 0 24px 24px;
  color: var(--muted);
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-hero);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .06);
}

.cta-circle {
  position: absolute;
  right: -90px;
  bottom: -190px;
  width: 340px;
  height: 340px;
  background: var(--soft-bg);
  border-radius: 50%;
}

/* Создание вакансии */

.place-vacancy-page {
  margin-top: 72px;
}

.vacancy-field {
  min-height: 58px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: none;
}

.vacancy-textarea {
  min-height: 130px;
  resize: vertical;
}

.vacancy-field:focus {
  background: #fff;
  border: 0;
  box-shadow: 0 0 0 2px var(--text);
}

.vacancy-field.is-invalid,
.was-validated .vacancy-field:invalid {
  background-image: none;
  box-shadow: 0 0 0 2px #dc3545;
}

.vacancy-field.is-valid,
.was-validated .vacancy-field:valid {
  background-image: none;
  box-shadow: none;
}

.invalid-feedback {
  margin-top: 8px;
}

.custom-select-toggle {
  position: absolute;
  top: 50%;
  right: 18px;
  z-index: 3;
  padding: 8px;
  color: #6e6e73;
  transform: translateY(-50%);
}

.custom-select-input {
  padding-right: 56px;
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  z-index: 1050;
  max-height: 320px;
  padding: 12px;
  overflow-y: auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .14);
}

.custom-select-option {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  color: var(--text);
  border: 0;
  border-radius: 14px;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option:focus {
  background: var(--soft-bg);
}

.tariff-option-card {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.tariff-option-card:hover {
  border-color: rgba(0, 0, 0, .35) !important;
}

.tariff-radio:checked + .tariff-option-card {
  border-color: var(--text) !important;
  box-shadow: 0 0 0 1px var(--text);
}

.addon-card {
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.addon-card:hover {
  border-color: rgba(0, 0, 0, .35) !important;
}

.addon-card-active {
  border-color: var(--text) !important;
  box-shadow: 0 0 0 1px var(--text);
}

.addon-card-included {
  cursor: default;
  background: var(--page-bg) !important;
}

.place-vacancy-page .btn-check:checked + .btn-outline-dark {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.place-vacancy-page .form-check-input {
  border-color: rgba(0, 0, 0, .35);
  box-shadow: none;
}

.place-vacancy-page .form-check-input:focus {
  border-color: var(--text);
  box-shadow: 0 0 0 .2rem rgba(29, 29, 31, .1);
}

.place-vacancy-page .form-check-input:checked {
  background-color: var(--text);
  border-color: var(--text);
}

.place-vacancy-page .form-check-input:disabled {
  opacity: 1;
}

/* Футер */

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}

.footer-link:hover {
  color: var(--text);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  background: var(--soft-bg);
  color: var(--text);
  transition: background .2s ease;
}

.footer-social-link:hover {
  background: #e8e8ed;
  color: var(--text);
}

.footer-menu-toggle {
  color: var(--text);
}

.footer-menu-toggle i {
  transition: transform .2s ease;
}

.footer-menu-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* Наверх */

.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1020;
  width: 42px;
  height: 42px;
  background: var(--text);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
  transition: transform .2s ease, background .2s ease;
}

.scroll-top-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

/* Cookie */

.cookie-banner {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1060;
  width: min(420px, calc(100% - 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.cookie-banner-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}

.default-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Адаптив */

@media (max-width: 991.98px) {
  .hero-box {
    border-radius: 24px;
  }

  #filters {
    display: none;
    height: auto !important;
  }

  .filter-card {
    position: static;
    top: auto;
  }

  .tariffs-hero-box {
    min-height: auto;
  }

  .tariffs-hero-decoration {
    min-height: 390px;
  }

  .tariffs-hero-card {
    width: min(300px, calc(100% - 40px));
  }

  .tariffs-hero-card-first {
    top: 60px;
    right: 50%;
    transform: translateX(50%) rotate(-3deg);
  }

  .tariffs-hero-card-second {
    top: 225px;
    right: 50%;
    transform: translateX(50%) rotate(3deg);
  }

  .workflow-line::before {
    display: none;
  }

  .place-vacancy-page {
    margin-top: 56px;
  }
}

@media (max-width: 767.98px) {
  .scroll-top-btn {
    right: 16px;
    bottom: 16px;
  }

  .cookie-banner {
    left: 16px;
    bottom: 72px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 575.98px) {
  .hero-box {
    min-height: 220px;
  }

  .hero-box .display-3 {
    font-size: 30px;
    line-height: 1.1;
  }

  .hero-box .fs-5 {
    font-size: 1rem !important;
  }

  .tariffs-hero h1 {
    font-size: 42px;
  }

  .tariff-price {
    font-size: 38px;
  }

  .tariffs-hero-card {
    width: calc(100% - 20px);
  }

  .vacancy-pagination {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .vacancy-pagination-link,
  .vacancy-pagination-ellipsis {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    flex-shrink: 0;
    font-size: 14px;
  }
}

/* Кейсы */
.cases-slider {
    padding: 0 64px;
}

.cases-swiper {
    width: 100%;
    overflow: hidden;
}

.cases-swiper .swiper-wrapper {
    align-items: stretch;
}

.cases-swiper .swiper-slide {
    height: auto;
}

.cases-swiper .card {
    min-height: 500px;
}

.cases-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    z-index: 10;
}

.cases-arrow-prev {
    left: 0;
}

.cases-arrow-next {
    right: 0;
}

.cases-pagination {
    display: none;
}

@media (max-width: 991.98px) {
    .cases-slider {
        padding: 0;
    }

    .cases-swiper {
        overflow: hidden;
    }

    .cases-pagination {
        display: flex;
        justify-content: center;
        gap: 6px;
        position: static !important;
        margin-top: 24px;
    }

    .cases-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        margin: 0 !important;
        background: #dfe7f8;
        opacity: 1;
    }

    .cases-pagination .swiper-pagination-bullet-active {
        background: #5181F5;
    }
}