.page-end {
  display: grid;
  grid-template-columns: 1fr 3fr;
  height: 200px;
  color: var(--color-text);
  gap: 40px;
  padding: 40px;
  width: 100%; /* fix: was fit-content */
  min-width: 0; /* fix: was 1240px */
  max-width: 1240px; /* new: limit max width */
  margin: 0 auto; /* center on wide screens */
  box-sizing: border-box;
  position: relative;
}
body > .wrapper > .page-end {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.page-end__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  justify-content: flex-start;
  height: 100%;
}
.page-end__logo {
  width: auto;
  height: 32px;
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0;
  color: #fff;
  gap: 4px;
  align-self: flex-start;
  margin-left: -6px; /* сдвиг логотипа немного левее */
}
.page-end__logo-img,
.page-end__logo-text {
  height: 32px;
  vertical-align: middle;
  display: inline-block;
  /* Для лучшего выравнивания по центру */
  margin-top: 0;
  margin-bottom: 0;
  line-height: 32px;
}
.page-end__logo-part1 {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--color-text);
}
.page-end__logo-part2 {
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}
.page-end__icons {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  margin-top: 0;
  align-items: center;
}
.icon {
  width: 20px;
  height: 20px;
  background: var(--color-secondary);
  border-radius: 50%;
  display: inline-block;
}
.page-end__right {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  justify-content: end;
  width: 520px;
  margin-left: auto;
  justify-self: end;
}
.menu-col {
  display: flex;
  flex-direction: column;
}
.menu-title {
  border-bottom: 0px solid rgb(233, 234, 236);
  border-left: 0px solid rgb(233, 234, 236);
  border-right: 0px solid rgb(233, 234, 236);
  border-top: 0px solid rgb(233, 234, 236);
  box-sizing: border-box;
  color: #fff;
  color-scheme: light dark;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-size: 16px;
  font-variation-settings: normal;
  font-weight: 700;
  height: 24px;
  line-height: 24px;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  tab-size: 4;
  width: 160px;
  -webkit-font-smoothing: antialiased;
}
.menu-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu-col li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}
.menu-col li, .menu-col li a {
  align-items: center;
  border-bottom: 0px solid rgb(134, 139, 148);
  border-left: 0px solid rgb(134, 139, 148);
  border-right: 0px solid rgb(134, 139, 148);
  border-top: 0px solid rgb(134, 139, 148);
  box-sizing: border-box;
  color: rgb(134, 139, 148);
  color-scheme: light dark;
  cursor: auto;
  display: flex;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-size: 14px;
  font-variation-settings: normal;
  height: 24px;
  line-height: 24px;
  margin-bottom: 8px;
  overflow-wrap: break-word;
  tab-size: 4;
  text-decoration: none;
  width: 160px;
  -webkit-font-smoothing: antialiased;
}
.menu-col li a {
  line-height: 15px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.menu-col li a:hover {
  text-decoration: underline;
}
.menu-col li.menu-item-gap {
  margin-top: 18px;
}
.page-end__divider {
  background-color: rgb(29, 32, 37);
  border-bottom-color: rgb(233, 234, 236);
  border-bottom-style: solid;
  border-bottom-width: 0px;
  border-left-color: rgb(233, 234, 236);
  border-left-style: solid;
  border-left-width: 0px;
  border-right-color: rgb(233, 234, 236);
  border-right-style: solid;
  border-right-width: 0px;
  border-top-color: rgb(233, 234, 236);
  border-top-style: solid;
  border-top-width: 0px;
  box-sizing: border-box;
  color: rgb(233, 234, 236);
  color-scheme: light dark;
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  height: 1px;
  line-height: 24px;
  margin-bottom: 16px;
  margin-top: 16px;
  overflow-wrap: break-word;
  tab-size: 4;
  width: 100%; /* fix: was 1240px */
  max-width: 1240px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}
.page-end__copyright {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: 0;
  margin-bottom: 0;
  letter-spacing: 0.02em;
  padding: 40px;
}
@media (max-width: 1240px) {
  .page-end {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .page-end__divider {
    max-width: 100vw;
  }
}
@media (max-width: 900px) {
  .page-end__right {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .page-end {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    padding: 20px 4px;
    max-width: 100vw;
  }
  .page-end__right {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
  }
  .page-end__left {
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .page-end__divider {
    max-width: 100vw;
  }
}
@media (max-width: 400px) {
  .page-end__right {
    grid-template-columns: 1fr;
    width: 100%;
  }
}
