
.contacts-hero{
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);
 align-items:center;
 gap:clamp(30px,5vw,78px);
 min-height:72vh;
 overflow:visible;
 position:relative;
}
.contacts-hero-copy{position:relative;z-index:2;min-width:0}
.contacts-hero .page-title{margin:24px 0 30px}
.contacts-hero .page-lead{max-width:650px}
.contacts-main-cta{margin-top:30px}
.contacts-hero-art{
 position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;
 height:min(78vh,820px);min-height:540px;
}
.contacts-hero-art img{
 position:relative;z-index:1;display:block;width:100%;height:100%;max-width:100%;
 object-fit:contain;object-position:center bottom;
 filter:drop-shadow(0 20px 34px rgba(15,35,55,.18));
 animation:contactCharacterIn .9s cubic-bezier(.2,.75,.25,1) both;
}
.contacts-orbit{
 position:absolute;width:88%;height:68%;border:1px solid rgba(35,139,220,.35);
 border-radius:50%;transform:rotate(-16deg);z-index:0;
}
.contacts-orbit:before,.contacts-orbit:after{
 content:"";position:absolute;inset:8%;border:1px solid rgba(35,139,220,.16);border-radius:50%;
}
.contacts-orbit:after{inset:18%;border-color:rgba(35,139,220,.1)}
@keyframes contactCharacterIn{from{opacity:0;transform:translateY(24px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
.contacts-channel-section{padding-top:clamp(50px,7vw,90px)}
.contacts-channel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.contacts-channel-card{
 min-width:0;display:flex;align-items:center;gap:16px;padding:20px 22px;
 border:1px solid rgba(17,17,17,.12);border-radius:18px;background:rgba(255,255,255,.38);
 color:#111;text-decoration:none;transition:transform .25s,border-color .25s,background .25s,box-shadow .25s;
}
.contacts-channel-card:hover{transform:translateY(-5px);border-color:rgba(35,139,220,.48);background:#fff;box-shadow:0 16px 36px rgba(15,30,45,.08)}
.contacts-channel-card img{width:38px;height:38px;object-fit:contain;flex:0 0 38px;transition:transform .3s}
.contacts-channel-card:hover img{transform:scale(1.12) rotate(-5deg)}
.contacts-channel-card span{display:grid;gap:4px;min-width:0}
.contacts-channel-card strong{font-size:15px;font-weight:600}
.contacts-channel-card small{overflow:hidden;color:#777;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.contacts-channel-card i{margin-left:auto;color:#777;font-style:normal;font-size:19px;transition:transform .2s}
.contacts-channel-card:hover i{transform:translate(3px,-3px);color:#1689d6}
@media(max-width:900px){
 .contacts-hero{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr)}
 .contacts-channel-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .contacts-hero{display:block;min-height:0;padding-top:104px;padding-bottom:40px}
 .contacts-hero-art{height:460px;min-height:0;margin-top:18px}
 .contacts-hero .page-title{font-size:clamp(54px,15vw,88px)}
 .contacts-channel-grid{grid-template-columns:1fr}
 .contacts-channel-card{padding:16px}
}
@media(prefers-reduced-motion:reduce){.contacts-hero-art img{animation:none}.contacts-channel-card,.contacts-channel-card img{transition:none}}

.contacts-hero-art{overflow:visible}
.contacts-hero-art .contacts-character{z-index:2;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.contacts-social-float{
 position:absolute;z-index:3;display:grid;place-items:center;width:54px;height:54px;
 border:1px solid rgba(65,151,220,.32);border-radius:17px;
 background:rgba(255,255,255,.76);box-shadow:0 10px 28px rgba(15,35,55,.12),0 0 22px rgba(45,151,230,.13);
 backdrop-filter:blur(9px);animation:contactIconFloat 5s ease-in-out infinite;
}
.contacts-social-float img{width:29px;height:29px;object-fit:contain}
.float-telegram{left:4%;top:18%;animation-delay:-.2s}
.float-discord{right:4%;top:12%;animation-delay:-1.1s}
.float-gmail{left:0;top:52%;animation-delay:-2s}
.float-mail{right:0;top:47%;animation-delay:-2.7s}
.float-vk{left:13%;bottom:10%;animation-delay:-3.4s}
.float-github{right:13%;bottom:7%;animation-delay:-4.1s}
@keyframes contactIconFloat{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-12px) rotate(3deg)}}
@media(max-width:700px){
 .contacts-hero-art{height:420px;margin:18px -12px 0}
 .contacts-social-float{width:44px;height:44px;border-radius:14px}
 .contacts-social-float img{width:24px;height:24px}
 .float-telegram{left:1%;top:12%}.float-discord{right:1%;top:9%}
 .float-gmail{left:0;top:49%}.float-mail{right:0;top:45%}
 .float-vk{left:10%;bottom:8%}.float-github{right:10%;bottom:5%}
}
@media(prefers-reduced-motion:reduce){.contacts-social-float{animation:none}}

/* Contacts refinements: retain the original hero composition, use the supplied character artwork. */
.contacts-hero .page-title{letter-spacing:-.065em}


/* Final contacts-page layout and consistent arrow treatment. */
.contacts-hero.demo-hero{
  padding-top: 104px;
  padding-bottom: 56px;
  min-height: 78vh;
}
.contacts-hero-art{
  height: min(86vh, 900px);
  min-height: 600px;
  transform: translateY(-12px);
}
.contacts-hero-art .contacts-character{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}
.contacts-main-cta{margin-top: 24px;}
.contacts-main-cta .btn-arrow,
.site-footer .footer-action .btn-arrow{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:50%;
  background:var(--blue);
  color:#101114;
  font-style:normal;
  line-height:1;
}
.contacts-main-cta .btn-arrow svg,
.site-footer .footer-action .btn-arrow svg,
.contacts-channel-card .channel-arrow svg{
  display:block;
  width:16px;
  height:16px;
  overflow:visible;
}
.contacts-main-cta .btn-arrow svg path,
.site-footer .footer-action .btn-arrow svg path,
.contacts-channel-card .channel-arrow svg path{
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.contacts-main-cta:hover .btn-arrow,
.site-footer .footer-action .btn-arrow{
  background:#f4f1e8;
  color:#101114;
}
.site-footer .footer-action .btn:hover .btn-arrow{
  background:#101114;
  color:#f4f1e8;
}
.contacts-channel-section .section-head{
  align-items:flex-start;
  flex-direction:column;
  gap:12px;
}
.contacts-channel-section .section-head p{
  max-width:none;
  margin:0;
  font-size:15px;
  line-height:1.55;
}
.contacts-channel-card .channel-arrow{
  margin-left:auto;
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(17,17,17,.06);
  color:#111;
  font-style:normal;
  transition:transform .25s,background .25s,color .25s;
}
.contacts-channel-card:hover .channel-arrow{
  transform:translate(2px,-2px);
  background:var(--blue);
  color:#111;
}
@media(max-width:900px){
  .contacts-hero-art{height: min(76vh,760px); min-height:520px;}
}
@media(max-width:700px){
  .contacts-hero.demo-hero{padding-top:92px;padding-bottom:36px;}
  .contacts-hero-art{height:480px;min-height:0;transform:none;margin-top:12px;}
  .contacts-channel-section .section-head{gap:8px;}
}
@media(max-width:420px){.contacts-hero-art{height:400px;}}


/* v16: tighten the hero and move the contact character up and right. */
body:has(.contacts-page) .page-main{padding-top:0}
.contacts-hero.demo-hero{padding-top:58px;padding-bottom:42px;min-height:72vh}
.contacts-hero-art{height:min(84vh,860px);min-height:580px;transform:translate(54px,-54px) scale(1.08)}
.contacts-hero-art .contacts-character{object-position:center bottom}
/* Keep channel cards calm: no hover glow, lift, or icon animation. */
.contacts-channel-card,
.contacts-channel-card:hover{transform:none;border-color:rgba(17,17,17,.12);background:rgba(255,255,255,.38);box-shadow:none}
.contacts-channel-card img,
.contacts-channel-card:hover img{transform:none}
.contacts-channel-card .channel-arrow,
.contacts-channel-card:hover .channel-arrow{transform:none;background:rgba(17,17,17,.06);color:#111}
@media(max-width:900px){
  .contacts-hero.demo-hero{padding-top:82px;padding-bottom:36px;min-height:0}
  .contacts-hero-art{height:min(76vh,760px);min-height:520px;transform:translateY(-24px) scale(1.02)}
}
@media(max-width:700px){
  body:has(.contacts-page) .page-main{padding-top:0}
  .contacts-hero.demo-hero{padding-top:88px;padding-bottom:30px}
  .contacts-hero-art{height:460px;min-height:0;transform:none;margin-top:4px}
}
