/* --- КАСТОМНЫЕ СТИЛИ (CSS) --- */
:root {
  --primary-color: #484F9F; /* Цвет из макета */
  --bg-light: #E9EAF4; /* Светло-лиловый фон */
  --text-dark: #112049;
  --card-radius: 20px;
  --plyr-color-main: #484F9F;
  --pr-gray: #E9EAF4;
  --pr-red: #EC213F;
  --pr-white: #ffffff;
  --pr-radius-5: 5px;
}

body {
  font-family: 'montserrat-example', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 125%;
}

.gray-wrapper {
	background: var(--pr-gray);
	color: var(--pr-dark);
	border-radius: var(--pr-radius-5);
}

.red-wrapper {
	background: var(--pr-red);
	color: var(--pr-white);
	border-radius: var(--pr-radius-5);
}

.light-wrapper {
	background: var(--pr-white);
	color: var(--text-dark);
	border-radius: var(--pr-radius-5);
}

ul.square {
  list-style: none;
}
ul.square li {
  position: relative;
}

ul.square li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--pr-red);
  border-radius: var(--pr-radius-5);
  position: absolute;
  left: -30px;
  top: 3px;
}

/* Хедер с закруглением */
.hero-section {
  background-color: var(--primary-color);
  color: white;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  height: 660px;
  font-size: 18px;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
}

.hero-section span.text-start.fw-medium {
	font-size: 16px;
}

.small-btn .btn {
	font-size: 16px;
	text-transform: none;
}

.top-bar {
  padding-top: 20px;
}
.phone-link:hover {
	opacity: .8;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: white;
  opacity: .8;
}

.hero-title {
  font-weight: 700;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.scroll-down-icon {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Секция преимуществ (01, 02, 03) */
.features-section {
  padding: 80px 0;
  font-size: 20px;
  font-weight: 500;
}

.feature-number {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.feature-box {
  border-left: 1px solid #707992;
  padding-left: 20px;
}

/* Убираем бордер на мобильных для красоты */
@media (max-width: 768px) {
  .feature-box {
    border-left: none;
    border-top: 1px solid #707992;
    padding-top: 20px;
    padding-left: 0;
    margin-top: 20px;
  }
}

/* Табы (Навигация) */
.tabs-section {
	padding: 80px 0;
  font-weight: 500;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  position: relative;
  overflow: hidden;
}

.custom-nav-pills .nav-item {
	margin: 1px;
}
.custom-nav-pills .nav-item:last-child {
	margin-right: 0;
}
.custom-nav-pills .nav-item:first-child {
	margin-left: 0;
}
.custom-nav-pills .nav-link {
  color: #666;
  border-radius: 8px;
  padding: 15px 25px;
  font-weight: 500;
  background-color: #E9EAF4;
}

.custom-nav-pills.custom-nav-pills--light .nav-link {
  color: var(--text-dark);
  border-radius: 8px;
  padding: 15px 25px;
  font-weight: 500;
  background-color: var(--pr-white);
}

.custom-nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: white;
}

/* Карточки */
.service-card {
  border: none;
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  background: white;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card--tag {
	font-size: 10px;
	padding: 6px 8px;
	top: 10px;
	right: 10px;
  line-height: normal;
}
.bg-primary.service-card--tag {
	background-color: #484F9F !important;
}

.card-img-top {
  height: 200px;
  object-fit: cover;
  background-color: #f8f9fa; /* Цвет заглушки */
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card-title .small {
	font-size: 14px;
}

.btn-link-custom {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  font-size: 0.9rem;
}

.btn-link-custom:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}



section {
  padding: 60px 0;
}

h2.section-title {
  font-weight: 700;
  margin-bottom: 40px;
}


/* Контейнер для карточки, чтобы задать отступы для выступающего кружка */
.step-wrapper {
  position: relative;
}

/* Красный бейдж с номером */
.step-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background-color: #ef3b4e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  z-index: 10; /* Поверх всего */
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.step-badge-right {
	right: 0;
	left: inherit;
}

/* Белый круг для стрелки (визуальный мостик) */
/* Он сливается с основной карточкой, создавая эффект сложной формы */
.step-arrow-circle {
  position: absolute;
  top: 0;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 7; /* Под красным кругом, но на уровне карточки */
  padding-left: 10px; /* Сдвиг иконки стрелки визуально */
}

.bg-white .step-arrow-circle {
  background-color: #E9EAF4;
}
  
.step-arrow-icon {
  font-size: 1.5rem;
  color: #2c2c2c;
  transform: rotate(-45deg); /* Если стрелка нужна под углом */
  /* На скрине прямая стрелка, уберем поворот */
  transform: none; 
  font-weight: bold;
}

/* Основное тело карточки */
.step-card {
  background-color: white;
  border-radius: 20px;
  border-top-left-radius: 30px; 
  padding: 90px 30px 30px 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  position: relative;
  z-index: 4;
  line-height: 120%;
  font-weight: 500;
}

.bg-white .step-card {
  background-color: #E9EAF4;
}

.step-card-right {
	padding-top: 30px;
	padding-right: 90px;
}

/* Заголовок внутри карточки */
.step-title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

/* Текст описания */
.step-desc {
  font-size: 1rem;
}

.step-card ul {
	margin-bottom: 0;
}
.step-card ul li {
	margin-bottom: 3px;
}
.step-card ul li:last-child {
	margin-bottom: 0;
}

/* Хак для идеального стыка (белый прямоугольник-заполнитель) */
/* Заполняет пространство между кругом стрелки и телом карточки */
.step-connector {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  background-color: #E9EAF4;
}
.bg-white .step-connector {
  background-color: #fff;
}

.step-connector-right {
  right: 0;
  left: inherit;
}

.step-connector-big {
	background-image: url('/template/pravovest/images/total-theme/left-border-big.svg');
	width: 109px;
  height: 74px;
}

.step-connector-small {
	background-image: url('/template/pravovest/images/total-theme/left-border-small.svg');
	width: 74px;
  height: 74px;
}

.step-connector-right.step-connector-small {
	background-image: url('/template/pravovest/images/total-theme/right-border-small.svg');
	width: 74px;
  height: 74px;
}

.bg-white .step-connector-big {
	background-image: url('/template/pravovest/images/total-theme/left-border-big-gray.svg');
	width: 109px;
  height: 74px;
}

.bg-white .step-connector-small {
	background-image: url('/template/pravovest/images/total-theme/left-border-small-gray.svg');
	width: 74px;
  height: 74px;
}

.bg-white .step-connector-right.step-connector-small {
	background-image: url('/template/pravovest/images/total-theme/right-border-small-gray.svg');
	width: 74px;
  height: 74px;
}


/* --- VIDEO BLOCK --- */
.video-placeholder {
  background-color: #dcdcdc;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

/* --- AUDIENCE LIST --- */
.audience-item.border-bottom {
	border-bottom: 1px solid #707992!important;
	padding-bottom: 20px;
}


.audience-item h5 {
  font-weight: 700;
  margin-bottom: 20px;
}

.audience-item p {
  font-size: 1rem;
  font-weight: 500;
}

.audience-divider {
  border-top: 1px solid #707992;
  margin: 20px 0;
}

/* --- LEAD FORM --- */
.lead-form-section {
  background-color: #E9EAF4; /* Чуть темнее фона страницы */
  border-radius: 30px;
  padding: 40px;
}

.form-floating > .form-control {
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.form-floating > .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(72, 75, 154, 0.25);
}



@media (max-width: 1200px) {
  /* .right-tx span {
  	max-width: 300px !important;
  } */
}

@media (max-width: 768px) {
	.hero-section {
		min-height: 500px;
		padding-bottom: 20px;
	}
	.hero-section-auto {
		height: auto;
	}
  .hero-title {
    font-size: 2.0rem;
    max-width: 100% !important;
  }
  .hero-btn {
  	max-width: 100% !important;
  }
  .right-tx {
  	font-size: 14px;
  }
  /* .right-tx span {
  	max-width: 100% !important;
  } */
  .lead-form-section {
  	padding: 40px 20px;
  }
  section {
  	padding: 30px 0;
  }
}

@media (max-width: 576px) {
  /* .right-tx span {
  	max-width: 250px !important;
  } */
}


.red-wrapper {
  background: #EC213F;
  color: #FFF;
}
.h50 {
  height: 50px;
}
.w50 {
  width: 50px;
}
.h15 {
  height: 15px;
}
.w15 {
  width: 15px;
}


.video-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  overflow: hidden;
}

/* растягиваем контейнер plyr */
.video-hero .plyr {
  height: 100%;
}

/* ВАЖНО: растягиваем встроенный poster plyr */
.video-hero .plyr__poster {
  background-size: cover !important;
  background-position: center !important;
}

/* растягиваем видео */
.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.total-modal .btn {
	text-transform: none;
}


.quiz-wrap {
	background-color: var(--pr-gray);
	border-radius: 5px;
	border: 10px solid var(--pr-red);
	height: 100%;
}

.quiz-title {
	background-color: var(--pr-red);
	color: var(--pr-white);
	padding: 30px;
}
.quiz-title h2 {
	font-size: 24px;
	font-weight: 600;
	color: var(--pr-white);
}
.quiz-form {
	padding: 20px;
}
.quiz-form h5 {
	font-weight: 600;
}

.quiz-form-button .quiz-hidden {
	display: none;
}

.quiz-form-button .quiz-visible {
	display: block;
}

.info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width:768px){
	.info-grid{
		grid-template-columns: 1fr;
	}
}