:root, [data-bs-theme=light] {
  --bs-primary: #2664F7;
  --bs-primary-rgb: 38, 100, 247;
  --bs-secondary: #628BEE;
  --bs-secondary-rgb: 0, 120, 215;
  --bs-primary-bg-subtle: rgb(38, 100, 247);
  --bs-link-color: #2664F7;
  --bs-link-color-rgb: 38, 100, 247;
}

body {
  font-family: "Open Sans";
  color: #555;
}

a:focus, a:hover, a:active {
  color: #2664F7;
}

a.btn.btn-primary:focus, a.btn.btn-primary::hover, a.btn.btn-primary::active {
  color: #FFF;
}


a {
  color: #2664F7;
}

a {
  color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
  text-decoration: underline;
}

#mainNav {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-weight: 700;
  font-family: "Carlito";
  font-size: 0.95rem;
}

@media (min-width: 992px) {
  #mainNav .navbar-nav > li.nav-item > a.nav-link.active, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:active, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:focus, #mainNav .navbar-nav > li.nav-item > a.nav-link.active:hover {
    color: #fff;
    background: var(--bs-primary);
  }
}

#mainNav .navbar-nav li.nav-item a.nav-link:active, #mainNav .navbar-nav li.nav-item a.nav-link:focus {
  background: var(--bs-primary);
}

#mainNav .navbar-nav {
  margin-top: 0;
  letter-spacing: normal;
}

#mainNav .navbar-nav li.nav-item a.nav-link:hover {
  color: #f5f8ff;
}

#mainNav .navbar-nav li.nav-item a.nav-link.active {
  color: #FFF;
}

#mainNav .navbar-brand img {
  width: 28px;
  margin-top: -8px;
}

@media (min-width: 992px) {
  #mainNav.navbar-shrink .navbar-brand img {
    width: 24px;
    margin-bottom: -1px;
  }
}

@media (max-width: 992px) {
  #mainNav .navbar-brand img {
    width: 28px;
    vertical-align: inherit;
  }
}

@media (max-width: 992px) {
  #mainNav .navbar-brand {
    font-size: 1.7rem;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Carlito";
  /*color: #01091d;*/
  text-transform: uppercase;
}

@media (min-width: 992px) {
  header.masthead h1, header.masthead .h1 {
    font-size: 1.75rem;
    line-height: 1.15;
  }
}

@media (max-width: 991px) {
  header.masthead h1, header.masthead .h1 {
    font-size: 1.5rem;
    line-height: 1.15;
  }
}

header.masthead {
  background: url("../../assets/img/hero-top-45.png") left 40px / 30% no-repeat, url("../../assets/img/hero-bottom-45.png") right bottom 30px / 55vw no-repeat, #f9f9f9;
}

@media (max-width: 576px) {
  header.masthead {
    background: url("../../assets/img/hero-top-45.png") left 80px / 60% no-repeat, url("../../assets/img/hero-bottom-45.png") right bottom / 85% no-repeat, #f9f9f9;
    padding-top: calc(6rem + 72px);
    padding-bottom: 1rem;
  }
}

#about {
  background: url("../../assets/img/hero-right-top-45.png") top right / 30% no-repeat, url("../../assets/img/hero-left-bottom-45.png") bottom left / 50% no-repeat;
}

@media (max-width: 576px) {
  #about {
    background: url("../../assets/img/hero-right-top-45.png") top right / 55% no-repeat, url("../../assets/img/hero-left-bottom-45.png") bottom left / 80% no-repeat;
  }
}

.bg-primary {
  background-color: #073dba !important;
}

.bg-secondary {
  background-color: var(--bs-secondary) !important;
}

.bg-secondary-light {
  background-color: rgba(var(--bs-secondary-rgb),0.1) !important;
}

.btn-primary {
  --bs-btn-color: #FFF;
  --bs-btn-bg: #2664F7 !important;
  --bs-btn-border-color: #2664F7 !important;
  --bs-btn-hover-color: #FFF;
  --bs-btn-hover-bg: #628bee;
  --bs-btn-hover-border-color: #628bee;
  --bs-btn-focus-shadow-rgb: 20, 160, 133;
  --bs-btn-active-color: #FFF;
  --bs-btn-active-bg: #628bee;
  --bs-btn-active-border-color: #628bee;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #000;
  --bs-btn-disabled-bg: #2664F7 !important;
  --bs-btn-disabled-border-color: #2664F7 !important;
}

.btn-primary {
  background-color: #2664F7;
  border-color: #2664F7;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #628bee;
  border-color: #628bee;
  color: #FFF;
}

.service-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #2664F7;
  cursor: unset;
}

.counter {
  font-size: 2.5rem;
  transition: all 0.3s ease;
  color: #2664F7;
}

/* ** */

.timeline {
  row-gap: 2rem;
}

.timeline-step {
  max-width: 260px;
  margin-inline: auto;
  position: relative;
  padding: 1rem 0;
}

.timeline-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
}

.timeline-icon i {
  font-size: 26px;
}

/* Стрелки между шагами на десктопе */

.timeline-arrow span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 24px;
  padding-inline: 0.5rem;
}

/* Горизонтальная линия под шагами (десктоп) */

@media (min-width: 992px) {
  .timeline {
    position: relative;
  }
}

@media (min-width: 992px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 48px;
    height: 2px;
    background: linear-gradient( to right, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.15) );
    z-index: 0;
  }
}

@media (min-width: 992px) {
  .timeline-step {
    z-index: 1;
  }
}

/* На мобильных — вертикальный таймлайн */

@media (max-width: 991.98px) {
  .timeline {
    position: relative;
    padding-left: 1.5rem;
  }
}

@media (max-width: 991.98px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.25);
  }
}

@media (max-width: 991.98px) {
  .timeline-step {
    max-width: none;
    text-align: left !important;
    padding-left: 1.5rem;
    margin-left: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  .timeline-step .timeline-icon {
    margin: 0 0 0.5rem;
    position: absolute;
    left: -16px;
    top: 0;
    transform: translate(-50%, 0);
  }
}

.footer {
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-color: #04236c;
  color: #fff;
}

.form-check-input:checked {
  background-color: #2664F7;
  border-color: #2664F7;
}

.form-control:focus {
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
  border-color: rgb(0, 120, 215.30);
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(0, 120, 215, .25);
}

a.btn-outline-light:focus {
  color: #FFF;
}

a.btn-outline-light:hover {
  color: #073dba;
}

.form-control-lg {
  min-height: calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));
  padding: .75rem 1.5rem;
  font-size: 1rem;
  border-radius: var(--bs-border-radius-lg);
}

