/* ==========================================================================
   Footer (plan 02) — board Footer.dc.html
   ========================================================================== */
#footer { background-color: var(--mk-footer); border-top: 2px solid #d4cac2; color: var(--mk-ink); }

/* ---- Bottom strip: copyright + payment logos on #e3dbd4 ---- */
#footer .footer-bottom.mk-footer-bottom { margin: 0; padding: 0; background: var(--mk-band); border-top: 1px solid #d4cac2; }
#footer .mk-footer-bottom .container {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	max-width: 1328px; padding: 16px 24px; font-size: 13px; line-height: 1.5; color: var(--mk-ink-2);
}
#footer .mk-footer-bottom .footer-copyright { margin: 0; color: var(--mk-ink-2); }
#footer .mk-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
#footer .mk-pay li { margin: 0; padding: 0; }
#footer .mk-pay img { display: block; width: auto; max-width: none; height: 24px; }
#footer .mk-pay__item--liqpay img { height: 18px; }
#footer .mk-pay__item--plata-mono img { height: 22px; }
@media (max-width: 575px) { #footer .mk-footer-bottom .container { padding: 16px; } }

/* ---- Columns: brand · Контакти · Каталог · Покупцям (CSS grid over Porto's Bootstrap columns) ---- */
/* 1280 px of content between 24 px gutters, as on the board and in the header (content starts at x=80 at 1440). */
#footer .footer-main > .container { max-width: 1328px; padding: 56px 24px 40px; }
/* Same widths as the board's flex: 1 1 220px / 1.4 1 280px / 1 1 200px / 1 1 200px with 3 × 40 px gaps. */
#footer .footer-main .row {
	display: grid; gap: 32px 40px; margin: 0;
	grid-template-columns: calc(220px + (100% - 1020px) / 4.4) calc(280px + (100% - 1020px) * 1.4 / 4.4) 1fr 1fr;
}
#footer .footer-main .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
#footer .footer-main .widget,
#footer .footer-main .textwidget { margin: 0; padding: 0; }
@media (max-width: 991px) { #footer .footer-main .row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) {
	#footer .footer-main > .container { padding: 40px 16px 32px; }
	#footer .footer-main .row { grid-template-columns: 1fr; }
}

#footer .mk-footer { font-size: 15px; line-height: 1.6; color: var(--mk-ink); }
#footer .mk-footer a { color: var(--mk-ink); text-decoration: none; }
#footer .mk-footer a:hover { color: var(--mk-red); }
#footer .mk-footer__title {
	display: flex; align-items: center; gap: 10px; margin: 0 0 16px;
	font-size: 16px; line-height: 1.6; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--mk-ink);
}
#footer .mk-footer__mark { flex: 0 0 auto; box-sizing: content-box; width: 10px; height: 10px; border: 2px solid var(--mk-red); }
#footer .mk-footer__list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
#footer .mk-footer__list li { margin: 0; padding: 0; border: 0; line-height: inherit; }
#footer .mk-footer__list li::before { content: none; }
#footer .mk-footer__list--contacts { gap: 12px; }
#footer .mk-footer__list--contacts li { display: flex; gap: 10px; }
#footer .mk-footer__list--contacts svg { flex: 0 0 18px; margin-top: 3px; color: var(--mk-ink); }
#footer .mk-footer__phone { font-weight: 500; }
#footer .mk-footer__small { font-size: 13px; color: var(--mk-ink-2); }
#footer .mk-footer__muted { color: var(--mk-ink-2); }
#footer .mk-nowrap { white-space: nowrap; }

/* brand column */
#footer .mk-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
#footer .mk-footer__logo img { display: block; width: 130px; height: auto; }
#footer .mk-footer__about { margin: 0; font-size: 14px; color: var(--mk-ink-2); }
#footer .mk-footer__docs { align-self: stretch; display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid #d4cac2; }
#footer .mk-footer__docs-title { font-weight: 700; font-size: 14px; }
#footer .mk-footer__docs a { font-size: 14px; }
#footer .mk-footer__fb {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; box-sizing: border-box;
	border: 1.5px solid var(--mk-ink); color: var(--mk-ink);
}
#footer .mk-footer__fb:hover,
#footer .mk-footer__fb:focus-visible { background: var(--mk-ink); color: #fff; }

/* ---- Phones (< 768 px): short footer instead of the columns — board MobileFooterOptions.dc.html, variant 2 ---- */
#footer .mk-footer-mob,
#footer .mk-footer-bottom__docs { display: none; }
@media (max-width: 767px) {
	#footer .footer-main { display: none; }
	#footer .mk-footer-mob { display: flex; flex-direction: column; gap: 16px; padding: 28px 16px 20px; font-size: 15px; line-height: 1.5; color: var(--mk-ink); }
	#footer .mk-footer-mob__logo { align-self: flex-start; }
	#footer .mk-footer-mob__logo img { display: block; width: 110px; height: auto; }
	#footer .mk-footer-mob__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	#footer .mk-footer-mob__btn {
		display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; box-sizing: border-box;
		border: 1.5px solid var(--mk-ink); border-radius: var(--mk-radius); color: var(--mk-ink); font-weight: 500; text-decoration: none;
	}
	#footer .mk-footer-mob__btn--dark,
	#footer .mk-footer-mob__btn--dark:hover { background: var(--mk-ink); color: #fff; }
	#footer .mk-footer-mob__info { margin: 0; font-size: 13px; color: var(--mk-ink-2); }
	#footer .mk-footer-mob__links {
		display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px;
		margin: 0; padding: 12px 0 0; border-top: 1px solid #d4cac2; list-style: none;
	}
	#footer .mk-footer-mob__links li { margin: 0; padding: 0; border: 0; line-height: inherit; }
	#footer .mk-footer-mob__links li::before { content: none; }
	#footer .mk-footer-mob__links a { display: block; padding: 9px 0; color: var(--mk-ink); text-decoration: none; }
	#footer .mk-footer-mob__links a:hover { color: var(--mk-red); }

	#footer .mk-footer-bottom .container { padding: 14px 16px; gap: 10px 8px; }
	#footer .mk-footer-bottom__docs { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 4px 12px; }
	#footer .mk-footer-bottom__docs a { color: var(--mk-ink-2); text-decoration: underline; }
	#footer .mk-pay { gap: 6px; }
	#footer .mk-pay img,
	#footer .mk-pay__item--plata-mono img { height: 18px; }
	#footer .mk-pay__item--liqpay,
	#footer .mk-pay__item--plata-mono { display: none; }
}
