:root {
	--theme-color-blue: #00589C;
	--theme-color-light-blue: #E1F2FC;
	--theme-color-super-light-blue: #EDF7FF;
	--theme-color-green: #009B84;
	--theme-color-light-green: #00B294;
	--theme-color-dark-green: #007F6C;
}

h1 {
	background: var(--theme-color-blue);
	color: var(--theme-color-super-light-blue);
	font-size: 2.5rem;
	font-weight: normal;
	text-transform: uppercase;
	margin: 0;
	padding-top: .5rem;
	padding-bottom: .5rem;
	padding-right: 1rem;
	padding-left: 1rem 
}

.btn-primary {
  box-shadow: 0px 2px 8px 0px rgba(34, 60, 80, 0.12) !important;
}

.btn-primary:hover {
  box-shadow: 0px 8px 16px 0px rgba(34, 60, 80, 0.15) !important;
  
  /* Fix button styles */
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

.btn-green {
	--bs-btn-bg: var(--theme-color-green);
	--bs-btn-border-color: var(--theme-color-green);
	--bs-btn-hover-bg: var(--theme-color-light-green);
	--bs-btn-hover-border-color: var(--theme-color-light-green);
	--bs-btn-active-bg: var(--theme-color-dark-green);
	--bs-btn-active-border-color: var(--theme-color-dark-green);
	
	/* Fix button styles */
	background-color: var(--bs-btn-bg);
	--bs-btn-border-width: 1px;
	--bs-btn-border-radius: 8px;
	border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
	border-radius: var(--bs-btn-border-radius);
}

@media (min-width: 992px) {
  .text-lg-start {
    text-align: left !important;
  }
}

.gap-3 {
  gap: 1rem !important;
}

/* Обложка */

.cover-wrapper {
  position: relative;
  overflow: hidden;
}

.cover-wrapper .cover {
  position: relative;
  background: url(img/cover.jpg) right center / auto 100% no-repeat;
  padding-bottom: 1.5rem;
}

.cover-wrapper .cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--theme-color-super-light-blue) 0%,
    var(--theme-color-super-light-blue) 40%,
    white 60%,
    rgba(255, 255, 255, 0) 80%
  );
  pointer-events: none;
}

.cover-wrapper .cover .cover-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.cover-wrapper .cover .cover-content .title {
  max-width: 55%;
  background: transparent;
}

.cover-wrapper .cover .cover-content .title h2 {
	color: var(--theme-color-blue);
	font-size: 2.5rem;
	margin: 0;
}

.cover-wrapper .cover .cover-content .title p {
	font-size: 1.25rem;
	margin: 0;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

@media (max-width: 767.98px) {
  .cover-wrapper .cover {
    background: var(--theme-color-super-light-blue);
	  background-image: none;
    padding-bottom: 0;
  }

  .cover-wrapper .cover::before {
    display: none;
  }

  .cover-wrapper .cover::after {
    content: '';
    display: block;
    height: 200px;
    background: url(img/cover.jpg) center center / cover no-repeat;
  }

  .cover-wrapper .cover .cover-content .title {
    max-width: 100%;
  }
}

/* Features */

.features {
  position: relative;
  margin-top: -60px;
}

.features .row > * {
	margin-top: 24px;
}

.features::before {
  content: '';
  position: absolute;
  top: 60px; /* Отступ, равный margin-top, чтобы фон начинался после наложения */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--theme-color-light-blue);
  z-index: -1;
}

.features .card {
  background: white !important;
  box-shadow: 0px 2px 8px 0px rgba(34, 60, 80, 0.12);
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px;
  margin: 0 !important;
  padding: 0 !important;
}
/* Fix card's border-radius */
main.news .card {
  border-radius: 8px !important;
  margin: 0 !important;
}

.features .card-body {
  padding: 16px !important;
}

.features .card-body h3 {
  font-size: 1.5rem;
  margin: 0;
}

.features .card-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.features .card-icon .ico {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
  fill: var(--theme-color-blue);
  stroke: var(--theme-color-blue);
  transition: transform 0.2s ease;
}

.features .card:hover .card-icon .ico {
  transform: scale(1.05);
}

@media (max-width: 767.98px) {
  .features {
    margin-top: 0;
  }

  .features::before {
    top: 0;
    background: var(--theme-color-super-light-blue);
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .features .card-body h3 {
    font-size: 1.25rem;
  }

  .features .card-icon .ico {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
  }
}

/* Этапы */

.stages {
  background: var(--theme-color-light-blue);
}

.stages h2 {
	font-size: 2rem;
}

.stages .row > * {
	margin-top: 24px;
}

.stages .step-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  text-align: left;
}

.stages .step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-color-blue);
  color: white;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 20px;
}

.stages .step-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stages .step-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stages .step-icon .ico {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  fill: var(--theme-color-blue);
  stroke: var(--theme-color-blue);
  transition: transform 0.2s ease;
}

.stages .step-item:hover .step-icon .ico {
  transform: scale(1.05);
}

.stages .step-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

@media (min-width: 768px) {
  .stages .step-content {
    flex-direction: column;
    gap: 8px;
  }

  .stages .step-text {
	  text-align: center;
  }
}

@media (max-width: 767.98px) {
  .stages .step-content {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .stages .step-text {
    flex: 1;
  }

  .stages .step-number {
	  margin-left: calc(50% - 170px);
  }
}

/* Преимущества */

.advantages {
  background: var(--theme-color-super-light-blue);
}

.advantages h2 {
	font-size: 2rem;
}

.advantages .row > * {
	margin-top: 24px;
}

.advantages .advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.advantages .advantage-icon .ico {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  fill: var(--theme-color-blue);
  stroke: var(--theme-color-blue);
  transition: transform 0.2s ease;
}

.advantages .advantage-item:hover .advantage-icon .ico {
  transform: scale(1.05);
}

.advantages .advantage-item-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}
