/* Site footer (Figma 24 Footer desktop, M24 Footer phone). Loads on every page. */

.site-footer {
	margin: 0;
	padding: 72px 0 32px;
	border: 0;
	background: #071a30;
	box-shadow: none;
	color: #c5d0e0;
	font-size: 15px;
	overflow: visible;
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #ffcb05; }
.site-footer .footer__phone:hover { color: #ffcb05; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer h2 { margin: 0; color: #ffcb05; font-size: 14px; font-weight: 900; line-height: normal; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer .footer__m { display: none; }

.footer__in { max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

.footer__top { display: flex; align-items: flex-start; gap: 40px; }

.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer__logo { display: block; box-sizing: content-box; width: 176px; padding: 14px 18px; border-radius: 12px; background: #fff; }
.footer__logo img { display: block; width: 176px; height: 79px; object-fit: contain; }
.footer__tag { margin: 0; font-size: 15px; line-height: 24px; }
.footer__open { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.footer__open i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }

.footer__cols { display: contents; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col li { line-height: normal; white-space: nowrap; }

.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.site-footer .footer__phone { color: #fff; font-size: 28px; font-weight: 900; line-height: 32px; letter-spacing: -.05em; white-space: nowrap; }
.footer__email { line-height: normal; word-break: break-all; }
.footer__btn { display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; width: 100%; height: 52px; padding: 0 24px; border-radius: 5px; font-size: 16px; font-weight: 900; line-height: 20px; white-space: nowrap; }
.site-footer .footer__btn--book { background: #ffcb05; color: #133963; }
.site-footer .footer__btn--book:hover { background: #ffd84a; color: #133963; }
.site-footer .footer__btn--call { border: 1.5px solid #fff; color: #fff; }
.site-footer .footer__btn--call:hover { background: #fff; color: #133963; }
.footer__btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }

.footer__rule { height: 1px; margin: 48px 0; border: 0; background: rgba(255, 255, 255, .12); }

.footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 13px; line-height: normal; }
.footer__legal p { margin: 0; }
.footer__sep { white-space: pre; }

/* Desktop: brand | services | property | company | contact in one row (widths from the design) */
@media (min-width: 1024px) {
	.footer__brand { flex: none; width: 330px; }
	.footer__cols { display: contents; }
	.footer__col--services { flex: none; width: 220px; order: 2; }
	.footer__col--property { flex: 1 0 0; order: 3; }
	.footer__col--company { flex: 1 0 0; order: 4; }
	.footer__contact { flex: none; width: 250px; order: 5; }
	.footer__brand { order: 1; }
	.footer__sep { white-space: pre; }
}

/* Tablet and phone: logo, tagline and contact first, then the link columns */
@media (max-width: 1023px) {
	.site-footer { padding: 48px 0 112px; }
	.footer__in { padding-inline: 20px; }
	.site-footer .footer__d { display: none; }
	.site-footer .footer__m { display: inline; }
	.site-footer div.footer__m { display: block; }
	.site-footer li.footer__m { display: list-item; }

	.footer__top { display: flex; flex-direction: column; gap: 28px; }
	.footer__brand { display: contents; }
	.footer__logo { order: 1; align-self: flex-start; width: 150px; padding: 12px 16px; }
	.footer__logo img { width: 150px; height: 67px; }
	.footer__tag { order: 2; }
	.footer__contact { order: 3; gap: 12px; width: 100%; }
	.site-footer h2 { font-size: 13px; letter-spacing: .04em; }
	.footer__phone { font-size: 30px; line-height: 35px; letter-spacing: -.05em; }

	.footer__cols { order: 4; display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "services property" "services company"; column-gap: 20px; row-gap: 11px; width: 100%; }
	.footer__col { gap: 11px; font-size: 14px; }
	.footer__col ul { gap: 11px; }
	.footer__col--services { grid-area: services; }
	.footer__col--property { grid-area: property; }
	.footer__col--company { grid-area: company; }

	.footer__rule { margin: 28px 0; }
	.footer__legal { display: block; font-size: 12px; line-height: 20px; }
	.footer__legal p { margin: 0; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.footer__in { padding-inline: 32px; }
}
