/* Contact page (layout 7). Scoped to .page-contact. Reusable hero map card: .ml-route. */

/* ----- Hero route / map card ----- */
.ml-route{
  position:relative;
  z-index:1;
  width:300px;
  max-width:100%;
  box-sizing:border-box;
  padding:20px 18px 16px;
  border-radius:18px;
  color:#F3F7F9;
  background:
    linear-gradient(115deg,rgba(255,255,255,.10),transparent 42%),
    linear-gradient(180deg,#0B2230 0%,#0A1822 100%);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 36px 70px rgba(0,0,0,.5),
    0 0 80px rgba(19,184,238,.22),
    0 0 0 1px rgba(19,184,238,.22);
  transform:rotate(-6deg) rotateX(4deg) rotateY(-8deg);
  transform-origin:center center;
  isolation:isolate;
  overflow:hidden;
  animation:mlRouteFloat 7.5s ease-in-out infinite;
}
.ml-route-holo{
  position:absolute;left:0;right:0;top:0;height:6px;
  background:linear-gradient(90deg,#13B8EE,#3FD0C9,#68E2B4,#FFA04F,#13B8EE);
  background-size:200% 100%;
  animation:mlHolo 8s linear infinite;
  z-index:2;
}
.ml-route-shine{
  position:absolute;inset:0;
  pointer-events:none;z-index:3;
  border-radius:inherit;
  background:linear-gradient(115deg,transparent 36%,rgba(255,255,255,.22) 50%,transparent 64%);
  background-size:220% 100%;
  background-position:-80% 0;
  animation:svCardShine 6.5s ease-in-out infinite;
  mix-blend-mode:screen;
}
.ml-route-head{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;align-items:center;
  margin-bottom:12px;
}
.ml-route-mark{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  font-size:13px;font-weight:700;letter-spacing:.04em;
  color:#06141C;
  background:linear-gradient(135deg,#13B8EE,#68E2B4);
}
.ml-route-brand{min-width:0}
.ml-route-brand b,
.ml-route-brand span,
.ml-route-wzor,
.ml-route-title,
.ml-route-row b,
.ml-route-row small{
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.ml-route-brand b{
  font-size:11px;font-weight:700;letter-spacing:.02em;line-height:1.2;color:#F3F7F9;
}
.ml-route-brand span{
  font-size:10px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#9FB2BC;
}
.ml-route-wzor{
  font-size:10px;font-weight:700;letter-spacing:.12em;
  color:#68E2B4;
}
.ml-route-map{
  position:relative;z-index:1;
  display:grid;place-items:center;
  height:158px;
  aspect-ratio:auto;
  border-radius:14px;
  overflow:hidden;
  background:
    radial-gradient(120% 80% at 50% 0%,rgba(19,184,238,.18),transparent 55%),
    linear-gradient(180deg,#081820,#0A1C28);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.ml-route-stage{
  --ml-map-ar:1.0600;
  position:relative;
  width:min(100%, calc(158px * var(--ml-map-ar)));
  aspect-ratio:var(--ml-map-ar);
}
.ml-route-map svg{
  display:block;width:100%;height:100%;
}
.ml-route-land{
  fill:rgba(19,184,238,.16);
  stroke:#13B8EE;
  stroke-width:1.6;
  stroke-linejoin:round;
}
.ml-route-line{
  fill:none;
  stroke:#68E2B4;
  stroke-width:1.4;
  stroke-dasharray:4 3;
  stroke-linecap:round;
  opacity:.85;
}
.ml-route-pin{
  position:absolute;
  z-index:2;
  transform:translate(-50%,-50%);
  pointer-events:none;
  width:12px;height:12px;
}
.ml-route-pin i{
  display:block;width:12px;height:12px;border-radius:50%;
  background:#68E2B4;
  box-shadow:0 0 0 4px rgba(104,226,180,.25),0 0 16px rgba(19,184,238,.55);
}
.ml-route-pin.is-waw i{background:#13B8EE;box-shadow:0 0 0 4px rgba(19,184,238,.28),0 0 16px rgba(19,184,238,.55)}
.ml-route-pin span{
  position:absolute;left:50%;top:14px;
  transform:translateX(-50%);
  max-width:120px;
  padding:2px 6px;
  border-radius:6px;
  font-size:9px;font-weight:700;letter-spacing:.02em;line-height:1.2;
  color:#F3F7F9;
  background:rgba(6,20,28,.72);
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.ml-route-rows{position:relative;z-index:1;margin-top:12px;display:grid;gap:6px}
.ml-route-row{
  display:grid;
  grid-template-columns:18px minmax(0,1fr);
  gap:8px;align-items:baseline;
  min-width:0;
  font-size:12px;line-height:1.3;
}
.ml-route-row span{color:#68E2B4;font-weight:700;font-size:10px}
.ml-route-row b{font-weight:650;color:#F3F7F9}
.ml-route-row small{color:#9FB2BC;font-size:10px}

@keyframes mlRouteFloat{
  0%,100%{transform:rotate(-6deg) rotateX(4deg) rotateY(-8deg) translateY(0)}
  50%{transform:rotate(-6deg) rotateX(4deg) rotateY(-8deg) translateY(-8px)}
}
@media (prefers-reduced-motion:reduce){
  .ml-route{animation:none}
  .ml-route-holo,.ml-route-shine{animation:none}
}
@media (max-width:1100px){
  .ml-route{width:min(100%,300px)}
}
@media (max-width:639px){
  .ml-route{width:min(100%,280px);padding:16px 14px 14px}
}

/* Orbits on the contact hero sit on the four corners of the card. */
.page-contact .sv-orbit-1{top:8px;left:0}
.page-contact .sv-orbit-2{top:8px;right:0}
.page-contact .sv-orbit-3{bottom:28px;left:0;top:auto}
.page-contact .sv-orbit-4{bottom:20px;right:0;top:auto}

/* ----- Office cards ----- */
.page-contact .ct-offices{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:32px;
  align-items:stretch;
}
.ct-office{
  position:relative;
  overflow:hidden;
  display:block;
  min-width:0;
  min-height:560px;
  margin:0;
  padding:0;
  border-radius:24px;
  background:#0A1822;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 18px 50px rgba(0,0,0,.35),
    0 0 60px rgba(19,184,238,.14);
}
.ct-office-label{
  margin:0 0 6px;
  font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:#68E2B4;
}
.ct-office h3{
  margin:0 0 10px;
  font-size:18px;font-weight:700;letter-spacing:-.03em;line-height:1.25;
  color:#F3F7F9;
}
.ct-office-addr{
  margin:0 0 14px;
  font-size:16px;line-height:1.5;
  color:var(--b-muted,#9FB2BC);
}
.ct-office-meta{
  list-style:none;
  margin:0 0 16px;
  padding:0;
  display:grid;
  gap:8px;
}
.ct-office-meta li{
  display:flex;align-items:flex-start;gap:10px;
  margin:0;
  font-size:16px;line-height:1.5;color:#F3F7F9;
  min-width:0;
}
.ct-office-meta li svg{
  flex:none;width:18px;height:18px;margin-top:3px;color:#13B8EE;
}
.ct-office-meta a{color:#F3F7F9;text-decoration:none}
.ct-office-meta a:hover{color:#13B8EE}

/* Map fills the card; glass panel sits over the bottom. */
.ct-office-map{
  position:absolute;
  inset:0;
  width:100%;
  min-height:0;
  margin:0;
  border-radius:0;
  overflow:hidden;
  background:#0A1822;
  box-shadow:none;
}
.ct-office-map::after{
  content:"";
  position:absolute;inset:0;z-index:1;
  pointer-events:none;
  background:
    linear-gradient(180deg, rgba(7,20,28,.12) 28%, rgba(7,20,28,.55) 68%, rgba(7,20,28,.82) 100%),
    radial-gradient(80% 50% at 50% 0%, transparent 40%, rgba(7,20,28,.25) 100%);
}
.ct-office-map iframe{
  position:absolute;
  top:32%;left:50%;
  display:block;
  width:calc(100% + 80px);
  height:calc(100% + 180px);
  transform:translate(-50%,-50%);
  border:0;
  filter:invert(88%) hue-rotate(180deg) saturate(.7) brightness(.92);
}
.ct-office-pin{
  position:absolute;left:50%;top:32%;z-index:2;
  width:18px;height:18px;transform:translate(-50%,-50%);
  pointer-events:none;
}
.ct-office-pin i{
  display:block;width:18px;height:18px;border-radius:50%;
  background:#70FCC8;
  box-shadow:0 0 0 7px rgba(19,184,238,.32), 0 0 28px rgba(19,184,238,.85);
}
.ct-office-pin::after{
  content:"";position:absolute;left:50%;top:50%;
  width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;
  box-shadow:inset 0 0 0 1px rgba(112,252,200,.35);
  animation:ct-pin-pulse 2.4s ease-out infinite;
}
@keyframes ct-pin-pulse{
  0%{transform:scale(.55);opacity:.7}
  100%{transform:scale(1.35);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .ct-office-pin::after{animation:none}
}
.ct-office-glass{
  position:absolute;left:20px;right:20px;bottom:20px;z-index:3;
  padding:22px 22px 20px;
  border-radius:20px;
  background:rgba(10,22,32,.62);
  backdrop-filter:blur(22px) saturate(1.2);
  -webkit-backdrop-filter:blur(22px) saturate(1.2);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.12), 0 12px 32px rgba(0,0,0,.28);
}
.ct-office-glass .btn{
  width:100%;
  margin-top:0;
  align-self:stretch;
  height:48px;
  gap:8px;
  background:#13B8EE;
  color:#fff;
  box-shadow:none;
}
.ct-office-glass .btn:hover{
  background:#3CC8F4;
  color:#fff;
  box-shadow:none;
}
.ct-office-glass .btn svg{flex:none;width:18px;height:18px}

@media (max-width:639px){
  .page-contact .ct-offices{grid-template-columns:1fr;gap:16px}
  .ct-office{min-height:480px}
  .ct-office-glass{left:14px;right:14px;bottom:14px;padding:18px 16px 16px}
}

/* ----- Stylised country map ----- */
.ct-map{
  position:relative;
  min-height:460px;
  border-radius:24px;
  overflow:hidden;
  background:
    radial-gradient(80% 70% at 50% 30%,rgba(19,184,238,.16),transparent 60%),
    linear-gradient(180deg,#07151E 0%,#0A1C28 100%);
  box-shadow:inset 0 0 0 1px var(--b-line,rgba(255,255,255,.12)),inset 0 1px 0 rgba(255,255,255,.06);
}
.ct-map-stage{
  position:relative;
  width:min(520px,86%);
  margin:36px auto 120px;
}
.ct-map-art{
  display:block;
  width:100%;
  height:auto;
  margin:0;
}
.ct-map-land{
  fill:rgba(19,184,238,.14);
  stroke:#13B8EE;
  stroke-width:2.2;
  stroke-linejoin:round;
}
.ct-map-line{
  fill:none;
  stroke:#68E2B4;
  stroke-width:2;
  stroke-dasharray:6 5;
  stroke-linecap:round;
  opacity:.85;
}
.ct-pin{
  position:absolute;
  z-index:2;
  transform:translate(-50%,-50%);
  width:16px;height:16px;
  padding:0;
  border:0;
  background:transparent;
  color:#F3F7F9;
  text-decoration:none;
  cursor:pointer;
  text-align:center;
}
.ct-pin-dot{
  display:block;width:16px;height:16px;border-radius:50%;
  background:#13B8EE;
  box-shadow:0 0 0 6px rgba(19,184,238,.22),0 0 18px rgba(19,184,238,.55);
}
.ct-pin.is-sopot .ct-pin-dot{
  background:#68E2B4;
  box-shadow:0 0 0 6px rgba(104,226,180,.22),0 0 18px rgba(104,226,180,.5);
}
.ct-pin-label{
  position:absolute;left:50%;top:22px;
  transform:translateX(-50%);
  width:max-content;max-width:180px;
  padding:8px 12px 9px;
  border-radius:12px;
  background:rgba(8,20,28,.88);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  min-width:0;
}
.ct-pin-label b,
.ct-pin-label span{
  display:block;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.ct-pin-label b{
  font-size:13px;font-weight:700;letter-spacing:-.02em;line-height:1.25;
}
.ct-pin-label span{
  margin-top:2px;
  font-size:12px;font-weight:500;color:#9FB2BC;
}
.ct-pin:hover .ct-pin-label,
.ct-pin:focus-visible .ct-pin-label{
  box-shadow:inset 0 0 0 1px rgba(19,184,238,.55);
}
.ct-map-legend{
  position:absolute;
  left:20px;right:20px;bottom:20px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
  z-index:3;
}
.ct-map-legend a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-width:0;
  padding:12px 16px;
  border-radius:14px;
  color:#F3F7F9;
  text-decoration:none;
  background:rgba(8,20,28,.9);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
  font-size:14px;font-weight:650;
}
.ct-map-legend a span{
  min-width:0;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.ct-map-legend a small{
  flex:none;
  color:#68E2B4;font-size:12px;font-weight:700;
}
.ct-map-legend a:hover{box-shadow:inset 0 0 0 1px rgba(19,184,238,.55)}

@media (max-width:768px){
  .ct-map{min-height:400px}
  .ct-map-stage{margin:28px auto 150px;width:min(420px,92%)}
}
@media (max-width:639px){
  .ct-map{min-height:0}
  .ct-map-stage{width:92%;margin:20px auto 16px}
  .ct-pin{position:static;transform:none;width:auto;height:auto;display:flex;flex-direction:row;align-items:center;gap:10px;max-width:none;margin:0 16px 10px;text-align:left}
  .ct-pin-label{position:static;transform:none;margin:0;flex:1;min-width:0;width:auto;max-width:none}
  .ct-map-legend{position:static;left:auto;right:auto;bottom:auto;grid-template-columns:1fr;gap:8px;padding:8px 16px 16px}
}

/* ----- Channels 4 / 2 / 1 ----- */
.page-contact .ct-channels{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
.ct-ch{
  display:flex;
  flex-direction:column;
  min-width:0;
  margin:0;
  padding:24px 22px 22px;
  border-radius:24px;
  background:var(--b-card,#0E1E2A);
  box-shadow:inset 0 0 0 1px var(--b-line,rgba(255,255,255,.12)),inset 0 1px 0 rgba(255,255,255,.06);
  color:inherit;
  text-decoration:none;
}
.ct-ch:hover{box-shadow:inset 0 0 0 1px rgba(19,184,238,.45),inset 0 1px 0 rgba(255,255,255,.06)}
.ct-ch-ic{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  margin:0 0 16px;
  color:#13B8EE;
  background:rgba(19,184,238,.14);
}
.ct-ch-ic svg,.ct-ch-ic img{display:block;width:22px;height:22px}
.ct-ch.is-phone .ct-ch-ic{color:#FFA04F;background:rgba(255,160,79,.14)}
.ct-ch.is-mail .ct-ch-ic{color:#68E2B4;background:rgba(104,226,180,.14)}
.ct-ch.is-tg .ct-ch-ic{color:#13B8EE;background:rgba(19,184,238,.14)}
.ct-ch.is-wa .ct-ch-ic{color:#A78BFA;background:rgba(167,139,250,.14)}
.ct-ch h3{
  margin:0 0 8px;
  font-size:18px;font-weight:700;letter-spacing:-.03em;line-height:1.25;color:#F3F7F9;
}
.ct-ch b,
.ct-ch .ct-ch-val{
  display:block;
  margin:0 0 6px;
  font-size:16px;font-weight:650;line-height:1.4;color:#F3F7F9;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.ct-ch small{
  display:block;
  margin-top:auto;
  font-size:13px;line-height:1.4;color:#9FB2BC;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
@media (min-width:640px) and (max-width:1100px){
  .page-contact .ct-channels{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:639px){
  .page-contact .ct-channels{grid-template-columns:1fr}
}

/* Duo office cards stay a pair down to 640, same 32px gap as desktop. */
@media (min-width:640px) and (max-width:768px){
  .page-contact .ct-offices{gap:32px}
}

.page-contact #kontakt .ct-form-lead{
  margin:0 0 16px;
  font-size:16px;line-height:1.5;
  color:var(--b-muted,#9FB2BC);
}

.page-contact #ofisy,
.page-contact #ofis-waw,
.page-contact #ofis-sopot,
.page-contact #karta,
.page-contact #kanaly,
.page-contact #kontakt{
  scroll-margin-top:96px;
}


/* Contact top uses the same .hero-zone glow as the blog (no visual). H1 sizes 84 / 57 / 40.56. */
.page-contact .hero-grid{display:block}
.page-contact .hero-copy{max-width:none}
.page-contact .ml-hero{padding-bottom:48px}
.page-contact #kanaly{padding-top:0}
.page-contact .ml-hero h1{
  margin:0;
  color:#fff;
  font-size:clamp(46px, 6.4vw, 84px);
  font-weight:750;
  letter-spacing:-.055em;
  line-height:.94;
  max-width:none;
}
.page-contact .ml-hero h1 em{
  font-style:normal;
  background:linear-gradient(105deg,#13B8EE 8%,#70FCC8 58%,#68E2B4 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  white-space:nowrap;
}
@media (max-width:768px){
  .page-contact .ml-hero{padding-bottom:32px}
  .page-contact .ml-hero h1{font-size:clamp(38px,10.4vw,56px)}
}

