.fdt {
	--fdt-primary: #087f5b;
	--fdt-background: #fff;
	--fdt-text: #212529;
	--fdt-border: #dee2e6;

	box-sizing: border-box;
	color: var(--fdt-text);
	font: inherit;
}

.fdt *,
.fdt *::before,
.fdt *::after {
	box-sizing: inherit;
}

.fdt a {
	color: var(--fdt-primary);
}

.fdt a:hover,
.fdt a:focus-visible {
	text-decoration-thickness: 0.12em;
}

.fdt__period {
	margin: 0 0 0.75rem;
	color: var(--fdt-text);
	font-size: 0.88em;
	font-weight: 600;
	text-align: center;
}

.fdt__current-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
}

.fdt__current-card {
	flex: 1 1 13rem;
	max-width: 16rem;
	min-width: 0;
	overflow: hidden;
	margin: 0;
	background: var(--fdt-background);
	border: 1px solid var(--fdt-border);
	border-radius: 0.4rem;
}

.fdt__current-image {
	display: block;
	width: 100%;
	height: 7rem;
	object-fit: cover;
	background: var(--fdt-border);
}

.fdt__current-image--placeholder {
	background:
		linear-gradient(135deg, transparent 45%, var(--fdt-border) 45%, var(--fdt-border) 55%, transparent 55%),
		var(--fdt-background);
}

.fdt__current-body {
	min-width: 0;
	padding: 0.7rem 0.75rem 0.8rem;
	text-align: center;
}

.fdt__name,
.fdt__address {
	margin: 0;
}

.fdt__name {
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.25;
}

.fdt__address {
	margin-top: 0.25rem;
	font-size: 0.82em;
	line-height: 1.35;
}

.fdt__contacts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem 0.65rem;
	margin-top: 0.55rem;
}

.fdt__contact {
	font-size: 0.8em;
	font-weight: 600;
}

.fdt__table-scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--fdt-border);
	background: var(--fdt-background);
	-webkit-overflow-scrolling: touch;
}

.fdt__table-scroll:focus-visible {
	outline: 2px solid var(--fdt-primary);
	outline-offset: 2px;
}

.fdt__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	color: var(--fdt-text);
	background: var(--fdt-background);
	font: inherit;
}

.fdt__table caption {
	padding: 0.9rem 1rem;
	color: var(--fdt-text);
	background: var(--fdt-background);
	border-bottom: 3px solid var(--fdt-primary);
	font-size: 1em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
}

.fdt__table th,
.fdt__table td {
	padding: 0.65rem 0.75rem;
	vertical-align: middle;
	border-right: 1px solid var(--fdt-border);
	border-bottom: 1px solid var(--fdt-border);
	text-align: left;
}

.fdt__table th:last-child,
.fdt__table td:last-child {
	border-right: 0;
}

.fdt__table tbody tr:last-child th,
.fdt__table tbody tr:last-child td {
	border-bottom: 0;
}

.fdt__month-table {
	min-width: 44rem;
	font-size: 0.9em;
}

.fdt__weekday {
	width: 8.5rem;
	font-weight: 600;
}

.fdt__day-number {
	width: 4rem;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.fdt__duty-pharmacy {
	min-width: 10rem;
	font-weight: 600;
	text-transform: uppercase;
}

.fdt__pharmacies-table {
	min-width: 42rem;
}

.fdt__pharmacies-table thead th {
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
	border-bottom: 3px solid var(--fdt-text);
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.fdt__pharmacies-table tbody th,
.fdt__pharmacies-table tbody td {
	text-align: center;
}

.fdt__directory-name {
	width: 34%;
	font-weight: 700;
}

.fdt__directory-address {
	width: 34%;
	color: var(--fdt-primary);
	font-weight: 600;
	text-transform: uppercase;
}

.fdt__directory-phone {
	width: 32%;
	font-variant-numeric: tabular-nums;
}

.fdt__notice {
	margin: 0;
	padding: 1rem;
	color: var(--fdt-text);
	background: var(--fdt-background);
	border: 1px solid var(--fdt-border);
	border-left: 0.25rem solid var(--fdt-primary);
	border-radius: 0.35rem;
}

.fdt__visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

@media (max-width: 420px) {
	.fdt__current-card {
		flex-basis: 100%;
		max-width: 100%;
	}

	.fdt__current-image {
		height: 9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fdt *,
	.fdt *::before,
	.fdt *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
