/* =========================================================================
   Two Wings — дизайн-система сайта
   Один набор правил для всех блоков, которые выводит движок: цены, заезды,
   B2B, сгенерированные страницы, формы. Шрифты наследуются от темы, поэтому
   блоки всегда совпадают с остальным сайтом; движок задаёт только масштаб,
   ритм, цвет и структуру.
   ========================================================================= */

.tw-price-block, .tw-departures, .tw-b2b, .tw-b2b-wrap,
.tw-facts, .tw-inclusions, .tw-faq, .tw-cta, .tw-gen {
	--tw-ink:        #16211f;
	--tw-ink-2:      #46514c;
	--tw-muted:      #74807a;
	--tw-line:       #e3e6e0;
	--tw-line-2:     #cdd3ca;
	--tw-surface:    #ffffff;
	--tw-sand:       #f6f2ea;
	--tw-deep:       #17384f;
	--tw-deep-2:     #1f3d3a;
	--tw-gold:       #b8862f;
	--tw-jade:       #00785f;
	--tw-jade-soft:  #e6f1ec;
	--tw-amber-soft: #fdf3e2;

	--tw-r:      3px;
	--tw-shadow: 0 1px 2px rgba(22,33,31,.04), 0 12px 32px -22px rgba(22,33,31,.35);
	--tw-max:    1120px;

	font-family: inherit;
	color: var(--tw-ink, #16211f);
	box-sizing: border-box;
}
.tw-price-block *, .tw-departures *, .tw-b2b *, .tw-b2b-wrap *,
.tw-facts *, .tw-inclusions *, .tw-faq *, .tw-cta *, .tw-gen * { box-sizing: border-box; }

/* ---------- общая обёртка: блоки движка всегда по ширине контента ---------- */
.tw-price-block, .tw-departures, .tw-b2b-wrap, .tw-facts, .tw-inclusions, .tw-cta {
	max-width: var(--tw-max, 1120px);
	margin: 56px auto;
	padding: 0 24px;
}
.et_pb_text_inner .tw-price-block, .et_pb_text_inner .tw-departures,
.entry-content .tw-price-block, .entry-content .tw-departures { padding: 0; }

/* ---------- заголовки блоков: надзаголовок + крупная строка ---------- */
.tw-eyebrow {
	font-size: 12px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--tw-gold, #b8862f);
	margin: 0 0 10px;
}
.tw-h {
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.16;
	font-weight: 700;
	letter-spacing: -.01em;
	margin: 0 0 6px;
	color: var(--tw-ink, #16211f);
	text-wrap: balance;
}
.tw-sub {
	font-size: 16.5px;
	line-height: 1.6;
	color: var(--tw-ink-2, #46514c);
	margin: 0 0 26px;
	max-width: 68ch;
}

/* ---------- полоса фактов о туре ---------- */
.tw-facts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1px;
	background: var(--tw-line, #e3e6e0);
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: var(--tw-r, 3px);
	overflow: hidden;
}
.tw-facts-grid > div { background: var(--tw-surface, #ffffff); padding: 20px 22px; }
.tw-facts-grid dt {
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tw-muted, #74807a);
	margin: 0 0 8px;
	font-weight: 600;
}
.tw-facts-grid dd {
	margin: 0;
	font-size: 21px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.01em;
}
.tw-facts-grid dd small { display: block; font-size: 13.5px; font-weight: 400; color: var(--tw-ink-2, #46514c); margin-top: 5px; }

/* ---------- таблицы ---------- */
.tw-price-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: var(--tw-r, 3px);
	background: var(--tw-surface, #ffffff);
	box-shadow: var(--tw-shadow, 0 1px 2px rgba(22,33,31,.04), 0 12px 32px -22px rgba(22,33,31,.35));
}
.tw-price-table, .tw-dep-table {
	border-collapse: collapse;
	width: 100%;
	font-variant-numeric: tabular-nums;
	font-size: 15.5px;
}
.tw-price-table th, .tw-price-table td,
.tw-dep-table th,   .tw-dep-table td {
	padding: 13px 16px;
	text-align: right;
	border-bottom: 1px solid var(--tw-line, #e3e6e0);
	white-space: nowrap;
}
.tw-price-table thead th, .tw-dep-table thead th {
	background: var(--tw-deep, #17384f);
	color: #fff;
	font-size: 11.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 700;
	padding-top: 15px;
	padding-bottom: 15px;
}
.tw-price-table tbody th, .tw-dep-table tbody th {
	text-align: left;
	font-weight: 600;
	background: var(--tw-sand, #f6f2ea);
	white-space: normal;
	min-width: 180px;
}
.tw-price-table td.tw-hl { background: var(--tw-jade-soft, #e6f1ec); font-weight: 700; color: var(--tw-jade, #00785f); }
.tw-price-table tbody tr:last-child td, .tw-dep-table tbody tr:last-child td { border-bottom: 0; }
.tw-price-table tbody tr:hover td, .tw-dep-table tbody tr:hover td { background: #fbfaf7; }
.tw-price-table tbody tr:hover td.tw-hl { background: var(--tw-jade-soft, #e6f1ec); }

.tw-price-sgl { margin: 16px 0 6px; font-size: 15.5px; }
.tw-price-sgl strong { color: var(--tw-jade, #00785f); }
.tw-price-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--tw-muted, #74807a); max-width: 76ch; }

/* ---------- плашка «от $X» ---------- */
.tw-from { font-weight: 700; color: var(--tw-jade, #00785f); white-space: nowrap; }
.tw-badge {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 26px;
	background: var(--tw-deep, #17384f);
	color: #fff;
	border-radius: var(--tw-r, 3px);
	box-shadow: var(--tw-shadow, 0 1px 2px rgba(22,33,31,.04), 0 12px 32px -22px rgba(22,33,31,.35));
}
.tw-badge-lab { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.tw-badge-val { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.025em; }
.tw-badge-unit, .tw-badge-meta { font-size: 13.5px; opacity: .85; }

/* ---------- заезды ---------- */
.tw-dep-title { margin: 0 0 18px; font-size: clamp(21px, 2.4vw, 27px); font-weight: 700; letter-spacing: -.01em; }
.tw-dep-table td:first-child, .tw-dep-table th:first-child { text-align: left; }
.tw-dep-date strong { font-size: 16.5px; }
.tw-dep-end { color: var(--tw-muted, #74807a); font-size: 13.5px; margin-left: 5px; }
.tw-dep-price { font-weight: 700; font-size: 16.5px; }

.tw-pill {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.5;
}
.tw-pill-confirmed { background: var(--tw-jade-soft, #e6f1ec); color: #00604c; }
.tw-pill-filling   { background: var(--tw-amber-soft, #fdf3e2); color: #8a5a00; }
.tw-pill-sold      { background: #f0f0ee; color: #6c6c6c; }
.tw-seats { display: block; font-size: 12.5px; color: var(--tw-muted, #74807a); margin-top: 4px; }

/* ---------- кнопки ---------- */
.tw-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 1px solid var(--tw-deep, #17384f);
	background: transparent;
	color: var(--tw-deep, #17384f);
	border-radius: var(--tw-r, 3px);
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.tw-btn:hover { background: var(--tw-deep, #17384f); color: #fff; transform: translateY(-1px); }
.tw-btn:focus-visible { outline: 2px solid var(--tw-gold, #b8862f); outline-offset: 2px; }
.tw-btn-solid { background: var(--tw-deep, #17384f); color: #fff; }
.tw-btn-solid:hover { background: var(--tw-gold, #b8862f); border-color: var(--tw-gold, #b8862f); color: #fff; }
.tw-btn[disabled] { opacity: .45; cursor: default; transform: none; }

/* ---------- что включено ---------- */
.tw-inc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.tw-inc-card {
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: var(--tw-r, 3px);
	overflow: hidden;
	background: var(--tw-surface, #ffffff);
	box-shadow: var(--tw-shadow, 0 1px 2px rgba(22,33,31,.04), 0 12px 32px -22px rgba(22,33,31,.35));
}
.tw-inc-card h3 { margin: 0; padding: 16px 22px; font-size: 18px; font-weight: 700; color: #fff; }
.tw-inc-yes h3 { background: var(--tw-deep, #17384f); }
.tw-inc-no  h3 { background: var(--tw-gold, #b8862f); }
.tw-inc-card ul { list-style: none; margin: 0; padding: 18px 22px 22px; display: grid; gap: 10px; }
.tw-inc-card li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.55; color: var(--tw-ink-2, #46514c); }
.tw-inc-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--tw-jade, #00785f); font-weight: 700; }
.tw-inc-no  li::before { content: "—"; position: absolute; left: 0; color: var(--tw-gold, #b8862f); font-weight: 700; }

/* ---------- FAQ ---------- */
.tw-faq { max-width: var(--tw-max, 1120px); margin: 56px auto; padding: 0 24px; }
.tw-faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1px; background: var(--tw-line, #e3e6e0); border: 1px solid var(--tw-line, #e3e6e0); border-radius: var(--tw-r, 3px); overflow: hidden; }
.tw-faq-item { background: var(--tw-surface, #ffffff); padding: 20px 24px; }
.tw-faq-item summary {
	cursor: pointer;
	font-weight: 700;
	font-size: 16.5px;
	list-style: none;
	display: flex;
	gap: 12px;
	align-items: baseline;
	color: var(--tw-ink, #16211f);
}
.tw-faq-item summary::-webkit-details-marker { display: none; }
.tw-faq-item summary::before { content: "+"; color: var(--tw-gold, #b8862f); font-weight: 700; flex: none; width: 14px; }
.tw-faq-item[open] summary::before { content: "−"; }
.tw-faq-item > div { padding: 10px 0 0 26px; color: var(--tw-ink-2, #46514c); font-size: 15.5px; line-height: 1.6; }

/* ---------- призыв к действию ---------- */
.tw-cta {
	background: var(--tw-deep, #17384f);
	color: #fff;
	border-radius: var(--tw-r, 3px);
	padding: 44px 40px;
	text-align: center;
	max-width: var(--tw-max, 1120px);
}
.tw-cta h2 { color: #fff; font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; }
.tw-cta p { color: rgba(255,255,255,.82); max-width: 62ch; margin: 0 auto 24px; font-size: 16.5px; line-height: 1.6; }
.tw-cta .tw-btn { border-color: var(--tw-gold, #b8862f); background: var(--tw-gold, #b8862f); color: #fff; }
.tw-cta .tw-btn:hover { background: #a2751f; border-color: #a2751f; }

/* ---------- формы ---------- */
.tw-form { margin: 26px 0; display: grid; gap: 16px; max-width: 660px; }
.tw-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: var(--tw-ink-2, #46514c); }
.tw-form input, .tw-form textarea, .tw-form select {
	padding: 11px 13px;
	border: 1px solid var(--tw-line-2, #cdd3ca);
	border-radius: var(--tw-r, 3px);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 400;
	color: var(--tw-ink, #16211f);
	width: 100%;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tw-form input:focus, .tw-form textarea:focus {
	outline: none;
	border-color: var(--tw-deep, #17384f);
	box-shadow: 0 0 0 3px rgba(23,56,79,.1);
}
.tw-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.tw-form-msg { margin: 0; font-size: 14.5px; min-height: 20px; }
.tw-form-msg.ok  { color: #00604c; font-weight: 600; }
.tw-form-msg.err { color: #b0401f; font-weight: 600; }

/* ---------- B2B ---------- */
.tw-b2b-wrap h2 { font-size: clamp(23px, 2.8vw, 31px); margin: 44px 0 14px; font-weight: 700; letter-spacing: -.01em; }
.tw-b2b-wrap .tw-b2b, .tw-b2b-wrap .tw-form { max-width: none; padding: 0; margin: 18px 0; }
.tw-terms { display: grid; gap: 1px; background: var(--tw-line, #e3e6e0); border: 1px solid var(--tw-line, #e3e6e0); border-radius: var(--tw-r, 3px); overflow: hidden; margin: 22px 0; }
.tw-terms > div { background: var(--tw-surface, #ffffff); padding: 17px 22px; display: grid; grid-template-columns: 140px 1fr; gap: 20px; align-items: baseline; }
.tw-terms b { color: var(--tw-gold, #b8862f); font-size: 11.5px; letter-spacing: .14em; }
.tw-terms p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--tw-ink-2, #46514c); }

/* ---------- автоперелинковка ---------- */
.tw-autolink { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0,120,95,.45); }
.tw-autolink:hover { border-bottom-color: var(--tw-jade, #00785f); }

/* ---------- контакты в подвале ---------- */
.tw-fx { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; transition: border-color .15s, opacity .15s; }
.tw-fx:hover { border-bottom-color: currentColor; opacity: .85; }
.tw-fx::before { display: inline-block; margin-right: 6px; font-weight: 700; }
.tw-fx-wa::before   { content: "✆"; }
.tw-fx-tg::before   { content: "✈"; }
.tw-fx-tel::before  { content: "☎"; }
.tw-fx-mail::before { content: "✉"; }

/* ---------- сгенерированные страницы ---------- */
.tw-gen-wrap { max-width: var(--tw-max, 1120px); margin: 0 auto; padding: 0 24px 96px; }
.tw-gen-top { background: var(--tw-deep, #17384f); color: #fff; padding: 18px 0; margin-bottom: 48px; }
.tw-gen-top .tw-gen-inner { max-width: var(--tw-max, 1120px); margin: 0 auto; padding: 0 24px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.tw-gen-top a { color: #fff; text-decoration: none; font-size: 14.5px; opacity: .85; }
.tw-gen-top a:hover { opacity: 1; }
.tw-gen-top .tw-gen-brand { font-weight: 800; letter-spacing: .02em; opacity: 1; margin-right: auto; }

.tw-gen h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 22px; font-weight: 700; text-wrap: balance; }
.tw-gen h2 { font-size: clamp(22px, 2.8vw, 29px); margin: 46px 0 14px; font-weight: 700; letter-spacing: -.01em; }
.tw-gen p  { font-size: 16.5px; line-height: 1.68; color: var(--tw-ink-2, #46514c); max-width: 72ch; }
.tw-gen-lead { font-size: 19px; line-height: 1.6; color: var(--tw-ink, #16211f); }
.tw-gen-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 1px; background: var(--tw-line, #e3e6e0); border: 1px solid var(--tw-line, #e3e6e0); border-radius: var(--tw-r, 3px); overflow: hidden; margin: 26px 0; }
.tw-gen-stats > div { background: var(--tw-surface, #ffffff); padding: 18px 20px; display: grid; gap: 7px; }
.tw-gen-stats span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tw-muted, #74807a); font-weight: 600; }
.tw-gen-stats b { font-size: 23px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.tw-gen-deps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 1px; background: var(--tw-line, #e3e6e0); border: 1px solid var(--tw-line, #e3e6e0); border-radius: var(--tw-r, 3px); overflow: hidden; }
.tw-gen-deps li { background: var(--tw-surface, #ffffff); padding: 13px 18px; font-size: 15.5px; }
.tw-gen-nav { margin: 46px 0 0; padding-top: 22px; border-top: 1px solid var(--tw-line, #e3e6e0); line-height: 2.2; font-size: 14.5px; }
.tw-gen-nav a { margin-right: 14px; white-space: nowrap; color: var(--tw-deep, #17384f); }
.tw-empty { color: var(--tw-muted, #74807a); font-style: italic; }

/* ---------- модальное окно брони ---------- */
.tw-modal {
	position: fixed; inset: 0; z-index: 99999; padding: 20px;
	background: rgba(12,20,18,.6);
	display: grid; place-items: center;
	animation: tw-fade .18s ease;
}
@keyframes tw-fade { from { opacity: 0 } to { opacity: 1 } }
.tw-modal-box {
	background: #fff; max-width: 580px; width: 100%;
	padding: 30px 32px; border-radius: var(--tw-r, 3px);
	max-height: 90vh; overflow: auto;
	box-shadow: 0 30px 80px -30px rgba(0,0,0,.55);
	font-family: inherit; color: var(--tw-ink, #16211f);
	animation: tw-rise .22s cubic-bezier(.2,.7,.3,1);
}
@keyframes tw-rise { from { transform: translateY(12px) } to { transform: none } }
.tw-modal-box h3 { margin: 0 0 6px; font-size: 23px; font-weight: 700; letter-spacing: -.01em; }
.tw-modal-sub { margin: 0 0 20px; color: var(--tw-muted, #74807a); font-size: 14.5px; }
.tw-modal-close { float: right; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--tw-muted, #74807a); padding: 0 0 0 14px; }
.tw-modal-close:hover { color: var(--tw-ink, #16211f); }

@media (prefers-reduced-motion: reduce) {
	.tw-modal, .tw-modal-box { animation: none; }
	.tw-btn:hover { transform: none; }
}

@media (max-width: 640px) {
	.tw-price-block, .tw-departures, .tw-b2b-wrap, .tw-facts, .tw-inclusions, .tw-cta, .tw-faq { margin: 40px auto; padding: 0 18px; }
	.tw-price-table, .tw-dep-table { font-size: 14.5px; }
	.tw-price-table th, .tw-price-table td, .tw-dep-table th, .tw-dep-table td { padding: 11px 13px; }
	.tw-terms > div { grid-template-columns: 1fr; gap: 6px; }
	.tw-cta { padding: 34px 24px; }
	.tw-badge-val { font-size: 32px; }
}

/* Тема добавляет свои маркеры спискам — гасим, у нас свои галочки */
.tw-inc-card ul, .tw-inc-card ul li,
.tw-gen-deps, .tw-gen-deps li { list-style: none !important; }
.tw-inc-card ul li::marker, .tw-gen-deps li::marker { content: "" !important; }
.tw-inc-card ul li { background-image: none !important; }

/* ============================================================
   Страницы без модулей Divi — голый HTML.
   Приводим их к тому же виду, что и оформленные страницы туров.
   ============================================================ */
.tw-plain {
	max-width: var(--tw-max, 1120px);
	margin: 0 auto;
	padding: 8px 24px 0;
	color: var(--tw-ink-2, #46514c);
	font-size: 16.5px;
	line-height: 1.7;
}
.tw-plain > *:first-child { margin-top: 0; }
.tw-plain p { margin: 0 0 18px; }
.tw-plain a { color: var(--tw-deep, #17384f); text-underline-offset: 3px; }

.tw-plain h2 {
	margin: 52px 0 20px;
	padding-top: 22px;
	border-top: 1px solid var(--tw-line, #e6e1d7);
	font-size: 29px;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.015em;
	color: var(--tw-ink, #16211f);
}
.tw-plain h2:first-child { margin-top: 8px; border-top: 0; padding-top: 0; }

.tw-plain h3 {
	margin: 30px 0 10px;
	padding-left: 16px;
	border-left: 3px solid var(--tw-gold, #b8862f);
	font-size: 20px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--tw-deep, #17384f);
}

.tw-plain ul, .tw-plain ol { margin: 0 0 22px; padding: 0; }
.tw-plain ul { list-style: none !important; }
.tw-plain ul > li {
	position: relative;
	list-style: none !important;
	padding: 0 0 0 27px;
	margin: 0 0 9px;
	font-size: 15.8px;
	line-height: 1.6;
}
.tw-plain ul > li::marker { content: "" !important; }
.tw-plain ul > li::before {
	content: "";
	position: absolute; left: 4px; top: .62em;
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--tw-jade, #00785f);
}
.tw-plain ol { padding-left: 22px; }
.tw-plain ol > li { margin: 0 0 9px; font-size: 15.8px; }

.tw-plain blockquote {
	margin: 24px 0; padding: 16px 22px;
	background: var(--tw-sand, #f6f2ea); border-left: 3px solid var(--tw-gold, #b8862f);
	border-radius: 0 10px 10px 0;
}
.tw-plain img { border-radius: 12px; }
.tw-plain table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.tw-plain table th, .tw-plain table td { border: 1px solid var(--tw-line, #e6e1d7); padding: 11px 14px; text-align: left; }
.tw-plain table thead th { background: var(--tw-deep, #17384f); color: #fff; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 640px) {
	.tw-plain { padding: 6px 18px 0; font-size: 16px; }
	.tw-plain h2 { font-size: 24px; margin-top: 40px; }
	.tw-plain h3 { font-size: 18.5px; }
}

/* Логотип внутри страниц (модуль изображения Divi) — держим в разумном размере
   и по центру; шапки сайта это правило не касается. */
.et-l--body .et_pb_image img[src*="ashgabattour-logo"] {
	max-width: 340px;
	height: auto;
}

/* ---------------------------------------------------- карточка офиса */
.tw-office { max-width: var(--tw-max, 1120px); margin: 56px auto; padding: 0 24px; }
.tw-office-grid {
	display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px;
	align-items: stretch;
}
.tw-office-info {
	background: #fff; border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: 14px; padding: 26px 28px;
}
.tw-office-info h3 {
	margin: 0 0 10px; font-size: 12px; letter-spacing: .14em;
	text-transform: uppercase; color: var(--tw-gold, #b8862f); font-weight: 700;
}
.tw-office-info h3 + p, .tw-office-info h3 + ul { margin-top: 0; }
.tw-office-info h3 ~ h3 { margin-top: 24px; }
.tw-office-addr { margin: 0 0 16px; font-size: 16.5px; line-height: 1.6; color: var(--tw-ink, #16211f); }
.tw-office-links { list-style: none !important; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.tw-office-links li { list-style: none !important; padding: 0; }
.tw-office-links li::marker { content: "" !important; }
.tw-office-links a { color: var(--tw-deep, #17384f); text-decoration: none; border-bottom: 1px solid var(--tw-line-2, #cdd3ca); }
.tw-office-links a:hover { color: var(--tw-gold, #b8862f); border-color: var(--tw-gold, #b8862f); }
.tw-office-note { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--tw-muted, #74807a); }
.tw-office-map {
	min-height: 380px; border-radius: 14px; overflow: hidden;
	border: 1px solid var(--tw-line, #e3e6e0); background: var(--tw-sand, #f6f2ea);
}
.tw-office-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

@media (max-width: 860px) {
	.tw-office-grid { grid-template-columns: 1fr; }
	.tw-office { margin: 40px auto; padding: 0 18px; }
	.tw-office-map, .tw-office-map iframe { min-height: 300px; }
}
.tw-office-grid.tw-office-solo { grid-template-columns: 1fr; }

/* ============================================================
   Витрина туров
   ============================================================ */
.tw-tours { max-width: var(--tw-max, 1120px); margin: 40px auto 64px; padding: 0 24px; }
.tw-tours-grid {
	display: grid; gap: 26px;
	grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
}
.tw-tour-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: 16px; overflow: hidden;
	transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s;
}
.tw-tour-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 50px -28px rgba(23,56,79,.45);
}
.tw-tour-media {
	position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
	background: var(--tw-sand, #f6f2ea); overflow: hidden; text-decoration: none;
}
.tw-tour-media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.tw-tour-card:hover .tw-tour-media img { transform: scale(1.04); }
.tw-tour-media-plain {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--tw-deep, #17384f), #0d5a4a);
}
.tw-tour-media-plain span { color: rgba(255,255,255,.22); font-size: 76px; font-weight: 700; line-height: 1; }
.tw-tour-badge {
	position: absolute; left: 14px; bottom: 14px;
	background: rgba(255,255,255,.94); color: var(--tw-ink, #16211f);
	font-style: normal; font-size: 12.5px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 999px;
	box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.tw-tour-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tw-tour-body h3 { margin: 0; font-size: 19px; line-height: 1.32; font-weight: 700; }
.tw-tour-body h3 a { color: var(--tw-ink, #16211f); text-decoration: none; }
.tw-tour-body h3 a:hover { color: var(--tw-deep, #17384f); }
.tw-tour-price { margin: 0; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.tw-tour-price span { font-size: 13.5px; color: var(--tw-muted, #74807a); }
.tw-tour-price b { font-size: 25px; color: var(--tw-deep, #17384f); font-variant-numeric: tabular-nums; }
.tw-tour-price small { font-size: 13px; color: var(--tw-muted, #74807a); }
.tw-tour-link {
	margin-top: auto; align-self: flex-start;
	color: var(--tw-deep, #17384f); font-weight: 600; font-size: 15px;
	text-decoration: none; border-bottom: 1px solid var(--tw-gold, #b8862f);
	padding-bottom: 2px;
}
.tw-tour-link::after { content: " →"; color: var(--tw-gold, #b8862f); }
.tw-tour-link:hover { color: var(--tw-gold, #b8862f); }

@media (max-width: 640px) {
	.tw-tours { margin: 30px auto 46px; padding: 0 18px; }
	.tw-tours-grid { gap: 20px; }
}

/* ============================================================
   Единая типографика заголовков.
   На сайте соседствовали четыре шрифта заголовков — сводим к двум.
   ============================================================ */
.et-l--body h1, .et-l--body h2,
.et_pb_section h1, .et_pb_section h2 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	letter-spacing: -.01em;
}
.et-l--body h3, .et-l--body h4,
.et_pb_section h3, .et_pb_section h4 {
	font-family: inherit;
	letter-spacing: -.005em;
}

/* Затемнение под текстом первого экрана — иначе белый заголовок
   теряется на светлой фотографии. */
.et_pb_fullwidth_header.et_pb_bg_layout_dark::before,
.et_pb_section.et_pb_with_background .et_pb_slide::before {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(11,26,35,.10) 0%, rgba(11,26,35,.46) 55%, rgba(11,26,35,.62) 100%);
	pointer-events: none;
}
.et_pb_fullwidth_header.et_pb_bg_layout_dark > *,
.et_pb_section.et_pb_with_background .et_pb_slide > * { position: relative; z-index: 1; }
.et_pb_fullwidth_header.et_pb_bg_layout_dark .et_pb_module_header,
.et_pb_fullwidth_header.et_pb_bg_layout_dark .et_pb_header_content {
	text-shadow: 0 2px 22px rgba(0,0,0,.35);
}

/* Тема сбрасывает фон у ссылок — возвращаем обложку карточки. */
.tw-tour-media-plain {
	background-image: linear-gradient(135deg, #17384f 0%, #0d5a4a 100%) !important;
	background-color: #17384f !important;
}
.tw-tour-media { background-color: var(--tw-sand, #f6f2ea); }
.tw-tour-body h3 a { color: var(--tw-ink, #16211f) !important; }
.tw-tour-body h3 a:hover { color: var(--tw-deep, #17384f) !important; }

/* ============================================================
   Липкая полоса брони на странице тура
   ============================================================ */
.tw-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000;
	background: rgba(255,255,255,.97);
	backdrop-filter: saturate(1.4) blur(8px);
	border-top: 1px solid var(--tw-line, #e3e6e0);
	box-shadow: 0 -12px 34px -22px rgba(0,0,0,.55);
	animation: tw-slide-up .28s cubic-bezier(.2,.7,.3,1);
}
@keyframes tw-slide-up { from { transform: translateY(100%) } to { transform: none } }
.tw-sticky-in {
	max-width: var(--tw-max, 1120px); margin: 0 auto;
	padding: 11px 24px;
	display: flex; align-items: center; gap: 20px; justify-content: space-between;
}
.tw-sticky-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tw-sticky-info strong {
	font-size: 15px; font-weight: 700; color: var(--tw-ink, #16211f);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tw-sticky-info span { font-size: 14px; color: var(--tw-muted, #74807a); }
.tw-sticky-info b { font-size: 18px; color: var(--tw-deep, #17384f); font-variant-numeric: tabular-nums; }
.tw-sticky-act { display: flex; align-items: center; gap: 12px; flex: none; }
.tw-sticky-wa {
	color: var(--tw-deep, #17384f); font-weight: 600; font-size: 15px;
	text-decoration: none; border-bottom: 1px solid var(--tw-line-2, #cdd3ca); padding-bottom: 2px;
}
.tw-sticky-wa:hover { color: var(--tw-gold, #b8862f); border-color: var(--tw-gold, #b8862f); }
.tw-sticky .tw-btn { margin: 0; }

/* В правом нижнем углу висит плавающая кнопка WhatsApp — оставляем ей место,
   чтобы она не закрывала кнопку заявки. */
.tw-sticky-in { padding-right: 200px; }

@media (max-width: 640px) {
	.tw-sticky-in { padding: 9px 16px; padding-right: 96px; gap: 12px; }
	.tw-sticky-info strong { display: none; }
	.tw-sticky-info span { font-size: 13.5px; }
	.tw-sticky-wa { display: none; }
	.tw-sticky .tw-btn { padding: 11px 18px; font-size: 15px; }
	body { padding-bottom: 4px; }
}

/* ============================================================
   Блок доверия
   ============================================================ */
.tw-trust { max-width: var(--tw-max, 1120px); margin: 60px auto; padding: 0 24px; }
.tw-trust-grid {
	display: grid; gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
}
.tw-trust-item {
	border-top: 2px solid var(--tw-gold, #b8862f);
	padding: 18px 0 0;
}
.tw-trust-item h3 {
	margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--tw-ink, #16211f);
}
.tw-trust-item p { margin: 0; font-size: 15.3px; line-height: 1.6; color: var(--tw-ink-2, #46514c); }

@media (max-width: 640px) {
	.tw-trust { margin: 42px auto; padding: 0 18px; }
	.tw-trust-grid { gap: 18px; }
}

/* Контакты внутри синего футера — как в русской версии */
.tw-foot-contacts { margin-top: 14px; }
.tw-foot-line { margin: 0 0 7px; line-height: 1.5; }
.tw-foot-line strong { font-weight: 700; }
.tw-foot-line a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 1px; }
.tw-foot-line a:hover { border-bottom-color: currentColor; }
.tw-tour-note { margin: -6px 0 0; font-size: 13px; color: var(--tw-muted, #74807a); }

/* ============================================================
   Программа по дням — раскрывающиеся карточки
   ============================================================ */
.tw-days { max-width: var(--tw-max, 1120px); margin: 0 auto; }
.tw-day {
	background: #fff;
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: 14px;
	margin: 0 0 14px;
	overflow: hidden;
	transition: box-shadow .25s, border-color .25s;
}
.tw-day[open] {
	border-color: var(--tw-line-2, #cdd3ca);
	box-shadow: 0 18px 44px -30px rgba(23,56,79,.5);
}
.tw-day > summary {
	list-style: none;
	cursor: pointer;
	padding: 18px 56px 18px 22px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: background .2s;
}
.tw-day > summary::-webkit-details-marker { display: none; }
.tw-day > summary:hover { background: var(--tw-sand, #f6f2ea); }
.tw-day > summary:focus-visible { outline: 2px solid var(--tw-gold, #b8862f); outline-offset: -2px; }
.tw-day-title {
	font-size: 18.5px; font-weight: 700; line-height: 1.3;
	color: var(--tw-ink, #16211f);
}
.tw-day-hint { font-size: 14.5px; color: var(--tw-muted, #74807a); }
.tw-day > summary::after {
	content: "";
	position: absolute; right: 22px; top: 50%;
	width: 11px; height: 11px;
	margin-top: -7px;
	border-right: 2px solid var(--tw-gold, #b8862f);
	border-bottom: 2px solid var(--tw-gold, #b8862f);
	transform: rotate(45deg);
	transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.tw-day[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tw-day-body {
	padding: 0 22px 20px;
	animation: tw-day-open .32s cubic-bezier(.2,.7,.3,1);
}
@keyframes tw-day-open {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}
.tw-day-body > *:first-child { margin-top: 0; }
.tw-day-body p { margin: 0 0 14px; line-height: 1.7; }
.tw-day-body ul { margin: 0 0 6px; padding: 0; list-style: none !important; }
.tw-day-body ul > li {
	position: relative; list-style: none !important;
	padding: 0 0 0 24px; margin: 0 0 8px; font-size: 15.5px;
}
.tw-day-body ul > li::marker { content: "" !important; }
.tw-day-body ul > li::before {
	content: ""; position: absolute; left: 2px; top: .62em;
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--tw-jade, #00785f);
}

@media (max-width: 640px) {
	.tw-day > summary { padding: 15px 46px 15px 17px; }
	.tw-day-title { font-size: 17px; }
	.tw-day-body { padding: 0 17px 17px; }
}

/* ============================================================
   Появление блоков при прокрутке — сдержанно, без «прыжков»
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	/* Блок всегда виден; класс только запускает появление. Скрывать заранее
	   нельзя: если скрипт не доработает, содержимое пропадёт совсем, а
	   ленивые картинки внутри скрытого блока не загружаются. */
	.tw-in { animation: tw-rise .6s cubic-bezier(.2,.7,.3,1) backwards; }
	@keyframes tw-rise {
		from { opacity: 0; transform: translateY(16px); }
		to   { opacity: 1; transform: none; }
	}
}

/* ============================================================
   Фотография маршрута над программой тура
   ============================================================ */
.tw-hero {
	position: relative;
	max-width: var(--tw-max, 1120px);
	margin: 0 auto 34px;
	border-radius: 18px;
	overflow: hidden;
	background: var(--tw-sand, #f6f2ea);
	box-shadow: 0 26px 60px -34px rgba(23,56,79,.55);
}
.tw-hero img {
	display: block; width: 100%; height: auto;
	aspect-ratio: 16 / 9; object-fit: cover; object-position: center 42%;
	transform: scale(1.02);
	animation: tw-hero-in 1.1s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes tw-hero-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: scale(1.02); } }
.tw-hero figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 16px; flex-wrap: wrap;
	padding: 58px 26px 20px;
	background: linear-gradient(180deg, rgba(11,26,35,0) 0%, rgba(11,26,35,.72) 100%);
	color: #fff;
}
.tw-hero-days {
	font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	background: rgba(255,255,255,.94); color: var(--tw-ink, #16211f);
	padding: 6px 13px; border-radius: 999px;
}
.tw-hero-price { font-size: 15px; opacity: .95; }
.tw-hero-price b { font-size: 26px; font-weight: 700; margin: 0 4px; }

@media (max-width: 640px) {
	.tw-hero { border-radius: 14px; margin-bottom: 26px; }
	.tw-hero img { aspect-ratio: 3 / 2; }
	.tw-hero figcaption { padding: 42px 16px 15px; }
	.tw-hero-price b { font-size: 22px; }
}

/* ============================================================
   Карточка дня: номер и служебная строка маршрута
   ============================================================ */
.tw-day > summary { flex-direction: row; align-items: flex-start; gap: 14px; }
.tw-day-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tw-day-n {
	flex: 0 0 auto;
	font-size: 12px; font-weight: 700; letter-spacing: .06em;
	color: var(--tw-gold, #b8862f);
	background: var(--tw-sand, #f6f2ea);
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: 999px;
	padding: 5px 11px; margin-top: 2px;
	font-variant-numeric: tabular-nums;
}
.tw-day[open] .tw-day-n { background: var(--tw-deep, #17384f); border-color: var(--tw-deep, #17384f); color: #fff; }
.tw-day-hint { overflow-wrap: anywhere; }

ul.tw-day-meta {
	display: grid; gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	background: var(--tw-line, #e3e6e0);
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: 12px; overflow: hidden;
	margin: 0 0 20px !important; padding: 0 !important;
	list-style: none !important;
}
ul.tw-day-meta > li {
	background: var(--tw-sand, #f6f2ea);
	display: flex; flex-direction: column; gap: 3px;
	padding: 12px 15px !important; margin: 0 !important;
	font-size: 15px;
}
ul.tw-day-meta > li::before { display: none !important; }
ul.tw-day-meta > li > b {
	font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--tw-muted, #74807a);
}
ul.tw-day-meta > li > span { color: var(--tw-ink, #16211f); line-height: 1.45; }

@media (max-width: 640px) {
	.tw-day > summary { gap: 11px; }
	.tw-day-n { padding: 4px 9px; font-size: 11.5px; }
}

/* ============================================================
   Первый экран главной
   ============================================================ */
.tw-home-hero {
	position: relative;
	min-height: min(78vh, 720px);
	display: flex; flex-direction: column; justify-content: flex-end;
	margin: 0 0 54px;
	padding: 96px clamp(20px, 5vw, 64px) 74px;
	border-radius: 0 0 26px 26px;
	overflow: hidden;
	background-color: var(--tw-deep, #17384f);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
}
.tw-hh-media { position: absolute; inset: 0; z-index: 1; }
.tw-hh-media::after {
	content: ""; position: absolute; inset: 0; z-index: 2;
	background:
		linear-gradient(180deg, rgba(9,22,30,.22) 0%, rgba(9,22,30,0) 40%, rgba(9,22,30,.58) 100%),
		linear-gradient(96deg, rgba(9,22,30,.52) 0%, rgba(9,22,30,.16) 50%, rgba(9,22,30,0) 82%);
}
.tw-home-hero .tw-hh-shot {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	opacity: 0;
	z-index: 0;
	transform: scale(1.08);
	transition: opacity 1.6s ease;
}
.tw-home-hero .tw-hh-shot.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
	.tw-home-hero .tw-hh-shot.is-on { animation: tw-hh-pan 11s linear both; }
}
@keyframes tw-hh-pan { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.tw-hh-in { position: relative; z-index: 3; max-width: 760px; }
.tw-hh-eyebrow {
	text-shadow: 0 1px 14px rgba(6,16,22,.6);
	font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: rgba(255,255,255,.82);
	margin: 0 0 18px;
}
p.tw-hh-title { margin: 0 0 20px; }
.tw-hh-title {
	text-shadow: 0 2px 24px rgba(6,16,22,.55);
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(34px, 5.4vw, 62px);
	line-height: 1.08;
	font-weight: 700;
	margin: 0 0 20px;
	color: #fff;
	text-wrap: balance;
}
.tw-hh-lead {
	text-shadow: 0 1px 16px rgba(6,16,22,.6);
	font-size: clamp(16px, 1.4vw, 19px);
	line-height: 1.62;
	color: rgba(255,255,255,.9);
	margin: 0 0 30px;
	max-width: 620px;
}
.tw-hh-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.tw-home-hero .tw-btn { margin: 0; }
.tw-home-hero .tw-btn-solid { background: var(--tw-gold, #b8862f); border-color: var(--tw-gold, #b8862f); color: #fff; }
.tw-home-hero .tw-btn-solid:hover { background: #a2751f; border-color: #a2751f; color: #fff; }
.tw-btn-ghost {
	background: transparent !important; color: #fff !important;
	border: 1px solid rgba(255,255,255,.6) !important;
}
.tw-btn-ghost:hover { background: rgba(255,255,255,.14) !important; border-color: #fff !important; }
.tw-hh-from { text-shadow: 0 1px 14px rgba(6,16,22,.7); font-size: 15px; color: rgba(255,255,255,.88); }
.tw-hh-from b { font-size: 24px; font-weight: 700; margin: 0 5px; color: #fff; }

.tw-hh-marks {
	display: flex; flex-wrap: wrap; gap: 10px 26px;
	margin: 30px 0 0 !important; padding: 0 !important;
	list-style: none !important;
}
.tw-hh-marks > li {
	text-shadow: 0 1px 12px rgba(6,16,22,.7);
	position: relative;
	padding-left: 24px;
	margin: 0 !important;
	font-size: 14.5px;
	color: rgba(255,255,255,.88);
	list-style: none !important;
}
.tw-hh-marks > li::marker { content: "" !important; }
.tw-hh-marks > li::before {
	content: ""; position: absolute; left: 2px; top: .42em;
	width: 11px; height: 6px;
	border-left: 2px solid var(--tw-gold, #b8862f);
	border-bottom: 2px solid var(--tw-gold, #b8862f);
	transform: rotate(-45deg);
}
.tw-hh-scroll {
	position: absolute; z-index: 3; right: 150px; bottom: 34px;
	font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
	color: rgba(255,255,255,.7);
	padding-bottom: 26px;
}
.tw-hh-scroll::after {
	content: ""; position: absolute; left: 50%; bottom: 0;
	width: 1px; height: 20px; background: rgba(255,255,255,.55);
	animation: tw-hh-cue 1.9s ease-in-out infinite;
}
@keyframes tw-hh-cue { 0%,100% { transform: scaleY(.3); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 780px) {
	.tw-home-hero { min-height: 0; padding: 62px 20px 54px; border-radius: 0 0 18px 18px; }
	.tw-hh-marks { gap: 8px 18px; }
	.tw-hh-scroll { display: none; }
	.tw-hh-act { gap: 12px; }
	.tw-home-hero .tw-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.tw-home-hero .tw-hh-shot { transition: none; }
	.tw-hh-scroll::after { animation: none; }
}

/* ---------- старый первый экран уступает место новому ---------- */
body.tw-hero-en .tw-home-hero ~ .et-l--post > .et_builder_inner_content > .et_pb_section:first-child,
body.tw-hero-de .tw-home-hero ~ .et-l--post > .et_builder_inner_content > .et_pb_section:first-child {
	display: none !important;
}

/* ============================================================
   Шапка: одинаковая на всех языковых версиях
   Русская шапка была песочной, английская — белой; при переходе
   между версиями сайт «мигал» другим оформлением.
   ============================================================ */
body.tw-lang-ru .et-l--header > div > .et_pb_section,
body.tw-lang-ru .et-l--header .et_pb_section {
	background-color: #fff !important;
}
body.tw-lang-ru .et-l--header .ru-mobile-nav.is-active { background-color: #f6f2ea !important; }

/* ---------- обложки чужих карточек маршрутов ---------- */
.tw-has-cover {
	background-size: cover !important;
	/* Смещаем кадр вниз: у карточки низкая обложка, и при центровке
	   в неё попадало небо, а сам объект оставался за краем. */
	background-position: center 58% !important;
	background-repeat: no-repeat !important;
}
.tw-has-cover .at-tour-card__number,
.tw-has-cover .ru-tour-card__number { opacity: .38; }

/* ---------- витрина туров выходит из узкой колонки Divi ---------- */
.et_pb_text_inner > .tw-tours,
.et_pb_module .tw-tours {
	width: min(var(--tw-max, 1120px), calc(100vw - 48px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}
@media (min-width: 1040px) {
	.tw-tours-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
	.et_pb_text_inner > .tw-tours,
	.et_pb_module .tw-tours { width: calc(100vw - 32px); }
}

/* Подсказка о прокрутке уступает место плавающей кнопке WhatsApp. */
@media (max-width: 1200px) { .tw-hh-scroll { display: none; } }

/* ============================================================
   Реквизиты компании, вынесенные из карточки услуг
   ============================================================ */
.at-company-credentials.tw-freed {
	max-width: var(--tw-max, 1120px);
	margin: 44px auto 8px;
	width: 100%;
}

/* ============================================================
   Цена на карточках маршрутов, собранных не движком
   ============================================================ */
.tw-card-price {
	display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
	margin: 0 0 14px !important;
	font-size: 14.5px;
	color: var(--tw-ink-2, #46514c);
}
.tw-card-price b {
	font-size: 26px; font-weight: 700; letter-spacing: -.02em;
	color: var(--tw-deep, #17384f);
}
.tw-card-price small { font-size: 13.5px; color: var(--tw-muted, #74807a); }
.at-tour-card .tw-card-price b, .ru-tour-card .tw-card-price b { color: var(--tw-gold, #b8862f); }

/* ============================================================
   Длинный текст, свёрнутый в карточки
   ============================================================ */
.tw-fold {
	max-width: var(--tw-max, 1120px);
	margin: 0 auto;
	display: grid;
	gap: 14px;
}
.tw-fold-item {
	background: #fff;
	border: 1px solid var(--tw-line, #e3e6e0);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .25s, border-color .25s;
}
.tw-fold-item[open] {
	border-color: var(--tw-line-2, #cdd3ca);
	box-shadow: 0 18px 44px -30px rgba(23,56,79,.5);
}
.tw-fold-item > summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 20px 60px 20px 24px;
	font-size: clamp(17px, 1.7vw, 21px);
	font-weight: 700;
	line-height: 1.3;
	color: var(--tw-ink, #16211f);
	transition: background .2s;
}
.tw-fold-item > summary::-webkit-details-marker { display: none; }
.tw-fold-item > summary:hover { background: var(--tw-sand, #f6f2ea); }
.tw-fold-item > summary:focus-visible { outline: 2px solid var(--tw-gold, #b8862f); outline-offset: -2px; }
.tw-fold-item > summary::after {
	content: "";
	position: absolute; right: 24px; top: 50%;
	width: 11px; height: 11px; margin-top: -7px;
	border-right: 2px solid var(--tw-gold, #b8862f);
	border-bottom: 2px solid var(--tw-gold, #b8862f);
	transform: rotate(45deg);
	transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.tw-fold-item[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tw-fold-body {
	padding: 0 24px 22px;
	animation: tw-day-open .32s cubic-bezier(.2,.7,.3,1);
}
.tw-fold-body > *:first-child { margin-top: 0; }
.tw-fold-body p { line-height: 1.72; }

@media (max-width: 640px) {
	.tw-fold-item > summary { padding: 16px 48px 16px 17px; }
	.tw-fold-body { padding: 0 17px 18px; }
}

/* ============================================================
   Глубина: фон отстаёт от прокрутки
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	.tw-par { will-change: transform; }
	.tw-hh-media.tw-par { transform: translate3d(0, var(--tw-par, 0px), 0) scale(1.12); }
	.tw-hero img.tw-par { transform: translate3d(0, var(--tw-par, 0px), 0) scale(1.1); }
	.tw-band-media.tw-par { transform: translate3d(0, var(--tw-par, 0px), 0) scale(1.16); }
}
.tw-hero { --tw-par: 0px; }

/* ============================================================
   Карточки отзываются на курсор
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
	.tw-tilt {
		transform: perspective(900px) rotateX(var(--tw-rx, 0deg)) rotateY(var(--tw-ry, 0deg));
		transform-style: preserve-3d;
		transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s;
	}
	.tw-tilt:hover {
		box-shadow: 0 34px 60px -34px rgba(23,56,79,.55);
	}
	.tw-tilt:hover .tw-tour-media img,
	.tw-tilt:hover .at-tour-card__image img { transform: scale(1.06); }
	.tw-tour-media img { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
}

/* ============================================================
   Гармошка Divi на страницах туров — тот же вид, что у карточек дней.
   Часть маршрутов размечена штатным модулем Divi. Раньше такие
   страницы выглядели иначе, чем остальные: та же программа, другое
   оформление. Приводим к одному виду, разметку не трогаем.
   ============================================================ */
.tw-tour-page .et_pb_accordion,
.tw-tour-page .et_pb_toggle {
	--tw-ink:   #16211f;
	--tw-line:  #e3e6e0;
	--tw-line-2:#cdd3ca;
	--tw-sand:  #f6f2ea;
	--tw-deep:  #17384f;
	--tw-gold:  #b8862f;
	--tw-muted: #74807a;
}
.tw-tour-page .et_pb_accordion { border: 0 !important; }
.tw-tour-page .et_pb_accordion .et_pb_toggle {
	background: #fff !important;
	border: 1px solid var(--tw-line, #e3e6e0) !important;
	border-radius: 14px !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
	transition: box-shadow .25s, border-color .25s;
}
.tw-tour-page .et_pb_accordion .et_pb_toggle_open {
	border-color: var(--tw-line-2, #cdd3ca) !important;
	box-shadow: 0 18px 44px -30px rgba(23,56,79,.5);
}
.tw-tour-page .et_pb_accordion .et_pb_toggle_title {
	position: relative;
	padding: 18px 56px 18px 22px !important;
	margin: 0 !important;
	font-size: 18.5px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--tw-ink, #16211f) !important;
	cursor: pointer;
	transition: background .2s;
}
.tw-tour-page .et_pb_accordion .et_pb_toggle_title:hover { background: var(--tw-sand, #f6f2ea); }
/* Стрелку Divi прячем и рисуем свою — такую же, как на карточках дней. */
.tw-tour-page .et_pb_accordion .et_pb_toggle_title::before { display: none !important; }
.tw-tour-page .et_pb_accordion .et_pb_toggle_title::after {
	content: "";
	position: absolute; right: 22px; top: 50%;
	width: 11px; height: 11px; margin-top: -7px;
	border-right: 2px solid var(--tw-gold, #b8862f);
	border-bottom: 2px solid var(--tw-gold, #b8862f);
	transform: rotate(45deg);
	transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.tw-tour-page .et_pb_accordion .et_pb_toggle_open .et_pb_toggle_title::after {
	transform: rotate(-135deg); margin-top: -2px;
}
.tw-tour-page .et_pb_accordion .et_pb_toggle_content {
	padding: 0 22px 20px !important;
	animation: tw-day-open .32s cubic-bezier(.2,.7,.3,1);
}
.tw-tour-page .et_pb_accordion .et_pb_toggle_content > *:first-child { margin-top: 0; }
.tw-tour-page .et_pb_accordion .et_pb_toggle_content p { line-height: 1.7; }

@media (max-width: 640px) {
	.tw-tour-page .et_pb_accordion .et_pb_toggle_title { padding: 15px 46px 15px 17px !important; font-size: 17px !important; }
	.tw-tour-page .et_pb_accordion .et_pb_toggle_content { padding: 0 17px 17px !important; }
}

/* ============================================================
   Широкая фотография между блоками
   Полоса во всю ширину экрана разрывает ленту текста: человек на
   секунду оказывается на месте, а не читает описание места.
   ============================================================ */
.tw-band {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin: 64px 0 64px 50%;
	transform: translateX(-50%);
	height: clamp(320px, 56vh, 620px);
	overflow: hidden;
	background: var(--tw-deep, #17384f);
}
.tw-band-media { position: absolute; inset: 0; z-index: 1; }
.tw-band-media img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center 44%;
	display: block;
	transform: scale(1.14);
}
.tw-band::after {
	content: "";
	position: absolute; inset: 0; z-index: 2;
	background: linear-gradient(180deg, rgba(9,22,30,.10) 0%, rgba(9,22,30,0) 42%, rgba(9,22,30,.66) 100%);
}
.tw-band-cap {
	position: absolute; z-index: 3;
	left: clamp(20px, 5vw, 64px); bottom: clamp(18px, 4vh, 34px);
	margin: 0;
	max-width: 30ch;
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	text-shadow: 0 1px 16px rgba(6,16,22,.7);
}
@media (max-width: 640px) {
	.tw-band { margin: 44px 0 44px 50%; height: clamp(260px, 42vh, 380px); }
}

/* ============================================================
   Отклик на курсор там, где движение отключено системой.
   Если у человека выключены анимации, страница всё равно должна
   отзываться: тень, подъём и подсветка работают всегда.
   ============================================================ */
.tw-tour-card, .at-tour-card, .ru-tour-card {
	transition: box-shadow .3s ease, border-color .3s ease;
}
.tw-tour-card:hover, .at-tour-card:hover, .ru-tour-card:hover {
	box-shadow: 0 30px 56px -32px rgba(23,56,79,.5);
	border-color: var(--tw-line-2, #cdd3ca);
}
.tw-day > summary, .tw-fold-item > summary { transition: background .2s ease, color .2s ease; }
.tw-day:hover, .tw-fold-item:hover { border-color: var(--tw-line-2, #cdd3ca); }

/* ============================================================
   Полоса с цифрами о компании
   ============================================================ */
.tw-stats {
	width: 100vw; max-width: 100vw;
	margin: 0 0 0 50%;
	transform: translateX(-50%);
	padding: clamp(56px, 8vh, 96px) clamp(20px, 5vw, 64px);
	background: var(--tw-deep, #17384f);
	color: #fff;
}
.tw-stats-in { max-width: var(--tw-max, 1120px); margin: 0 auto; }
.tw-stats .tw-eyebrow { color: rgba(255,255,255,.72); }
.tw-stats .tw-h { color: #fff; margin-bottom: 40px; }
.tw-stats-grid {
	display: grid; gap: 34px 30px;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.tw-stat { border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; }
.tw-stat-n {
	margin: 0 0 6px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(42px, 5.5vw, 66px);
	line-height: 1;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.tw-stat-n i { font-style: normal; color: var(--tw-gold, #d5a44a); }
.tw-stat-lab {
	margin: 0 0 8px;
	font-size: 15.5px; font-weight: 700;
	color: #fff;
}
.tw-stat-sub {
	margin: 0;
	font-size: 14px; line-height: 1.6;
	color: rgba(255,255,255,.76);
}

/* Гармошка Divi без обёртки-аккордеона — тоже приводим к общему виду. */
.tw-tour-page .et_pb_toggle {
	background: #fff !important;
	border: 1px solid var(--tw-line, #e3e6e0) !important;
	border-radius: 14px !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
}
.tw-tour-page .et_pb_toggle .et_pb_toggle_title {
	padding: 18px 56px 18px 22px !important;
	margin: 0 !important;
	font-size: 18.5px !important;
	font-weight: 700 !important;
}
.tw-tour-page .et_pb_toggle .et_pb_toggle_content { padding: 0 22px 20px !important; }

@media (max-width: 640px) {
	.tw-stats { padding: 44px 20px 48px; }
	.tw-stats-grid { gap: 26px 20px; }
}
