.webok-footer {
	--footer-bg: #1f2a36;
	--footer-bg-deep: #1a2430;
	--footer-accent: #f7bb6a;
	--footer-heading: #ffffff;
	--footer-text: #c7d0db;
	--footer-muted: #9fb0c2;
	--footer-line: rgba(255, 255, 255, 0.1);
	--footer-hover: #ffffff;
	--footer-width: 1200px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
		linear-gradient(180deg, var(--footer-bg), var(--footer-bg-deep));
	color: var(--footer-text);
	font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.webok-footer,
.webok-footer * {
	box-sizing: border-box;
}

.webok-footer__accent {
	height: 16px;
	background: var(--footer-accent);
}

.webok-footer__inner {
	max-width: var(--footer-width);
	margin: 0 auto;
	min-height: 264px;
	padding: 28px 16px 0;
}

.webok-footer__layout {
	display: grid;
	grid-template-columns: minmax(220px, 0.9fr) minmax(160px, 0.68fr) minmax(140px, 0.56fr) minmax(170px, 0.72fr);
	gap: 16px;
	align-items: start;
}

.webok-footer__brand-block,
.webok-footer__contact-block,
.webok-footer__nav-block,
.webok-footer__policy-block {
	min-width: 0;
}

.webok-footer__brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.webok-footer__brand-image {
	display: block;
	width: auto;
	max-width: min(220px, 100%);
	max-height: 72px;
	object-fit: contain;
}

.webok-footer__summary {
	max-width: 320px;
	margin: 18px 0 0;
	color: var(--footer-text);
	font-size: 15px;
	line-height: 1.65;
}

.webok-footer__title {
	margin: 0 0 14px;
	color: var(--footer-heading);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.webok-footer__contact-list,
.webok-footer__nav-list,
.webok-footer__policy-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.webok-footer__nav-summary {
	display: none;
}

.webok-footer__nav-summary::-webkit-details-marker {
	display: none;
}

.webok-footer__nav-mobile {
	display: none;
}

.webok-footer__contact-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

.webok-footer__contact-item {
	display: grid;
	gap: 5px;
	align-content: start;
}

.webok-footer__meta-label {
	color: var(--footer-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.webok-footer__meta-value,
.webok-footer__link {
	display: block;
	color: var(--footer-text);
	font-size: 15px;
	line-height: 1.75;
	text-decoration: none;
	text-wrap: pretty;
	transition: color 0.2s ease;
}

.webok-footer__contact-item:nth-child(3) .webok-footer__meta-value,
.webok-footer__contact-item:nth-child(4) .webok-footer__meta-value,
.webok-footer__contact-item:nth-child(3) .webok-footer__link,
.webok-footer__contact-item:nth-child(4) .webok-footer__link {
	display: -webkit-box;
	overflow: hidden;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	max-height: 3.5em;
}

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

.webok-footer__link:visited {
	color: var(--footer-text);
}

.webok-footer__nav-list,
.webok-footer__policy-list {
	display: grid;
	gap: 10px;
	align-content: start;
}

.webok-footer__nav-list {
	grid-auto-flow: column;
	grid-template-rows: repeat(4, auto);
	grid-auto-columns: max-content;
	column-gap: 20px;
	row-gap: 10px;
}

.webok-footer__certifications {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.webok-footer__cert-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid rgba(247, 187, 106, 0.28);
	background: rgba(247, 187, 106, 0.08);
	color: #f3cf96;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.webok-footer__bottom {
	margin-top: 24px;
	padding: 14px 0 18px;
	border-top: 1px solid var(--footer-line);
}

.webok-footer__copyright {
	color: var(--footer-muted);
	font-size: 13px;
	line-height: 1.6;
}

@media (max-width: 960px) {
	.webok-footer__layout {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}

	.webok-footer__brand-block {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.webok-footer__inner {
		min-height: 0;
		padding-top: 18px;
		padding-left: 12px;
		padding-right: 12px;
		padding-bottom: 14px;
	}

	.webok-footer__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.webok-footer__brand-block {
		display: grid;
		grid-column: 1 / -1;
		gap: 10px;
		padding: 16px 15px 14px;
		border: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 18px;
		background:
			linear-gradient(135deg, rgba(247, 187, 106, 0.08), rgba(247, 187, 106, 0) 42%),
			rgba(255, 255, 255, 0.03);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	}

	.webok-footer__title {
		margin-bottom: 0;
		font-size: 10px;
		letter-spacing: 0.18em;
		color: rgba(255, 255, 255, 0.76);
	}

	.webok-footer__brand-image {
		max-width: 160px;
		max-height: 50px;
	}

	.webok-footer__summary {
		max-width: 100%;
		margin-top: 2px;
		font-size: 13px;
		line-height: 1.55;
		display: -webkit-box;
		overflow: hidden;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.webok-footer__contact-block,
	.webok-footer__nav-block,
	.webok-footer__policy-block {
		padding: 13px 12px 12px;
		border: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.03);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
	}

	.webok-footer__contact-block,
	.webok-footer__nav-block {
		min-height: 170px;
	}

	.webok-footer__contact-block {
		grid-column: 1 / -1;
		min-height: 0;
	}

	.webok-footer__title {
		display: none;
	}

	.webok-footer__nav-block,
	.webok-footer__policy-block {
		grid-column: 1 / -1;
		min-height: 0;
	}

	.webok-footer__policy-list {
		display: none;
	}

	.webok-footer__nav-mobile {
		display: block;
		border: 1px solid rgba(255, 255, 255, 0.06);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.03);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
		overflow: hidden;
	}

	.webok-footer__nav-desktop {
		display: none;
	}

	.webok-footer__nav-summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 14px 15px;
		color: var(--footer-heading);
		font-size: 12px;
		font-weight: 700;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		cursor: pointer;
		list-style: none;
	}

	.webok-footer__nav-summary::after {
		content: "+";
		flex: 0 0 auto;
		color: rgba(255, 255, 255, 0.78);
		font-size: 18px;
		line-height: 1;
	}

	.webok-footer__nav-mobile[open] .webok-footer__nav-summary::after {
		content: "-";
	}

	.webok-footer__nav-mobile .webok-footer__nav-list--mobile {
		padding: 0 15px 14px;
	}

	.webok-footer__nav-mobile:not([open]) .webok-footer__nav-list--mobile {
		display: none;
	}

	.webok-footer__contact-list {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 10px;
	}

	.webok-footer__contact-item {
		gap: 3px;
		padding: 0 0 8px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}

	.webok-footer__contact-item:last-child {
		padding-bottom: 0;
		border-bottom: 0;
	}

	.webok-footer__meta-label {
		font-size: 11px;
		letter-spacing: 0.14em;
	}

	.webok-footer__meta-value,
	.webok-footer__link {
		font-size: 13px;
		line-height: 1.5;
	}

	.webok-footer__meta-value.webok-footer__link,
	.webok-footer__meta-value.webok-footer__link:visited,
	.webok-footer__nav-item .webok-footer__link:visited,
	.webok-footer__policy-item .webok-footer__link:visited {
		color: var(--footer-text);
	}

	.webok-footer__nav-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-flow: row;
		grid-template-rows: none;
		grid-auto-columns: auto;
		gap: 7px;
		margin-top: 0;
	}

	.webok-footer__policy-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7px;
		margin-top: 0;
	}

	.webok-footer__policy-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.webok-footer__nav-item,
	.webok-footer__policy-item {
		min-width: 0;
	}

	.webok-footer__nav-item .webok-footer__link,
	.webok-footer__policy-item .webok-footer__link {
		padding: 9px 11px;
		border-radius: 11px;
		background: rgba(255, 255, 255, 0.025);
		border: 1px solid rgba(255, 255, 255, 0.04);
	}

	.webok-footer__certifications {
		margin-top: 12px;
		gap: 6px;
	}

	.webok-footer__cert-badge {
		min-width: 54px;
		padding: 5px 10px;
		font-size: 10px;
	}

	.webok-footer__bottom {
		margin-top: 12px;
		padding: 10px 2px 6px;
	}

	.webok-footer__copyright {
		font-size: 12px;
		line-height: 1.5;
		opacity: 0.88;
	}
}
