/* Unified school footer — site sections and legal links. */
#footer.linmen-site-footer,
#footer.linmen-site-footer *,
#footer.linmen-site-footer *::before,
#footer.linmen-site-footer *::after { box-sizing: border-box; }
#footer.linmen-site-footer {
  display: block;
  clear: both;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 48px);
  border: 0;
  overflow: visible;
  background: #18374d;
  color: #dce7ef;
  font-family: Helvetica, Arial, sans-serif;
}
#footer.linmen-site-footer .linmen-site-footer__inner {
  max-width: 1150px;
  margin: 0 auto;
}
#footer.linmen-site-footer .linmen-site-footer__intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 39px 0 30px;
  border-bottom: 1px solid rgba(220,233,245,.16);
}
#footer.linmen-site-footer .linmen-site-footer__brand { min-width: 0; max-width: 670px; }
#footer.linmen-site-footer .linmen-site-footer__brand-link {
  display: inline-block;
  color: #fff;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 750;
  text-decoration: none;
}
#footer.linmen-site-footer .linmen-site-footer__brand-link:hover { text-decoration: underline; }
#footer.linmen-site-footer .linmen-site-footer__brand p {
  margin: 8px 0 0;
  color: #c5d7e3;
  font-size: 13px;
  line-height: 1.65;
}
#footer.linmen-site-footer .linmen-site-footer__cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: none;
  max-width: 100%;
  padding: 12px 16px;
  background: #eec785;
  border-radius: 8px;
  color: #19374b;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.4;
  transition: filter .15s ease;
}
#footer.linmen-site-footer .linmen-site-footer__cta:hover,
#footer.linmen-site-footer .linmen-site-footer__cta:focus-visible { filter: brightness(1.08); text-decoration: underline; }
#footer.linmen-site-footer .linmen-site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,.95fr) minmax(0,.87fr) minmax(0,.73fr) minmax(0,.76fr);
  column-gap: clamp(15px, 2.5vw, 35px);
  row-gap: 25px;
  padding: 32px 0 37px;
}
#footer.linmen-site-footer .linmen-site-footer__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
}
#footer.linmen-site-footer .linmen-site-footer__column h3,
#footer.linmen-site-footer .linmen-site-footer__channels h3 {
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
  margin: 0 0 8px;
  padding: 0;
  font-family: Helvetica, Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
#footer.linmen-site-footer .linmen-site-footer__column a,
#footer.linmen-site-footer .linmen-site-footer__channel-links a {
  color: #c8dae7;
  font-size: 13px;
  line-height: 1.52;
  font-weight: 400;
  margin: 0;
  padding: 0;
  text-decoration: none;
  overflow-wrap: break-word;
}
#footer.linmen-site-footer .linmen-site-footer__column a:hover,
#footer.linmen-site-footer .linmen-site-footer__column a:focus-visible,
#footer.linmen-site-footer .linmen-site-footer__channel-links a:hover,
#footer.linmen-site-footer .linmen-site-footer__channel-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#footer.linmen-site-footer .linmen-site-footer__channels {
  display: flex;
  gap: 16px 33px;
  align-items: flex-start;
  padding: 20px 0 22px;
  border-top: 1px solid rgba(220,233,245,.16);
}
#footer.linmen-site-footer .linmen-site-footer__channels h3 {
  flex: 0 0 162px;
  margin: 0;
}
#footer.linmen-site-footer .linmen-site-footer__channel-links {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px 25px;
}
#footer.linmen-site-footer .linmen-site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px 24px;
  padding: 17px 0 24px;
  border-top: 1px solid rgba(220,233,245,.16);
  color: #b5cbd9;
  font-size: 12px;
  line-height: 1.5;
}
#footer.linmen-site-footer .linmen-site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 17px;
}
#footer.linmen-site-footer .linmen-site-footer__legal a {
  color: #c8dae7;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
}
#footer.linmen-site-footer .linmen-site-footer__legal a:hover,
#footer.linmen-site-footer .linmen-site-footer__legal a:focus-visible { text-decoration: underline; }
@media(max-width: 1040px) {
  #footer.linmen-site-footer .linmen-site-footer__grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px 26px; }
}
@media(max-width: 700px) {
  #footer.linmen-site-footer .linmen-site-footer__intro { flex-direction: column; align-items: flex-start; }
  #footer.linmen-site-footer .linmen-site-footer__grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  #footer.linmen-site-footer .linmen-site-footer__channels { flex-direction: column; }
  #footer.linmen-site-footer .linmen-site-footer__channels h3 { flex-basis: auto; }
  #footer.linmen-site-footer .linmen-site-footer__bottom { flex-direction: column; }
  #footer.linmen-site-footer .linmen-site-footer__legal { justify-content: flex-start; }
}
@media(max-width: 470px) {
  #footer.linmen-site-footer { padding: 0 20px; }
  #footer.linmen-site-footer .linmen-site-footer__intro { padding-top: 30px; }
  #footer.linmen-site-footer .linmen-site-footer__cta { width: 100%; }
  #footer.linmen-site-footer .linmen-site-footer__grid { grid-template-columns: 1fr; gap: 25px; padding: 29px 0 32px; }
  #footer.linmen-site-footer .linmen-site-footer__channel-links { flex-direction: column; gap: 10px; }
}


/* Footer editorial area: keep Telegram communities distinct from contact links. */
#footer.linmen-site-footer .linmen-site-footer__channel-groups{
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(0,1.55fr);
  align-items:start;
  flex:1;
  gap:16px 28px;
  min-width:0;
}
#footer.linmen-site-footer .linmen-site-footer__channel-group{min-width:0}
#footer.linmen-site-footer .linmen-site-footer__channel-group h4{
  margin:0 0 8px;
  padding:0;
  font:700 12px/1.4 Helvetica,Arial,sans-serif;
  color:#9fcadd;
  text-transform:none;
  letter-spacing:.025em;
}
#footer.linmen-site-footer .linmen-site-footer__channel-group .linmen-site-footer__channel-links{
  align-items:flex-start;
  gap:8px 18px;
}
@media(max-width:850px){
  #footer.linmen-site-footer .linmen-site-footer__channel-groups{grid-template-columns:1fr;gap:18px}
}
@media(max-width:700px){
  #footer.linmen-site-footer .linmen-site-footer__channel-groups{width:100%}
}
