/* Newsletter band and site footer (Figma "Footer"). */

.newsletter {
	border-top: 1px solid var(--c-line);
	padding-top: 60px;
}

.newsletter__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 16px 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--c-line);
}

.newsletter__heading {
	font-size: var(--t-title);
	line-height: var(--lh-title);
}

.newsletter__form {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 16px;
}

.newsletter__field {
	width: 272px;
}

.newsletter__field input {
	padding: 10px 12px 10px 4px;
	border-bottom-color: var(--c-text);
	font-size: var(--t-body);
}

.newsletter .form-status {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
}

.site-footer {
	padding: 40px 0 60px;
}

.site-footer__main {
	display: grid;
	grid-template-columns: 368px 1fr;
	gap: 112px;
}

.site-footer__brand {
	display: grid;
	align-content: start;
	gap: 30px;
}

.site-footer__logo img {
	width: 176px;
	height: auto;
}

.site-footer__contact {
	display: grid;
	gap: 8px;
	font-style: normal;
	font-size: var(--t-body-s);
	line-height: var(--lh-body-s);
	color: var(--c-text-2);
}

.site-footer__contact ul {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__contact li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-footer__contact a {
	text-decoration: none;
}

.site-footer__contact a.underline {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__contact .icon {
	width: 16px;
	height: 16px;
}

.site-footer__menus {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 176px));
	justify-content: space-between;
	gap: 16px;
}

.site-footer__column {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.site-footer__column:last-child {
	justify-content: space-between;
}

.site-footer__group {
	display: grid;
	gap: 10px;
}

.site-footer__heading,
.site-footer__list--main .site-footer__link {
	font-family: var(--f-body);
	font-size: var(--t-button);
	line-height: 16px;
	font-weight: 600;
	text-transform: uppercase;
}

.site-footer__list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--t-body-s);
	line-height: var(--lh-body-s);
}

.site-footer__list--main {
	gap: 18px;
}

.site-footer__link {
	text-decoration: none;
}

.site-footer__link:hover,
.site-footer__link[aria-current] {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-footer__social {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__social .icon {
	width: 24px;
	height: 24px;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 40px;
	padding-top: 16px;
	border-top: 1px solid var(--c-line);
	font-size: var(--t-sub);
	line-height: var(--lh-sub);
	font-weight: 500;
	color: var(--c-text-2);
}

.site-footer__legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__legal a {
	text-decoration: none;
}

.site-footer__legal a:hover {
	text-decoration: underline;
}

.site-footer__legal p {
	font-size: var(--t-body-s);
	line-height: var(--lh-body-s);
	font-weight: 400;
}

@media (max-width: 1023px) {
	.site-footer__main {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.site-footer__menus {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.newsletter__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.newsletter__form {
		flex-direction: column;
		align-items: stretch;
	}

	.newsletter__field {
		width: 100%;
	}

	.site-footer__menus {
		grid-template-columns: 1fr 1fr;
		row-gap: 40px;
	}

	.site-footer__column:first-child {
		grid-row: span 2;
	}
}

/* Shared by all sn forms: honeypot and status line. */
.sn-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-status {
	font-size: var(--t-body-s);
	line-height: var(--lh-body-s);
}

.form-status.is-error {
	color: #a4262c;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
	border-bottom-color: #a4262c;
}

.field__error {
	font-size: var(--t-sub);
	color: #a4262c;
}
