.namaz-home-app .namaz-app-content {
	padding: 10px 14px 0;
}

.namaz-home-dashboard {
	width: min(100%, 1060px);
	margin: 0 auto;
	display: grid;
	gap: 12px;
}

.namaz-home-dashboard__intro {
	padding-top: 2px;
}

.namaz-home-dashboard__intro h1 {
	margin: 0;
	max-width: 12ch;
	color: var(--text-primary);
	font-size: clamp(1.75rem, 1.62rem + 0.65vw, 2.1rem);
	line-height: 1.04;
	letter-spacing: 0;
}

.namaz-home-dashboard__current svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
}

.namaz-home-dashboard__current {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 12px 14px;
	border-radius: 18px;
	border: 1px solid var(--border);
	background: var(--surface-1);
	color: var(--text-primary);
	box-shadow: var(--shadow-card);
}

.namaz-home-dashboard__current-icon {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	background: var(--primary-soft);
	color: var(--primary);
}

html[data-theme="dark"] .namaz-home-dashboard__current {
	border-color: var(--border);
	background: var(--dashboard-bg);
	color: var(--dashboard-text);
	box-shadow: var(--shadow-floating);
}

html[data-theme="dark"] .namaz-home-dashboard__current-icon {
	background: var(--dashboard-surface);
}

.namaz-home-dashboard__current strong,
.namaz-home-dashboard__current div > span {
	display: block;
	min-width: 0;
}

.namaz-home-dashboard__current strong {
	font-size: 1.04rem;
	line-height: 1.1;
}

.namaz-home-dashboard__current div > span {
	margin-top: 4px;
	color: var(--text-secondary);
	font-size: 0.83rem;
	line-height: 1.3;
}

html[data-theme="dark"] .namaz-home-dashboard__current div > span {
	color: var(--dashboard-muted);
}

.namaz-home-dashboard__current button {
	border: 1px solid var(--primary-border);
	border-radius: 12px;
	padding: 9px 13px;
	background: var(--primary);
	color: #fff;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 760;
	white-space: nowrap;
	cursor: pointer;
	transition: background 160ms ease, box-shadow 160ms ease;
}

.namaz-home-dashboard__current button:hover {
	background: var(--primary-hover);
}

.namaz-home-dashboard__current button:focus-visible {
	outline: 2px solid var(--primary-border);
	outline-offset: 2px;
}

.namaz-home-section {
	display: grid;
	gap: 10px;
}

.namaz-home-section__head,
.namaz-country-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
}

.namaz-home-section__head h2,
.namaz-country-section__head h2 {
	min-width: 0;
	overflow-wrap: anywhere;
	margin: 0;
	color: var(--text-primary);
	font-size: 1.18rem;
	line-height: 1.15;
	letter-spacing: 0;
}

.namaz-home-section__head button,
.namaz-home-section__head span,
.namaz-country-section__head span {
	border: 0;
	background: transparent;
	color: var(--primary);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
}

.namaz-home-cities,
.namaz-home-countries {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.namaz-home-city,
.namaz-home-country {
	min-width: 0;
	min-height: 62px;
	padding: 9px 11px;
	border-radius: 18px;
	background: var(--surface-1);
	color: var(--text-primary);
	box-shadow: inset 0 0 0 1px var(--border);
	text-decoration: none;
	display: grid;
	align-items: center;
	gap: 9px;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.namaz-home-city {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.namaz-home-country {
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.namaz-home-city:active,
.namaz-home-country:active {
	transform: scale(0.985);
}

.namaz-home-city__flag,
.namaz-home-country > span {
	width: 28px;
	height: 28px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	background: var(--surface-2);
	font-size: 1rem;
}

.namaz-home-city__text,
.namaz-home-city__text strong,
.namaz-home-city__text small,
.namaz-home-country strong {
	min-width: 0;
}

.namaz-home-city__text strong,
.namaz-home-country strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 0.95rem;
	line-height: 1.14;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.namaz-home-city__text small {
	display: block;
	margin-top: 3px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--text-secondary);
	font-size: 0.74rem;
	line-height: 1.12;
}

.namaz-home-city__arrow,
.namaz-home-country small {
	color: color-mix(in srgb, var(--text-muted) 74%, transparent);
	font-size: 1.1rem;
	line-height: 1;
}

.namaz-home-dashboard__seo {
	margin-top: 4px;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: 18px;
	background: var(--surface-1);
	box-shadow: var(--shadow-card);
	color: var(--text-secondary);
}

.namaz-home-dashboard__seo h2 {
	margin: 0 0 7px;
	color: var(--text-primary);
	font-size: 1.2rem;
	line-height: 1.18;
	letter-spacing: 0;
}

.namaz-home-dashboard__seo p {
	margin: 0;
	width: 100%;
	max-width: none;
	font-size: 0.96rem;
	line-height: 1.55;
}

.namaz-home-dashboard__seo p + p {
	margin-top: 10px;
}

.namaz-home-dashboard__faq {
	margin-top: 4px;
}

.namaz-home-dashboard__faq h2 {
	margin: 0 0 10px;
	color: var(--text-primary);
	font-size: 1.16rem;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: 0;
}

.namaz-home-dashboard__faq-list {
	display: grid;
	align-items: start;
	gap: 10px;
}

.namaz-home-dashboard__faq details {
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-1);
	box-shadow: var(--shadow-card);
}

.namaz-home-dashboard__faq summary {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 58px;
	padding: 13px 48px 13px 15px;
	color: var(--text-primary);
	font-weight: 760;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.namaz-home-dashboard__faq summary::-webkit-details-marker {
	display: none;
}

.namaz-home-dashboard__faq summary::after {
	position: absolute;
	right: 14px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--primary-soft);
	color: var(--primary);
	font-size: 1.18rem;
	font-weight: 600;
	line-height: 1;
	content: "+";
	transform: translateY(-50%);
}

.namaz-home-dashboard__faq details[open] summary {
	border-bottom: 1px solid var(--divider);
	color: var(--primary);
}

.namaz-home-dashboard__faq details[open] summary::after {
	content: "−";
}

.namaz-home-dashboard__faq summary:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 3px;
}

.namaz-home-dashboard__faq p {
	margin: 0;
	padding: 13px 15px 15px;
	color: var(--text-secondary);
	line-height: 1.5;
}

@media (max-width: 340px) {
	.namaz-home-app .namaz-app-content {
		padding-left: 10px;
		padding-right: 10px;
	}

	.namaz-home-dashboard__current {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.namaz-home-dashboard__current button {
		grid-column: 2;
		justify-self: start;
	}

	.namaz-home-city,
	.namaz-home-country {
		padding-left: 9px;
		padding-right: 9px;
	}

	.namaz-home-city__text strong,
	.namaz-home-country strong {
		font-size: 0.88rem;
	}

}

@media (max-width: 280px) {
	.namaz-home-app .namaz-app-content {
		padding: 8px 8px 0;
	}

	.namaz-home-dashboard {
		gap: 10px;
	}

	.namaz-home-dashboard__intro h1 {
		max-width: none;
		font-size: 1.58rem;
		line-height: 1.07;
		overflow-wrap: anywhere;
	}

	.namaz-home-dashboard__seo p {
		font-size: 0.9rem;
	}

	.namaz-home-dashboard__current {
		grid-template-columns: 1fr;
		min-height: 0;
		padding: 12px;
		border-radius: 20px;
	}

	.namaz-home-dashboard__current-icon {
		width: 40px;
		height: 40px;
		border-radius: 14px;
	}

	.namaz-home-dashboard__current button {
		grid-column: auto;
		justify-self: start;
		white-space: normal;
		text-align: left;
	}

	.namaz-home-section__head,
	.namaz-country-section__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 5px;
	}

	.namaz-home-cities,
	.namaz-home-countries {
		grid-template-columns: 1fr;
	}

	.namaz-home-city,
	.namaz-home-country {
		min-height: 56px;
		border-radius: 16px;
	}

	.namaz-home-dashboard__seo h2 {
		font-size: 1.06rem;
		overflow-wrap: anywhere;
	}
}

@media (min-width: 768px) {
	.namaz-home-app .namaz-app-content {
		padding: 20px 24px 0;
	}

	.namaz-home-dashboard {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
		gap: 16px 18px;
	}

	.namaz-home-dashboard__intro,
	.namaz-home-dashboard__current,
	.namaz-home-dashboard__seo,
	.namaz-home-dashboard__faq {
		grid-column: 1 / -1;
	}

	.namaz-home-cities {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1180px) {
	.namaz-home-dashboard__seo {
		margin-top: 0;
	}
}
