/* ============================================================
   Go2trip — МАСТЕР-файл патчей (накопительный, полный).
   Правила: вносим правки ТОЛЬКО сюда; релиз = копия под новым
   именем patches-0.9.N.css / patches-1.0.N.css + обновление
   enqueue + удаление старой версии с сервера. Никогда не
   выпускать файл только с новыми правилами — он затирает
   предыдущие в кэше браузера.
   Содержит: блоки 1–19 (приёмки 0.9.1–1.0.4) + блок 20
   (партнёрские блоки, контраст месяцев, чужой H1).
   ============================================================ */

/* ——— 1. Мобильное меню: подменю читаемо, не сливается с фоном ——— */
@media (max-width: 860px) {
	.nav-primary__list .sub-menu {
		display: none;
		background: #16405e;
		border-radius: 0 0 10px 10px;
		padding: 6px 0;
	}
	.nav-primary__list li.is-open > .sub-menu { display: block; }
	/* на тач-экранах после тапа остаётся «липкий» :hover — десктопное
	   правило li:hover > .sub-menu держит список открытым и мешает
	   сворачиванию; гасим его на мобильной ширине */
	.nav-primary__list li:hover > .sub-menu { display: none; }
	.nav-primary__list li.is-open:hover > .sub-menu { display: block; }
	.nav-primary__list .sub-menu a {
		color: #b9d6ee;
		padding: 10px 18px 10px 34px;
		font-size: 14px;
	}
	.nav-primary__list .sub-menu a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
	.nav-primary__list > li.is-open > a { background: rgba(255, 255, 255, .08); }
}

/* ——— 2. Выравнивание изображений в контенте (флаг страны и др.) ——— */
.alignleft  { float: left;  margin: 4px 22px 12px 0; }
.alignright { float: right; margin: 4px 0 12px 22px; }
.aligncenter { display: block; margin: 14px auto; }
.g2t-country__body::after,
.g2t-article__body::after,
.g2t-home-body::after,
.g2t-page__body::after { content: ""; display: block; clear: both; }

/* ——— 3. Галереи: горизонтально на десктопе, 2 колонки на мобильных ——— */
.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 22px 0;
}
.gallery-item { margin: 0; }
.gallery img {
	width: 100%;
	display: block;
	border-radius: var(--radius-sm);
}
@media (max-width: 640px) {
	.gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ——— 4. Сайдбар на страницах (flex-раскладка) ——— */
.g2t-layout {
	display: flex;
	gap: 36px;
	align-items: flex-start;
}
.g2t-layout__main { flex: 1 1 auto; min-width: 0; }
.g2t-layout__aside { flex: 0 0 300px; }
@media (max-width: 1000px) {
	.g2t-layout { flex-direction: column; }
	.g2t-layout__aside { flex: 1 1 auto; width: 100%; }
}

/* ——— 5. Подвал: компактные ссылки навигации ——— */
.site-footer .textwidget {
	font-size: 14px;
	line-height: 1.55;
}
.site-footer .textwidget a {
	display: inline-block;
	padding: 1px 0;
	margin: 0;
	line-height: 1.5;
}
.site-footer .widget a { padding: 2px 0; }
.site-footer .widget li { border-bottom: 0; }

/* ——— 6. Выпадающие списки стран: 2 колонки на десктопе ——— */
@media (min-width: 861px) {
	.nav-primary__list .sub-menu {
		min-width: 460px;
		columns: 2;
		column-gap: 8px;
		padding: 10px 0;
	}
	.nav-primary__list .sub-menu li {
		break-inside: avoid;
	}
	.nav-primary__list .sub-menu a {
		padding: 9px 20px;
		font-size: 14px;
	}
	.nav-primary__list > li:last-child .sub-menu,
	.nav-primary__list > li:nth-last-child(2) .sub-menu {
		left: auto;
		right: 0;
	}
}

/* ——— 7. Форма комментариев — в колонке контента (внутри .g2t-layout__main,
	ширина совпадает с постом; отдельно не растягивается) ——— */
.g2t-article__comments {
	padding: 0;
	margin: 34px 0 0;
}
.comment-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.comment-form p { margin: 0; }
.comment-form label { font-size: 14px; color: var(--c-muted); display: block; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-family: var(--font);
	background: #fff;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--c-primary); outline: none; }
.comment-form .submit {
	align-self: flex-start;
	background: var(--c-primary);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	padding: 12px 26px;
	font-size: 15px;
	cursor: pointer;
}
.comment-form .submit:hover { background: var(--c-primary-dark); }
.comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.comment-form-cookies-consent input { margin-top: 3px; }
.comment-form-cookies-consent label { margin: 0; font-size: 13px; }
.comment-form p.comment-form-url { display: none; }

/* ——— 8. Contact Form 7 под дизайн сайта ——— */
.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: 560px;
}
.wpcf7-form p { margin: 0; }
.wpcf7-form label,
.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-family: var(--font);
	color: var(--c-text);
	background: #fff;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	border-color: var(--c-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 114, 185, .12);
}
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
	align-self: flex-start;
	background: var(--c-primary);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	padding: 13px 30px;
	font-size: 15px;
	cursor: pointer;
	transition: background .18s ease;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover { background: var(--c-primary-dark); }
.wpcf7-not-valid-tip { font-size: 13px; color: #d64545; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output {
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	padding: 14px 18px;
	margin: 14px 0 0;
	font-size: 14px;
}

/* ——— 9. Лайтбокс для картинок в контенте ——— */
.g2t-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 22, 32, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	cursor: zoom-out;
	padding: 24px;
}
.g2t-lightbox img {
	max-width: 92vw;
	max-height: 90vh;
	border-radius: var(--radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.g2t-lightbox__close {
	position: absolute;
	top: 18px;
	right: 22px;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}
.g2t-lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.g2t-country__body .gallery img,
.g2t-article__body img:not(.g2t-nozoom) {
	cursor: zoom-in;
}

/* ——— 10. Ссылки «Куда поехать на море…» компактнее ——— */
.g2t-season a,
.g2t-season p a {
	display: block;
	margin: 2px 0;
	padding: 0;
	line-height: 1.45;
	font-size: 15px;
}
.g2t-season p {
	margin: 0;
	line-height: 1.45;
}

/* ——— 11. (0.9.5) Мобильное меню: видимые кнопки раскрытия подменю ——— */
.submenu-toggle { display: none; }

@media (max-width: 860px) {
	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		right: 6px;
		/* привязка к строке ссылки-родителя, НЕ к середине li:
		   при раскрытии подменю li растёт и top:50% уводил кнопку вниз */
		top: 6px;
		transform: none;
		width: 38px;
		height: 38px;
		border: 1px solid rgba(255, 255, 255, .25);
		border-radius: 8px;
		background: rgba(255, 255, 255, .08);
		color: #fff;
		cursor: pointer;
		padding: 0;
		z-index: 2;
	}
	.submenu-toggle:hover { background: rgba(255, 255, 255, .18); }
	.submenu-toggle__icon {
		position: relative;
		width: 12px;
		height: 12px;
		display: block;
	}
	.submenu-toggle__icon::before,
	.submenu-toggle__icon::after {
		content: "";
		position: absolute;
		background: currentColor;
		border-radius: 1px;
	}
	.submenu-toggle__icon::before {
		left: 0;
		right: 0;
		top: 5px;
		height: 2px;
	}
	.submenu-toggle__icon::after {
		top: 0;
		bottom: 0;
		left: 5px;
		width: 2px;
		transition: opacity .15s ease;
	}
	li.is-open > .submenu-toggle .submenu-toggle__icon::after { opacity: 0; }
	li.is-open > .submenu-toggle { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .16); }

	.nav-primary__list li.menu-item-has-children {
		position: relative;
	}

	.nav-primary__list li.menu-item-has-children > a {
		padding-right: 56px;
	}

	.nav-primary__list .sub-menu {
		max-height: 60vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.nav-primary__list li.menu-item-has-children.is-open > a {
		padding-right: 56px;
	}
}

/* ——— 12. (0.9.5) Кнопка «наверх» ——— */
.g2t-to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 50%;
	background: var(--c-primary);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(11, 114, 185, .35);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
	z-index: 900;
}
.g2t-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.g2t-to-top:hover { background: var(--c-primary-dark); }
.g2t-to-top:focus-visible { outline: 2px solid var(--c-navy); outline-offset: 2px; }

/* ——— 13. (0.9.5) Свежие посты в подвале (замена Mini Loops) ——— */
.site-footer .g2t-widget-recent { list-style: none; margin: 0; }
.site-footer .g2t-recent {
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer .g2t-recent li {
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .g2t-recent a {
	display: block;
	padding: 7px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #fff;
	text-decoration: none;
}
.site-footer .g2t-recent a:hover { text-decoration: underline; }
.site-footer .g2t-recent time {
	display: block;
	font-size: 12px;
	color: #9db4c4;
}
@media (min-width: 641px) {
	.site-footer__widgets { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

/* ——— 14. (0.9.9) Бургер ↔ крестик при открытом меню ——— */
.menu-toggle__close { display: none; }
@media (max-width: 960px) {
	.nav-open .menu-toggle__open { display: none; }
	.nav-open .menu-toggle__close { display: block; }
}

/* ——— 15. (1.0) Хлебные крошки ——— */
.g2t-breadcrumbs {
	font-size: 13px;
	margin: 0 0 10px;
	color: var(--c-muted);
}
.g2t-breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
}
.g2t-breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.g2t-breadcrumbs li + li::before { content: "\203A"; color: var(--c-muted); }
.g2t-breadcrumbs a { color: var(--c-primary); text-decoration: none; }
.g2t-breadcrumbs a:hover { text-decoration: underline; }

/* ——— 16. (1.0) Похожие статьи под записью ——— */
.g2t-related {
	margin: 30px 0 8px;
	padding-top: 22px;
	border-top: 1px solid var(--c-border);
}
.g2t-related__title {
	font-size: 20px;
	margin: 0 0 12px;
}
.g2t-related__list { list-style: none; margin: 0; padding: 0; }
.g2t-related__list li {
	padding: 9px 0;
	border-bottom: 1px solid var(--c-border);
}
.g2t-related__list li:last-child { border-bottom: 0; }
.g2t-related__list a {
	color: var(--c-text);
	text-decoration: none;
	font-weight: 600;
}
.g2t-related__list a:hover { color: var(--c-primary); }
.g2t-related__list time {
	display: block;
	font-size: 12px;
	color: var(--c-muted);
	margin-top: 2px;
}

/* ——— 17. (1.0) Страница 404 с полезными ссылками ——— */
.g2t-404__search { max-width: 480px; margin: 18px 0 28px; }
/* форма поиска на 404 — в дизайн-системе сайта
	(get_search_form даёт стандартную разметку: .search-field + .search-submit) */
.g2t-404 .search-form {
	display: flex;
	gap: 10px;
}
.g2t-404 .search-form label { flex: 1 1 auto; display: flex; }
.g2t-404 .search-form .search-field {
	flex: 1 1 auto;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font-size: 15px;
	font-family: var(--font);
	background: #fff;
}
.g2t-404 .search-form .search-field:focus {
	border-color: var(--c-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(11, 114, 185, .12);
}
.g2t-404 .search-form .search-submit {
	background: var(--c-primary);
	color: #fff;
	border: 0;
	border-radius: var(--radius-sm);
	padding: 12px 22px;
	font-size: 15px;
	cursor: pointer;
}
.g2t-404 .search-form .search-submit:hover { background: var(--c-primary-dark); }

/* ——— 18. (1.0) Карты локаций Leaflet/OSM (замена MapListPro) ——— */
.g2t-map {
	margin: 26px 0;
	position: relative;
}
.g2t-map__search {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	font-size: 14px;
	font-family: var(--font);
	margin-bottom: 10px;
}
.g2t-map__search:focus { border-color: var(--c-primary); outline: none; }
.g2t-map__canvas {
	height: 400px;
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow);
	z-index: 1;
}
@media (max-width: 640px) {
	.g2t-map__canvas { height: 300px; }
}
.g2t-map .leaflet-container { font: inherit; }
.g2t-map__addr { color: var(--c-muted); font-size: 13px; }
.g2t-map .leaflet-popup-content a { color: var(--c-primary); }
.g2t-404__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
	margin: 0 0 26px;
}
.g2t-404__col h2 {
	font-size: 18px;
	margin: 0 0 10px;
}
.g2t-404__col ul { list-style: none; margin: 0; padding: 0; }
.g2t-404__col li { padding: 5px 0; border-bottom: 1px solid var(--c-border); }
.g2t-404__col a { color: var(--c-primary); text-decoration: none; }
.g2t-404__col a:hover { text-decoration: underline; }

/* ——— 19. (1.0) Сезонные плитки месяцев на главной ——— */
.g2t-season p { display: flex; flex-direction: column; gap: 6px; }
.g2t-season a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid var(--c-border);
	color: var(--c-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	transition: border-color .15s ease, transform .15s ease;
}
.g2t-season a:hover {
	border-color: var(--c-primary);
	transform: translateX(2px);
}
.g2t-season__month {
	flex: 0 0 auto;
	min-width: 74px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--c-primary);
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
}
.g2t-season--orange .g2t-season__month { background: #e8871e; }
.g2t-season--sandy .g2t-season__month { background: #c99a3c; }
.g2t-season--blue .g2t-season__month { background: #2e7fbe; }
.g2t-season--vista .g2t-season__month { background: #47a05c; }

/* ============================================================
   20. (1.0.5) Партнёрские блоки, контраст месяцев, чужой H1
   ============================================================ */

/* ——— 20.1 Контраст капсул месяцев (WCAG AA) ———
   Было: белый текст 12.5px на #e8871e = 2.65:1 и на #c99a3c = 2.57:1,
   при норме 4.5:1 для мелкого текста. Синий (4.29) и зелёный (3.26)
   тоже не дотягивали. Затемняем фон, белый текст сохраняем:
   все четыре теперь 5.08–5.35:1. */
.g2t-season--orange .g2t-season__month { background: #a85a06; } /* 5.08:1 */
.g2t-season--sandy  .g2t-season__month { background: #8a6420; } /* 5.35:1 */
.g2t-season--blue   .g2t-season__month { background: #2a72ab; } /* 5.13:1 */
.g2t-season--vista  .g2t-season__month { background: #3d7a4e; } /* 5.13:1 */

/* ——— 20.2 Партнёрские блоки Travelpayouts ——— */
.g2t-affiliate {
	margin: 26px 0;
	padding: 18px 20px;
	background: var(--c-card);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.g2t-affiliate__title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--c-text);
}
.g2t-affiliate__widget { min-height: 80px; }
.g2t-affiliate__widget iframe,
.g2t-affiliate__widget > div { max-width: 100%; }
.g2t-affiliate__note {
	margin: 12px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--c-muted);
}

/* В сайдбаре блок компактнее */
.g2t-layout__aside .g2t-affiliate {
	padding: 14px 16px;
	margin: 0 0 20px;
}
.g2t-layout__aside .g2t-affiliate__title { font-size: 15px; }
.g2t-layout__aside .g2t-affiliate__note { display: none; }

/* Внутри контента страны — без двойной рамки */
.g2t-country__body .g2t-affiliate,
.g2t-article__body .g2t-affiliate,
.g2t-page__body .g2t-affiliate { margin: 24px 0; }

@media (max-width: 640px) {
	.g2t-affiliate { padding: 14px 16px; }
}

/* ——— 20.3 Чужой H1 в контенте: в WordPress H1 уже есть у заголовка
   статьи, поэтому H1 внутри текста превращаем в H2 (семантика, SEO). ——— */
.g2t-article__body h1,
.g2t-page__body h1,
.g2t-country__body h1,
.g2t-home-body h1 {
	font-size: 24px;
	margin: 1.6em 0 .7em;
	line-height: 1.3;
}

/* ============================================================
   21. (1.0.6) Cookie-баннер + правовые ссылки в подвале
   ============================================================ */

.g2t-cookie {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	background: var(--c-navy);
	color: #dfe9f1;
	padding: 16px 20px;
	box-shadow: 0 -6px 24px rgba(14, 36, 54, .22);
}
.g2t-cookie[hidden] { display: none; }

.g2t-cookie__inner {
	max-width: var(--container);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.g2t-cookie__text {
	margin: 0;
	flex: 1 1 420px;
	font-size: 14px;
	line-height: 1.55;
	color: #e6eef4;
}
.g2t-cookie__text a { color: #8fc7f0; text-decoration: underline; }
.g2t-cookie__text a:hover { color: #fff; }

.g2t-cookie__actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

.g2t-cookie__btn {
	padding: 10px 18px;
	border-radius: var(--radius-sm);
	border: 1px solid rgba(255, 255, 255, .3);
	background: transparent;
	color: #fff;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}
.g2t-cookie__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.g2t-cookie__btn:focus-visible { outline: 2px solid #8fc7f0; outline-offset: 2px; }

.g2t-cookie__btn--primary {
	background: var(--c-primary);
	border-color: var(--c-primary);
	font-weight: 600;
}
.g2t-cookie__btn--primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); }

@media (max-width: 640px) {
	.g2t-cookie { padding: 14px 16px; }
	.g2t-cookie__actions { width: 100%; }
	.g2t-cookie__btn { flex: 1 1 auto; }
}

/* Правовые ссылки в нижней полосе подвала */
.site-footer__legal {
	margin-top: 10px;
	font-size: 13px;
	color: #9fb2c3;
}
.site-footer__legal a { color: #c7d5e0; text-decoration: none; }
.site-footer__legal a:hover { text-decoration: underline; }
.site-footer__legal span { margin: 0 6px; opacity: .5; }
/* ============================================================
   22. (1.0.7) Погода по месяцам + доводка партнёрских блоков
   ============================================================ */

/* ——— 22.1 Календарь цен: гарантируем место и рамку ——— */
.g2t-affiliate--calendar .g2t-affiliate__widget {
	min-height: 120px;
	overflow-x: auto;
}
.g2t-affiliate--calendar iframe { width: 100%; }

/* ——— 22.2 Форма авиабилетов: виджет Travelpayouts инжектит свой DOM ——— */
.g2t-affiliate--form .g2t-affiliate__widget {
	min-height: 96px;
	/* Mewtwo-виджет ставит inline display:none до инициализации — не мешаем */
}
.g2t-affiliate--form .mewtwo-widget {
	width: 100%;
	border-radius: var(--radius-sm);
}

/* ——— 22.3 Погодная таблица ——— */
.g2t-weather {
	margin: 32px 0;
	padding: 20px 22px;
	background: var(--c-card);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.g2t-weather__title {
	margin: 0 0 16px;
	font-size: 22px;
	line-height: 1.3;
}

.g2t-weather__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.g2t-weather__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	min-width: 620px;
}

.g2t-weather__table thead th {
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-muted);
	text-transform: none;
	padding: 0 12px 10px;
	border-bottom: 1px solid var(--c-border);
	white-space: nowrap;
}

.g2t-weather__table tbody th {
	text-align: left;
	font-weight: 600;
	color: var(--c-text);
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-border);
	white-space: nowrap;
}

.g2t-weather__table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-text);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.g2t-weather__table tbody tr:last-child th,
.g2t-weather__table tbody tr:last-child td { border-bottom: 0; }

.g2t-weather__table tbody tr:hover th,
.g2t-weather__table tbody tr:hover td { background: var(--c-bg); }

.g2t-weather__na { color: var(--c-muted); }

/* Оценка сезона: цветные метки, контраст проверен (все ≥ 4.5:1) */
.g2t-weather__mark {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
}

.g2t-weather__mark--ok {
	background: #e3f2e8;
	color: #1f5c33;
}

.g2t-weather__mark--mid {
	background: #fdf1dd;
	color: #7a4a06;
}

.g2t-weather__mark--low {
	background: #eceff2;
	color: #4a5560;
}

.g2t-weather__note {
	margin: 14px 0 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--c-muted);
}

@media (max-width: 640px) {
	.g2t-weather { padding: 16px 16px; margin: 24px 0; }
	.g2t-weather__title { font-size: 19px; }
	.g2t-weather__table { font-size: 14px; min-width: 560px; }
	.g2t-weather__table thead th,
	.g2t-weather__table tbody th,
	.g2t-weather__table tbody td { padding: 9px 9px; }
}
/* ============================================================
   23. (1.0.8) Погода на страницах курортов
   ============================================================ */

/* Блок курорта: акцент на температуре воды */
.g2t-weather--resort {
	margin: 30px 0;
}

.g2t-weather--resort .g2t-weather__title {
	font-size: 22px;
	line-height: 1.3;
	margin: 0 0 16px;
	max-width: 30em;
}

/* Вода в море — главный столбец, выделяем */
.g2t-weather--resort .g2t-weather__table tbody td strong {
	color: #0b6a9e;
	font-weight: 700;
}

/* Плашка «самая тёплая вода» */
.g2t-weather__best {
	margin: 14px 0 0;
	padding: 12px 16px;
	background: #eaf4fb;
	border-left: 3px solid var(--c-primary);
	border-radius: var(--radius-sm);
	font-size: 14px;
	line-height: 1.55;
	color: var(--c-text);
}
.g2t-weather__best strong { font-weight: 600; }

@media (max-width: 640px) {
	.g2t-weather--resort .g2t-weather__title { font-size: 19px; }
	.g2t-weather__best { font-size: 13.5px; padding: 10px 13px; }
}

/* ============================================================
   24. (1.0.9) Мобильная адаптация
   ============================================================ */

/* ——— 24.1 ГЛАВНАЯ ПРИЧИНА ГОРИЗОНТАЛЬНОГО ВЫЕЗДА ———
   .g2t-layout на ≤1000px становится flex-КОЛОНКОЙ, но сохраняет
   align-items: flex-start. В колонке это значит «ширина по содержимому»:
   широкий ребёнок (таблица погоды, карта, длинное слово) растягивал
   .g2t-layout__main до 664px при вьюпорте 390px.
   Лечим: растягиваем детей на всю ширину колонки. */
@media (max-width: 1000px) {
	.g2t-layout {
		align-items: stretch;
	}
	.g2t-layout__main,
	.g2t-layout__aside {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}

/* Та же ловушка в других флекс-контейнерах темы */
@media (max-width: 960px) {
	.g2t-home-split {
		align-items: stretch;
	}
	.g2t-home-split .g2t-home-main,
	.g2t-home-split .g2t-home-aside {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}

/* ——— 24.2 Страховка от выезда контента ——— */
.g2t-article__body,
.g2t-page__body,
.g2t-country__body,
.g2t-home-body {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.g2t-article__body img,
.g2t-page__body img,
.g2t-country__body img,
.g2t-home-body img,
.g2t-article__thumb img,
.g2t-card img {
	max-width: 100%;
	height: auto;
}

/* Длинные ссылки и слова в тексте не должны распирать колонку */
.g2t-article__body a,
.g2t-country__body a,
.g2t-page__body a {
	overflow-wrap: anywhere;
}

/* Таблицы из старого контента (не наши) — тоже скроллим, а не ломаем вёрстку */
.g2t-article__body table:not(.g2t-weather__table),
.g2t-country__body table:not(.g2t-weather__table),
.g2t-page__body table:not(.g2t-weather__table) {
	display: block;
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* iframe и embed из старого контента */
.g2t-article__body iframe:not([class]),
.g2t-country__body iframe:not([class]),
.g2t-page__body iframe:not([class]) {
	max-width: 100%;
}

/* Карта Leaflet не должна выходить за колонку */
.g2t-map,
.g2t-map__canvas {
	max-width: 100%;
}

/* ——— 24.3 Погодная таблица на мобильном ———
   Горизонтальный скролл + закреплённый первый столбец с месяцем:
   листая вправо, пользователь всегда видит, к какому месяцу цифры. */
.g2t-weather {
	max-width: 100%;
	box-sizing: border-box;
}

.g2t-weather__scroll {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	/* место под скроллбар на десктопе, на тач-устройствах не занимает */
	scrollbar-width: thin;
}

.g2t-weather__scroll::-webkit-scrollbar { height: 8px; }
.g2t-weather__scroll::-webkit-scrollbar-track { background: #eef2f6; border-radius: 4px; }
.g2t-weather__scroll::-webkit-scrollbar-thumb { background: #c3cfda; border-radius: 4px; }
.g2t-weather__scroll::-webkit-scrollbar-thumb:hover { background: #a9bac9; }

.g2t-weather__table {
	width: 100%;
	border-collapse: separate;   /* нужно для sticky-ячейки с фоном */
	border-spacing: 0;
}

/* Закреплённый столбец «Месяц» */
.g2t-weather__table thead th:first-child,
.g2t-weather__table tbody th[scope="row"] {
	position: sticky;
	left: 0;
	z-index: 2;
	background: var(--c-card);
}

.g2t-weather__table thead th:first-child {
	z-index: 3;
	background: var(--c-card);
}

/* Тень у закреплённого столбца — видно, что таблица прокручивается */
.g2t-weather__table tbody th[scope="row"]::after,
.g2t-weather__table thead th:first-child::after {
	content: "";
	position: absolute;
	top: 0;
	right: -8px;
	bottom: 0;
	width: 8px;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(14, 36, 54, .10), rgba(14, 36, 54, 0));
	opacity: 0;
	transition: opacity .2s ease;
}

.g2t-weather__scroll.is-scrolled .g2t-weather__table tbody th[scope="row"]::after,
.g2t-weather__scroll.is-scrolled .g2t-weather__table thead th:first-child::after {
	opacity: 1;
}

/* Подсказка «прокрутите» — только на узких экранах, пока не долистали */
.g2t-weather__hint {
	display: none;
	margin: 0 0 10px;
	font-size: 12.5px;
	color: var(--c-muted);
}
.g2t-weather__hint::after { content: " →"; }

/* Заголовок таблицы не переносится по слогам в узкой колонке */
.g2t-weather__table thead th,
.g2t-weather__table tbody th,
.g2t-weather__table tbody td {
	white-space: nowrap;
}

@media (max-width: 640px) {
	/* Подсказку показываем только там, где реально нужен скролл */
	.g2t-weather__hint { display: block; }

	.g2t-weather {
		padding: 16px 14px;
		margin: 22px 0;
		border-radius: var(--radius-sm);
	}

	.g2t-weather__title,
	.g2t-weather--resort .g2t-weather__title {
		font-size: 19px;
		line-height: 1.3;
		margin-bottom: 10px;
	}

	/* Таблица шире экрана — скроллится внутри .g2t-weather__scroll */
	.g2t-weather__table {
		min-width: 0;
		width: max-content;
		font-size: 14px;
	}

	.g2t-weather__table thead th {
		padding: 0 10px 8px;
		font-size: 12px;
	}

	.g2t-weather__table tbody th,
	.g2t-weather__table tbody td {
		padding: 9px 10px;
	}

	/* Крупнее запятая в цифрах не нужна, но градусы читаются лучше */
	.g2t-weather__table tbody td { font-variant-numeric: tabular-nums; }

	.g2t-weather__mark {
		font-size: 11.5px;
		padding: 2px 7px;
	}

	.g2t-weather__best {
		font-size: 13px;
		padding: 10px 12px;
		margin-top: 12px;
	}

	.g2t-weather__note {
		font-size: 12px;
		line-height: 1.5;
		margin-top: 10px;
	}
}

/* Очень узкие экраны (iPhone SE и старые Android) */
@media (max-width: 380px) {
	.g2t-weather__table { font-size: 13px; }
	.g2t-weather__table thead th,
	.g2t-weather__table tbody th,
	.g2t-weather__table tbody td { padding: 8px 8px; }
	.g2t-weather__mark { font-size: 11px; padding: 2px 6px; }
}

/* ——— 24.4 Прочие блоки на мобильном ——— */
@media (max-width: 640px) {
	/* Партнёрские блоки не должны распирать колонку */
	.g2t-affiliate {
		max-width: 100%;
		box-sizing: border-box;
	}
	.g2t-affiliate__widget {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Галереи: 2 колонки уже есть, добавим отступ */
	.gallery { gap: 10px; }

	/* Хлебные крошки не переносим по одному символу */
	.g2t-breadcrumbs ol { gap: 4px 6px; }
	.g2t-breadcrumbs { font-size: 12.5px; }
}

/* ============================================================
   25. (1.0.10) Плашка подсказки, карточки «Похожие», живой поиск
   ============================================================ */

/* ——— 25.1 Плашка «Прокрутите таблицу вбок» ———
   Светлоголубая, с обводкой и скруглением. На десктопе скрыта
   (таблица вписывается целиком), показывается только на ≤640px. */
.g2t-weather__hint {
	display: none;
	margin: 0 0 12px;
	padding: 8px 14px;
	font-size: 12.5px;
	line-height: 1.4;
	font-weight: 500;
	color: #0a5d8f;
	background: #e8f4fd;
	border: 1px solid #b6dcf5;
	border-radius: var(--radius-sm);
}
.g2t-weather__hint::after { content: " \2192"; }

@media (max-width: 640px) {
	.g2t-weather__hint {
		display: inline-block;
	}
}

/* ——— 25.2 «Похожие статьи» карточками ———
   Десктоп: 3 в ряд. Мобильный (≤900px): 2 в ряд. */
.g2t-related {
	margin: 34px 0 8px;
	padding-top: 24px;
	border-top: 1px solid var(--c-border);
}

/* Заголовок блока — <p>, не heading: это навигация, а не подраздел статьи.
   Размер и вес сохранены, чтобы визуально блок не изменился. */
.g2t-related__title {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--c-text);
	margin: 0 0 16px;
}

.g2t-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.g2t-related__card {
	display: flex;
	flex-direction: column;
	background: var(--c-card);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	text-decoration: none;
	color: var(--c-text);
	transition: transform .18s ease, box-shadow .18s ease;
	min-width: 0;
}

.g2t-related__card:hover,
.g2t-related__card:focus-visible {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
	color: var(--c-text);
}

.g2t-related__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8eef4;
}

.g2t-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Заглушка, если у записи нет фото */
.g2t-related__nophoto {
	display: block;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 30% 25%, #f2f8fd 0%, #dde9f3 70%, #cfdfec 100%);
	position: relative;
}
.g2t-related__nophoto::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	border: 2px solid #b3c9db;
	border-top-color: transparent;
	opacity: .7;
}

.g2t-related__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px 14px;
	flex: 1 1 auto;
}


.g2t-related__name {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.g2t-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.g2t-related__grid { gap: 12px; }
	.g2t-related__body { padding: 10px 11px 12px; gap: 5px; }
	.g2t-related__name { font-size: 14px; }
	.g2t-related__title { font-size: 18px; margin-bottom: 12px; }
}

/* ——— 25.3 Живой поиск ——— */
.g2t-live-search {
	position: relative;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.g2t-live-search__field {
	position: relative;
	flex: 1 1 260px;
	min-width: 0;
	display: flex;
	align-items: center;
}

.g2t-live-search__field .search-bar__input {
	width: 100%;
	padding-right: 38px;
}

.g2t-live-search__clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--c-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.g2t-live-search__clear:hover { background: var(--c-bg); color: var(--c-text); }
.g2t-live-search__clear[hidden] { display: none; }

.g2t-live-search__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	z-index: 250;
	background: var(--c-card);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(14, 36, 54, .16);
	max-height: 70vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 6px;
}

.g2t-live-search__panel[hidden] { display: none; }

.g2t-live-search__item {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px;
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--c-text);
	transition: background .12s ease;
}
.g2t-live-search__item:hover,
.g2t-live-search__item:focus-visible,
.g2t-live-search__item.is-active {
	background: var(--c-bg);
	color: var(--c-text);
	outline: none;
}

.g2t-live-search__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 42px;
	border-radius: 6px;
	overflow: hidden;
	background: #e8eef4;
}
.g2t-live-search__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.g2t-live-search__text {
	min-width: 0;
	flex: 1 1 auto;
}

.g2t-live-search__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.g2t-live-search__meta {
	display: block;
	font-size: 12px;
	color: var(--c-muted);
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g2t-live-search__all {
	display: block;
	margin: 4px 0 2px;
	padding: 10px 12px;
	border-top: 1px solid var(--c-border);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--c-primary);
	text-decoration: none;
	border-radius: var(--radius-sm);
}
.g2t-live-search__all:hover { background: var(--c-bg); }

.g2t-live-search__status {
	padding: 14px 12px;
	font-size: 13.5px;
	color: var(--c-muted);
	text-align: center;
}

.g2t-live-search__skeleton {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 8px;
}
.g2t-live-search__skeleton span {
	display: block;
	background: #eef2f6;
	border-radius: 6px;
}
.g2t-live-search__skeleton .sk-thumb { flex: 0 0 56px; width: 56px; height: 42px; }
.g2t-live-search__skeleton .sk-lines { flex: 1 1 auto; }
.g2t-live-search__skeleton .sk-line {
	height: 10px;
	margin-bottom: 7px;
	background: #eef2f6;
	border-radius: 4px;
}
.g2t-live-search__skeleton .sk-line:first-child { width: 72%; }
.g2t-live-search__skeleton .sk-line:last-child { width: 40%; margin-bottom: 0; }

@media (max-width: 640px) {
	.g2t-live-search { gap: 8px; }
	.g2t-live-search__field { flex: 1 1 100%; }
	.search-bar .search-bar__btn { width: 100%; }
	.g2t-live-search__panel {
		left: -20px;
		right: -20px;
		border-radius: 0 0 var(--radius) var(--radius);
		max-height: 60vh;
	}
	.g2t-live-search__thumb { flex: 0 0 48px; width: 48px; height: 36px; }
	.g2t-live-search__name { font-size: 13.5px; }
}

/* Заголовок формы комментариев: был H3, стал <p> */
.comment-reply-title {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--c-text);
	margin: 0 0 14px;
}
.comment-reply-title small {
	font-size: 14px;
	font-weight: 400;
	color: var(--c-muted);
}
.comment-reply-title small a { color: var(--c-primary); }
