/* ==========================================================================
   Bricks Child – home.css (Haritev) · само началната страница
   По-специфичният CSS на секциите: pseudo-елементи, CSS counter,
   нативни details/summary, вътрешната маркировка на Bricks Form,
   и свойствата без нативна настройка в Bricks.
   ========================================================================== */

/* 1. Hero и лента с предимствата
   ========================================================================== */
.rh-hero {
	overflow: hidden;
}

.rh-hero__kicker {
	align-self: flex-start;
}

.rh-hero__text strong {
	color: var(--rh-surface);
	font-weight: 600;
}

.rh-hero__price {
	flex-wrap: wrap;
	align-items: baseline;
}

.rh-road__item a {
	color: inherit;
	text-decoration-color: var(--rh-overlay-strong);
}

.rh-road__icon,
.rh-includes__icon,
.rh-pricing__icon,
.rh-faq__icon {
	flex-shrink: 0;
}

/* 2. Какво включва
   ========================================================================== */
.rh-includes__icon {
	box-shadow: 0 0 0 1px var(--rh-primary);
}

/* 3. Автомобилът
   ========================================================================== */
.rh-car__head {
	flex-wrap: wrap;
}

.rh-car__head .rh-section-head {
	margin-bottom: 0;
}

.rh-car__specs {
	flex-wrap: wrap;
}

.rh-car__spec {
	white-space: nowrap;
}

/* Основната снимка заема две реда */
.rh-car__gallery .rh-car__item--main {
	grid-row: span 2;
	height: 100%;
	aspect-ratio: auto;
}

@media (max-width: 991px) {
	.rh-car__gallery .rh-car__item--main {
		grid-column: 1 / -1;
		grid-row: auto;
		height: auto;
		aspect-ratio: 16 / 9;
	}
}

/* 4. Как протича – „пътят“
   ========================================================================== */
.rh-steps__grid .rh-steps__intro {
	position: sticky;
	top: calc(var(--rh-header-height) + var(--rh-space-xl));
}

.rh-steps__intro .rh-section-head {
	margin-bottom: var(--rh-space-l);
}

.rh-steps__grid .rh-steps__list {
	position: relative;
	margin: 0;
	padding: 0 0 0 88px;
	list-style: none;
	counter-reset: rh-step;
}

/* Асфалт */
.rh-steps__list::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -2px;
	width: 60px;
	border-right: 3px solid var(--rh-surface);
	border-left: 3px solid var(--rh-surface);
	border-radius: var(--rh-radius-m);
	background-color: var(--rh-ink);
	box-shadow: 0 0 0 1px var(--rh-border);
}

/* Осова линия */
.rh-steps__list::after {
	content: "";
	position: absolute;
	top: var(--rh-space-m);
	bottom: var(--rh-space-m);
	left: 26px;
	width: 4px;
	background: repeating-linear-gradient(180deg, var(--rh-accent) 0 28px, transparent 28px 52px);
}

.rh-steps__list .rh-steps__item {
	position: relative;
	padding-bottom: var(--rh-space-2xl);
	counter-increment: rh-step;
}

.rh-steps__list .rh-steps__item:last-child {
	padding-bottom: 0;
}

/* Кръгче с номер */
.rh-steps__list .rh-steps__item::before {
	content: counter(rh-step);
	position: absolute;
	top: 4px;
	left: -82px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 3px solid var(--rh-ink);
	border-radius: var(--rh-radius-pill);
	background-color: var(--rh-surface);
	color: var(--rh-ink);
	font-size: var(--rh-text-m);
	font-weight: 800;
}

.rh-steps__list .rh-steps__item:last-child::before {
	content: "✓";
	background-color: var(--rh-accent);
}

@media (max-width: 991px) {
	.rh-steps__grid .rh-steps__intro {
		position: static;
	}
}

@media (max-width: 478px) {
	.rh-steps__grid .rh-steps__list {
		padding-left: 72px;
	}

	.rh-steps__list::before {
		width: 52px;
	}

	.rh-steps__list::after {
		left: 22px;
	}

	.rh-steps__list .rh-steps__item::before {
		left: -66px;
		width: 36px;
		height: 36px;
		font-size: var(--rh-text-s);
	}
}

/* 5. Цена
   ========================================================================== */
.rh-pricing__value .rh-pricing__value-currency {
	margin-left: 4px;
	font-size: 0.45em;
	font-weight: 700;
	letter-spacing: 0;
	vertical-align: 0.9em;
}

/* 6. Отзиви – figure / blockquote / figcaption без браузърните стилове
   ========================================================================== */
.rh-reviews__grid .rh-reviews__item {
	margin: 0;
}

.rh-reviews__item .rh-reviews__text {
	flex-grow: 1;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-family: inherit;
	font-size: var(--rh-text-m);
	font-style: normal;
	line-height: 1.6;
}

.rh-reviews__item .rh-reviews__text::before,
.rh-reviews__item .rh-reviews__text::after {
	content: none;
}

.rh-reviews__author {
	font-style: normal;
}

/* 7. Въпроси – нативни details/summary
   ========================================================================== */
.rh-faq__list .rh-faq__item {
	display: block;
}

.rh-faq__item .rh-faq__question {
	cursor: pointer;
	list-style: none;
}

.rh-faq__item .rh-faq__question::-webkit-details-marker {
	display: none;
}

.rh-faq__icon {
	transition: transform 0.25s, background-color 0.25s;
}

.rh-faq__item[open] .rh-faq__icon {
	background-color: var(--rh-accent);
	transform: rotate(45deg);
}

/* 8. Контакти
   ========================================================================== */
.rh-contact__info .rh-section-head {
	margin-bottom: 0;
}

.rh-contact__phone {
	align-self: flex-start;
	text-decoration: none;
}

.rh-contact__phone-number {
	white-space: nowrap;
}

.rh-contact__phone:hover .rh-contact__phone-number {
	text-decoration: underline;
	text-decoration-thickness: 3px;
}

a.rh-contact__item-value {
	text-decoration: underline;
	text-decoration-color: var(--rh-overlay-strong);
}

/* 9. Форма „Поискайте обаждане“ (вътрешна маркировка на Bricks Form)
   ========================================================================== */
.rh-contact__grid .rh-form {
	align-self: start;
}

.rh-form .rh-form__form .form-group {
	margin-bottom: var(--rh-space-m);
}

.rh-form .rh-form__form label {
	display: block;
	margin-bottom: var(--rh-space-xs);
	color: var(--rh-ink);
	font-size: var(--rh-text-s);
	font-weight: 600;
}

.rh-form .rh-form__form input:not([type="checkbox"]),
.rh-form .rh-form__form select {
	width: 100%;
	min-height: 52px;
	padding: var(--rh-space-s) var(--rh-space-m);
	border: 1.5px solid var(--rh-border-strong);
	border-radius: var(--rh-radius-m);
	background-color: var(--rh-surface);
	color: var(--rh-ink);
	font-family: inherit;
	font-size: var(--rh-text-m);
	line-height: 1.4;
}

.rh-form .rh-form__form input::placeholder {
	color: var(--rh-text-muted);
	opacity: 1;
}

.rh-form .rh-form__form input:focus-visible,
.rh-form .rh-form__form select:focus-visible {
	border-color: var(--rh-primary);
	outline: 3px solid var(--rh-primary);
	outline-offset: 1px;
}

.rh-form .rh-form__form input[type="checkbox"] {
	width: 22px;
	height: 22px;
	margin: 2px 0 0;
	accent-color: var(--rh-primary);
}

.rh-form .rh-form__form .options-wrapper {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rh-form .rh-form__form .options-wrapper li {
	display: flex;
	align-items: flex-start;
	gap: var(--rh-space-s);
}

.rh-form .rh-form__form .options-wrapper label {
	margin: 0;
	color: var(--rh-text-muted);
	font-weight: 400;
}

.rh-form .rh-form__form .submit-button-wrapper {
	width: 100%;
}

.rh-form .rh-form__form button[type="submit"] {
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: var(--rh-radius-m);
	background-color: var(--rh-primary);
	color: var(--rh-surface);
	font-size: var(--rh-text-m);
	font-weight: 600;
	cursor: pointer;
}

.rh-form .rh-form__form button[type="submit"]:hover {
	background-color: var(--rh-primary-dark);
}

.rh-form .rh-form__form .message.success {
	border-radius: var(--rh-radius-m);
	background-color: var(--rh-success-bg);
	color: var(--rh-success);
}
