* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}


body {
	font-family: 'Inter', sans-serif;
	line-height: 1.5;
	color: #1f2937;
	min-height: 100vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}


/* Hero Section */
.hero {
	padding: 4rem 0 6rem;
}

.hero-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

.hero-text {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	background: #dbeafe;
	color: #1d4ed8;
	padding: 0.5rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 500;
	width: fit-content;
	transition: background-color 0.2s;
}

.badge:hover {
	background: #bfdbfe;
}

.hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #111827;
}

.hero-title .accent {
	display: block;
	color: #2563eb;
}

.hero-description {
	font-size: 1.25rem;
	color: #4b5563;
	max-width: 28rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
}

.stat-card {
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 1rem;
	padding: 1.5rem;
	transition: all 0.3s;
}

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

.stat-content {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.5rem;
}

.stat-icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.stat-icon.blue { background: #dbeafe; }
.stat-icon.green { background: #dcfce7; }
.stat-icon.orange { background: #fed7aa; }

.stat-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.stat-value.blue { color: #2563eb; }
.stat-value.green { color: #16a34a; }
.stat-value.orange { color: #ea580c; }

.stat-label {
	font-size: 0.875rem;
	color: #6b7280;
}

.buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 2rem;
	border-radius: 0.5rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}

.btn-primary {
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	color: white;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
	background: linear-gradient(135deg, #1d4ed8, #4338ca);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
	transform: translateY(-1px);
}

.btn-outline {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #374151;
}

.btn-outline:hover {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(255, 255, 255, 0.5);
}

.hero-image {
	position: relative;
}

.image-container {
	position: relative;
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 1rem;
	padding: 0.5rem;
}

.image-container::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(79, 70, 229, 0.2));
	border-radius: 2rem;
	filter: blur(2rem);
	z-index: -1;
}

.hero-img {
	width: 100%;
	height: 20rem;
	object-fit: cover;
	border-radius: 0.75rem;
}

/* Advantages Section */
.advantages {
	padding: 4rem 0;
	background: white;
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-title {
	font-size: 1.875rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1rem;
}

.section-subtitle {
	font-size: 1.125rem;
	color: #4b5563;
	max-width: 32rem;
	margin: 0 auto;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.advantage-card {
	background: white;
	border-radius: 1rem;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s;
	border: none;
}

.advantage-card:hover {
	box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

.advantage-icon {
	width: 4rem;
	height: 4rem;
	border-radius: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	transition: transform 0.3s;
}

.advantage-card:hover .advantage-icon {
	transform: scale(1.1);
}

.advantage-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.advantage-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.advantage-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

.advantage-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #111827;
	margin-bottom: 1rem;
}

.advantage-description {
	color: #4b5563;
}

/* Form Section */
.form-section {
	padding: 4rem 0;
	background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.form-container {
	max-width: 28rem;
	margin: 0 auto;
}

.form-card {
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 1rem;
	padding: 2rem;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.form-header {
	text-align: center;
	margin-bottom: 2rem;
}

.form-icon {
	width: 3rem;
	height: 3rem;
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
}

.form-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #111827;
	margin-bottom: 0.5rem;
}

.form-subtitle {
	color: #4b5563;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-weight: 600;
	color: #374151;
	margin-bottom: 0.5rem;
}

.form-input {
	width: 100%;
	padding: 1rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	font-size: 1rem;
	transition: all 0.2s;
}

.form-input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	background: white;
}

.form-disclaimer {
	font-size: 0.75rem;
	color: #6b7280;
	text-align: center;
	margin-top: 1.5rem;
	line-height: 1.5;
}

/* Requirements Section */
.requirements {
	padding: 4rem 0;
	background: white;
}

.requirements-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	max-width: 48rem;
	margin: 0 auto;
}

.requirement-card {
	background: white;
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	border: none;
	transition: all 0.3s;
}

.requirement-card:hover {
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.requirement-content {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.requirement-icon {
	width: 3rem;
	height: 3rem;
	background: #dcfce7;
	border-radius: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.requirement-text {
	color: #374151;
	font-weight: 500;
}

/* Footer */
.footer {
	background: #1f2937;
	color: white;
	padding: 2rem 0;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
	margin-bottom: 1rem;
	font-weight: 600;
}

.footer-section p,
.footer-section div {
	color: #d1d5db;
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
}

.footer-bottom {
	border-top: 1px solid #374151;
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	text-align: center;
	font-size: 0.875rem;
	color: #9ca3af;
}

/* SVG Icons */
.icon {
	width: 1.5rem;
	height: 1.5rem;
	fill: currentColor;
}

.icon-sm {
	width: 1rem;
	height: 1rem;
}

.icon-lg {
	width: 2rem;
	height: 2rem;
}

.faq-item {
	transition: all 0.3s ease;
}

.faq-item:hover {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item.active {
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.faq-question:hover {
	background: rgba(255, 255, 255, 0.5);
}

.faq-icon {
	font-size: 1.5rem;
	font-weight: bold;
	color: #4f46e5;
}

.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 200px;
}

/* Аккордеон в мобильном меню */
details[open] .accordion-chevron {
  transform: rotate(180deg);
}
.accordion-chevron {
  transition: transform 0.2s ease;
}

/* Responsive */
@media (min-width: 640px) {
	.phone-btn {
			display: flex;
	}
	
	.buttons {
			flex-direction: row;
	}
	
	.hero-content {
			grid-template-columns: 1fr 1fr;
	}
	
	.hero-title {
			font-size: 3rem;
	}
}

@media (min-width: 1024px) {
	.hero {
			padding: 6rem 0;
	}
	
	.hero-title {
			font-size: 3.5rem;
	}
}

.form-group.error input {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
  color: #ef4444 !important;
}

.error-message {
  display: none;
}

.form-group.error .error-message {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error label {
  color: #ef4444 !important;
}

.error-message {
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* Стили для текста отзыва */
.review-text {
  /* Ограничиваем высоту текста */
  max-height: 100px; /* Или другая высота, например, 3 строки: line-height * 3 */
  overflow: hidden;
  position: relative;
  /* Плавный переход */
  transition: max-height 0.3s ease;
}

/* Класс для раскрытого состояния */
.review-text.expanded {
  max-height: 500px; /* Достаточно большая высота, чтобы вместить весь текст */
  /* Или можно убрать max-height совсем: max-height: none; */
}

/* Стили для кнопки "Показать полностью" */
.show-more-btn {
  /* Стили для кнопки/ссылки */
  background: none;
  border: none;
  color: #4F46E5; /* Цвет из вашей палитры, например, индиго */
  cursor: pointer;
  font-weight: 500; /* medium */
  margin-top: 8px; /* mt-2 */
  padding: 0;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.show-more-btn:hover {
  color: #4338CA; /* Немного темнее при наведении */
}

/* Опционально: градиентный оверлей для обрезанного текста */
.review-text:not(.expanded)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px; /* Высота градиента */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)); /* Градиент от прозрачного к белому */
}

/* Базовые стили для иконок */
.car-icon,
.motorcycle-icon {
  filter: brightness(1) contrast(1);
  transition: all 0.3s ease;
}

/* Эффект подсветки при наведении */
a:hover .car-icon,
a:hover .motorcycle-icon {
  filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
  /* brightness - увеличивает яркость */
  /* contrast - увеличивает контраст */
  /* drop-shadow - добавляет свечение вокруг элемента */
}

/* Анимация мерцания (опционально) */
@keyframes headlight-glow {
  0% { filter: brightness(1) contrast(1) drop-shadow(0 0 0 rgba(59, 130, 246, 0)); }
  50% { filter: brightness(1.3) contrast(1.2) drop-shadow(0 0 12px rgba(59, 130, 246, 0.7)); }
  100% { filter: brightness(1) contrast(1) drop-shadow(0 0 0 rgba(59, 130, 246, 0)); }
}

/* Применяем анимацию при наведении */
a:hover .car-icon.glow-animation,
a:hover .motorcycle-icon.glow-animation {
  animation: headlight-glow 1.5s ease-in-out infinite;
}

/* Для более выраженного эффекта можно добавить_pulse_ */
.pulse-glow {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Создаем контейнер для иконки с эффектом подсветки */
.icon-container {
  position: relative;
  display: inline-block;
}

/* Псевдоэлемент для создания эффекта свечения */
.icon-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  background-size: cover;
  filter: brightness(1.5) blur(15px);
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: -1;
}

/* При наведении показываем свечение */
a:hover .icon-container::before {
  opacity: .7;
}

/* Добавляем мерцание */
a:hover .icon-container {
  animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
  100% { filter: brightness(1); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rotating-car {
  animation: rotate 20s linear infinite;
}

#home, #catalog, #services, #calculator, #about, #contacts {
  scroll-margin-top: 70px;
}

/* Rich text content (Trix) на публичных страницах */
.rich-content .trix-content { font-size: 0.9375rem; line-height: 1.75; color: #374151; }
.rich-content .trix-content h1 { font-size: 1.375rem; font-weight: 700; color: #111827; margin: 1.5rem 0 0.75rem; line-height: 1.3; }
.rich-content .trix-content h2 { font-size: 1.15rem; font-weight: 700; color: #1e3a8a; margin: 1.25rem 0 0.5rem; line-height: 1.35; }
.rich-content .trix-content h3 { font-size: 1rem; font-weight: 600; color: #374151; margin: 1rem 0 0.4rem; }
.rich-content .trix-content div { margin: 0.4rem 0; }
.rich-content .trix-content p { margin: 0.4rem 0; }
.rich-content .trix-content ul { margin: 0.6rem 0 0.6rem 1.25rem; list-style: disc; }
.rich-content .trix-content ol { margin: 0.6rem 0 0.6rem 1.25rem; list-style: decimal; }
.rich-content .trix-content li { margin: 0.25rem 0; line-height: 1.65; }
.rich-content .trix-content strong { font-weight: 600; color: #111827; }
.rich-content .trix-content blockquote { border-left: 3px solid #3b82f6; padding: 0.5rem 0 0.5rem 1rem; margin: 1rem 0; color: #6b7280; font-style: italic; background: #f0f7ff; border-radius: 0 0.5rem 0.5rem 0; }
.rich-content .trix-content a { color: #2563eb; text-decoration: underline; }
.rich-content .trix-content pre { background: #f3f4f6; border-radius: 0.5rem; padding: 0.75rem 1rem; font-size: 0.8rem; overflow-x: auto; margin: 0.75rem 0; }

/* Markdown контент (блог) */
.prose { font-size: 1rem; line-height: 1.8; color: #374151; }
.prose h1 { font-size: 1.75rem; font-weight: 700; color: #111827; margin: 2rem 0 1rem; line-height: 1.3; }
.prose h2 { font-size: 1.375rem; font-weight: 700; color: #1e3a8a; margin: 1.75rem 0 0.75rem; line-height: 1.35; }
.prose h3 { font-size: 1.125rem; font-weight: 600; color: #374151; margin: 1.5rem 0 0.5rem; }
.prose p { margin: 0.75rem 0; }
.prose ul { margin: 0.75rem 0 0.75rem 1.5rem; list-style: disc; }
.prose ol { margin: 0.75rem 0 0.75rem 1.5rem; list-style: decimal; }
.prose li { margin: 0.35rem 0; line-height: 1.7; }
.prose strong { font-weight: 600; color: #111827; }
.prose em { font-style: italic; }
.prose a { color: #2563eb; text-decoration: underline; }
.prose a:hover { color: #1d4ed8; }
.prose blockquote { border-left: 3px solid #3b82f6; padding: 0.5rem 0 0.5rem 1rem; margin: 1.25rem 0; color: #6b7280; font-style: italic; background: #f0f7ff; border-radius: 0 0.5rem 0.5rem 0; }
.prose pre { background: #f3f4f6; border-radius: 0.5rem; padding: 1rem 1.25rem; font-size: 0.875rem; overflow-x: auto; margin: 1rem 0; }
.prose code { background: #f3f4f6; border-radius: 0.25rem; padding: 0.15rem 0.4rem; font-size: 0.875rem; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose table th { background: #f3f4f6; font-weight: 600; text-align: left; padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb; }
.prose table td { padding: 0.5rem 0.75rem; border: 1px solid #e5e7eb; }
.prose hr { border: none; border-top: 1px solid #e5e7eb; margin: 2rem 0; }

/* Стили редактора Trix в админке */
trix-toolbar { display: block !important; border: 1px solid #e5e7eb; border-bottom: none; border-radius: 0.75rem 0.75rem 0 0; padding: 6px 8px; background: #f8fafc; }
trix-toolbar .trix-button-row { display: flex !important; flex-wrap: wrap; gap: 2px; }
trix-toolbar .trix-button-group { display: flex !important; margin-bottom: 0; border: 1px solid #e5e7eb; border-radius: 6px; overflow: hidden; }
trix-toolbar .trix-button { display: inline-flex !important; align-items: center; justify-content: center; height: 28px; padding: 0 8px; font-size: 12px; font-weight: 600; color: #374151; background: white; border: none; cursor: pointer; }
trix-toolbar .trix-button:hover { background: #eff6ff; color: #1d4ed8; }
trix-toolbar .trix-button.trix-active { background: #dbeafe; color: #1d4ed8; }
trix-toolbar .trix-button--icon { width: 32px; padding: 0; text-indent: -9999px; }
trix-toolbar .trix-button--icon::before { display: block !important; opacity: 0.7; }
trix-editor { display: block !important; border: 1px solid #e5e7eb !important; border-top: none !important; border-radius: 0 0 0.75rem 0.75rem !important; padding: 0.75rem 1rem !important; min-height: 180px !important; font-size: 0.875rem; color: #374151; background: #f9fafb; outline: none; }
trix-editor:focus { border-color: #60a5fa !important; background: white !important; }
