/* Travel42 — тема поверх эталонных стилей (подключается последней).
   Цвета — фирменные travel42.ru: морской синий и оранжевый действия; шрифты — Manrope (заголовки) и Golos Text. */

/* рукописные подписи (у формы, «можно пропустить» в квизе) — Vasek, как на других лендингах (tut-turict, Натали) */
@font-face { font-family: "Vasek"; src: url("../fonts/Vasek-Italic.woff2") format("woff2"); font-display: swap; }

:root {
	--t42-sea: #1E6FB0;
	--t42-sea-hover: #175A90;
	--t42-deep: #144A78;
	--t42-light: #EAF3FB;
	--t42-light-2: #F3F6F9;
	--t42-line: #D4E4F3;
	--t42-orange: #FF7A1A;
	--t42-orange-hover: #E86A0C;
	--t42-ink: #333;
	--t42-muted: #61788E;

	--font1: "Golos Text", system-ui, sans-serif;
	--font2: "Manrope", "Golos Text", sans-serif;

	--primary: var(--t42-orange);
	--pac-orange: var(--t42-orange);
	--pac-orange-hover: var(--t42-orange-hover);
	--whatsapp: var(--t42-orange);
	--whatsapp-hover: var(--t42-orange-hover);
	--secondary: var(--t42-sea);
	--teal-deep: var(--t42-deep);
	--ink: var(--t42-ink);
	--black: var(--t42-ink);
	--gray-text: var(--t42-muted);
	--light-gray: var(--t42-light);
	--border-color: var(--t42-line);
	--cream: var(--t42-light-2);
}

body { background: #fff; color: var(--t42-ink); font-family: var(--font1); }
::selection { background: var(--t42-sea); color: #fff; }

/* ── заголовки ── */
.title, .hero__title, .tour-item__title, .step-item__title, .quiz__title, .thx__title {
	font-family: var(--font2); font-weight: 800; letter-spacing: -.015em; text-transform: none;
}
.title span, .thx__title span { color: var(--t42-sea); font-family: var(--font2); }
.hero__title span { display: block; font-weight: 700; font-size: .62em; line-height: 1.2; margin-top: .35em; color: #fff; }

/* ── шапка и логотип ── */
.header { background: rgba(255, 255, 255, .97); border-bottom: 0; box-shadow: 0 1px 0 rgba(20, 74, 120, .08); }
.header__logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo__img { display: block; height: 46px; width: auto; }
@media (max-width: 1199px) { .logo__img { height: 40px; } }
@media (max-width: 767px) { .logo__img { height: 32px; } }

/* Два офиса в шапке — плашка выбора: выбранный показывает часы и ссылку на карту; без :has (старые браузеры)
   виден первый. Полный адрес и телефон офиса — только в мобильном меню, в шапке тесно. */
.contacts-address.ro-offices { width: auto; max-width: none; }
.ro-offices__body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ro-offices__tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--t42-light); }
.ro-offices__tab { position: relative; cursor: pointer; }
.ro-offices__tab input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ro-offices__tab span {
	display: block; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
	font: 600 13px/1.35 var(--font1); color: var(--t42-muted); transition: background .2s, color .2s, box-shadow .2s;
}
.ro-offices__tab:hover span { color: var(--t42-deep); }
.ro-offices__tab input:checked + span { background: var(--t42-sea); color: #fff; box-shadow: 0 2px 6px -2px rgba(20, 74, 120, .55); }
.ro-offices__tab input:focus-visible + span { outline: 2px solid var(--t42-sea); outline-offset: 1px; }
.ro-offices__info { margin: 0; padding-left: 6px; font-size: 13px; line-height: 1.3; color: var(--t42-muted); white-space: nowrap; }
.ro-offices__info a { color: var(--t42-sea); text-decoration: underline; text-underline-offset: 2px; }
.ro-offices__info + .ro-offices__info,
.ro-offices:has(.ro-offices__tab:nth-child(2) input:checked) .ro-offices__info:first-of-type { display: none; }
.ro-offices:has(.ro-offices__tab:nth-child(2) input:checked) .ro-offices__info + .ro-offices__info { display: block; }
.ro-offices__addr, .ro-offices__tel { display: none; }
.ro-offices--menu { align-items: flex-start; }
.ro-offices--menu .ro-offices__body { gap: 8px; }
.ro-offices--menu .ro-offices__tabs { background: #fff; box-shadow: inset 0 0 0 1px var(--t42-line); }
.ro-offices--menu .ro-offices__tab span { padding: 6px 14px; font-size: 15px; }
.ro-offices--menu .ro-offices__info { padding-left: 4px; font-size: 15px; line-height: 1.4; color: var(--t42-ink); white-space: normal; }
.ro-offices--menu .ro-offices__addr { display: block; font-weight: 600; }
.ro-offices--menu .ro-offices__tel { display: inline; }

/* ── кнопки действия — оранжевые ── */
.btn--whatsapp, .tour-item__button, .wish__submit-btn, .quiz__form-submit, .quiz__button {
	background: var(--t42-orange); color: #fff; border: 0;
	box-shadow: 0 10px 24px -12px rgba(232, 106, 12, .9);
}
.btn--whatsapp:hover, .tour-item__button:hover, .wish__submit-btn:hover, .quiz__form-submit:hover, .quiz__button:hover {
	background: var(--t42-orange-hover); color: #fff;
	box-shadow: 0 12px 28px -12px rgba(232, 106, 12, .95);
}
.btn--whatsapp .btn__text { color: #fff; }

/* ── герой: синяя дымка слева под текстом ── */
.hero__background::after {
	background: linear-gradient(90deg, rgba(14, 52, 86, .66) 0%, rgba(14, 52, 86, .32) 48%, rgba(14, 52, 86, 0) 75%),
		linear-gradient(180deg, rgba(14, 52, 86, 0) 55%, rgba(14, 52, 86, .3) 100%);
}
@media (max-width: 767px) {
	.hero__background::after { background: linear-gradient(180deg, rgba(14, 52, 86, .35) 0%, rgba(14, 52, 86, .7) 100%); }
}
/* рукописная подсказка эталона у кнопки — с этими шрифтами не смотрится */
.buttons__detail--hero { display: none; }

/* ── фоны секций ── */
.directions { background: var(--t42-light); }
.steps { background: #fff; }
.request { background: linear-gradient(180deg, var(--t42-light-2) 0%, #fff 100%); }
.footer { background: var(--t42-light); }
.wish, .cta { background: linear-gradient(160deg, var(--t42-light) 0%, var(--t42-light-2) 100%); }

.tour-item { border-radius: 20px; overflow: hidden; }
.tour-item__price-val { color: var(--t42-orange-hover); }
.tour-item__desc b { color: var(--t42-deep); }
.tour-item__more {
	display: inline-block; margin: -4px 0 14px; color: var(--t42-sea); font-weight: 600; font-size: 15px;
	text-decoration: underline; text-decoration-color: var(--t42-line); text-underline-offset: 4px;
}
.tour-item__more:hover { color: var(--t42-sea-hover); text-decoration-color: var(--t42-sea); }
.step-item__number { color: #fff; background: var(--t42-sea); }

/* ── о стране: сезон, перелёт, въезд ── */
.t42-about { background: #fff; }
.t42-about__box { max-width: 900px; }
.t42-about h2 { font: 800 clamp(26px, 3.2vw, 38px)/1.15 var(--font2); color: var(--t42-ink); margin: 0 0 22px; text-align: center; letter-spacing: -.015em; }
.t42-about ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.t42-about li { background: var(--t42-light-2); border-radius: 16px; padding: 16px 18px; font-size: 16px; line-height: 1.5; color: var(--t42-ink); }
.t42-about li strong { display: block; margin-bottom: 4px; font: 700 15px/1.3 var(--font2); color: var(--t42-sea); }
@media (max-width: 767px) { .t42-about ul { grid-template-columns: 1fr; } }

/* ── команда и офисы ── */
.ro-team { background: #fff; }
.ro-team__lead { max-width: 780px; margin: 0 auto 32px; text-align: center; color: var(--t42-muted); font-size: 18px; }
.t42-offices { max-width: 1120px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.t42-offices__item { margin: 0; border-radius: 22px; overflow: hidden; background: var(--t42-light); box-shadow: 0 24px 48px -36px rgba(20, 74, 120, .6); }
.t42-offices__item img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.t42-offices__item figcaption { padding: 14px 18px 16px; font-size: 15px; color: var(--t42-muted); }
.t42-offices__item figcaption b { display: block; font: 700 18px/1.25 var(--font2); color: var(--t42-ink); margin-bottom: 2px; }
.t42-offices__item figcaption a { color: var(--t42-sea); white-space: nowrap; }
@media (max-width: 767px) { .t42-offices { grid-template-columns: 1fr; gap: 14px; } }
.ro-team__list { list-style: none; margin: 0 auto; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ro-team__card { background: var(--t42-light); border-radius: 20px; padding: 10px 10px 18px; text-align: center; }
.ro-team__card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.ro-team__card b { display: block; font: 700 18px/1.2 var(--font2); color: var(--t42-ink); }
.ro-team__card span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--t42-muted); }
@media (max-width: 991px) { .ro-team__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .ro-team__list { gap: 12px; } .ro-team__card b { font-size: 16px; } .ro-team__card span { font-size: 13px; } }

/* ── вопросы ── */
.ro-faq { background: var(--t42-light); }
.ro-faq__list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.ro-faq__item { background: #fff; border-radius: 16px; padding: 0 22px; box-shadow: 0 1px 0 rgba(20, 74, 120, .06); }
.ro-faq__item summary {
	list-style: none; cursor: pointer; padding: 18px 34px 18px 0; position: relative;
	font: 600 18px/1.35 var(--font1); color: var(--t42-ink);
}
.ro-faq__item summary::-webkit-details-marker { display: none; }
.ro-faq__item summary::after {
	content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 26px; height: 26px; border-radius: 50%; background: var(--t42-light); color: var(--t42-sea);
	display: grid; place-items: center; font: 600 20px/1 var(--font1);
}
.ro-faq__item[open] summary::after { content: '–'; }
.ro-faq__item p { margin: 0 0 18px; color: var(--t42-muted); font-size: 16.5px; line-height: 1.55; }

/* ── подвал ── */
.ro-mail { font-size: 16px; opacity: .85; }
.footer-item__text a { color: var(--t42-sea); }

/* ── окно «спасибо» ── */
.thx__no b { color: var(--t42-ink); }
.thx__hint a { white-space: nowrap; }
/* у фото Екатерины над головой мало воздуха — на телефоне кадр от верха, иначе срезает макушку */
@media (max-width: 767px) { .thx__media img { object-position: center 4%; } }

/* ── квиз: десять стран на главной — плитками в две колонки ── */
.quiz__options--dirs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quiz__options--dirs .quiz__option { margin: 0; }
/* варианты в две колонки занимают всю ширину — «можно пропустить» строкой под ними, а не наклонной подписью поверх
   (на телефоне так же — v4.css) */
@media (min-width: 768px) { .quiz__skip { position: static; transform: none; width: auto; text-align: right; margin: 14px 0 0; line-height: 1; opacity: .8; } }
.quiz__skip { font-size: var(--fs-hand); }   /* Vasek мелкий — меньше 26px не читается (v4.css на телефоне ставит 20) */
@media (max-width: 480px) { .quiz__options--dirs { gap: 8px; } .quiz__options--dirs .quiz__option-text { font-size: 14px; } }

/* ── мелочи эталона ── */
/* рукописные подписи вокруг подборки рассчитаны на шрифт эталона — налезают друг на друга */
.request__content-item { display: none; }
.wish__form-detail, .quiz__skip { font-family: "Vasek", cursive; font-weight: 400; letter-spacing: 0; }
.wish__form-detail { color: var(--t42-sea); }
/* стрелка подписи — на поле «Хочу поехать…», а не вниз на телефон (как coral.css tut-turict) */
@media (min-width: 1181px) { .wish__form-detail::before { transform-origin: top center; transform: rotate(38deg); } }
/* баннер cookie — в светлой палитре сайта */
.mcb { background: rgba(255, 255, 255, .97); color: var(--t42-ink); box-shadow: 0 -10px 30px rgba(20, 74, 120, .16); font-family: var(--font1); }
.mcb__txt { color: var(--t42-muted); }
.mcb__txt a { color: var(--t42-sea); }
.mcb__btn--ok { background: var(--t42-orange); color: #fff; }
.mcb__btn--ok:hover { background: var(--t42-orange-hover); }
/* в колонке flex-basis 420px из cookie-consent.css становится высотой — плашка закрывала полэкрана */
@media (max-width: 560px) { .mcb__txt { flex: 0 0 auto; } }
/* строка цены: длинная подпись не должна вылезать из карточки */
.tour-item__price { flex-wrap: wrap; row-gap: 2px; max-width: 100%; }
@media (max-width: 575px) { .tour-item__price-lbl { flex-basis: 100%; } .tour-item__price-from { margin-left: 0; } }
/* карточки по три в ряд (владелец 04.11: в две колонки цены тонули в пустоте), ряды всегда полные:
   сетка в 6 долей, карточка — 2 доли, .tour-item--wide (хвост, его считает page.php) — 3 доли, т. е. пара на ряд */
@media (min-width: 1024px) {
	.tour-list--4 { grid-template-columns: repeat(6, 1fr); gap: 24px; }
	.tour-list--4 > .tour-item { grid-column: span 2; min-width: 0; }
	.tour-list--4 > .tour-item--wide { grid-column: span 3; }
	.tour-list--4 .tour-item__content { padding: 22px 22px 26px; gap: 14px; }
	.tour-list--4 .tour-item__title { font-size: 24px; }
}
/* 761–1023 — две колонки, нечётная последняя карточка по центру */
@media (min-width: 761px) and (max-width: 1023px) { .tour-list--4 > .tour-item:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 15px); } }
