/* Тихоморье 09.11.2026: подвал сайта — тёмно-синий с морской волной (template-parts/site-footer.php). */

@font-face {
	font-family: "TM Playfair";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/playfair/playfair-display-cyrillic-500-italic.woff2) format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "TM Playfair";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/playfair/playfair-display-latin-500-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.tmf {
	--tmf-bg: #001f3f;
	--tmf-line: rgba(255, 255, 255, 0.12);
	--tmf-text: rgba(255, 255, 255, 0.8);
	--tmf-muted: rgba(255, 255, 255, 0.58);
	--tmf-accent: #ee6f35;
	--tmf-sand: #ffc19d;
	position: relative;
	margin-top: 72px;
	background: var(--tmf-bg);
	color: #fff;
	font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.tmf *,
.tmf *::before,
.tmf *::after {
	box-sizing: border-box;
}

.tmf__wave {
	position: absolute;
	top: -71px;
	left: 0;
	display: block;
	width: 100%;
	height: 72px;
	pointer-events: none;
}

.tmf__in {
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 32px 28px;
}

.tmf p {
	margin: 0;
}

.tmf a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.tmf a:focus-visible,
.tmf button:focus-visible,
.tmf input:focus-visible {
	outline: 2px solid var(--tmf-sand);
	outline-offset: 2px;
}

/* Верх: бренд + обратный звонок */
.tmf__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	gap: 48px;
	align-items: center;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--tmf-line);
}

.tmf__brand {
	display: flex;
	align-items: center;
	gap: 28px;
}

.tmf__logo {
	flex: none;
	display: grid;
	place-items: center;
	width: 132px;
	height: 132px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.tmf__logo img {
	display: block;
	width: 118px;
	height: 118px;
	max-width: none;
	object-fit: contain;
}

.tmf .tmf__logo--brand {
	width: 220px;
	height: auto;
	overflow: visible;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.tmf .tmf__logo--brand img {
	width: 220px;
	height: auto;
	object-fit: contain;
}

.tmf .tmf__slogan {
	font-family: "TM Playfair", Georgia, "Times New Roman", serif;
	font-size: 30px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tmf-sand);
}

.tmf .tmf__sub {
	max-width: 430px;
	margin-top: 10px;
	color: var(--tmf-text);
}

.tmf__cb {
	padding: 24px 24px 22px;
	border: 1px solid var(--tmf-line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.06);
}

.tmf .tmf__cb-title {
	margin: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

.tmf .tmf__cb-text {
	margin: 6px 0 16px;
	font-size: 14px;
	color: var(--tmf-text);
}

.tmf .tmf__cb-text a {
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
}

.tmf__form {
	margin: 0;
}

.tmf .tmf__row {
	display: flex;
	gap: 10px;
	margin: 0;
}

.tmf .tmf__tel {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.18);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: normal;
}

.tmf .tmf__tel::placeholder {
	color: var(--tmf-muted);
	opacity: 1;
}

.tmf .tmf__btn {
	flex: none;
	height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	background: var(--tmf-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.tmf .tmf__btn:hover {
	background: #d95f28;
}

.tmf .tmf__btn[disabled] {
	opacity: 0.7;
	cursor: default;
}

.tmf .tmf__status {
	margin-top: 8px;
	font-size: 13px;
	color: #a7f3d0;
}

.tmf .tmf__status:empty {
	display: none;
}

.tmf .tmf__status.is-error {
	color: #fecaca;
}

/* Колонки */
.tmf__cols {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.25fr 1fr;
	gap: 32px;
	padding: 36px 0;
}

.tmf .tmf__h {
	margin-bottom: 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tmf-muted);
}

.tmf__list {
	display: grid;
	gap: 11px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmf__list li {
	margin: 0;
	padding: 0;
}

.tmf__list a {
	color: var(--tmf-text);
}

.tmf__list a:hover {
	color: #fff;
}

.tmf .tmf__all {
	font-weight: 600;
	color: var(--tmf-sand);
}

.tmf .tmf__phone {
	display: inline-block;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
	white-space: nowrap;
}

.tmf__ci {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 14px;
	line-height: 1.45;
	color: var(--tmf-text);
}

.tmf__ci svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	color: var(--tmf-sand);
}

.tmf__ci a {
	color: var(--tmf-text);
	overflow-wrap: anywhere;
}

.tmf__ci a:hover {
	color: #fff;
}

.tmf__hours {
	display: block;
	color: var(--tmf-muted);
}

.tmf__msg {
	display: grid;
	gap: 10px;
}

.tmf .tmf__pill {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 16px;
	border: 1px solid var(--tmf-line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	font-weight: 600;
}

.tmf .tmf__pill:hover {
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.12);
}

.tmf__pill i {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-style: normal;
}

.tmf__pill svg {
	width: 16px;
	height: 16px;
}

/* Низ */
.tmf__bot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 8px 40px;
	padding-top: 22px;
	padding-right: 84px; /* место под круглую кнопку «наверх» */
	border-top: 1px solid var(--tmf-line);
	font-size: 13px;
	color: var(--tmf-muted);
}

.tmf__bot-info {
	display: grid;
	gap: 4px;
}

.tmf__bot a {
	justify-self: end;
	max-width: 17rem;
	text-align: right;
	color: var(--tmf-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tmf__bot a:hover {
	color: #fff;
}

@media (max-width: 1100px) {
	.tmf__cols {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.tmf__top {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

@media (max-width: 767px) {
	.tmf {
		margin-top: 40px;
		font-size: 14px;
	}

	.tmf__wave {
		top: -39px;
		height: 40px;
	}

	.tmf__in {
		padding: 28px 16px 22px;
	}

	.tmf__top {
		padding-bottom: 28px;
	}

	.tmf__brand {
		gap: 16px;
	}

	.tmf__logo {
		width: 84px;
		height: 84px;
	}

	.tmf__logo img {
		width: 76px;
		height: 76px;
	}

	.tmf .tmf__logo--brand,
	.tmf .tmf__logo--brand img {
		width: 150px;
		height: auto;
	}

	.tmf__brand {
		flex-direction: column;
		align-items: flex-start;
	}

	.tmf .tmf__slogan {
		font-size: 21px;
	}

	.tmf .tmf__sub {
		font-size: 13.5px;
	}

	.tmf__cb {
		padding: 18px;
	}

	.tmf .tmf__row {
		flex-direction: column;
	}

	.tmf .tmf__tel {
		flex: none;
		width: 100%;
	}

	.tmf .tmf__btn {
		width: 100%;
	}

	.tmf__cols {
		gap: 28px 20px;
		padding: 28px 0;
	}

	.tmf__col--contacts,
	.tmf__col--chats {
		grid-column: 1 / -1;
	}

	.tmf__msg {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tmf .tmf__pill {
		justify-content: center;
		gap: 8px;
		padding: 0 8px;
		font-size: 13px;
	}

	.tmf__bot {
		grid-template-columns: 1fr;
		gap: 12px;
		padding-right: 0;
		padding-bottom: 64px; /* кнопка «наверх» не закрывает ссылку */
		font-size: 12px;
	}

	.tmf__bot a {
		justify-self: start;
		max-width: none;
		text-align: left;
	}
}

/* Тихоморье 11.11.2026: вторая группа «Наши каналы» в колонке мессенджеров. */
.tmf .tmf__h--sub {
	margin-top: 1.25rem;
}


/* TM_UNIFIED_CTA_V1 */
.tmf .tmf__btn:not(:disabled) {
background: #d45100;
border-color: #d45100;
color: #fff;
border-radius: 12px;
}

.tmf .tmf__btn:not(:disabled):hover {
background: #ba4500;
border-color: #ba4500;
}

.tmf .tmf__btn:focus-visible {
outline: 3px solid #ffbd8a;
outline-offset: 3px;
}
