/* Региональные блоки.
   Палитра взята из темы: корпус #2b2620, акцент #a98552, песочный фон #f6f2ea.

   Блоки живут внутри колонки .col-lg-8, которая на планшете сжимается.
   Поэтому везде: box-sizing, max-width, min-width:0 у детей грида и переносы
   длинных строк — почта вида city@ocifrovka.marketingfocus.ru длиннее любой
   узкой колонки и без переноса вылезает наружу. */

.ogeo-facts,
.ogeo-coverage,
.ogeo-points,
.ogeo-switch,
.ogeo-map,
.ogeo-contacts,
.ogeo-index,
.ogeo-facts *,
.ogeo-coverage *,
.ogeo-points *,
.ogeo-switch *,
.ogeo-map *,
.ogeo-contacts *,
.ogeo-index * {
	box-sizing: border-box;
}

.ogeo-facts,
.ogeo-coverage,
.ogeo-points,
.ogeo-switch,
.ogeo-map,
.ogeo-contacts,
.ogeo-index {
	max-width: 100%;
	overflow-wrap: anywhere;
}

.ogeo-facts,
.ogeo-coverage,
.ogeo-points,
.ogeo-switch {
	margin: 40px 0;
	padding: 26px 28px;
	background: #f6f2ea;
	border-radius: 12px;
}

.ogeo-facts h2,
.ogeo-coverage h2,
.ogeo-points h2,
.ogeo-switch h2,
.ogeo-map h2 {
	margin: 0 0 16px;
	font-size: 21px;
	line-height: 1.3;
	color: #2b2620;
}

/* --- врезка «как мы работаем» --- */

.ogeo-facts dl {
	margin: 0;
	display: grid;
	gap: 14px 26px;
	/* min() не даёт колонке стать шире контейнера на узком экране */
	grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.ogeo-facts dl > div {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.ogeo-facts dt {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8a8177;
}

.ogeo-facts dd {
	margin: 0;
	min-width: 0;
	font-size: 16px;
	line-height: 1.45;
	color: #2b2620;
}

.ogeo-facts dd a {
	color: #2b2620;
	text-decoration: underline;
	text-decoration-color: #d6c7ab;
	text-underline-offset: 2px;
}

.ogeo-facts dd a:hover {
	color: #a98552;
}

/* --- зона покрытия --- */

.ogeo-coverage > p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.55;
	color: #5a5148;
}

.ogeo-coverage ul {
	margin: 0;
	padding: 0;
	max-width: 100%;
	list-style: none;
	/* Ширина колонки ведущая: браузер сам решит, сколько их поместится */
	columns: 160px;
	column-gap: 22px;
	font-size: 15px;
}

.ogeo-coverage li {
	break-inside: avoid;
	padding: 3px 0;
	color: #5a5148;
}

/* --- приёмные пункты --- */

.ogeo-points ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 16px;
	line-height: 1.5;
}

.ogeo-points li + li {
	margin-top: 10px;
}

.ogeo-points a,
.ogeo-switch > p a,
.ogeo-map__link a {
	color: #7a5f33;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ogeo-points a:hover,
.ogeo-switch > p a:hover,
.ogeo-map__link a:hover {
	color: #a98552;
}

.ogeo-points > p {
	margin: 16px 0 0;
	font-size: 15px;
}

/* --- переключатель города --- */

.ogeo-switch ul {
	margin: 0;
	padding: 0;
	max-width: 100%;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ogeo-switch li {
	max-width: 100%;
}

.ogeo-switch li a,
.ogeo-switch li span {
	display: inline-block;
	max-width: 100%;
	padding: 7px 15px;
	border-radius: 999px;
	background: #fff;
	color: #2b2620;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
	border: 1px solid #e4dbcb;
	transition: background .15s, border-color .15s, color .15s;
}

.ogeo-switch li a:hover {
	background: #a98552;
	border-color: #a98552;
	color: #fff;
}

.ogeo-switch li.is-current span {
	background: #2b2620;
	border-color: #2b2620;
	color: #fff;
}

.ogeo-switch > p {
	margin: 16px 0 0;
	font-size: 15px;
}

/* --- индекс городов на /goroda/ --- */

.ogeo-index {
	display: grid;
	gap: 26px 32px;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.ogeo-index section {
	min-width: 0;
}

.ogeo-index h3 {
	margin: 0 0 10px;
	font-size: 16px;
	color: #a98552;
}

.ogeo-index ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ogeo-index li + li {
	margin-top: 5px;
}

/* --- контакты по регионам --- */

.ogeo-contacts {
	display: grid;
	gap: 20px 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
}

.ogeo-contacts__fed {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 18px;
}

.ogeo-contacts__city {
	min-width: 0;
	padding: 18px 20px;
	background: #f6f2ea;
	border-radius: 12px;
}

.ogeo-contacts__city h3 {
	margin: 0 0 8px;
	font-size: 17px;
}

.ogeo-contacts__city p {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.45;
}

.ogeo-contacts__note {
	color: #8a8177;
}

/* --- карта проезда --- */

.ogeo-map {
	margin: 40px 0;
}

.ogeo-map h2 {
	margin-bottom: 8px;
}

.ogeo-map__addr {
	margin: 0 0 16px;
	font-size: 17px;
	color: #5a5148;
}

.ogeo-map__frame {
	position: relative;
	aspect-ratio: 16 / 7;
	min-height: 240px;
	max-width: 100%;
	/* Фон виден, пока ленивый iframe ещё не подтянулся */
	background: #ece5d8;
	border-radius: 12px;
	overflow: hidden;
}

.ogeo-map__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.ogeo-map__link {
	margin: 12px 0 0;
	font-size: 15px;
}

/* --- подсказка о городе --- */

.ogeo-banner {
	position: fixed;
	z-index: 9999;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 0);
	width: min(440px, calc(100vw - 32px));
	padding: 22px 24px 20px;
	background: #fff;
	border: 1px solid #ece5d8;
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(43, 38, 32, .18);
	animation: ogeo-rise .28s ease-out both;
}

.ogeo-banner[hidden] {
	display: none;
}

/* Появление через bottom, а не transform: transform занят центрированием,
   и на мобильной раскладке он снимается — анимация бы поехала. */
@keyframes ogeo-rise {
	from {
		opacity: 0;
		bottom: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ogeo-banner {
		animation: none;
	}
}

.ogeo-banner__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 16px;
}

.ogeo-banner__pin {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f6f2ea;
	color: #a98552;
}

.ogeo-banner__pin svg {
	width: 18px;
	height: 18px;
	display: block;
	fill: currentColor;
}

.ogeo-banner__text {
	min-width: 0;
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
	color: #5a5148;
}

.ogeo-banner__text b {
	display: block;
	font-size: 18px;
	font-weight: 500;
	color: #2b2620;
}

.ogeo-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ogeo-banner__yes,
.ogeo-banner__no {
	flex: 1 1 auto;
	padding: 11px 18px;
	border-radius: 999px;
	font-size: 15px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
}

.ogeo-banner__yes {
	background: #a98552;
	border: 1px solid #a98552;
	color: #fff;
}

.ogeo-banner__yes:hover {
	background: #97743f;
	border-color: #97743f;
	color: #fff;
}

.ogeo-banner__no {
	background: #fff;
	border: 1px solid #e4dbcb;
	color: #2b2620;
}

.ogeo-banner__no:hover {
	border-color: #a98552;
	color: #a98552;
}

.ogeo-banner__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #b3a998;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.ogeo-banner__close:hover {
	background: #f6f2ea;
	color: #2b2620;
}

@media (max-width: 520px) {
	.ogeo-banner {
		left: 16px;
		right: 16px;
		bottom: 16px;
		width: auto;
		transform: none;
		padding: 20px 20px 18px;
	}

	.ogeo-banner__yes,
	.ogeo-banner__no {
		flex: 1 1 100%;
	}
}

/* Обёртка блоков там, где тема контейнера не даёт (витрина города, главная).
   Класс .container берём у Bootstrap темы — ширина совпадёт с остальной
   страницей сама, без второго набора брейкпоинтов. */
.ogeo-blocks {
	width: 100%;
}

.ogeo-blocks > *:first-child {
	margin-top: 0;
}

/* --- вакансии --- */

.ogeo-jobs,
.ogeo-warranty {
	margin: 40px 0;
	padding: 26px 28px;
	max-width: 100%;
	box-sizing: border-box;
	overflow-wrap: anywhere;
	background: #f6f2ea;
	border-radius: 12px;
}

.ogeo-jobs *,
.ogeo-warranty * {
	box-sizing: border-box;
	min-width: 0;
}

.ogeo-jobs h2,
.ogeo-warranty h2 {
	margin: 0 0 18px;
	font-size: 21px;
	line-height: 1.3;
	color: #2b2620;
}

.ogeo-jobs h2 span,
.ogeo-warranty h2 span {
	color: #a98552;
}

.ogeo-jobs__list {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ogeo-jobs__list li {
	padding: 7px 15px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #e4dbcb;
	font-size: 15px;
	color: #2b2620;
}

.ogeo-jobs__note p {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.5;
	color: #5a5148;
}

.ogeo-jobs__note a {
	color: #7a5f33;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ogeo-jobs__note a:hover {
	color: #a98552;
}

/* --- гарантии --- */

.ogeo-warranty__cols {
	display: grid;
	gap: 22px 32px;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.ogeo-warranty__cols h3 {
	margin: 0 0 10px;
	font-size: 16px;
	letter-spacing: .02em;
	color: #a98552;
}

.ogeo-warranty__cols ul {
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #5a5148;
}

.ogeo-warranty__cols li + li {
	margin-top: 7px;
}

/* --- блок «текст + картинка сбоку» --- */

.ogeo-media {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 26px 32px;
}

.ogeo-media__text {
	flex: 1 1 320px;
	min-width: 0;
}

.ogeo-media__img {
	flex: 0 1 300px;
	min-width: 0;
	max-width: 100%;
}

/* Картинка слева. В разметке она идёт после текста — так читалка и робот
   получают сначала содержание, а порядком двигаем только визуально. */
.ogeo-media--flip .ogeo-media__img {
	order: -1;
}

.ogeo-media__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 12px;
}

.ogeo-media .ogeo-media__text > :first-child {
	margin-top: 0;
}

/* Гарантии: две строки текст+картинка внутри одной секции */
.ogeo-warranty .ogeo-media + .ogeo-media {
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid #e4dbcb;
}

.ogeo-warranty .ogeo-media__text h3 {
	margin: 0 0 10px;
	font-size: 16px;
	letter-spacing: .02em;
	color: #a98552;
}

.ogeo-warranty .ogeo-media__text ul {
	margin: 0;
	padding: 0 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: #5a5148;
}

.ogeo-warranty .ogeo-media__text li + li {
	margin-top: 7px;
}

/* На узком экране картинка уходит под текст в обоих вариантах */
@media (max-width: 640px) {
	.ogeo-media--flip .ogeo-media__img {
		order: 0;
	}

	.ogeo-media__img {
		flex: 1 1 100%;
	}
}
