/* Custom CSS  */
body {
	font-family: 'Montserrat', sans-serif;
	background-color: #fff;
	color: #333;
	line-height: 1.6;
}

/* Lazy Loading Styles */
img[loading='lazy'] {
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

img[loading='lazy'].loaded {
	opacity: 1;
}

/* Placeholder for lazy loading images */
.lazy-placeholder {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

/* Picture element styles */
picture {
	display: block;
}

picture img {
	width: 100%;
	height: auto;
}
.navbar-brand {
	font-weight: 700;
	font-size: 1.5rem;
}
.section {
	padding: 80px 0;
}
.section-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 40px;
}
.card {
	border: none;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.card-title {
	font-size: 1.25rem;
	font-weight: 600;
}
.btn-primary {
	background-color: #0d6efd;
	border: none;
	padding: 10px 20px;
	font-size: 1rem;
}
.btn-primary:hover {
	background-color: #0056b3;
}
.personality-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 60px;
	align-items: start;
}
.personality-info {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.personality-info img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 20px;
}
.personality-info h2 {
	font-size: 1.5rem;
	margin-bottom: 10px;
}
.personality-info p {
	color: #555;
	font-size: 0.95rem;
}
.chat-block {
	background-color: #fafafa;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 20px;
}
.chat-block h3 {
	margin-bottom: 15px;
	font-size: 1.2rem;
	font-weight: 600;
}
.description-block textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.95rem;
	margin-bottom: 10px;
	resize: none;
	min-height: 60px;
}
.save-desc-button {
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 0.95rem;
	cursor: pointer;
	margin-bottom: 15px;
}
.save-desc-button:hover {
	background-color: #0056b3;
}
.chat-history {
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	max-height: 250px;
	overflow-y: auto;
	padding: 10px;
	margin-bottom: 10px;
	display: none;
}
.message {
	margin-bottom: 10px;
	padding: 8px;
	border-radius: 6px;
	display: block;
	max-width: 80%;
	word-wrap: break-word;
}
.user-message {
	background-color: #007bff;
	color: #fff;
}
.bot-message {
	background-color: #eee;
	color: #333;
}
.chat-input {
	display: none;
	margin-top: 10px;
	gap: 10px;
}
.chat-input input {
	flex: 1;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.95rem;
}
.chat-input button {
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 0.95rem;
	cursor: pointer;
}
.chat-input button:hover {
	background-color: #0056b3;
}
@media (max-width: 768px) {
	.personality-wrapper {
		grid-template-columns: 1fr;
	}
}
.feature-block {
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.feature-list {
	list-style-type: none;
	padding-left: 0;
}
.feature-list li {
	margin-bottom: 10px;
	font-size: 1rem;
	color: #555;
}
.read-more-btn {
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 20px;
	font-size: 0.95rem;
	cursor: pointer;
	margin-top: 10px;
}
.details-content {
	display: none;
	margin-top: 10px;
	padding: 10px;
	background-color: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #ddd;
}
.fullscreen-chat {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: white;
	z-index: 1000;
	padding: 20px;
	overflow-y: auto;
}
.close-chat-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background-color: #ff4d4d;
	color: white;
	border: none;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	cursor: pointer;
}

.red-line {
	border-bottom: 2px solid red;
	display: inline;
}
.details-content {
	color: #333; /* Темный цвет текста */
	background-color: #f9f9f9; /* Светлый фон для контраста */
	border: 1px solid #ddd; /* Граница для выделения */
	border-radius: 8px; /* Скругленные углы */
	padding: 10px; /* Отступы внутри блока */
	margin-top: 10px; /* Отступ сверху */
}
.popup {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	justify-content: center;
	align-items: center;
}

.popup-content {
	position: relative;
	width: 80%;
	height: 80%;
	background: #000;
	border-radius: 10px;
	padding: 15px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.close {
	position: absolute;
	top: 10px;
	right: 20px;
	font-size: 30px;
	color: #fff;
	cursor: pointer;
}

.close:hover {
	color: #f00;
}
.custom-list {
	padding-left: 20px; /* Добавляет отступ слева у списка */
}

.d-flex {
	display: flex;
	justify-content: space-between;
}

.text-content {
	flex: 1;
}

.image-content {
	flex: 0 0 200px;
}
@media (max-width: 767.98px) {
	.vasiliy-img {
		max-width: 280px;
		margin: 0 auto;
	}
	.card {
		padding: 1rem !important;
	}
}
.custom-list {
	padding-left: 1.5rem;
}
.custom-list li {
	margin-bottom: 0.5rem;
}
.dtr-logo img,
.logo-default img,
.logo-alt img {
	max-height: 30px;
	width: auto;
	height: auto;
}

.dtr-responsive-header .dtr-logo img {
	max-height: 20px;
}
.user-message2 {
	background-color: #dcf8c6;
	margin-left: auto;
	margin-right: 10px;
}
.dtr-header-left {
	position: relative;
	display: flex;
	align-items: center;
}

.pbd-creator {
	transition: opacity 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.logo-alt {
	display: none !important;
}

.pbd-creator img {
	height: 12px;
	margin-bottom: 2px;
}

.pbd-creator span {
	font-size: 9px;
	color: #999;
	line-height: 1;
}

.dtr-calc-formula {
	background: rgba(13, 110, 253, 0.1);
	padding: 12px 15px;
	border-radius: 8px;
	font-family: monospace;
	color: #0d6efd;
}

.dtr-pricing-example {
	border: 1px solid rgba(13, 110, 253, 0.2);
}

.dtr-text-sm {
	font-size: 0.9em;
}

.dtr-text-lg {
	font-size: 1.2em;
	font-weight: 600;
}

.bg-light-green {
	background: rgba(40, 167, 69, 0.1);
}

.bg-light-orange {
	background: rgba(253, 126, 20, 0.1);
}

/* Скрываем PBD лого при скролле */
#dtr-header-global.scrolled .pbd-creator {
	opacity: 0;
	pointer-events: none;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
	.dtr-responsive-header .dtr-logo img {
		max-height: 30px !important;
	}
	.pbd-creator {
		display: none; /* Скрываем на мобильных */
	}
}
/* Custom CSS  */

/* Стили для анимации */
.cursor {
	animation: blink 1s steps(2, start) infinite;
	color: #333;
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}
/* Стили для анимации */

/* ----------------------- */
.chat-container {
	max-width: 400px;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}
.message {
	padding: 10px 15px;
	margin: 5px;
	border-radius: 8px;
	max-width: 70%;
	word-wrap: break-word;
}
.vasily-message {
	background-color: #ffffff;
	margin-right: auto;
	margin-left: 10px;
	border: 1px solid #e5e5ea;
}
.message-sender {
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 14px;
	color: #333;
}
.message-text {
	font-size: 14px;
	color: #000;
}
/* ----------------------- */

/* ----------------------- */
.timeline-steps {
	display: flex;
	flex-direction: column;
	gap: 30px;
	max-width: 800px;
	margin: 0 auto;
}

.step-card {
	padding: 25px;
	transition: transform 0.3s;
	position: relative;
}

.step-card:hover {
	transform: translateY(-3px);
}

.step-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	cursor: pointer;
}

.step-number {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #0d6efd;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.step-header-text {
	flex-grow: 1;
}

.step-title {
	margin: 0;
	font-size: 1.25rem;
}

.step-duration {
	background: rgba(13, 110, 253, 0.1);
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 0.9em;
	color: #0d6efd;
	display: inline-block;
	margin-top: 5px;
}

.toggle-icon {
	font-size: 1.5rem;
	color: #0d6efd;
	margin-left: 10px;
	transition: all 0.3s ease;
}

.step-content {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
		margin-top 0.3s ease-out;
}

.step-content.active {
	max-height: 1000px; /* Увеличено для длинного контента, например, в шаге 5 */
	opacity: 1;
	margin-top: 20px;
}

.summary-box {
	margin-top: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-box .custom-list {
	padding-left: 20px;
	text-align: left;
	margin-top: 15px;
}

.summary-box .custom-list li {
	color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 767px) {
	.step-card {
		padding: 20px;
	}

	.step-title {
		font-size: 1.1rem;
	}

	.step-duration {
		font-size: 0.85rem;
	}
}
/* ----------------------- */

/* ----------------------- */
.dtr-accordion-button {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	color: #333;
	transition: all 0.3s;
}

.dtr-accordion-button:hover {
	color: #0d6efd;
}

.dtr-accordion-button i {
	transition: transform 0.3s;
	font-size: 14px;
	margin-left: 15px;
}

.dtr-accordion-button.active i {
	transform: rotate(180deg);
}

.dtr-accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.dtr-accordion-content p {
	line-height: 1.6;
	color: #555;
}

@media (max-width: 768px) {
	.dtr-accordion-button {
		font-size: 15px;
		padding: 15px 20px;
	}

	.dtr-accordion-content {
		font-size: 14px;
	}
}
/* ----------------------- */

/* Стили для аккордеона кейсов */
.case-accordion {
	margin-top: 30px;
}

.case-card {
	margin-bottom: 20px;
	padding: 25px;
	border-radius: 10px;
	transition: all 0.3s ease;
	position: relative;
}

.case-card:hover {
	transform: translateY(-3px);
}

.case-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 20px;
	cursor: pointer;
}

.case-number {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	background: #0d6efd;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}

.case-header-text {
	flex-grow: 1;
}

.case-title {
	margin: 0;
	font-size: 1.25rem;
	color: #333;
}

.case-subtitle {
	color: #666;
	font-size: 0.9rem;
	margin-top: 5px;
}

.toggle-icon {
	font-size: 1.5rem;
	color: #0d6efd;
	margin-left: 10px;
	transition: all 0.3s ease;
}

.case-content {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out,
		margin-top 0.3s ease-out;
}

.case-content.active {
	max-height: 2000px;
	opacity: 1;
	margin-top: 20px;
}

/* Стили для чата в кейсах */
.chat-container {
	max-width: 400px;
	margin: 0 auto;
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.message {
	padding: 10px 15px;
	margin: 5px;
	border-radius: 8px;
	max-width: 70%;
	word-wrap: break-word;
}

.user-message2 {
	background-color: #dcf8c6;
	margin-left: auto;
	margin-right: 10px;
}

.vasily-message {
	background-color: #ffffff;
	margin-right: auto;
	margin-left: 10px;
	border: 1px solid #e5e5ea;
}

.message-sender {
	font-weight: bold;
	margin-bottom: 5px;
	font-size: 14px;
	color: #333;
}

.message-text {
	font-size: 14px;
	color: #000;
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
	.case-card {
		padding: 20px;
	}

	.case-title {
		font-size: 1.1rem;
	}

	.case-subtitle {
		font-size: 0.85rem;
	}
}
