/* Footer — dark: Figma popravki 295:3111 (desktop 1200×668) / 316:3258 (mobile 360×1358): two locations with their
   own hours, contact column (phones + e-mails), social icons in the legal row. Text 16px/1.2, legal 14px/1.2.
   Light (focused pages): legal row only — unchanged (81:1133, 154:730, 116:2197). */

.rn-footer {
	--link-hover: var(--c-white);        /* link hover on the dark footer: white (the global #58001C would fail contrast) */
	background: var(--c-antracit);
	color: var(--c-white);
	font-size: var(--fs-small);
	line-height: var(--lh-body);
}
.rn-footer:not(.rn-footer--light) {
	line-height: 1.2;                    /* footer_regular / footer_legal text styles */
}
.rn-footer a {
	color: var(--c-link-dark);
}
.rn-footer__inner {
	position: relative;
	padding: 29px var(--inset-mobile) 96px;
}

/* Mobile: one column — Kranj, its hours, Ljubljana, its hours, rule, contact (all 24 apart). */
.rn-footer__cols {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.rn-footer__place {
	display: contents;
}
.rn-footer__loc {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.rn-footer__loc-title {
	color: var(--c-link-dark);
}
.rn-footer__loc-name {
	font-weight: var(--fw-semibold);
}
.rn-footer__address {
	font-style: normal;
}
.rn-footer__map,
.rn-footer__row {
	display: flex;
	gap: 5px;
}
.rn-footer__map {
	align-items: center;
}
.rn-footer .rn-icon {
	color: var(--c-link-dark);
}
/* Hours: Line 18 (1px black) sits on the block top; title 12 below it, times 12 below the title. */
.rn-footer__hours-box {
	margin-top: -1px;
	padding-top: 12px;
	border-top: 1px solid var(--c-black);
}
.rn-footer__title {
	font-weight: var(--fw-semibold);
}
.rn-footer__hours {
	margin: 12px 0 0;
}
.rn-footer__hours-item + .rn-footer__hours-item,
.rn-footer__hours-note {
	margin-top: 6px;
}
.rn-footer__hours dt,
.rn-footer__hours dd {
	margin: 0;
}
/* Contact: phones (row box 202 high in Figma) then e-mails, 12 apart; text 6 below the icon top. */
.rn-footer__contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: -1px;
	padding-top: 24px;                   /* mobile: Line 18 at 705 → contact 729 */
	border-top: 1px solid var(--c-black);
}
.rn-footer__phones,
.rn-footer__emails {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 6px;
}
.rn-footer__phones li + li,
.rn-footer__emails li + li {
	margin-top: 6px;
}
.rn-footer__phones li > *,
.rn-footer__emails li > * {
	display: block;
}
.rn-footer__phones a,
.rn-footer__emails a {
	display: inline-block;               /* own line, but the underline runs only under the characters */
}
.rn-footer__phones strong {
	font-weight: var(--fw-bold);
}

/* "Shadow" above the legal row: a clipped 27px frame with a blurred black ellipse (50 %, blur 5) centred 3px above
   its top — only the soft lower half shows. Spans the content column (Figma legal_shadow 878 / 312). */
.rn-footer__shadow {
	display: block;
	position: relative;
	width: 100%;
	height: 25px;
	overflow: hidden;
	pointer-events: none;
}
.rn-footer__shadow::before {
	content: "";
	position: absolute;
	left: 0;
	top: -7px;                           /* centre at −3 */
	width: 100%;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5);
	filter: blur(5px);
	opacity: 0.3;                        /* softer shadow (21. 8.) */
}

.rn-footer:not(.rn-footer--light) .rn-footer__shadow {
	height: 27px;                        /* legal_shadow 27, ellipse 12 high at −9 (316:3258 / 295:3111) */
	margin-top: 48px;                    /* mobile: content ends 1060 → legal 1108 */
}
.rn-footer:not(.rn-footer--light) .rn-footer__shadow::before {
	top: -9px;
	height: 12px;
}

/* Legal row: 14px. Mobile: social icons first (24 below), then the three lines 6 apart. */
.rn-footer__legal {
	font-size: var(--fs-legal);
}
.rn-footer:not(.rn-footer--light) .rn-footer__legal {
	display: flex;
	flex-direction: column;
}
.rn-footer__legal-list li {
	margin-top: 8px;
}
.rn-footer:not(.rn-footer--light) .rn-footer__legal-list li {
	margin-top: 6px;
}
.rn-footer__social {
	order: -1;
	display: flex;
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}
.rn-footer .rn-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--c-link-dark);
	color: var(--c-antracit);
	transition: background-color var(--t-fast) var(--ease);
}
.rn-footer .rn-footer__social-link .rn-icon {
	color: inherit;
}
.rn-footer__social .rn-icon--facebook { width: 24px; height: 24px; }
.rn-footer__social .rn-icon--instagram,
.rn-footer__social .rn-icon--linkedin { width: 20px; height: 20px; }
.rn-footer__social .rn-icon--x { width: 17.5px; height: 17.5px; }
.rn-footer .rn-footer__social-link:focus-visible {
	color: var(--c-antracit);
	background: var(--c-white);
}
@media (hover: hover) {
	.rn-footer .rn-footer__social-link:hover {
		color: var(--c-antracit);
		background: var(--c-white);
	}
}

/* Light footer for focused pages (81:1133, 154:730, 116:2197): shadow line + legal row only. */
.rn-footer--light {
	--link-hover: var(--c-link-on-dark);
	background: var(--c-bg);
	color: var(--c-antracit);
}
.rn-footer--light a {
	color: var(--c-link);
}
.rn-footer--light .rn-footer__inner {
	padding: 104px var(--inset-mobile) 73px; /* Naročite se 106:1606: content end 2662 → frame 2766 (centre 2769) */
}
.rn-focused-thanks .rn-footer--light .rn-footer__inner {
	padding-top: 62px;                   /* Hvala 154:821: button end 957 → frame 1019 (centre 1022) */
}
.rn-focused-404 .rn-footer--light .rn-footer__inner {
	padding-top: 55px;                   /* 404 118:2309: list end ≈1491 → frame 1546 (centre 1549) */
}
.rn-footer--light .rn-footer__shadow {
	margin-top: 0;
}
.rn-footer--light .rn-footer__legal {
	margin-top: -19px;                   /* legal 3px under the ellipse centre = frame top + 6 (every mobile frame) */
}
/* Naročite se only (21. 8.): no pull-up on mobile. */
@media (max-width: 899.98px) {
	.rn-focused-appointment .rn-footer--light .rn-footer__legal {
		margin-top: 0;
	}
}

@media (min-width: 900px) {
	.rn-footer__inner {
		padding: 41px var(--inset-r) 141px var(--inset-l); /* legal ends 527 → frame 668 */
	}
	/* Kranj | Ljubljana | contact (260 / 48 gaps, flexing below 1200); hours on a shared second row (24 below). */
	.rn-footer__cols {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 260fr));
		grid-template-rows: auto auto;
		gap: 24px 48px;
	}
	.rn-footer__place--1 > * { grid-column: 1; }
	.rn-footer__place--2 > * { grid-column: 2; }
	.rn-footer__loc { grid-row: 1; }
	.rn-footer__hours-box { grid-row: 2; }
	.rn-footer__contact {
		grid-column: 3;
		grid-row: 1 / 3;
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}
	.rn-footer__shadow {
		height: 27px;
	}
	.rn-footer__shadow::before {
		top: -9px;
		height: 12px;
	}
	.rn-footer__legal,
	.rn-footer:not(.rn-footer--light) .rn-footer__legal {
		display: flex;
		flex-direction: row;
		align-items: baseline;
	}
	.rn-footer:not(.rn-footer--light) .rn-footer__shadow {
		margin-top: 56px;                /* columns end 404 → legal 460 */
	}
	/* Dark: legal text left, social right, both centred in a 40px row (text at +11.5). */
	.rn-footer:not(.rn-footer--light) .rn-footer__legal {
		flex-wrap: wrap;                 /* ~900px: the icons drop under the text instead of overflowing */
		row-gap: 16px;
		align-items: center;
		min-height: 40px;
	}
	.rn-footer__social {
		order: 0;
		margin: 0 0 0 auto;
	}
	.rn-footer:not(.rn-footer--light) .rn-footer__legal-list li {
		margin-top: 0;
	}
	.rn-footer__legal-list {
		display: flex;
	}
	.rn-footer__legal-list li {
		margin-top: 0;
	}
	.rn-footer__legal-list li::before,
	.rn-footer__legal-nav::before {
		content: "\00a0\00a0\00b7\00a0\00a0";
		color: var(--c-sep);
	}
	.rn-footer__legal-nav {
		display: flex;
	}
	.rn-footer__legal-list li:first-child::before {
		content: none;
	}
	.rn-footer--light .rn-footer__inner {
		display: block;
		min-height: 0;
		padding: 69px var(--inset-r) 73px var(--inset-l); /* Naročite se 81:1133: content end 1399 → frame top 1468 (centre 1471) */
	}
	.rn-focused-thanks .rn-footer--light .rn-footer__inner {
		padding-top: 80px;              /* Hvala 154:730: illustration end 808 → frame 888 (centre 891) */
	}
	.rn-focused-404 .rn-footer--light .rn-footer__inner {
		padding-top: 66px;              /* 404 116:2197: text ends 819 → frame 885 (centre 888) */
	}
	.rn-footer--light .rn-footer__shadow,
	.rn-footer--light .rn-footer__legal {
		position: relative;
		top: auto;
		left: auto;
	}
	.rn-footer--light .rn-footer__shadow {
		left: -82px;                 /* frame spans 120 → 1082 */
		width: calc(100% + 84px);
	}
	.rn-footer--light .rn-footer__legal {
		margin-top: 6px;                /* legal 30px below the ellipse centre = frame top + 33 (81:1133, 116:2197) */
	}
	.rn-focused-thanks .rn-footer--light .rn-footer__legal {
		margin-top: -21px;              /* Hvala 154:730: legal 3px below the centre = frame top + 6 */
	}
}
