/**
 * Футер сайта — Montserrat и шкала как на главной (hero / SEO-блок).
 */

.sm-footer {
	--sm-footer-font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--sm-footer-text: #374151;
	--sm-footer-muted: #6b7280;
	--sm-footer-heading: #121c2b;
	--sm-footer-brand: #003459;
	--sm-footer-accent: #4b7b9b;

	font-family: var(--sm-footer-font);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-top: 0;
	background: #fff;
	border-top: 0;
	color: var(--sm-footer-text);
	-webkit-font-smoothing: antialiased;
}

.sm-footer__inner {
	padding: 2rem var(--sahalin-gutter, 0.6rem) 1.25rem;
}

@media (min-width: 768px) {
	.sm-footer__inner {
		padding: 2.25rem 0 1.5rem;
	}
}

.sm-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 640px) {
	.sm-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.sm-footer__grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.15fr);
		gap: 2rem 1.5rem;
	}
}

.sm-footer__logo {
	display: inline-block;
	margin-bottom: 1rem;
}

.sm-footer__logo img {
	display: block;
	width: min(200px, 100%);
	height: auto;
}

.sm-footer__legal {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--sm-footer-muted);
}

.sm-footer__city {
	margin: 0 0 0.35rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--sm-footer-heading);
}

.sm-footer__list--streets {
	margin-top: 0;
}

.sm-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.sm-footer__link {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: inherit;
	line-height: 1.5;
	color: var(--sm-footer-text);
	text-decoration: none;
	transition: color 0.15s ease;
}

.sm-footer__link:hover,
.sm-footer__link:focus-visible {
	color: var(--sm-footer-accent);
}

.sm-footer__link--plain {
	display: inline;
}

.sm-footer__icon {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
	color: var(--sm-footer-accent);
}

.sm-footer__icon--img {
	display: block;
	object-fit: cover;
	border-radius: 50%;
}

.sm-footer__schedule-title {
	margin: 1rem 0 0.2rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--sm-footer-heading);
}

.sm-footer__schedule-hours {
	margin: 0;
	font-size: 0.875rem;
	color: var(--sm-footer-muted);
}

.sm-footer__contacts .sm-footer__link {
	font-weight: 500;
}

.sm-footer__contacts .sm-footer__link--tel {
	font-size: 1rem;
	font-weight: 700;
	color: var(--sm-footer-heading);
	letter-spacing: -0.01em;
}

.sm-footer__social-title {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--sm-footer-muted);
}

.sm-footer__social-links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sm-footer__social-links .sm-footer__link {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--sm-footer-brand);
}

.sm-footer__callback-title {
	margin: 0 0 0.45rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--sm-footer-heading);
	letter-spacing: -0.02em;
}

.sm-footer__callback-text {
	margin: 0 0 0.85rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--sm-footer-muted);
}

.sm-footer__callback-text a {
	color: var(--sm-footer-brand);
	font-weight: 700;
	text-decoration: none;
}

.sm-footer__callback-text a:hover,
.sm-footer__callback-text a:focus-visible {
	color: var(--sm-footer-accent);
}

.sm-footer__callback-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

@media (min-width: 480px) {
	.sm-footer__callback-row {
		display: flex;
		align-items: stretch;
		gap: 0.5rem;
		max-width: 24rem;
	}
}

.sm-footer__callback-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 2.75rem;
	padding: 0 0.875rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--sm-footer-heading);
	background: #fff;
}

.sm-footer__callback-input::placeholder {
	color: #9ca3af;
}

.sm-footer__callback-input:focus {
	outline: none;
	border-color: var(--sm-footer-accent);
	box-shadow: 0 0 0 3px rgba(75, 123, 155, 0.2);
}

.sm-footer__callback-submit {
	flex-shrink: 0;
	height: 2.75rem;
	padding: 0 1.125rem;
	border: none;
	border-radius: 8px;
	background: var(--sm-footer-brand);
	color: #fff;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease;
}

.sm-footer__callback-submit:hover,
.sm-footer__callback-submit:focus-visible {
	background: #002a48;
}

.sm-footer__callback-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.sm-footer__callback-status {
	margin: 0;
	min-height: 1.35rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--sm-footer-brand);
}

.sm-footer__callback-status.is-error {
	color: #b91c1c;
}

.sm-footer__bottom {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid #f3f4f6;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.sm-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}

.sm-footer__copyright {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--sm-footer-muted);
}

.sm-footer__legal-link {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--sm-footer-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.sm-footer__legal-link:hover,
.sm-footer__legal-link:focus-visible {
	color: var(--sm-footer-accent);
}

@media (max-width: 767px) {
	.sm-footer {
		font-size: 0.8125rem;
		line-height: 1.5;
	}

	.sm-footer__inner {
		padding: 1.25rem var(--sahalin-gutter, 0.6rem) 1rem;
	}

	.sm-footer__grid {
		gap: 1.25rem;
	}

	.sm-footer__logo {
		margin-bottom: 0.65rem;
	}

	.sm-footer__logo img {
		width: min(140px, 58vw);
	}

	.sm-footer__legal {
		font-size: 0.75rem;
		line-height: 1.5;
	}

	.sm-footer__list {
		gap: 0.5rem;
	}

	.sm-footer__link {
		gap: 0.4rem;
		font-size: 0.8125rem;
		line-height: 1.45;
	}

	.sm-footer__icon {
		width: 1rem;
		height: 1rem;
		margin-top: 0.15rem;
	}

	.sm-footer__schedule-title {
		margin: 0.75rem 0 0.15rem;
		font-size: 0.875rem;
	}

	.sm-footer__schedule-hours {
		font-size: 0.8125rem;
	}

	.sm-footer__contacts .sm-footer__link--tel {
		font-size: 0.9375rem;
	}

	.sm-footer__social-title {
		margin: 0 0 0.5rem;
		font-size: 0.6875rem;
	}

	.sm-footer__social-links {
		gap: 0.35rem;
	}

	.sm-footer__social-links .sm-footer__link {
		font-size: 0.8125rem;
		font-weight: 600;
	}

	.sm-footer__callback-title {
		margin-bottom: 0.35rem;
		font-size: 0.9375rem;
	}

	.sm-footer__callback-text {
		margin-bottom: 0.65rem;
		font-size: 0.8125rem;
		line-height: 1.45;
	}

	.sm-footer__callback-form {
		gap: 0.35rem;
	}

	.sm-footer__callback-row {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0.4rem;
		max-width: none;
	}

	.sm-footer__callback-input {
		height: 2.5rem;
		padding: 0 0.75rem;
		font-size: 0.875rem;
		border-radius: 7px;
	}

	.sm-footer__callback-submit {
		width: 100%;
		height: 2.5rem;
		padding: 0 1rem;
		font-size: 0.8125rem;
		border-radius: 7px;
	}

	.sm-footer__callback-status {
		min-height: 1.15rem;
		font-size: 0.75rem;
	}

	.sm-footer__bottom {
		margin-top: 1rem;
		padding-top: 0.85rem;
		gap: 0.5rem;
	}

	.sm-footer__copyright,
	.sm-footer__legal-link {
		font-size: 0.75rem;
		line-height: 1.45;
	}
}
