/* FinKontur — full-height crisp photo contacts and open partner details.
   Page-specific extension, brand guide palette + Onest. */
body.contacts-page{
  --navy:#27374D;--ink:#27374D;--muted:#304B68;
  min-height:100vh;min-height:100svh;
  display:flex;flex-direction:column;
  font-family:"Onest",Arial,sans-serif;
}
body.contacts-page main{flex:1 0 auto}
body.contacts-page .contacts-photo{
  position:relative;
  isolation:isolate;
  min-height:calc(100svh - 140px);
  padding:49px 0 64px;
  background-color:#E9F6FF;
  background-image:
    linear-gradient(90deg,
      rgba(245,251,255,.53) 0%,
      rgba(245,251,255,.35) 45%,
      rgba(245,251,255,.13) 100%),
    var(--contacts-image),url('assets/finance-architecture.svg');
  background-size:cover,cover;
  background-position:center,center 40%;
  background-repeat:no-repeat;
}
body.contacts-page .contacts-photo>.wrap{
  position:relative;z-index:1;max-width:1180px;
}
body.contacts-page .contacts-intro{max-width:830px;margin-bottom:32px}
body.contacts-page .contacts-intro h1{
  margin:0 0 14px;
  color:#27374D;
  font-family:"Onest",Arial,sans-serif;
  font-size:clamp(44px,5vw,65px);
  font-weight:700;
  line-height:1.06;
  letter-spacing:-.045em;
}
body.contacts-page .contacts-intro p{
  max-width:670px;
  margin:0;
  font-size:clamp(16px,1.35vw,19px);
  line-height:1.55;
  color:#27374D;
  font-weight:500;
}
body.contacts-page .contacts-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}
body.contacts-page .contacts-channel{
  min-width:0;
  scroll-margin-top:110px;
  padding:20px 24px;
  min-height:105px;
  border-radius:16px;
  border:1px solid rgba(39,55,77,.16);
  background:rgba(255,255,255,.91);
  box-shadow:0 4px 15px rgba(39,55,77,.055);
}
body.contacts-page .contacts-channel--email{
  grid-column:1/-1;min-height:0;
}
body.contacts-page .contacts-channel h2{
  margin:0 0 7px;
  color:#27374D;
  font-size:17px;
  font-weight:700;
  line-height:1.27;
  letter-spacing:-.017em;
}
body.contacts-page .contacts-channel a,
body.contacts-page .contacts-channel strong{
  font-size:clamp(16px,1.45vw,19px);
  line-height:1.4;
  font-weight:700;
  color:#27374D;
  overflow-wrap:anywhere;
}
body.contacts-page .contacts-channel a{
  text-decoration:underline;
  text-decoration-color:#8FAFCC;
  text-underline-offset:4px;
}
body.contacts-page .contacts-channel a:hover{text-decoration-color:#27374D}
body.contacts-page .contacts-channel p{
  margin:7px 0 0;
  color:#304B68;
  font-size:13px;
  line-height:1.45;
}
body.contacts-page .partner-section{
  background:#fff;
  padding:62px 0 76px;
}
body.contacts-page .partner-section h2{
  margin:0 0 32px;
  color:#27374D;
  font-size:clamp(36px,3.65vw,49px);
  line-height:1.11;
  letter-spacing:-.045em;
  font-weight:700;
}
body.contacts-page .partner-details{
  margin:0;max-width:1050px;
  border-top:1px solid rgba(39,55,77,.16);
}
body.contacts-page .partner-detail{
  display:grid;
  grid-template-columns:minmax(180px,270px) minmax(0,1fr);
  column-gap:28px;
  row-gap:9px;
  padding:19px 0;
  border-bottom:1px solid rgba(39,55,77,.14);
  align-items:start;
}
body.contacts-page .partner-detail dt{
  margin:3px 0 0;
  color:#304B68;
  font-size:11px;
  line-height:1.5;
  font-weight:700;
  letter-spacing:.095em;
  text-transform:uppercase;
}
body.contacts-page .partner-detail dd{
  margin:0;
  color:#27374D;
  font-size:clamp(15px,1.23vw,17px);
  line-height:1.55;
  font-weight:500;
  overflow-wrap:anywhere;
}
body.contacts-page .partner-detail dd a{
  color:inherit;text-decoration:underline;
  text-decoration-color:#8FAFCC;text-underline-offset:4px;
}
body.contacts-page .partner-detail dd a:hover{text-decoration-color:#27374D}
body.contacts-page a:focus-visible{
  outline:3px solid #8FAFCC;outline-offset:4px;
}
body.contacts-page .footer{flex:0 0 auto}
@media(max-width:900px){
  body.contacts-page .contacts-photo{min-height:auto;padding:48px 0 57px}
  body.contacts-page .contacts-photo{
    background-image:
      linear-gradient(110deg,rgba(245,251,255,.61),rgba(245,251,255,.27)),
      var(--contacts-image),url('assets/finance-architecture.svg');
    background-position:center,63% center;
  }
  body.contacts-page .partner-section{padding:54px 0 63px}
}
@media(max-width:620px){
  body.contacts-page .contacts-photo{
    padding:42px 0 54px;
    background-image:
      linear-gradient(180deg,rgba(245,251,255,.66),rgba(245,251,255,.32)),
      var(--contacts-image),url('assets/finance-architecture.svg');
    background-position:center,64% center;
  }
  body.contacts-page .contacts-intro{margin-bottom:26px}
  body.contacts-page .contacts-intro h1{font-size:clamp(36px,9.5vw,46px)}
  body.contacts-page .contacts-intro p{font-size:15px}
  body.contacts-page .contacts-grid{grid-template-columns:1fr;gap:10px}
  body.contacts-page .contacts-channel{min-height:0;padding:17px 19px}
  body.contacts-page .contacts-channel--email{grid-column:auto}
  body.contacts-page .contacts-channel h2{font-size:17px}
  body.contacts-page .contacts-channel a,body.contacts-page .contacts-channel strong{font-size:17px}
  body.contacts-page .partner-section{padding:45px 0 56px}
  body.contacts-page .partner-section h2{margin-bottom:24px;font-size:36px}
  body.contacts-page .partner-detail{grid-template-columns:1fr;gap:7px;padding:16px 0}
  body.contacts-page .partner-detail dt{margin:0}
  body.contacts-page .partner-detail dd{font-size:15px}
}

/* Mobile only: make the Contacts photo and Partner Card each one screen.
   Preserve every contact method and legal field; desktop remains unchanged.
   Let very short screens expand naturally rather than clipping essential data. */
@media (max-width:620px){
  body.contacts-page{
    --contacts-mobile-header:79px;
  }
  body.contacts-page .contacts-photo,
  body.contacts-page .partner-section{
    box-sizing:border-box;
    min-height:calc(100vh - var(--contacts-mobile-header));
    min-height:calc(100svh - var(--contacts-mobile-header));
    display:flex;
    align-items:center;
    scroll-margin-top:var(--contacts-mobile-header);
  }
  body.contacts-page .contacts-photo{
    padding:clamp(15px,2.3svh,23px) 0;
  }
  body.contacts-page .contacts-photo>.wrap,
  body.contacts-page .partner-section>.wrap{
    width:calc(100% - 32px);
    max-width:100%;
  }
  body.contacts-page .contacts-intro{
    margin:0 0 clamp(13px,2svh,20px);
  }
  body.contacts-page .contacts-intro h1{
    font-size:clamp(30px,8vw,37px);
    line-height:1.07;
    margin:0 0 8px;
  }
  body.contacts-page .contacts-intro p{
    max-width:420px;
    font-size:13px;
    line-height:1.4;
    font-weight:500;
  }
  body.contacts-page .contacts-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }
  body.contacts-page .contacts-channel{
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding:clamp(11px,1.8svh,16px) 12px;
    min-width:0;
    min-height:0;
    border-radius:13px;
  }
  body.contacts-page .contacts-channel--email{
    grid-column:1 / -1;
    padding-right:78px;
  }
  body.contacts-page .contacts-channel h2{
    margin:0 0 6px;
    font-size:clamp(12px,3.4vw,15px);
    line-height:1.22;
  }
  body.contacts-page .contacts-channel a,
  body.contacts-page .contacts-channel strong{
    font-size:clamp(13px,3.7vw,16px);
    line-height:1.36;
    overflow-wrap:anywhere;
  }
  body.contacts-page .contacts-channel p{
    display:none;
  }
  body.contacts-page .partner-section{
    padding:clamp(15px,2.6svh,25px) 0;
  }
  body.contacts-page .partner-section h2{
    margin:0 0 clamp(12px,2svh,20px);
    font-size:clamp(29px,7.5vw,36px);
    line-height:1.12;
  }
  body.contacts-page .partner-details{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 12px;
    border-top:1px solid rgba(39,55,77,.16);
    max-width:none;
  }
  body.contacts-page .partner-detail{
    display:block;
    min-width:0;
    padding:clamp(7px,1.25svh,11px) 0;
    border-bottom:1px solid rgba(39,55,77,.14);
  }
  body.contacts-page .partner-detail:nth-child(1),
  body.contacts-page .partner-detail:nth-child(4),
  body.contacts-page .partner-detail:nth-child(5),
  body.contacts-page .partner-detail:nth-child(8){
    grid-column:1/-1;
  }
  body.contacts-page .partner-detail dt{
    margin:0 0 3px;
    font-size:clamp(9px,2.5vw,10px);
    line-height:1.25;
    letter-spacing:.055em;
  }
  body.contacts-page .partner-detail dd{
    margin:0;
    font-size:clamp(12px,3.25vw,14px);
    line-height:1.38;
    font-weight:500;
    overflow-wrap:anywhere;
  }
}
@media (max-width:360px){
  body.contacts-page .contacts-channel{padding-left:9px;padding-right:9px}
  body.contacts-page .contacts-channel h2{font-size:12px}
  body.contacts-page .contacts-channel a,
  body.contacts-page .contacts-channel strong{font-size:12.5px}
  body.contacts-page .contacts-channel--email{padding-right:73px}
  body.contacts-page .partner-detail dd{font-size:12px}
}
@media (max-width:620px) and (max-height:700px){
  body.contacts-page .contacts-photo{padding:12px 0}
  body.contacts-page .contacts-intro{margin-bottom:11px}
  body.contacts-page .contacts-intro h1{font-size:30px}
  body.contacts-page .contacts-intro p{font-size:12px;line-height:1.33}
  body.contacts-page .contacts-grid{gap:7px}
  body.contacts-page .contacts-channel{padding-top:9px;padding-bottom:9px}
  body.contacts-page .contacts-channel h2{margin-bottom:4px}
  body.contacts-page .partner-section{padding:12px 0}
  body.contacts-page .partner-section h2{font-size:29px;margin-bottom:10px}
  body.contacts-page .partner-detail{padding:6px 0}
  body.contacts-page .partner-detail dd{line-height:1.32}
}


/* Compact contacts: phone, one messenger group, and email only. */
body.contacts-page .contacts-intro{margin-bottom:22px}
body.contacts-page .contacts-intro h1{margin-bottom:0}
body.contacts-page .contacts-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1.65fr) minmax(0,1fr);
  gap:14px;
  align-items:stretch;
}
body.contacts-page .contacts-channel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:176px;
  padding:21px 20px;
}
body.contacts-page .contacts-channel--email{grid-column:auto}
body.contacts-page .contacts-channel--messengers{justify-content:flex-start}
body.contacts-page .contacts-messenger-list{display:grid;gap:0;min-width:0}
body.contacts-page .contacts-messenger{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:3px 12px;
  min-width:0;
  padding:9px 0;
  scroll-margin-top:115px;
}
body.contacts-page .contacts-messenger + .contacts-messenger{
  border-top:1px solid rgba(39,55,77,.12);
}
body.contacts-page .contacts-messenger>span{
  color:#304B68;
  font-size:13px;
  font-weight:700;
}
body.contacts-page .contacts-messenger a,
body.contacts-page .contacts-messenger strong{
  font-size:clamp(13px,1.05vw,15px);
  line-height:1.4;
}
@media(max-width:900px){
  body.contacts-page .contacts-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:10px}
  body.contacts-page .contacts-channel--email{grid-column:1/-1;min-height:82px}
  body.contacts-page .contacts-channel{min-height:0}
}
@media(max-width:620px){
  body.contacts-page .contacts-grid{grid-template-columns:1fr;gap:9px}
  body.contacts-page .contacts-intro{margin-bottom:15px}
  body.contacts-page .contacts-channel{padding:13px 17px;min-height:0}
  body.contacts-page .contacts-channel--email{grid-column:auto;min-height:0;padding-right:17px}
  body.contacts-page .contacts-channel--messengers{justify-content:center}
  body.contacts-page .contacts-channel h2{margin:0 0 7px;font-size:15px}
  body.contacts-page .contacts-channel a,
  body.contacts-page .contacts-channel strong{font-size:15px}
  body.contacts-page .contacts-messenger{padding:6px 0;gap:4px 10px}
  body.contacts-page .contacts-messenger>span{font-size:12px}
  body.contacts-page .contacts-messenger a,
  body.contacts-page .contacts-messenger strong{font-size:13.5px}
}
@media(max-width:360px){
  body.contacts-page .contacts-channel--email{padding-right:12px}
  body.contacts-page .contacts-messenger a,
  body.contacts-page .contacts-messenger strong{font-size:12.5px}
}
@media(max-width:620px) and (max-height:700px){
  body.contacts-page .contacts-channel{padding-top:9px;padding-bottom:9px}
  body.contacts-page .contacts-intro{margin-bottom:10px}
  body.contacts-page .contacts-messenger{padding:4px 0}
}


/* Desktop contacts: three cards together, aligned to the left. */
@media(min-width:901px){
  body.contacts-page .contacts-grid{
    width:max-content;
    max-width:100%;
    grid-template-columns:235px 370px 220px;
    justify-content:start;
    gap:12px;
  }
  body.contacts-page .contacts-channel{
    min-width:0;
    box-sizing:border-box;
  }
}

/* Desktop: crisp large photograph with existing approved photo as a fallback.
   All three contact titles use one modest size and the same top baseline. */
@media(min-width:901px){
 body.contacts-page .contacts-photo{
  background-image:linear-gradient(90deg,rgba(245,251,255,.53) 0%,rgba(245,251,255,.35) 45%,rgba(245,251,255,.13) 100%),var(--contacts-desktop-image),var(--contacts-image),url('assets/finance-architecture.svg');
  background-size:cover,cover,cover;
  background-position:center,center 42%,center 40%;
  background-repeat:no-repeat;
 }
 body.contacts-page .contacts-grid{align-items:stretch}
 body.contacts-page .contacts-channel,
 body.contacts-page .contacts-channel--messengers{
  justify-content:flex-start;
  padding-top:22px;
 }
 body.contacts-page .contacts-channel h2{
  flex:0 0 auto;
  font-size:22px!important;
  line-height:1.25!important;
  letter-spacing:-.025em!important;
  margin:0 0 12px;
  min-height:28px;
 }
}
