@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--sd-blue: #024866;
	--sd-blue-deep: #084267;
	--sd-cyan: #64c2c9;
	--sd-cyan-bright: #63cbca;
	--sd-green: #007146;
	--sd-olive: #7c844d;
	--sd-orange: #e87a20;
	--sd-bg: #f4f4f4;
	--sd-text: #263238;
	--sd-muted: #586c72;
	--sd-border: #d7dde0;
	--sd-white: #ffffff;
	--sd-shadow: 0 18px 45px rgba(2, 72, 102, 0.14);
	--sd-radius: 5px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	overflow-x: hidden;
}

body {
	margin: 0;
	min-height: 100%;
	overflow-x: hidden;
	background-color: var(--sd-bg);
	background-image: url("../images/pattern-light.png");
	background-repeat: repeat-x;
	background-position: top center;
	color: var(--sd-text);
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: 0;
}

button,
input,
textarea {
	max-width: 100%;
	font: inherit;
	letter-spacing: 0;
}

button {
	cursor: pointer;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none !important;
}

.site-header {
	background-color: var(--sd-blue);
	background-image: url("../images/header-background.jpg");
	background-position: center;
	background-size: cover;
	border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(1120px, calc(100% - 32px));
	min-height: 92px;
	margin: 0 auto;
	color: var(--sd-white);
	text-decoration: none;
}

.site-brand__logo {
	width: 56px;
	height: 72px;
	object-fit: contain;
	opacity: 0.9;
}

.site-brand__text {
	display: grid;
	gap: 1px;
	color: var(--sd-white);
	font-size: 14px;
	line-height: 1.25;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.26);
}

.site-brand__text strong {
	font-size: 22px;
	font-weight: 700;
}

.audio-guide {
	min-height: calc(100vh - 92px);
}

.guide-shell {
	width: min(1120px, calc(100% - 32px));
	min-width: 0;
	margin: 0 auto;
	padding: 32px 0 56px;
}

.guide-intro {
	margin-bottom: 24px;
}

.guide-kicker,
.station-eyebrow {
	margin: 0 0 6px;
	color: var(--sd-olive);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.guide-intro h1 {
	margin: 0;
	color: var(--sd-blue-deep);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.12;
}

.guide-subtitle {
	margin: 6px 0 0;
	color: var(--sd-muted);
	font-size: 17px;
}

.guide-empty {
	padding: 22px;
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
}

.guide-empty p {
	margin: 0;
}

.language-area {
	min-width: 0;
	margin-bottom: 24px;
	padding: 16px;
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: 0 10px 30px rgba(2, 72, 102, 0.08);
}

.language-area h2,
.station-list h2 {
	margin: 0 0 12px;
	color: var(--sd-blue-deep);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.language-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.language-button {
	max-width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	background: var(--sd-bg);
	color: var(--sd-blue-deep);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	font-weight: 700;
	text-align: center;
	overflow-wrap: anywhere;
	transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.language-button:hover,
.language-button:focus-visible {
	border-color: var(--sd-cyan);
	transform: translateY(-1px);
}

.language-button.is-active {
	background: var(--sd-blue);
	color: var(--sd-white);
	border-color: var(--sd-blue);
	box-shadow: inset 0 -3px 0 var(--sd-orange);
}

.guide-layout {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	min-width: 0;
}

.station-list {
	position: sticky;
	top: 18px;
	min-width: 0;
	padding: 16px;
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: 0 10px 30px rgba(2, 72, 102, 0.08);
}

.station-list__items {
	display: grid;
	gap: 8px;
}

.station-button {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 62px;
	padding: 8px;
	background: var(--sd-bg);
	color: var(--sd-text);
	text-align: left;
	border: 1px solid transparent;
	border-radius: var(--sd-radius);
	transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.station-button:hover,
.station-button:focus-visible {
	border-color: var(--sd-cyan);
	transform: translateY(-1px);
}

.station-button.is-active {
	background: var(--sd-blue);
	color: var(--sd-white);
	border-color: var(--sd-blue);
}

.station-button__number {
	display: grid;
	place-items: center;
	width: 44px;
	min-width: 0;
	height: 44px;
	background: var(--sd-white);
	color: var(--sd-blue);
	border: 1px solid rgba(2, 72, 102, 0.15);
	border-radius: var(--sd-radius);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

.station-button.is-active .station-button__number {
	background: var(--sd-cyan);
	color: var(--sd-blue);
	border-color: var(--sd-cyan);
}

.station-button__copy {
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.station-panels {
	min-width: 0;
}

.station-panel {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 0;
	min-width: 0;
	background: var(--sd-white);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
	box-shadow: var(--sd-shadow);
	overflow: hidden;
}

.station-media {
	min-height: 0;
	background: var(--sd-blue);
}

.station-media img {
	width: 100%;
	height: clamp(280px, 34vw, 420px);
	min-height: 0;
	object-fit: cover;
}

.station-media--fallback {
	display: grid;
	place-items: center;
	min-height: 320px;
	padding: 36px;
	background-color: var(--sd-blue);
	background-image: url("../images/footer-background.jpg");
	background-position: center;
	background-size: cover;
}

.station-media--fallback img {
	width: 150px;
	height: 210px;
	min-height: 0;
	object-fit: contain;
	opacity: 0.88;
}

.station-content {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	padding: 34px;
}

.station-content article {
	min-width: 0;
}

.station-content h2 {
	margin: 0 0 20px;
	color: var(--sd-blue-deep);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.18;
	overflow-wrap: anywhere;
}

.station-description {
	max-width: 100%;
	margin-bottom: 22px;
	color: var(--sd-text);
	overflow-wrap: anywhere;
}

.station-description h3 {
	margin: 0 0 8px;
	color: var(--sd-blue-deep);
	font-size: 17px;
	line-height: 1.3;
}

.station-description p {
	margin: 0 0 14px;
}

.station-description p:last-child {
	margin-bottom: 0;
}

.audio-player {
	min-width: 0;
	margin-top: 6px;
	padding: 16px;
	background: var(--sd-bg);
	border: 1px solid var(--sd-border);
	border-radius: var(--sd-radius);
}

.audio-player audio {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 42px;
}

.audio-empty {
	margin: 0;
	color: var(--sd-muted);
	font-weight: 600;
}

.site-footer {
	background-color: var(--sd-blue);
	background-image: url("../images/footer-background.jpg");
	background-position: center;
	background-size: cover;
	color: var(--sd-white);
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: min(1120px, calc(100% - 32px));
	min-height: 110px;
	margin: 0 auto;
	text-align: center;
}

.site-footer__mark {
	width: 34px;
	height: 48px;
	object-fit: contain;
	opacity: 0.72;
}

.site-footer p {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

@media (max-width: 900px) {
	.guide-layout {
		grid-template-columns: 1fr;
	}

	.station-list {
		position: static;
	}

	.station-list__items {
		display: flex;
		gap: 10px;
		padding-bottom: 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}

	.station-button {
		flex: 0 0 230px;
		scroll-snap-align: start;
	}

	.station-panel {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.station-media img {
		height: clamp(220px, 45vw, 360px);
		min-height: 0;
		object-fit: cover;
	}

	.station-media--fallback img {
		width: 120px;
		height: 160px;
	}

	.station-media--fallback {
		min-height: 240px;
	}
}

@media (max-width: 620px) {
	.site-brand {
		width: min(1120px, calc(100% - 24px));
		min-height: 78px;
		gap: 12px;
	}

	.site-brand__logo {
		width: 42px;
		height: 58px;
	}

	.site-brand__text {
		font-size: 13px;
	}

	.site-brand__text strong {
		font-size: 19px;
	}

	.guide-shell {
		width: min(1120px, calc(100% - 20px));
		padding: 24px 0 42px;
	}

	.guide-intro h1 {
		font-size: 28px;
	}

	.language-area,
	.station-list {
		padding: 12px;
	}

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

	.language-button {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		padding-right: 10px;
		padding-left: 10px;
		font-size: 14px;
	}

	.station-list h2 {
		margin-bottom: 10px;
		font-size: 17px;
	}

	.station-list__items {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
		gap: 8px;
		padding-bottom: 0;
		overflow: visible;
		scroll-snap-type: none;
	}

	.station-button {
		grid-template-columns: 1fr;
		place-items: center;
		min-height: 54px;
		padding: 5px;
		text-align: center;
		scroll-snap-align: none;
	}

	.station-button:hover,
	.station-button:focus-visible {
		transform: none;
	}

	.station-button__number {
		width: 40px;
		height: 40px;
		font-size: 15px;
	}

	.station-button__copy {
		display: none;
	}

	.station-panel {
		box-shadow: 0 10px 26px rgba(2, 72, 102, 0.11);
	}

	.station-media img {
		height: clamp(170px, 56vw, 240px);
	}

	.station-media--fallback {
		min-height: 170px;
		padding: 24px;
	}

	.station-media--fallback img {
		width: 90px;
		height: 126px;
	}

	.station-content {
		padding: 24px 18px;
	}

	.station-content article {
		display: flex;
		flex-direction: column;
	}

	.station-content h2 {
		margin-bottom: 16px;
		font-size: 23px;
	}

	.audio-player {
		order: 2;
		margin: 0 0 18px;
		padding: 12px;
	}

	.station-description {
		order: 3;
		margin-bottom: 0;
		font-size: 15px;
	}

	.site-footer__inner {
		flex-direction: column;
		gap: 8px;
		min-height: 92px;
		padding: 18px 0;
	}

	.site-footer__mark {
		width: 28px;
		height: 40px;
	}
}

@media (max-width: 380px) {
	.language-switcher {
		grid-template-columns: 1fr;
	}

	.station-content {
		padding-right: 14px;
		padding-left: 14px;
	}
}
