/* Виджеты погоды и веб-камеры. Файл загружается только при наличии секции. */

.service-strip {
	padding: 22px 0 58px;
	background: var(--color-bg);
}

.service-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.service-widget {
	min-height: 180px;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
}

.service-widget iframe {
	display: block;
	width: 100%;
	min-height: 220px;
	border: 0;
}

.service-widget.is-placeholder {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: 8px;
	padding: 24px;
	background: var(--color-surface);
}

.service-widget .dashicons {
	width: 34px;
	height: 34px;
	color: var(--color-primary);
	font-size: 34px;
}

/* Виджет погоды Ахсау */
.service-widget-weather.ahsau-weather {
	position: relative;
	overflow: hidden;
	padding: 28px;
	border-radius: 8px;
	color: #fff;
	background:
			linear-gradient(135deg, rgba(7, 43, 48, 0.98), rgba(14, 73, 77, 0.94)),
			radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 34%);
	box-shadow: 0 24px 55px rgba(14, 45, 42, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.service-widget-weather.ahsau-weather::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
			linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 60%),
			url("data:image/svg+xml,%3Csvg width='900' height='360' viewBox='0 0 900 360' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 270L130 135L240 230L380 80L540 245L670 125L900 290V360H0Z' fill='%23ffffff' fill-opacity='.07'/%3E%3Cpath d='M0 310L180 190L310 285L470 145L630 300L760 210L900 320V360H0Z' fill='%23ffffff' fill-opacity='.05'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right top;
	background-size: cover;
	pointer-events: none;
}

.ahsau-weather > * {
	position: relative;
	z-index: 2;
}

.ahsau-weather__top,
.ahsau-weather__main,
.ahsau-weather__title,
.ahsau-weather__tomorrow {
	display: flex;
}

.ahsau-weather__top {
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
}

.ahsau-weather__title {
	align-items: center;
	gap: 14px;
}

.ahsau-weather__title strong {
	display: block;
	font-size: 20px;
	line-height: 1.2;
	color: #fff;
}

.ahsau-weather__title span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.68);
}

.ahsau-weather__icon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	flex: 0 0 48px;
	border-radius: 15px;
	font-size: 28px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
}

.ahsau-weather__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.13);
	white-space: nowrap;
}

.ahsau-weather__badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #5ee08a;
	box-shadow: 0 0 0 4px rgba(94, 224, 138, 0.16);
}

.ahsau-weather__main {
	align-items: center;
	gap: 28px;
	margin-bottom: 15px;
}

.ahsau-weather__temp {
	font-size: clamp(64px, 8vw, 64px);
	line-height: 0.9;
	font-weight: 800;
	letter-spacing: -0.07em;
}

.ahsau-weather__desc strong {
	display: block;
	font-size: 16px;
	color: #fff;
}

.ahsau-weather__desc span {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.74);
}

.ahsau-weather__tomorrow {
	align-items: center;
	gap: 14px;
	padding: 5px 15px;
	margin-bottom: 10px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.1);
}

.ahsau-weather__tomorrow-icon {
	font-size: 28px;
}

.ahsau-weather__tomorrow strong {
	display: block;
	margin-bottom: 3px;
	font-size: 15px;
	color: #fff;
}

.ahsau-weather__tomorrow span {
	color: rgba(255, 255, 255, 0.74);
	font-size: 14px;
}

.ahsau-weather__hours {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
	gap: 10px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.ahsau-weather__hour {
	min-width: 0;
	text-align: center;
}

.ahsau-weather__hour-time {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.74);
}

.ahsau-weather__hour-icon {
	display: block;
	font-size: 23px;
}

.ahsau-weather__hour strong {
	display: block;
	font-size: 15px;
	color: #fff;
}

.ahsau-weather__meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
	gap: 12px;
}

.ahsau-weather__meta-item {
	min-width: 0;
	padding: 12px 10px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
}

.ahsau-weather__meta-item span {
	display: block;
	font-size: 20px;
}

.ahsau-weather__meta-item strong {
	display: block;
	font-size: 14px;
	color: #fff;
	white-space: nowrap;
}

.ahsau-weather__meta-item small {
	display: block;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 900px) {
	.service-widget-weather.ahsau-weather {
		padding: 22px;
	}

	.ahsau-weather__main {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}
}

@media (max-width: 520px) {
	.ahsau-weather__top {
		flex-direction: column;
	}

	.ahsau-weather__badge {
		align-self: flex-start;
	}

	.ahsau-weather__meta {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 980px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

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