/* Страница «Спасибо за заявку» (/order_done).
   Макет: «Шаблон страницы Спасибо за заявку v8». Шапка, подвал и отзывы — как на основном сайте.
   Все классы с префиксом od-, чтобы не пересекаться с main.min.css. */

.od-page {
	--od-pine: #086b3f;
	--od-pine-dark: #063522;
	--od-forest: #0c4932;
	--od-leaf: #bfe66c;
	--od-cream: #f6f3eb;
	--od-mist: #f3f7f3;
	--od-ink: #15241b;
	--od-muted: #68756c;
	--od-line: #dce4dd;
	--od-white: #fff;
	--od-radius: 24px;
	--od-control: 15px;
	--od-shadow-soft: 0 12px 34px rgba(10, 50, 31, 0.09);
	/* Ширина полей — как у главной и каталога. */
	--od-shell: min(1340px, calc(100vw - 64px));
	--od-type-section: clamp(38px, 3.25vw, 54px);

	color: var(--od-ink);
	font-family: Rubik, Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	background: #fff;
	overflow-x: clip;
}

/* Отступ сверху (70/200px из main.min.css) оставляем: шапка сайта — position: fixed,
   без него первый экран уезжает под неё. Снизу секции держат отступы сами. */
body.order-done-redesign .page_content.od-page {
	margin-bottom: 0;
}

.od-page *,
.od-page *::before,
.od-page *::after {
	box-sizing: border-box;
}

.od-page h1,
.od-page h2,
.od-page h3,
.od-page p {
	margin-top: 0;
}

.od-page h1,
.od-page h2,
.od-page h3 {
	font-family: Rubik, Arial, Helvetica, sans-serif;
	color: inherit;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.od-page a {
	color: inherit;
	text-decoration: none;
}

.od-shell {
	width: var(--od-shell);
	margin-inline: auto;
}

.od-section {
	padding: 74px 0;
}

.od-section + .od-section {
	padding-top: 28px;
}

.od-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.od-section__head h2 {
	max-width: 835px;
	margin: 0;
	font-size: var(--od-type-section);
	font-weight: 500;
}

.od-section__head > p {
	max-width: 430px;
	margin: 0 0 5px;
	color: var(--od-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* Первый экран ------------------------------------------------------------ */

.od-success {
	padding: 20px 0 28px;
}

.od-success__card {
	position: relative;
	display: grid;
	place-items: center;
	padding: 30px 40px;
	overflow: hidden;
	border: 1px solid rgba(8, 107, 63, 0.16);
	border-radius: 32px;
	background:
		radial-gradient(circle at 14% 20%, rgba(191, 230, 108, 0.33), transparent 25%),
		radial-gradient(circle at 88% 82%, rgba(231, 249, 156, 0.42), transparent 29%),
		linear-gradient(135deg, #f8fbf6 0%, #fffdf8 62%, #f2f8ed 100%);
	box-shadow: var(--od-shadow-soft);
	text-align: center;
}

.od-success__card::before,
.od-success__card::after {
	content: "";
	position: absolute;
	border: 1px solid rgba(8, 107, 63, 0.12);
	border-radius: 50%;
	pointer-events: none;
}

.od-success__card::before {
	width: 310px;
	height: 310px;
	bottom: -190px;
	left: -190px;
}

.od-success__card::after {
	width: 190px;
	height: 190px;
	top: -110px;
	right: -92px;
}

.od-success__content {
	position: relative;
	z-index: 1;
	max-width: 860px;
}

.od-page .od-success__title {
	margin: 0 0 15px;
	font-size: clamp(40px, 3.8vw, 52px);
	font-weight: 500;
}

.od-success__lead {
	max-width: 710px;
	margin: 18px auto 0;
	color: #3e5045;
	font-size: 16px;
	line-height: 1.45;
}

.od-success__status {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	max-width: 700px;
	margin: 24px auto 15px;
	text-align: left;
}

.od-chip {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 58px;
	padding: 11px 15px;
	border: 1px solid rgba(8, 107, 63, 0.13);
	border-radius: var(--od-control);
	background: rgba(255, 255, 255, 0.82);
}

.od-chip svg {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--od-pine);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.od-chip span {
	font-size: 14px;
	line-height: 1.38;
}

.od-chip strong {
	display: block;
	margin-bottom: 2px;
	font-size: 14px;
	font-weight: 500;
}

.od-success__contact {
	margin: 16px 0 0;
	color: var(--od-muted);
	font-size: 12px;
}

.od-success__contact a {
	color: var(--od-pine);
	font-weight: 500;
	text-underline-offset: 3px;
}

.od-success__contact a:hover {
	text-decoration: underline;
}

/* Шаги -------------------------------------------------------------------- */

.od-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.od-step {
	position: relative;
	min-height: 170px;
	padding: 20px;
	border: 1px solid var(--od-line);
	border-radius: var(--od-radius);
	background: var(--od-white);
	box-shadow: 0 8px 24px rgba(10, 50, 31, 0.055);
}

.od-step__num {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	color: var(--od-pine);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.od-step__num::after {
	content: "";
	width: 42px;
	height: 1px;
	background: var(--od-line);
}

.od-page .od-step h3 {
	margin: 0 0 11px;
	font-size: 22px;
	font-weight: 500;
}

.od-step p {
	margin: 0;
	color: var(--od-muted);
	font-size: 14px;
	line-height: 1.55;
}

/* Личный кабинет --------------------------------------------------------- */

.od-account {
	display: grid;
	grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.94fr);
	gap: 14px;
	padding: 14px;
	border: 1px solid rgba(8, 107, 63, 0.13);
	border-radius: 30px;
	background: var(--od-cream);
}

.od-account__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 42px;
}

.od-page .od-account__copy h2 {
	max-width: 720px;
	margin: 0;
	font-size: var(--od-type-section);
	font-weight: 500;
}

.od-account__copy > p {
	max-width: 650px;
	margin: 18px 0 0;
	color: #49564d;
	font-size: 16px;
}

.od-page .od-account__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin-top: 26px;
	padding: 12px 18px;
	border: 1px solid var(--od-pine);
	border-radius: var(--od-control);
	color: var(--od-white);
	background: var(--od-pine);
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, background 0.2s ease;
}

.od-page .od-account__button:hover,
.od-page .od-account__button:focus,
.od-page .od-account__button:active {
	color: var(--od-white);
	background: var(--od-forest);
	transform: translateY(-2px);
}

.od-account__button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.od-account__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 360px;
	padding: 28px;
	border-radius: 22px;
	color: var(--od-white);
	background: var(--od-pine-dark);
	box-shadow: 0 16px 40px rgba(6, 53, 34, 0.18);
}

.od-account__label {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.63);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

.od-account__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.od-account__feature {
	min-height: 112px;
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.055);
}

.od-account__feature svg {
	width: 22px;
	height: 22px;
	margin-bottom: 14px;
	fill: none;
	stroke: var(--od-leaf);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.od-page .od-account__feature h3 {
	margin: 0 0 5px;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.od-account__feature p {
	margin: 0;
	color: rgba(255, 255, 255, 0.62);
	font-size: 11px;
	line-height: 1.45;
}

/* Видео ------------------------------------------------------------------- */

.od-reels {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.od-reel {
	position: relative;
	min-height: 450px;
	overflow: hidden;
	aspect-ratio: 9 / 13;
	border: 1px solid var(--od-line);
	border-radius: var(--od-radius);
	background: #d7e1d9;
	box-shadow: var(--od-shadow-soft);
}

.od-reel__link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}

.od-reel__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #d7e1d9;
}

.od-reel__play {
	position: absolute;
	bottom: 14px;
	left: 14px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(6, 53, 34, 0.55);
	backdrop-filter: blur(2px);
	opacity: 1;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.od-reel__link:hover .od-reel__play {
	transform: translateY(-2px);
}

/* Пока отрывок проигрывается — кнопку не показываем. */
.od-reel.is-playing .od-reel__play {
	opacity: 0;
}

.od-reel__play svg {
	width: 18px;
	height: 18px;
	fill: #fff;
	stroke: none;
	transform: translateX(1px);
}

/* Лайтбокс рилсов: окно по пропорции самого ролика (по умолчанию 9/16),
   чтобы вертикальное видео не вписывалось в горизонтальную рамку Fancybox
   с чёрными полями по бокам. Пропорцию уточняет js/order-done.js.
   !important — потому что Fancybox пишет свои размеры окна инлайном. */

.od-reels-lightbox {
	--od-lb-ratio: 0.5625;

	--fancybox-bg: rgba(5, 12, 8, 0.92);
}

.od-reels-lightbox .fancybox__slide.has-html5video {
	padding: 12px;
}

.od-reels-lightbox:not(.is-compact) .fancybox__slide.has-html5video.has-close-btn {
	padding-top: 52px;
}

.od-reels-lightbox .has-html5video .fancybox__content {
	width: min(100%, calc((100svh - 76px) * var(--od-lb-ratio))) !important;
	height: auto !important;
	max-height: calc(100svh - 76px);
	overflow: hidden;
	border-radius: 20px;
	background: #0a140e;
	aspect-ratio: var(--od-lb-ratio) !important;
}

.od-reels-lightbox .fancybox__html5video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #0a140e;
}

/* На мобилке — во всю ширину, как карточка рилса в каталоге. */
.od-reels-lightbox.is-compact .fancybox__slide.has-html5video,
.od-reels-lightbox.is-compact .fancybox__slide.has-html5video.has-close-btn {
	padding: 10px;
}

.od-reels-lightbox.is-compact .has-html5video .fancybox__content {
	width: min(100%, calc((100svh - 20px) * var(--od-lb-ratio))) !important;
	max-height: calc(100svh - 20px);
	border-radius: 21px;
}

/* Блок «Спокойно до выезда» ---------------------------------------------- */

.od-journey {
	padding: 38px;
	border: 1px solid rgba(8, 107, 63, 0.13);
	border-radius: 30px;
	background: var(--od-mist);
}

.od-journey .od-section__head {
	margin-bottom: 26px;
}

.od-journey__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.od-journey__card {
	min-height: 236px;
	padding: 22px;
	border: 1px solid rgba(8, 107, 63, 0.11);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.87);
}

.od-journey__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 30px;
	border-radius: 14px;
	color: var(--od-pine);
	background: #e8f4e7;
}

.od-journey__icon svg {
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.od-page .od-journey__card h3 {
	margin: 0 0 9px;
	font-size: 18px;
	font-weight: 500;
}

.od-journey__card p {
	margin: 0;
	color: var(--od-muted);
	font-size: 13px;
	line-height: 1.55;
}

/* Отзывы — блок главной внутри страницы ---------------------------------- */

.od-page .homepage-reviews.tour-reviews {
	--hp-rev-shell: var(--od-shell);

	padding: 0;
}

/* Заголовок блока — как остальные заголовки страницы (на главной он 700 и без ограничения ширины). */
.od-page .homepage-reviews .section-head h2 {
	max-width: 835px;
	font-weight: 500;
}

/* FAQ — оформление по макету, вопросы и текст прежние --------------------- */

.od-faq {
	padding-bottom: 44px;
}

.od-faq__copy {
	margin-bottom: 27px;
}

.od-page .od-faq__copy h2 {
	margin: 0;
	font-size: 36px;
	font-weight: 500;
}

.od-faq__list {
	display: grid;
	gap: 12px;
}

.od-faq__item {
	overflow: hidden;
	border: 1px solid #cbd4cd;
	border-radius: 8px;
	background: var(--od-white);
}

.od-faq__question {
	display: grid;
	grid-template-columns: 1fr 22px;
	align-items: center;
	gap: 18px;
	width: 100%;
	min-height: 58px;
	padding: 17px 28px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.od-faq__question > span:first-child {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
}

.od-faq__plus {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	color: var(--od-pine);
	transition: transform 0.25s ease;
}

.od-faq__plus svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.od-faq__item.is-open .od-faq__plus {
	transform: rotate(180deg);
}

.od-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.3s ease;
}

.od-faq__answer > div {
	overflow: hidden;
}

.od-faq__item.is-open .od-faq__answer {
	grid-template-rows: 1fr;
}

.od-faq__body {
	max-width: 920px;
	padding: 0 58px 18px 28px;
	color: var(--od-muted);
	font-size: 13px;
	line-height: 1.6;
}

.od-faq__body p {
	margin: 0 0 10px;
}

.od-faq__body > :last-child,
.od-faq__body p:last-child {
	margin-bottom: 0;
}

/* Условия оплаты и возврата приходят контактными блоками — подгоняем их под макет. */
.od-faq__body .contact_block,
.od-faq__body .contact_block.contact_block_full:last-of-type {
	margin-bottom: 0;
}

.od-page .od-faq__body .contact_title {
	margin-bottom: 14px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

.od-faq__body .c_field {
	margin-bottom: 12px;
}

.od-faq__body .c_field:last-child {
	margin-bottom: 0;
}

/* Адаптив ---------------------------------------------------------------- */

@media (max-width: 1050px) {
	.od-page {
		--od-shell: min(100% - 48px, 1120px);
		--od-type-section: 42px;
	}

	.od-section {
		padding: 62px 0;
	}

	.od-journey__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.od-journey__card {
		min-height: 206px;
	}

	.od-account {
		grid-template-columns: 1fr;
	}

	.od-account__card {
		min-height: auto;
	}

	.od-reels {
		grid-template-columns: repeat(2, 1fr);
	}

	.od-reel {
		min-height: 560px;
	}
}

@media (max-width: 700px) {
	.od-page {
		--od-shell: calc(100vw - 28px);
		--od-radius: 21px;
		--od-type-section: 32px;

		font-size: 14px;
	}

	.od-section {
		padding: 48px 0;
	}

	.od-section + .od-section {
		padding-top: 12px;
	}

	.od-section__head {
		align-items: flex-start;
		margin-bottom: 20px;
	}

	.od-section__head h2 {
		line-height: 1.1;
	}

	.od-section__head > p {
		display: none;
	}

	.od-success {
		padding: 8px 0 22px;
	}

	.od-success__card {
		min-height: auto;
		padding: 20px 14px 15px;
		border-radius: 24px;
	}

	.od-page .od-success__title {
		font-size: 34px;
		line-height: 1.04;
	}

	.od-success__lead {
		margin-top: 13px;
		font-size: 14px;
		line-height: 1.48;
	}

	.od-success__status {
		grid-template-columns: 1fr;
		gap: 7px;
		margin-top: 14px;
	}

	.od-chip {
		min-height: 59px;
		padding: 11px 13px;
		border-radius: 14px;
	}

	.od-chip span,
	.od-chip strong {
		font-size: 12px;
	}

	.od-success__contact {
		margin-top: 10px;
		font-size: 11px;
	}

	.od-steps {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.od-step {
		min-height: 0;
		padding: 17px 16px 18px 62px;
	}

	.od-step__num {
		position: absolute;
		top: 17px;
		left: 16px;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 30px;
		height: 30px;
		margin: 0;
		padding: 0;
		border: 1px solid rgba(8, 107, 63, 0.18);
		border-radius: 10px;
		background: #eff7ed;
		font-size: 10px;
		line-height: 1;
	}

	.od-step__num::after {
		display: none;
	}

	.od-page .od-step h3 {
		margin-bottom: 6px;
		font-size: 18px;
	}

	.od-step p {
		font-size: 13px;
	}

	.od-journey {
		padding: 22px 14px 14px;
		border-radius: 24px;
	}

	.od-journey .od-section__head {
		padding: 0 4px;
	}

	.od-journey__grid {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.od-journey__card {
		min-height: 178px;
		padding: 15px;
		border-radius: 17px;
	}

	.od-journey__icon {
		width: 39px;
		height: 39px;
		margin-bottom: 24px;
		border-radius: 12px;
	}

	.od-journey__icon svg {
		width: 20px;
		height: 20px;
	}

	.od-page .od-journey__card h3 {
		margin-bottom: 6px;
		font-size: 15px;
		line-height: 1.18;
	}

	.od-journey__card p {
		font-size: 11px;
		line-height: 1.45;
	}

	.od-reels {
		display: flex;
		gap: 10px;
		margin-right: -14px;
		padding-right: 14px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
	}

	.od-reels::-webkit-scrollbar {
		display: none;
	}

	.od-reel {
		flex: 0 0 78vw;
		min-height: 0;
		aspect-ratio: 9 / 13;
		border-radius: 21px;
		scroll-snap-align: start;
	}

	.od-account {
		padding: 8px;
		border-radius: 24px;
	}

	.od-account__copy {
		padding: 25px 16px 22px;
	}

	.od-page .od-account__copy h2 {
		font-size: 32px;
	}

	.od-account__copy > p {
		margin-top: 14px;
		font-size: 14px;
	}

	.od-page .od-account__button {
		width: 100%;
		margin-top: 20px;
	}

	.od-account__card {
		padding: 20px 14px;
		border-radius: 19px;
	}

	.od-account__label {
		margin: 0 4px 16px;
	}

	.od-account__features {
		gap: 8px;
	}

	.od-account__feature {
		min-height: 118px;
		padding: 14px 12px;
		border-radius: 14px;
	}

	.od-account__feature svg {
		width: 20px;
		height: 20px;
		margin-bottom: 12px;
	}

	.od-page .od-account__feature h3 {
		font-size: 13px;
	}

	.od-account__feature p {
		font-size: 10px;
	}

	.od-faq__copy {
		margin-bottom: 18px;
	}

	.od-page .od-faq__copy h2 {
		font-size: 30px;
	}

	.od-faq__list {
		gap: 9px;
	}

	.od-faq__question {
		padding: 15px 14px;
	}

	.od-faq__question > span:first-child {
		font-size: 13px;
	}

	.od-faq__body {
		padding: 0 42px 16px 14px;
		font-size: 12px;
	}
}

@media (max-width: 390px) {
	.od-page {
		--od-shell: calc(100vw - 24px);
	}

	.od-page .od-success__title {
		font-size: 32px;
	}

	.od-journey__card {
		min-height: 185px;
		padding: 14px 12px;
	}

	.od-page .od-journey__card h3 {
		font-size: 14px;
	}

	.od-reel {
		flex-basis: 82vw;
	}
}
