.footer {
  overflow: hidden;
  padding: 2rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 225px minmax(0, 456px) minmax(0, 400px) 207px;
  justify-content: space-between;
  gap: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(26, 24, 24, 0.2);
}

@media (min-width: 601px) {
  .footer__inner {
    padding-inline: 0.625rem;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.375rem;
  padding: 0 1.25rem;
  color: #a2a2a2;
  background: #f2f2f2;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__brand img {
  width: 2.9375rem;
  height: auto;
}

.footer__brand span {
  color: #b7b7b7;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.footer__brand-wrap p {
  margin: 0.6rem 0 0;
  color: #a1a1a1;
  font-size: 0.875rem;
  line-height: 1;
}

.footer__offer p {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.footer__offer a {
  display: inline-flex;
  gap: 0.65rem;
  margin-top: 2rem;
  color: #fb4b13;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: underline;
  text-transform: uppercase;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: start;
  justify-self: center;
  max-width: 400px;
  gap: 20px 15px;
  padding-top: 0.2rem;
}

.footer__menu {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: footer-nav;
}

.footer__menu li {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-increment: footer-nav;
}

.footer__menu a::before {
	margin-right: 0.55rem;
	color: #b7b7b7;
	content: "0." counter(footer-nav);
	font-size: 0.75rem;
	font-weight: 400;
}

.footer__contacts {
  display: grid;
  gap: 0.85rem;
}

.footer__email {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.375rem;
  padding: 0.7rem 1rem;
  color: #1a1818;
  background: #f2f2f2;
  border-radius: 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.375;
  text-decoration: none;
}

.footer__email small {
  display: block;
  margin-bottom: 0.25rem;
  color: #a1a1a1;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
}

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.375rem;
  padding: 0 1rem;
  color: #fff;
  background: #fb4b13;
  border-radius: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.footer__mark {
  width: min(112.5rem, 100%);
  margin: 4.8125rem auto 0;
  pointer-events: none;
}

.footer__brand,
.footer__email,
.footer__cta { transition: background-color .4s ease, color .3s ease; }
.footer .footer__brand:hover, .footer .footer__brand:focus-visible,
.footer .footer__email:hover, .footer .footer__email:focus-visible,
.header .footer__email:hover, .header .footer__email:focus-visible { color: #1a1818; background: #ebebeb; }
.footer__email:visited { color: #1a1818; }
.footer__cta:visited { color: #fff; }
.footer__cta:hover, .footer__cta:focus-visible { color: #fff; background: #1a1818; }
.footer__nav a:hover, .footer__nav a:focus-visible,
.footer__menu .current-menu-item > a { color: #f55217; }
.footer__offer a:hover, .footer__offer a:focus-visible { color: #1a1818; }

.footer__mark img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1025px) and (max-width: 1500px) {
  .footer__inner { grid-template-columns: 225px minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .footer__offer { grid-column: 2; }
  .footer__nav { grid-column: 3; }
  .footer__contacts { grid-column: 1; grid-row: 2; width: 207px; }
}

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 225px minmax(0,1fr); gap: 60px 32px; width: calc(100% - 40px); padding: 44px 0 0; }
  .footer__brand-wrap { grid-column: 1; grid-row: 1; }
  .footer__offer { grid-column: 2; grid-row: 1; }
  .footer__offer p { font-size: 28px; line-height: 1; }
  .footer__offer a { margin-top: 40px; }
  .footer__nav { grid-column: 1 / -1; grid-row: 2; width: 55%; display: flex; flex-wrap: wrap; justify-content: center; align-content: start; gap: 25px 20px; }
  .footer__menu { display: contents; }
  .footer__contacts { grid-column: 2; grid-row: 2; width: 207px; justify-self: end; gap: 15px; }
  .footer__mark { width: calc(100% - 40px); margin-top: 110px; }
}

@media (max-width: 767px) {
  .footer { padding: 32px 0 0; }
  .footer__inner { display: flex; flex-direction: column; align-items: stretch; gap: 40px; width: calc(100% - 30px); padding: 20px 0 0; }
  .footer__offer { order: 0; }
  .footer__offer p { font-size: 24px; line-height: 1; font-weight: 600; }
  .footer__offer a { display: flex; justify-content: flex-end; margin-top: 70px; }
  .footer__nav { order: 1; width: 100%; gap: 20px 15px; padding: 0; }
  .footer__nav a { white-space: nowrap; font-weight: 500; }
  .footer__menu a::before { margin-right: 8px; font-size: 10px; }
  .footer__contacts { order: 2; width: 192px; align-self: flex-start; margin-top: 5px; }
  .footer__email { font-size: 14px; line-height: 18px; min-height: 70px; padding: 15px 20px; }
  .footer__email small { font-size: 14px; margin-bottom: 5px; }
  .footer__cta { min-height: 70px; padding-inline: 20px; }
  .footer__brand-wrap { order: 3; width: 192px; margin-top: -25px; }
  .footer__brand { min-height: 70px; padding-inline: 20px; }
  .footer__brand-wrap p { font-size: 14px; line-height: 18px; margin-top: 15px; }
  .footer__mark { width: calc(100% - 30px); margin: 50px auto 0; }
}
