/* v3 — 21.09.2026. Баланс палитры, крупнее шрифты, живые детали.
   Подключается последним и переопределяет extra.css. */

:root {
	--primary: #F0741C;          /* оранжевый — только действие: кнопки, цены */
	--pac-orange-hover: #CF5814;
	--secondary: #0E7490;        /* бирюза — акценты в заголовках, номера шагов, линии */
	--teal-deep: #0F3944;
	--ink: #1B2A31;
	--black: #1B2A31;
	--gray-text: #4B5B63;
	--light-gray: #F4F8F9;
	--border-color: #DCE7EA;
	--cream: #FFF3E6;
	--star: #F5B301;
	--ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- поверхности браузера ---------- */
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #9CC3CC var(--light-gray); }

/* ---------- фон и цвет ---------- */
body { background: #fff; color: var(--ink); font-size: 18px; line-height: 1.55; }
.header { background: #fff; border-bottom: 0; box-shadow: 0 1px 0 rgba(15, 57, 68, .08); }
.hero { background: #fff; }
.directions, .request, .office { background: var(--light-gray); }
.steps, .tg { background: #fff; }
.footer { background: var(--light-gray); }
.title { color: var(--ink); }
.title span { color: var(--secondary); }
.step-item__number { color: var(--secondary); }

/* ---------- типографика: крупнее ---------- */
.hero__title { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.015em; }
.hero__text, .hero__text p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; }
.title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
.information-item__text { font-size: 16px; line-height: 1.4; }
.information__intro { font-size: 16px; }
.tour-item__title { font-size: 26px; letter-spacing: -.01em; }
.tour-item__desc { font-size: 17px; line-height: 1.5; }
.tour-item__note { font-size: 14.5px; line-height: 1.45; }
.step-item__title { font-size: 25px; line-height: 1.2; }
.step-item__description { font-size: 17px; line-height: 1.5; }
.request__note { font-size: 16.5px; line-height: 1.5; max-width: 72ch; margin-inline: auto; }
.office__lead { font-size: 18px; line-height: 1.5; max-width: 62ch; }
.wish__input, .wish__select, .wish__textarea, .wish__form-field input, .wish__form-field select, .wish__form-field textarea { font-size: 17px; }
.btn, .buttons__btn { font-size: 17px; }
.footer { font-size: 16px; }

/* ---------- hero: пульс кнопки, живые стрелки ---------- */
.hero__button { position: relative; }
.buttons__arrow, .request__content-item img { will-change: transform, opacity; }
.request__content-item--2 img { animation-delay: -.9s; }
.request__content-item--3 img { animation-delay: -1.8s; }

/* ---------- карточки направлений ---------- */
.tour-item {
	background: #fff;
	border: 1px solid var(--border-color);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 12px 32px -18px rgba(15, 57, 68, .28);
	transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.tour-item:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -22px rgba(15, 57, 68, .38); }
.tour-item__figure { overflow: hidden; }
.tour-item__figure img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.tour-item:hover .tour-item__figure img { transform: scale(1.05); }
.tour-item__price-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; padding: 0; list-style: none; }
.tour-item__price {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 14px; background: var(--light-gray); border-radius: 12px;
	font-size: 16px; font-weight: 500; color: var(--gray-text);
}
.tour-item__price .stars { display: inline-flex; gap: 2px; }
.tour-item__price .stars svg { width: 17px; height: 17px; fill: var(--star); filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .1)); }
.tour-item__price-lbl { font-weight: 600; color: var(--ink); }
.tour-item__price-from { margin-left: auto; font-size: 15px; }
.tour-item__price-val { color: var(--primary); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.tour-item__button { transition: transform .35s var(--ease-out), background .2s; }
.tour-item__button:hover { transform: translateY(-2px); }

.directions__swipe { display: none; align-items: center; justify-content: center; gap: 8px; color: var(--gray-text); font-size: 14.5px; margin: -4px 0 10px; }
.directions__swipe svg { width: 20px; height: 20px; color: var(--secondary); }

/* ---------- шаги: самолётики и пунктир ---------- */
.steps__list { position: relative; }
.step-item { position: relative; }
.steps__planes {
	position: absolute; left: calc(50% - 25px); top: 50%;
	width: 954px; height: 373px; transform: translate(-50%, -50%);
	pointer-events: none; z-index: 6; overflow: visible;
}   /* маршрут поверх карточек, но идёт по верхней полосе (y<145) — текст (с 166) не задевает */
.steps__list::before { display: none; }
.step-item__title { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* ---------- подборка: живые карточки вместо серых плашек ---------- */
.request__slide { display: flex; justify-content: center; }
.pick {
	width: 100%; max-width: 900px; background: #fff; border-radius: 24px; overflow: hidden;
	border: 1px solid var(--border-color); box-shadow: 0 18px 44px -24px rgba(15, 57, 68, .35);
}
.pick__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 26px; background: var(--teal-deep); color: #fff; }
.pick__title { font-size: 20px; font-weight: 700; }
.pick__tag { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #DCEFF3; white-space: nowrap; }
.pick__list { list-style: none; margin: 0; padding: 18px 22px; display: grid; gap: 12px; background: var(--light-gray); }
.pick__row {
	display: grid; grid-template-columns: 104px 1fr auto; gap: 16px; align-items: center;
	background: #fff; border-radius: 16px; padding: 10px 14px 10px 10px;
	box-shadow: 0 6px 18px -12px rgba(15, 57, 68, .3);
}
.request__slide .pick__img { width: 104px; height: 78px; max-width: none; aspect-ratio: auto; object-fit: cover; border-radius: 12px; display: block; box-shadow: none; }
.pick__body { min-width: 0; }
.pick__name { display: block; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.pick__meta { display: block; font-size: 15px; color: var(--gray-text); margin-top: 3px; }
.pick__price { font-weight: 800; font-size: 18px; color: #fff; background: var(--primary); padding: 10px 16px; border-radius: 999px; white-space: nowrap; }
.pick__foot { margin: 0; padding: 14px 26px 18px; font-size: 15px; color: var(--gray-text); background: var(--light-gray); border-top: 1px dashed var(--border-color); }

/* ---------- Telegram-блок (вместо отзывов) ---------- */
.tg__card {
	position: relative; display: grid; grid-template-columns: minmax(280px, 420px) 1fr;
	background: var(--teal-deep); color: #fff; border-radius: 32px; overflow: hidden;
	box-shadow: 0 30px 60px -30px rgba(15, 57, 68, .5);
}
.tg__media { position: relative; }
.tg__media img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; object-position: center top; display: block; }
.tg__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 72%, var(--teal-deep) 100%); }
.tg__body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.tg__title { color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin: 0; }
.tg__title span { color: #FFB27A; }
.tg__lead { font-size: 18px; line-height: 1.55; color: #D6E8EC; margin: 0; max-width: 56ch; }
.tg__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tg__list li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.45; color: #EAF3F5; }
.tg__list li::before { content: ''; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); }
.tg__list li::after { content: ''; position: absolute; left: 7px; top: calc(.2em + 4px); width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tg__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.tg__btn {
	display: inline-flex; align-items: center; gap: 10px;
	background: var(--primary); color: #fff; padding: 16px 26px; border-radius: 999px;
	font-weight: 700; font-size: 17px; text-decoration: none;
	transition: transform .35s var(--ease-out), background .2s;
}
.tg__btn:hover { background: var(--pac-orange-hover); transform: translateY(-2px); }
.tg__btn svg { width: 22px; height: 22px; fill: #fff; }
.tg__hint { color: #BFD8DE; font-size: 15px; }

/* ---------- офис: три кадра ---------- */
.office__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 18px; }
.office__i { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; }
.office__i img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.office__i:hover img { transform: scale(1.04); }

/* ---------- движение ---------- */
@media (prefers-reduced-motion: no-preference) {
	.hero__button { animation: ctaPulse 2.4s var(--ease-out) infinite; }
	.buttons__arrow, .request__content-item img { animation: decoPulse 2.8s ease-in-out infinite; }
	.steps__planes .dash { animation: dashMove 1.4s linear infinite; }
	.steps__planes .plane { transform-box: fill-box; transform-origin: center; animation: planeBob 3.6s ease-in-out infinite; }
	.steps__planes .plane:nth-of-type(2) { animation-delay: -1.2s; }
	.steps__planes .plane:nth-of-type(3) { animation-delay: -2.4s; }
	.steps__list::before { animation: decoFloat 4s ease-in-out infinite; }
	.step-item::after { animation: planeBobR 3.6s ease-in-out infinite; }
	.step-item:nth-child(2)::after { animation-delay: -1.2s; }
	.step-item:nth-child(3)::after { animation-delay: -2.4s; }
}
@keyframes ctaPulse {
	0% { box-shadow: 0 0 0 0 rgba(240, 116, 28, .55); }
	70% { box-shadow: 0 0 0 22px rgba(240, 116, 28, 0); }
	100% { box-shadow: 0 0 0 0 rgba(240, 116, 28, 0); }
}
@keyframes decoPulse {
	0%, 100% { opacity: .55; transform: translate(0, 0); }
	50% { opacity: 1; transform: translate(3px, -3px); }
}
@keyframes dashMove { to { stroke-dashoffset: -34; } }
@keyframes planeBob {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(5px, -7px) rotate(-3deg); }
}
@keyframes decoFloat {
	0%, 100% { transform: translateY(0); opacity: .85; }
	50% { transform: translateY(-6px); opacity: 1; }
}

/* ---------- адаптив ---------- */
@media (max-width: 860px) {
	.tg__card { grid-template-columns: 1fr; }
	.tg__media img { min-height: 0; height: 340px; object-position: center 18%; }
	.tg__media::after { background: linear-gradient(180deg, transparent 62%, var(--teal-deep) 100%); }
}
@media (max-width: 767px) {
	body { font-size: 17px; }
	.steps__planes { display: none; }
	.steps__list::before { display: none; }   /* большой фон planes-mobile.svg ложился на текст */
	.step-item__header { display: flex; align-items: flex-start; gap: 14px; padding-right: 44px; }
	.step-item__title { flex: 1 1 auto; min-width: 0; font-size: clamp(19px, 5.6vw, 24px); }
	/* самолётик в углу карточки + пунктир в зазоре до следующей */
	.step-item::after {
		content: ''; position: absolute; top: 22px; right: 22px; width: 30px; height: 30px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 21l21-9L2 3v7l15 2-15 2z' fill='%23398A96'/%3E%3C/svg%3E") center/contain no-repeat;
		transform: rotate(-24deg); opacity: .85; pointer-events: none;
	}
	.step-item:not(:last-child)::before {
		content: ''; position: absolute; left: 36px; bottom: -24px; height: 24px; width: 0;
		border-left: 2px dashed var(--secondary); opacity: .7; pointer-events: none;
	}
	.directions__swipe { display: flex; }
	.directions__list.tour-list {
		display: flex; flex-wrap: nowrap; gap: 14px; overflow-x: auto;
		scroll-snap-type: x mandatory; padding: 6px 16px 18px; margin: 0 -16px;
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.directions__list.tour-list::-webkit-scrollbar { display: none; }
	.directions__list.tour-list > .tour-item { flex: 0 0 84%; max-width: 360px; scroll-snap-align: center; margin: 0; }
	.office__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.office__i:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
	.pick__head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.pick__row { grid-template-columns: 76px 1fr; }
	.request__slide .pick__img { width: 76px; height: 60px; }
	.pick__price { grid-column: 2; justify-self: start; padding: 7px 12px; font-size: 16px; }
	.tour-item__price-val { font-size: 18px; }
}

@keyframes planeBobR {
	0%, 100% { transform: rotate(-24deg) translate(0, 0); }
	50% { transform: rotate(-24deg) translate(4px, -5px); }
}
