.domotex-footer {
	margin-top: clamp(3rem, 7vw, 6rem);
	border-top: 1px solid var(--domotex-color-warm-border);
	background: var(--domotex-color-header-footer-surface);
	color: var(--domotex-color-charcoal);
}

.domotex-footer__main {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
	gap: clamp(2rem, 6vw, 6rem);
	padding-block: clamp(2.75rem, 5vw, 4.25rem);
}

.domotex-footer__brand p {
	max-width: 250px;
	margin: 0.9rem 0 0;
	color: var(--domotex-color-muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.domotex-footer__groups {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.5rem;
}

.domotex-footer__group h2 {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	font-weight: 700;
}

.domotex-footer__group ul {
	display: grid;
	gap: 0.7rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.domotex-footer__group a,
.domotex-footer__pending {
	color: var(--domotex-color-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
	text-decoration: none;
}

.domotex-footer__group a:hover {
	color: var(--domotex-color-charcoal);
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.domotex-footer__pending {
	max-width: 180px;
	margin: 0;
}

.domotex-footer__bottom {
	display: flex;
	min-height: 120px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	border-top: 1px solid var(--domotex-color-warm-border);
	padding-block: 1.5rem 2rem;
}

.domotex-footer__payment {
	display: flex;
	min-width: min(100%, 280px);
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.domotex-footer__payment-marks {
	display: flex;
	min-height: 30px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 0.8rem;
}

.domotex-footer__payment-marks:empty {
	display: none;
	min-height: 0;
}

.domotex-footer__payment-marks img {
	width: auto;
	max-width: 104px;
	max-height: 30px;
	object-fit: contain;
}

.domotex-footer__payment > p,
.domotex-footer__copyright,
.domotex-footer__design-credit {
	margin: 0;
	color: var(--domotex-color-muted);
	font-size: 0.75rem;
}

@media (max-width: 1100px) {
	.domotex-footer__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 2rem;
	}
}

@media (max-width: 600px) {
	.domotex-footer {
		margin-top: 3rem;
	}

	.domotex-footer__main {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding-block: 2.5rem;
	}

	.domotex-footer__groups {
		gap: 1.8rem 1rem;
	}

	.domotex-footer__group h2 {
		margin-bottom: 0.75rem;
	}

	.domotex-footer__bottom {
		min-height: 0;
		align-items: flex-start;
		gap: 0.5rem;
		padding-block: 1.5rem 2rem;
	}

	.domotex-footer__payment {
		width: 100%;
	}
}

/* Footer keeps support and policy links in distinct columns; payment details stay in their own row. */
.domotex-footer {
	margin-top: clamp(3rem, 5vw, 4.5rem);
	background: var(--domotex-color-footer);
}

.domotex-footer__main {
	display: block;
	padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

.domotex-footer__groups {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: clamp(1rem, 2.8vw, 2.5rem);
}

.domotex-footer__group h2,
.domotex-footer__newsletter h2 {
	margin: 0 0 0.9rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	text-transform: uppercase;
}

.domotex-footer__group ul,
.domotex-footer__legal ul {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.domotex-footer__group a,
.domotex-footer__pending,
.domotex-footer__newsletter > p {
	color: var(--domotex-color-muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.domotex-footer__pending {
	max-width: 23ch;
	margin: 0;
}

.domotex-footer__newsletter > p:first-of-type {
	max-width: 26ch;
	margin: 0 0 0.9rem;
}

.domotex-footer__newsletter form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border: 0;
	background: transparent;
}

.domotex-footer__newsletter input {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	border: 1px solid var(--domotex-color-warm-border);
	padding: 0.65rem 0.85rem;
	background: transparent;
	font: inherit;
	font-size: 0.875rem;
}

.domotex-footer__newsletter button {
	flex: 0 0 auto;
	min-height: 44px;
	border: 0;
	border-radius: var(--domotex-radius-control);
	padding: 0.55rem 0.8rem;
	background: var(--domotex-color-beige);
	color: var(--domotex-color-charcoal);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 650;
}

.domotex-footer__newsletter form:has(:disabled) {
	opacity: 0.72;
}

.domotex-footer__newsletter .domotex-footer__pending {
	margin-top: 0.4rem;
	font-size: 0.65rem;
}

.domotex-footer__payment-row {
	border-top: 0;
	padding-block: 0.75rem 1rem;
}

.domotex-footer__payment {
	align-items: flex-start;
	gap: 0.55rem;
}

.domotex-footer__payment-marks {
	min-height: 26px;
}

.domotex-footer__payment-marks img {
	max-height: 26px;
}

.domotex-footer__bottom {
	min-height: 0;
	justify-content: space-between;
	border-top: 1px solid var(--domotex-color-warm-border);
	padding-block: 1.75rem 2.75rem;
}

.domotex-footer__legal ul {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: start;
	gap: 0.75rem;
}

.domotex-footer__copyright {
	color: var(--domotex-color-muted);
	font-size: 0.75rem;
	text-decoration: none;
}

@media (max-width: 900px) {
	.domotex-footer__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.7rem 1.2rem;
	}
}

@media (max-width: 600px) {
	.domotex-footer__main {
		padding-block: 2.3rem 1.8rem;
	}

	.domotex-footer__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem 0.9rem;
	}

	.domotex-footer__newsletter {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.domotex-footer__newsletter h2 {
		margin-bottom: 0.75rem;
		font-size: 1.4rem;
		letter-spacing: -0.04em;
		line-height: 1.15;
		text-transform: none;
	}

	.domotex-footer__newsletter > p:first-of-type {
		max-width: 34ch;
		margin-bottom: 0.85rem;
		font-size: 0.84rem;
	}

	.domotex-footer__newsletter form {
		flex-direction: column;
		gap: 0.45rem;
		border: 0;
		background: transparent;
	}

	.domotex-footer__newsletter input,
	.domotex-footer__newsletter button {
		min-height: 46px;
		border: 1px solid var(--domotex-color-warm-border);
		padding-inline: 0.85rem;
		font-size: 0.8rem;
	}

	.domotex-footer__newsletter input {
		border-radius: var(--domotex-radius-soft);
		background: var(--domotex-color-white);
	}

	.domotex-footer__newsletter button {
		border-radius: var(--domotex-radius-control);
		background: var(--domotex-color-beige);
	}

	.domotex-footer__socials {
		display: flex;
		min-height: 32px;
		align-items: center;
		gap: 1rem;
		margin-top: 1rem;
	}

	.domotex-footer__social-link {
		display: inline-flex;
		width: 26px;
		height: 26px;
		align-items: center;
		justify-content: center;
		color: var(--domotex-color-charcoal);
		text-decoration: none;
	}

	.domotex-footer__social-link .domotex-utility__instagram-mark {
		width: 22px;
		height: 22px;
	}

	.domotex-footer__newsletter .domotex-footer__pending {
		margin-top: 0.35rem;
	}

	.domotex-footer__group h2 {
		font-size: 0.82rem;
		letter-spacing: -0.02em;
		text-transform: none;
	}

	.domotex-footer__groups > .domotex-footer__group:nth-child(1) {
		grid-column: 1;
		grid-row: 2;
	}

	.domotex-footer__groups > .domotex-footer__group:nth-child(2) {
		grid-column: 2;
		grid-row: 2;
	}

	.domotex-footer__groups > .domotex-footer__group:nth-child(3) {
		grid-column: 1;
		grid-row: 3;
	}

	.domotex-footer__groups > .domotex-footer__group:nth-child(4) {
		grid-column: 2;
		grid-row: 3;
	}

	.domotex-footer__payment-row {
		padding-block: 0.85rem 0.5rem;
	}

	.domotex-footer__payment {
		gap: 0.35rem;
	}

	.domotex-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.7rem;
	}

	.domotex-footer__copyright {
		order: 1;
	}

	.domotex-footer__legal {
		order: 2;
	}

	.domotex-footer__legal ul {
		gap: 0.7rem;
	}
}

/* Shared footer layout follows the desktop and mobile Figma frames. */
.domotex-footer {
	box-sizing: border-box;
	min-height: 480px;
	height: auto;
	border-top: 1px solid var(--domotex-color-footer-divider);
	padding-bottom: 40px;
	background: #f5f5f3;
}

.domotex-footer__main {
	box-sizing: border-box;
	display: block;
	height: 314px;
	padding: 64px 0 0;
}

.domotex-footer__groups {
	box-sizing: border-box;
	display: grid;
	height: 250px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 32px;
}

.domotex-footer__group h2,
.domotex-footer__newsletter h2 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.55px;
	line-height: 20px;
	text-transform: uppercase;
}

.domotex-footer__group ul {
	gap: 12px;
	padding-top: 16px;
}

.domotex-footer__group a,
.domotex-footer__label,
.domotex-footer__newsletter > p {
	color: #4a5565;
	font-size: 14px;
	line-height: 20px;
}

.domotex-footer__newsletter {
	display: flex;
	flex-direction: column;
}

.domotex-footer__newsletter > p:first-of-type {
	max-width: 238px;
	margin: 16px 0 0;
}

.domotex-footer__newsletter form {
	gap: 8px;
	margin-top: 16px;
}

.domotex-footer__newsletter input {
	box-sizing: border-box;
	min-height: 42px;
	height: 42px;
	border-color: #d1d5dc;
	border-radius: 0;
	background: #fff;
	font-size: 14px;
	line-height: 20px;
}

.domotex-footer__newsletter button {
	min-height: 44px;
	background: var(--domotex-color-beige);
	font-size: 14px;
}

.domotex-footer__newsletter form:has(:disabled) {
	opacity: 1;
}

.domotex-footer__socials {
	box-sizing: border-box;
	height: 44px;
	margin: 0;
	padding-top: 24px;
}

.domotex-footer__social-link {
	width: 36px;
	height: 20px;
	justify-content: flex-start;
}

.domotex-footer__social-link .domotex-utility__instagram-mark {
	width: 20px;
	height: 20px;
}

.domotex-footer__design-credit a {
	color: inherit;
	text-underline-offset: 0.18em;
}

.domotex-footer__payment-row {
	box-sizing: border-box;
	min-height: 68px;
	height: auto;
	padding: 0;
}

.domotex-footer__payment {
	position: relative;
	display: block;
	width: 430px;
	min-width: 0;
	min-height: 68px;
	height: auto;
}

.domotex-footer__payment-marks {
	position: relative;
	display: block;
	width: 430px;
	min-height: 68px;
	height: auto;
}

.domotex-footer__payment-cards {
	position: absolute;
	top: 4px;
	left: 0;
	display: flex;
	height: 32px;
	align-items: center;
	gap: 18.7px;
}

.domotex-footer__payment-cards > img,
.domotex-footer__payment-maestro,
.domotex-footer__payment-id-check {
	box-sizing: border-box;
	flex: 0 0 auto;
}

.domotex-footer__payment-visa {
	width: 57.91px;
	height: 17.6px;
}

.domotex-footer__payment-mastercard,
.domotex-footer__payment-maestro {
	width: 30.66px;
	height: 22.4px;
}

.domotex-footer__payment-maestro {
	position: relative;
	display: block;
}

.domotex-footer__payment-maestro img:first-child {
	position: absolute;
	left: 0;
	top: 0;
	width: 30.66px;
	height: 17.79px;
}

.domotex-footer__payment-maestro img:last-child {
	position: absolute;
	left: 5px;
	top: 19.17px;
	width: 21.51px;
	height: 3.2px;
}

.domotex-footer__payment-id-check {
	position: relative;
	width: 37.47px;
	height: 24px;
	overflow: hidden;
}

.domotex-footer__payment-id-check img {
	position: absolute;
	left: -11.36%;
	top: -17.43%;
	width: 122.73%;
	max-width: none;
	height: 134.87%;
	max-height: none;
}

.domotex-footer__monri {
	position: absolute;
	top: 0;
	left: 229.75px;
	width: 120px;
	height: 68px;
}

.domotex-footer__monri img {
	position: absolute;
	left: 0;
	top: 0;
	width: 68px;
	height: 32px;
	max-width: none;
	max-height: none;
}

.domotex-footer__monri span {
	position: absolute;
	left: 0;
	top: 44px;
	color: #3d3833;
	font-size: 12px;
	font-weight: 500;
	line-height: 20px;
}

.domotex-footer__bottom {
	box-sizing: border-box;
	display: flex;
	height: auto;
	min-height: 0;
	align-items: flex-start;
	justify-content: space-between;
	border-top: 1px solid var(--domotex-color-footer-divider);
	padding: 20px 0 0;
}

.domotex-footer__copyright {
	color: var(--domotex-color-muted);
	font-size: 11px;
	line-height: 16px;
}

.domotex-footer__design-credit {
	font-size: 11px;
	line-height: 16px;
}

.domotex-footer__legal ul {
	justify-items: start;
	gap: 0.75rem;
}

.domotex-footer__group ul li,
.domotex-footer__legal li {
	margin: 0;
}

.domotex-footer__group a,
.domotex-footer__legal a {
	text-decoration: none;
}

@media (max-width: 600px) {
	.domotex-footer {
		min-height: 0;
		height: auto;
		padding: 32px 0 26px;
		background: #f5f3ef;
	}

	.domotex-footer__main {
		height: auto;
		padding: 0;
	}

	.domotex-footer__groups {
		height: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto auto auto;
		gap: 28px 20px;
	}

	.domotex-footer__newsletter {
		grid-column: 1 / -1;
		grid-row: 1;
		gap: 12px;
	}

	.domotex-footer__newsletter h2 {
		font-size: 24px;
		font-weight: 700;
		letter-spacing: 0;
		line-height: 30px;
		text-transform: none;
	}

	.domotex-footer__newsletter > p:first-of-type {
		max-width: 392px;
		margin: 0;
		font-size: 14px;
		line-height: 20px;
	}

	.domotex-footer__newsletter form {
		gap: 8px;
		margin: 0;
	}

	.domotex-footer__newsletter input,
	.domotex-footer__newsletter button {
		width: 100%;
		min-height: 48px;
		height: 48px;
		padding-inline: 17px;
		font-size: 14px;
		line-height: 20px;
	}

	.domotex-footer__newsletter button {
		border-radius: var(--domotex-radius-control);
	}

	.domotex-footer__newsletter button {
		border: 0;
		padding-inline: 20px;
	}

	.domotex-footer__socials {
		height: 44px;
		min-height: 44px;
		padding: 0;
	}

	.domotex-footer__social-link {
		width: 44px;
		height: 44px;
		align-items: center;
	}

	.domotex-footer__group h2 {
		margin-bottom: 12px;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0;
		line-height: 20px;
		text-transform: none;
	}

	.domotex-footer__group ul {
		gap: 10px;
		padding: 0;
	}

	.domotex-footer__group a,
	.domotex-footer__label {
		color: var(--domotex-color-muted);
		font-size: 13px;
		line-height: 20px;
	}

	.domotex-footer__payment-row {
		min-height: 64px;
		height: auto;
		margin-top: 28px;
	}

	.domotex-footer__payment,
	.domotex-footer__payment-marks {
		width: min(392px, 100%);
		min-height: 64px;
		height: auto;
	}

	.domotex-footer__payment-cards {
		top: 4px;
		gap: 16.8px;
	}

	.domotex-footer__payment-visa {
		width: 52.09px;
		height: 16.79px;
	}

	.domotex-footer__payment-mastercard,
	.domotex-footer__payment-maestro {
		width: 27.52px;
		height: 21.41px;
	}

	.domotex-footer__payment-maestro {
		position: relative;
		display: block;
	}

	.domotex-footer__payment-maestro img:first-child {
		width: 27.52px;
		height: 15.97px;
	}

	.domotex-footer__payment-maestro img:last-child {
		left: 4.24px;
		top: 18.32px;
		width: 19.3px;
		height: 2.88px;
	}

	.domotex-footer__payment-id-check {
		width: 33.64px;
		height: 22.94px;
	}

	.domotex-footer__monri {
		left: 207.89px;
		top: 4px;
		width: 120px;
		height: 60px;
	}

	.domotex-footer__monri img {
		width: 50px;
		height: 24px;
	}

	.domotex-footer__monri span {
		top: 36px;
		font-size: 10px;
		line-height: 16px;
	}

	.domotex-footer__bottom {
		height: auto;
		align-items: flex-start;
		flex-direction: column;
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0.5rem;
		margin-top: 28px;
		border: 0;
		padding: 0;
	}

	.domotex-footer__copyright {
		font-size: 11px;
		line-height: 16px;
	}

	.domotex-footer__design-credit {
		font-size: 11px;
		line-height: 16px;
	}

	.domotex-footer__legal li {
		display: inline-flex;
		align-items: center;
		line-height: 18px;
	}

	.domotex-footer__legal li + li::before {
		content: none;
		margin: 0;
	}

	.domotex-footer__legal ul {
		justify-items: start;
		gap: 0.625rem;
	}
}

.domotex-footer__payment-methods {
	position: static;
	display: flex;
	width: auto;
	height: auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.domotex-footer__payment-methods > span {
	position: static;
	width: auto;
	height: auto;
	font-size: 12px;
	line-height: 1.4;
}

.domotex-footer__payment-methods > span:first-child:not(.domotex-footer__payment-method-name) {
	font-weight: 700;
}

.domotex-footer__payment-method-name {
	max-width: 100%;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
}

@media (min-width: 601px) and (max-width: 1100px) {
	.domotex-footer__main {
		height: auto;
		padding-block: 48px 32px;
	}

	.domotex-footer__groups {
		height: auto;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}
}

@media (max-width: 360px) {
	.domotex-footer__payment-cards {
		gap: 12px;
	}

	.domotex-footer__monri:not(.domotex-footer__payment-methods) {
		left: min(207.89px, calc(100% - 72px));
		width: 72px;
	}
}

@media (max-width: 300px) {
	.domotex-footer__payment-cards {
		gap: 8px;
	}
}
