/* Editorial footer: one blue field, short columns, marks and a pattern baseline. */
.g-page .g-footer{
  min-height:100svh;height:auto;padding:clamp(32px,6svh,64px) 0 0;
  display:flex;flex-direction:column;overflow:visible;background:#3d328a;color:#f6f2e9;
}
.g-footer>.g-wrap{
  flex:1 0 auto;min-height:auto;display:flex;flex-direction:column;
  justify-content:space-between;gap:clamp(24px,4svh,44px);
}
.g-footer .g-footer-main{
  display:grid;grid-template-columns:1.25fr 1fr .65fr;align-items:start;
  gap:clamp(28px,5vw,80px);margin:0;
}
.g-footer .g-footer-brand .g-logo{display:inline-flex;flex-direction:column;align-items:flex-start;gap:15px;max-width:100%}
.g-footer .g-footer-brand .g-logo img{display:block;width:clamp(105px,11vw,155px);height:auto}
.g-footer .g-footer-brand .g-logo span{padding:0;border:0;font-size:1rem;line-height:1.3;letter-spacing:.025em}
.g-footer h2.g-footer-label{margin:2px 0 20px;font:400 .875rem/1.4 var(--g-body);letter-spacing:.045em;opacity:.8}
.g-footer .g-contact-mail{font-size:clamp(1.125rem,1.7vw,1.5rem);line-height:1.35;margin:0;border:0;overflow-wrap:anywhere}
.g-footer .g-footer-contact address{font-size:1rem;line-height:1.5;font-style:normal;margin-top:12px}
.g-footer .g-footer-links{display:block;padding:0}
.g-footer .g-footer-links nav{display:grid;grid-template-columns:1fr;gap:10px}
.g-footer .g-footer-links nav a{font-size:1.125rem;line-height:1.45;justify-self:start}
.g-footer a{text-decoration:none}
.g-footer a:hover{text-decoration:underline;text-underline-offset:5px}
.g-footer .g-logo:hover{text-decoration:none}
.g-footer .g-footer-partners{
  display:flex;justify-content:flex-end;align-items:center;gap:32px;
  border:0;padding:0;
}
.g-footer .g-national{flex:0 0 146px;width:146px;height:120px;overflow:hidden;mix-blend-mode:screen}
.g-footer .g-national img{display:block;width:300px;height:auto;max-width:none;margin:-34px 0 0 -68px;filter:grayscale(1) invert(1) contrast(10);mix-blend-mode:screen}
.g-footer .g-ministry{display:flex;align-items:center;gap:16px;max-width:350px;font-size:.8125rem;line-height:1.4;letter-spacing:.025em}
.g-footer .g-ministry img{width:60px;height:auto;flex-shrink:0}
.g-footer .g-footer-bottom{
  display:grid;grid-template-columns:1fr 1fr 1.65fr;align-items:start;
  gap:24px;padding:0 0 24px;font-size:.75rem;line-height:1.5;opacity:.85;
}
.g-footer .g-trademark-note{max-width:520px;order:0}
.g-footer .g-footer-photo-credit{display:block;margin-top:10px;max-width:300px;font:inherit}
.g-footer .g-footer-photo-credit a{text-decoration:underline;text-underline-offset:3px}
.g-footer .g-footer-pattern{
  display:block;flex:0 0 clamp(95px,18svh,180px);height:clamp(95px,18svh,180px);margin:0;
  background-position:center bottom;background-size:auto clamp(155px,25svh,250px);
  filter:brightness(0) invert(1);opacity:.65;
}
@media(max-width:900px){
  .g-footer .g-footer-main{grid-template-columns:1fr 1fr;gap:32px}
  .g-footer .g-footer-brand{grid-column:1/-1}
  .g-footer .g-footer-brand .g-logo{flex-direction:row;align-items:flex-end;gap:24px}
  .g-footer .g-footer-brand .g-logo img{width:105px}
  .g-footer .g-footer-brand .g-logo span{max-width:100px}
  .g-footer .g-footer-bottom{grid-template-columns:1fr 1fr}
  .g-footer .g-trademark-note{grid-column:1/-1;grid-row:2;max-width:620px}
  .g-footer .g-footer-bottom>span:last-child{text-align:right}
}
@media(max-width:560px){
  .g-page .g-footer{min-height:100svh;padding-top:36px}
  .g-footer>.g-wrap{gap:32px}
  .g-footer .g-footer-main{grid-template-columns:1fr;gap:28px}
  .g-footer .g-footer-brand{grid-column:auto}
  .g-footer .g-footer-brand .g-logo{flex-direction:column;align-items:flex-start;gap:12px}
  .g-footer .g-footer-brand .g-logo span{max-width:none}
  .g-footer h2.g-footer-label{margin-bottom:12px}
  .g-footer .g-footer-links nav{display:flex;flex-wrap:wrap;gap:12px 24px}
  .g-footer .g-footer-partners{flex-wrap:wrap;justify-content:flex-start;gap:28px}
  .g-footer .g-ministry{max-width:100%;font-size:.75rem}
  .g-footer .g-footer-bottom{gap:12px 20px}
  .g-footer .g-footer-pattern{flex-basis:100px;height:100px;background-size:auto 160px}
}
@media(max-height:600px) and (min-width:901px){
  .g-page .g-footer{padding-top:24px}
  .g-footer>.g-wrap{gap:20px}
  .g-footer .g-footer-brand .g-logo img{width:105px}
  .g-footer .g-footer-pattern{flex-basis:80px;height:80px;background-size:auto 140px}
}
.g-readable .g-footer{background:#000;color:#fff;height:auto}
.g-readable .g-footer .g-footer-main,.g-readable .g-footer .g-footer-bottom{grid-template-columns:1fr}
.g-readable .g-footer .g-footer-partners{flex-wrap:wrap}
.g-readable .g-footer .g-footer-bottom>span{grid-column:auto;grid-row:auto;text-align:left}
.g-readable .g-footer a,.g-readable .g-footer address,.g-readable .g-footer .g-footer-bottom,.g-readable .g-footer .g-ministry{font-size:1.4375rem}
.g-readable .g-footer .g-footer-pattern{display:none}

/* Match the main site's pattern artwork, crop and responsive height. */
.g-footer .g-contact-mail{font-size:1rem;font-weight:400}
.g-footer .g-footer-pattern{flex:0 0 150px;height:150px;background-image:url("/guide-assets/20261031-kislovodsk-v1/guide-draft/optimized/20260924/brand-pattern-blue-horizontal-2dfc105e38-1920.webp");background-size:cover;background-position:center 44%;opacity:.58}
.g-footer .g-footer-bottom>span:last-child{text-align:left}
@media(max-width:767px){.g-footer .g-footer-pattern{flex-basis:96px;height:96px}}

/* Align only the legal row; keep the approved main and partner layout intact. */
@media(min-width:901px){
 .g-footer .g-footer-bottom[data-aligned]{grid-template-columns:var(--copyright-start) var(--copyright-width) minmax(0,1fr);column-gap:0}
 .g-footer .g-footer-bottom[data-aligned]>span:not(:last-child){padding-right:16px}
}
